Skip to main content

Python bindings for C library for finding and handling crystal symmetries

Installation

The package is developed on github. You can get the source for the released versions from the repository.

Note that the Python bindings will link to the system/environment installed Spglib (loaded from LD_LIBRARY_PATH or 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 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:

$ pip install spglib

Conda is another choice:

$ 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 pyproject.toml. Then simply run the following in the current directory.

$ python -m build
$ pip install .

To include testing or documentation environments, simply include the relevant extras

$ pip install .[test]

Running tests

After installing the project with appropriate extras (testing), either from package manager or from source, simply run pytest in the current directory to test the python bindings

$ pytest

Metadata

Release files for spglib 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spglib 2.1.0
File Size Uploaded
spglib-2.1.0.tar.gz 2.8 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for spglib 2.1.0
File
spglib-2.1.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
spglib-2.1.0-cp311-cp311-manylinux_2_17_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details
spglib-2.1.0-cp311-cp311-manylinux_2_17_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ ARM64 Details
spglib-2.1.0-cp311-cp311-macosx_10_9_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.9+ x86-64 Details
spglib-2.1.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
spglib-2.1.0-cp310-cp310-manylinux_2_17_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details
spglib-2.1.0-cp310-cp310-manylinux_2_17_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ ARM64 Details
spglib-2.1.0-cp310-cp310-macosx_10_9_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.9+ x86-64 Details
spglib-2.1.0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
spglib-2.1.0-cp39-cp39-manylinux_2_17_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details
spglib-2.1.0-cp39-cp39-manylinux_2_17_aarch64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ ARM64 Details
spglib-2.1.0-cp39-cp39-macosx_10_9_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.9+ x86-64 Details
spglib-2.1.0-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details
spglib-2.1.0-cp38-cp38-manylinux_2_17_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details
spglib-2.1.0-cp38-cp38-manylinux_2_17_aarch64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ ARM64 Details
spglib-2.1.0-cp38-cp38-macosx_10_9_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.9+ x86-64 Details
spglib-2.1.0-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details
spglib-2.1.0-cp37-cp37m-manylinux_2_17_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 Details
spglib-2.1.0-cp37-cp37m-manylinux_2_17_aarch64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ ARM64 Details
spglib-2.1.0-cp37-cp37m-macosx_10_9_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ x86-64 Details

Total release size: 16.2 MB

Release files / spglib-2.1.0.tar.gz

Download URL spglib-2.1.0.tar.gz
Size 2.8 MB
Tags Source
SHA-256 checksum
How to use checksums
8143545fdffc11fbcda4d705a6b6bcd4889de9bc3524b78df866a36dd0de0a4b
BLAKE2b-256 checksum
How to use checksums
5c1bd4d002ccc4c3d3c669a1c64d3cb865b81f95bc4e58e691ab37650d57f6e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / spglib-2.1.0-cp311-cp311-win_amd64.whl

Download URL spglib-2.1.0-cp311-cp311-win_amd64.whl
Size 291.0 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
b944db20f3905a4e0e447d915db9339f83124541261f975707ec9548f2ef7955
BLAKE2b-256 checksum
How to use checksums
6ac25759f6a1697aff12a06fc1911dc938e09ff876c145770861b16985b2e754
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / spglib-2.1.0-cp311-cp311-manylinux_2_17_x86_64.whl

Download URL spglib-2.1.0-cp311-cp311-manylinux_2_17_x86_64.whl
Size 802.1 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
40289f0b85383c6ca10349fee38e8a21b0cd1402a991c79447ecb529e24ac684
BLAKE2b-256 checksum
How to use checksums
739495eb8a79baad4f4807452e7869999df3bf55d9040e79a720db6ac54386f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / spglib-2.1.0-cp311-cp311-manylinux_2_17_aarch64.whl

Download URL spglib-2.1.0-cp311-cp311-manylinux_2_17_aarch64.whl
Size 793.4 kB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
96aa75feccc6b28f5687ce91b48bdd4d63264368383ca30faaac44230621fb70
BLAKE2b-256 checksum
How to use checksums
04042fd20946612e1b02e4018fb793a318c6ef08dfbae5565106fc608fa7eb35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / spglib-2.1.0-cp311-cp311-macosx_10_9_x86_64.whl

Download URL spglib-2.1.0-cp311-cp311-macosx_10_9_x86_64.whl
Size 789.7 kB
Tags CPython 3.11 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
b9148692ae8a21762846907a0ab51df7f9999fb01566f0c5d29f220e63a50f4f
BLAKE2b-256 checksum
How to use checksums
72223209ca88fe649477bc7a6f9c22a41fdd9aeaf87b4b1a3af0c9b07695a1ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / spglib-2.1.0-cp310-cp310-win_amd64.whl

Download URL spglib-2.1.0-cp310-cp310-win_amd64.whl
Size 291.0 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
9f63863f2f39b4cd7c71be9f0d3e4a29fef88fc3c1395964dbd4aa460fb6def7
BLAKE2b-256 checksum
How to use checksums
6a9eaa05cd9d23222c6343d00b17e700b56da5c3e3d6a6a74fb3125473174067
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / spglib-2.1.0-cp310-cp310-manylinux_2_17_x86_64.whl

Download URL spglib-2.1.0-cp310-cp310-manylinux_2_17_x86_64.whl
Size 802.1 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
cbd14a613dae796a4c1fd156df797fa003a5233cd766718193f5b3b215eb2122
BLAKE2b-256 checksum
How to use checksums
193581dc7073c6643b71494f8ccce431a35c63348ed6391be20b38533c4e3b9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / spglib-2.1.0-cp310-cp310-manylinux_2_17_aarch64.whl

Download URL spglib-2.1.0-cp310-cp310-manylinux_2_17_aarch64.whl
Size 793.4 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
2fedf8dd700e8dddb4a6ec4314762796a11efef39ead4d29e80006c673d5b3b1
BLAKE2b-256 checksum
How to use checksums
d78555eaff9d76d79c1cd4ec02dea406324cfafe9ab23c4fce95238d9f852ebf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / spglib-2.1.0-cp310-cp310-macosx_10_9_x86_64.whl

Download URL spglib-2.1.0-cp310-cp310-macosx_10_9_x86_64.whl
Size 789.7 kB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
4c5974520df57271e4d60934e1a2f81c56d8570f0df49989229657ff1e8d1e31
BLAKE2b-256 checksum
How to use checksums
29fcd28d6dae2d178e68ea59007a2a877c87320ba170bde6abbec4e0922700c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / spglib-2.1.0-cp39-cp39-win_amd64.whl

Download URL spglib-2.1.0-cp39-cp39-win_amd64.whl
Size 291.1 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
bb9f18f0447b7d44645d9f4b2db68297d58ab4e3a66d61bafeb7d3a607c7cb40
BLAKE2b-256 checksum
How to use checksums
c33ca41a673939c3318f4c1fd7fc5e65cd89393805fb92156d5b51d1195a495c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / spglib-2.1.0-cp39-cp39-manylinux_2_17_x86_64.whl

Download URL spglib-2.1.0-cp39-cp39-manylinux_2_17_x86_64.whl
Size 802.1 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
a37a5a5ef94dc5ce625f30c0142d8b16438f661d7877770116b56163acbcd258
BLAKE2b-256 checksum
How to use checksums
86a9a35a6c9355d819a7c419a6ac13cd108130af2748efc7f7d94c38161aa3d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / spglib-2.1.0-cp39-cp39-manylinux_2_17_aarch64.whl

Download URL spglib-2.1.0-cp39-cp39-manylinux_2_17_aarch64.whl
Size 793.4 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
8b98f9a13efd681fddf54ba1386ed214d54d4c73b70f3768d2d461531762c7c4
BLAKE2b-256 checksum
How to use checksums
bab43e94aa0afb8b73cbf0aa73b5f1558fb872d14dbdda625db44452153c7f19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / spglib-2.1.0-cp39-cp39-macosx_10_9_x86_64.whl

Download URL spglib-2.1.0-cp39-cp39-macosx_10_9_x86_64.whl
Size 789.7 kB
Tags CPython 3.9 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
82a567bfd9296ffa09b6993ca4b8bdf031e89f70220e34284d350d73f7bd3a31
BLAKE2b-256 checksum
How to use checksums
37d6cae15393539e109e5876e95ade35126567289052a818bade3aae7559d22f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / spglib-2.1.0-cp38-cp38-win_amd64.whl

Download URL spglib-2.1.0-cp38-cp38-win_amd64.whl
Size 291.1 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
748358cf7c319e2c2fdbd49349b1347a1850e713456270e2fa6e62020d0871ed
BLAKE2b-256 checksum
How to use checksums
510f2a2385c60fae1ed9bc74cbf99688dcdce557c90f6d10dc60ea61aae8bba6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / spglib-2.1.0-cp38-cp38-manylinux_2_17_x86_64.whl

Download URL spglib-2.1.0-cp38-cp38-manylinux_2_17_x86_64.whl
Size 802.1 kB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
1e3ac7657dd0355712f70848b0929cd90622d9f1ee81479f1cc36b52ca5ee85a
BLAKE2b-256 checksum
How to use checksums
6f3bbaa11e20e1e766eba538e84d743e96d39696b87ff477c9ca54c09378837f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / spglib-2.1.0-cp38-cp38-manylinux_2_17_aarch64.whl

Download URL spglib-2.1.0-cp38-cp38-manylinux_2_17_aarch64.whl
Size 793.4 kB
Tags CPython 3.8 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
4efb91d600b494f67dd424e300d1d64e5033c1e220af5d737a1de1b6e914c51b
BLAKE2b-256 checksum
How to use checksums
c660c1ed2b4cd21780d724f9ec83c11e18a2faa39b74e9586aaeeffc9498809d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / spglib-2.1.0-cp38-cp38-macosx_10_9_x86_64.whl

Download URL spglib-2.1.0-cp38-cp38-macosx_10_9_x86_64.whl
Size 789.7 kB
Tags CPython 3.8 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
e5f5a66b51946e5a5f32d8ffefeac5976651a6ee7e48c113593c7847d01e35d4
BLAKE2b-256 checksum
How to use checksums
f161c711f83ec5d96e1900d7b0c2f773e3b1a7efc4c8c76912954be5806add5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / spglib-2.1.0-cp37-cp37m-win_amd64.whl

Download URL spglib-2.1.0-cp37-cp37m-win_amd64.whl
Size 291.0 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
da36dd7cbca91d213f28cdbff2e3f894c4d8a89cfcc308a24deb4a1cbb4f00c5
BLAKE2b-256 checksum
How to use checksums
cfd6ab08b5d7da521cfb7849a9425276c2f935e42080c2cd3ce686a6ed5a5717
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / spglib-2.1.0-cp37-cp37m-manylinux_2_17_x86_64.whl

Download URL spglib-2.1.0-cp37-cp37m-manylinux_2_17_x86_64.whl
Size 802.1 kB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
a329994f26ec9a458ca2a4380c91d739bfbca1fe77acc2bc4a191d93c2ec6c4e
BLAKE2b-256 checksum
How to use checksums
b3a0574333515901b10b269a9f8240d5cb1aa45ebcc8f7f34acaf27f0794c1a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / spglib-2.1.0-cp37-cp37m-manylinux_2_17_aarch64.whl

Download URL spglib-2.1.0-cp37-cp37m-manylinux_2_17_aarch64.whl
Size 793.4 kB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
39ad7f9ef9d0596ac37cff7abec678c1783b83c8005522e93cfb9d19d9a4183f
BLAKE2b-256 checksum
How to use checksums
3c67c1088b1f7cd3f1d4a9ce2673c4f5de7f605ea2b4cf4cc948588adf6bbb9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / spglib-2.1.0-cp37-cp37m-macosx_10_9_x86_64.whl

Download URL spglib-2.1.0-cp37-cp37m-macosx_10_9_x86_64.whl
Size 789.6 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
1f3843e75e5bc00377fb725d517e3a84fb077a6f6dc3c9af5527df2cf4861334
BLAKE2b-256 checksum
How to use checksums
508c0e4ba1ae22ce016008956dc4caad253b903417af7fe07af2f837f8bc20e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

2.7.0

33 release files

2.6.0

26 release files

2.5.0

21 release files

2.4.0

27 release files

2.3.1

17 release files

2.3.0

17 release files

This release

2.1.0 This release

21 release files

2.0.1

32 release files

2.0.0

32 release files

1.9.9

3 release files

1.9.8

3 release files

1.9.7

3 release files

1.9.6

3 release files

1.9.5

3 release files

1.9.4.4

1 release file

1.9.4.3

1 release file

1.9.4.2

1 release file

1.9.3.4

1 release file

1.9.3.1

1 release file

1.9.3

1 release file

1.9.0.5

1 release file

1.8.3

1.6.0.3

1 release file

1.6.0.2

1 release file

1.6.0.1

1 release file

1.6.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page