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 bindings for C library for finding and handling crystal symmetries
The package is developed on GitHub. You can get the source for the
released versions from the
repository <https://github.com/spglib/spglib/releases>
__.
Note that the Python bindings will link to the system/environment
installed Spglib (loaded from :code:LD_LIBRARY_PATH
or :code:DYLD_LIBRARY_PATH
),
and it will default to a bundled version otherwise. To always use the
system version of Spglib (e.g. in a lua-module environment) delete the
bundled libraries :code:libsymspg.so*
in the python Spglib installation
directory.
Using package distribution service
The easiest way to install python-spglib is to use the pypi package, for
which numpy is required to be installed before the installation. A
command to install spglib is:
.. code-block:: console
$ pip install spglib
Conda is another choice:
.. code-block:: console
$ conda install -c conda-forge spglib
These packages are made by Pawel T. Jochym.
Building from source
~~~~~~~~~~~~~~~~~~~~
To build from source, make sure you have installed the build requirements
in :code:`pyproject.toml`. Then simply run the following in the root directory.
.. code-block:: console
$ python -m build
$ pip install .
To include testing or documentation environments, simply include the relevant extras
.. code-block:: console
$ pip install .[test]
Running tests
~~~~~~~~~~~~~
After installing the project with appropriate extras (:code:`testing`), either from
package manager or from source, simply run :code:`pytest` in the current directory
to test the python bindings
.. code-block:: console
$ pytest
FAQs
This is the spglib module.
We found that spglib demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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.