Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Python wrappers around the input and output files of the Deltares D-Serie and D-GEO Suite models
GEOLib is a Python package to generate, execute and parse several D-Serie and D-GEO Suite numerical models.
Install GEOLib with:
.. code-block:: bash
$ pip install d-geolib
Configure your environment using the instructions on our Setup <https://deltares.github.io/GEOLib/latest/user/setup.html>
_ page.
You may get the console executables from the Deltares download portal, or in the case of the D-GEO Suite, you may copy the contents of the installation 'bin' directory to your console folder.
If you want to make changes to GEOLib you can run the source code from GitHub directly on your local machine, please follow the instructions below on how to set up your development environment using pip or poetry.
You do not need to follow these instructions if you want to use the GEOLib package in your project.
To install the required dependencies to run GEOLib code, run:
.. code-block:: bash
$ pip install -r requirements.txt
Or, when having poetry installed (you should):
.. code-block:: bash
$ poetry install
Make sure to have the server dependencies installed:
.. code-block:: bash
$ poetry install -E server
In order to run the testcode, from the root of the repository, run:
.. code-block:: bash
$ pytest
or, in case of using Poetry
.. code-block:: bash
$ poetry run pytest
Running flake8, mypy is also recommended. For mypy use:
.. code-block:: bash
$ mypy --config-file pyproject.toml geolib
Running standard linters is advised:
.. code-block:: bash
$ poetry run isort .
$ poetry run black .
In order to run the documentation, from the root of the repository, run:
.. code-block:: bash
$ cd docs
$ sphinx-build . build -b html -c .
The documentation is now in the build
subfolder, where you can open
the index.html
in your browser.
To build a distributable wheel package, run:
.. code-block:: bash
$ poetry build
The distributable packages are now built in the dist
subfolder.
The requirements.txt file is generated by poetry based on the pyproject.toml and poetry.lock files. In order to update/regenerate this file, run:
.. code-block:: bash
$ poetry install
$ poetry export -E server -f requirements.txt --output requirements.txt --without-hashes
$ poetry export -E server -f requirements.txt --output requirements-dev.txt --with dev --without-hashes
In order to run code cleanup/linter use the following commands:
.. code-block:: bash
$ poetry run isort .
$ poetry run black .
FAQs
Python wrappers around the input and output files of the Deltares D-Serie and D-GEO Suite models
We found that d-geolib demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.