Skip to main content

This is the spglib module.

Project description

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 root 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

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spglib-2.4.0.tar.gz (2.8 MB view details)

Uploaded Source

Built Distributions

spglib-2.4.0-cp312-cp312-win_amd64.whl (299.2 kB view details)

Uploaded CPython 3.12 Windows x86-64

spglib-2.4.0-cp312-cp312-manylinux_2_35_x86_64.whl (819.7 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.35+ x86-64

spglib-2.4.0-cp312-cp312-manylinux_2_17_x86_64.whl (809.3 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

spglib-2.4.0-cp312-cp312-manylinux_2_17_aarch64.whl (803.7 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

spglib-2.4.0-cp312-cp312-macosx_11_0_arm64.whl (793.7 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

spglib-2.4.0-cp312-cp312-macosx_10_9_x86_64.whl (788.6 kB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

spglib-2.4.0-cp311-cp311-win_amd64.whl (299.3 kB view details)

Uploaded CPython 3.11 Windows x86-64

spglib-2.4.0-cp311-cp311-manylinux_2_17_x86_64.whl (809.2 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

spglib-2.4.0-cp311-cp311-manylinux_2_17_aarch64.whl (803.7 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

spglib-2.4.0-cp311-cp311-macosx_11_0_arm64.whl (793.7 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

spglib-2.4.0-cp311-cp311-macosx_10_9_x86_64.whl (788.6 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

spglib-2.4.0-cp310-cp310-win_amd64.whl (299.3 kB view details)

Uploaded CPython 3.10 Windows x86-64

spglib-2.4.0-cp310-cp310-manylinux_2_17_x86_64.whl (809.2 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

spglib-2.4.0-cp310-cp310-manylinux_2_17_aarch64.whl (803.8 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

spglib-2.4.0-cp310-cp310-macosx_11_0_arm64.whl (793.7 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

spglib-2.4.0-cp310-cp310-macosx_10_9_x86_64.whl (788.6 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

spglib-2.4.0-cp39-cp39-win_amd64.whl (299.3 kB view details)

Uploaded CPython 3.9 Windows x86-64

spglib-2.4.0-cp39-cp39-manylinux_2_17_x86_64.whl (809.2 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

spglib-2.4.0-cp39-cp39-manylinux_2_17_aarch64.whl (803.7 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

spglib-2.4.0-cp39-cp39-macosx_11_0_arm64.whl (793.7 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

spglib-2.4.0-cp39-cp39-macosx_10_9_x86_64.whl (788.6 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

spglib-2.4.0-cp38-cp38-win_amd64.whl (299.3 kB view details)

Uploaded CPython 3.8 Windows x86-64

spglib-2.4.0-cp38-cp38-manylinux_2_17_x86_64.whl (809.2 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

spglib-2.4.0-cp38-cp38-manylinux_2_17_aarch64.whl (803.7 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

spglib-2.4.0-cp38-cp38-macosx_11_0_arm64.whl (793.7 kB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

spglib-2.4.0-cp38-cp38-macosx_10_9_x86_64.whl (788.6 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

Details for the file spglib-2.4.0.tar.gz.

File metadata

  • Download URL: spglib-2.4.0.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for spglib-2.4.0.tar.gz
Algorithm Hash digest
SHA256 6e63f9ee61b70f153a22d3b550b183da531f890475917fce203bad4597aac243
MD5 fe6425d081ff64a036edb5c53581fe27
BLAKE2b-256 d77116f4f4dc21fd1b33a8b282ddc1decd806aa41afeee37c256871176ba9092

See more details on using hashes here.

File details

Details for the file spglib-2.4.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: spglib-2.4.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 299.2 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for spglib-2.4.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 763d7e316215976737a12319e18f830b0a1428b79c1f61a41846fe2b4d041e4f
MD5 3c4de5559be68e5eeb383048ebef3fa1
BLAKE2b-256 0baed26fc17de8f17b1f6ac2c2b15c5313135c13b190c9025a92119883eabae9

See more details on using hashes here.

File details

Details for the file spglib-2.4.0-cp312-cp312-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for spglib-2.4.0-cp312-cp312-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 463947c1d1426414d4c5bdb6e6dba6b520ef8db55534dab3959648d65f68915f
MD5 2c787b5a0ddc1a00e5205c4837f155e4
BLAKE2b-256 d9299bd61aea1b3bfc294b51c2dbc2160d99b643799c1409f4301fcd1745ed0d

See more details on using hashes here.

File details

Details for the file spglib-2.4.0-cp312-cp312-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for spglib-2.4.0-cp312-cp312-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 da4a6160bdad3cd5c8dff40d8062e041703d097545caa06d23f116bc5819be27
MD5 d14e773ff34c05cc2ab587ae0660bd23
BLAKE2b-256 0a46ee770cdf7dbd8aeb902cdd3affc65f08565415938323e4d7388d2c586d83

See more details on using hashes here.

File details

Details for the file spglib-2.4.0-cp312-cp312-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for spglib-2.4.0-cp312-cp312-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 3144974186697e547e407512abffea09c628195509981ce5da3d10dcfbc55988
MD5 63f01b9af05bdb0967034fa28fe0fd42
BLAKE2b-256 ab39b9305bf67492944da862686bfdd0b0bc2ba5a012163faa8bf8fb9cc59691

See more details on using hashes here.

File details

Details for the file spglib-2.4.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spglib-2.4.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5fe22552895f5cb065f5cdef1a3f49c3e975528eb2169e17b0b46e5158870db9
MD5 1761aff81dfea9609a13c3618df0832b
BLAKE2b-256 9a448c103d3a8f2a48a08333dcefd84662bd1e98c89f7ec2b91ca76b8bc67f47

See more details on using hashes here.

File details

Details for the file spglib-2.4.0-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for spglib-2.4.0-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 595c5d189b82dce2a529e6653536e817871000b42e837d492862708d3c0087ee
MD5 fdbc45093aff4f1696a9076f0b726996
BLAKE2b-256 d393405dfb93bc079377ec75c9c3169daab1375025a3cc28cf26f0e354b73348

See more details on using hashes here.

File details

Details for the file spglib-2.4.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: spglib-2.4.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 299.3 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for spglib-2.4.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f4548c3e34317ea81a94c235f07242964a36ace08e807a0a99c659b4c969e577
MD5 31f81e7b1ae208b2e305e3748345f28f
BLAKE2b-256 548072a9607d0b8c228aef3d64e364bd05940d873ab370d0d5bd0cb14e9de349

See more details on using hashes here.

File details

Details for the file spglib-2.4.0-cp311-cp311-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for spglib-2.4.0-cp311-cp311-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 70f341a14d3ca464a1bb1c3eb86ae5c8252ece186f7af039a01705ed4624d5c2
MD5 0a3f499ad744b6faf77442b5c5c5178a
BLAKE2b-256 0c37cec788dc12d1ff38eb000b6cfaf03a28fc25a9b05c3f2e8dd51a7f2cd2d6

See more details on using hashes here.

File details

Details for the file spglib-2.4.0-cp311-cp311-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for spglib-2.4.0-cp311-cp311-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 70ee7de6b769350f1e568324a5a6fdd34df89f95f8bfe0b21b6dc2fc56207169
MD5 24283f32cf54ab7010d9ddeb4b32d9ef
BLAKE2b-256 bfb5ae9c62c03e3688217a1399314c9856441a8e940a6d5e0ee7a7b00076fc00

See more details on using hashes here.

File details

Details for the file spglib-2.4.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spglib-2.4.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ce84df7a43889d13cacac8121632a4ad661b940755f50479a707d8f1f213efe8
MD5 0b76eff0058017288a007c1a9e4cb83a
BLAKE2b-256 dbf051fef3e38534c716b8ed2f53f6d7b1a22eefaeb433de71bfc7a0bca27a95

See more details on using hashes here.

File details

Details for the file spglib-2.4.0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for spglib-2.4.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ccba8367d8bd31ca344b989ea18f8ac0a1263f9d038012494c8eb736b8205044
MD5 e976952ca8206a32c994e7fe500557e5
BLAKE2b-256 2fd1811c8b9c4f1751784746e77981d3d8b786c74ddd5cf2a2cfe5b3cd7a21d9

See more details on using hashes here.

File details

Details for the file spglib-2.4.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: spglib-2.4.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 299.3 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for spglib-2.4.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0ba8b17cafffb3a3f475ebc45647ad1ec700cf7fae3abafd77d5c49d1c94c89b
MD5 f628829fe7acb4539f0f281ad5ade4d4
BLAKE2b-256 142899d5de2d2e335e651ae2a03a4201158adec86b2d1b761d9f616d47d6b394

See more details on using hashes here.

File details

Details for the file spglib-2.4.0-cp310-cp310-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for spglib-2.4.0-cp310-cp310-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 1b49cf92ba08a9c67161306cb05c612b9d87fd62f8ce719a8ea69079f43c0f4d
MD5 e54146aa11cf8508a0dcba1587ad8cb0
BLAKE2b-256 1a3ccf22a64790ea8ab3ed875ec7cd0c9ebc4b6cffa33d3ce39a9b37452d6df3

See more details on using hashes here.

File details

Details for the file spglib-2.4.0-cp310-cp310-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for spglib-2.4.0-cp310-cp310-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 43e6a51f4fee7ef38b8597396da28c8093a8d48a6fd54bae72ebc20caa3d7f43
MD5 edacf47a4a1f9a8ef737ea9d94d4d943
BLAKE2b-256 1ed411b7d38b76368b9dd5afafeeeaf50aa3127f7686914ee859591d4fb297fa

See more details on using hashes here.

File details

Details for the file spglib-2.4.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spglib-2.4.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7713f62595b3a9b0d1a189d1f076079384a6a96749ab90533ee250427ddc51cb
MD5 3aa55faf83cc5ddacee50223b63537fd
BLAKE2b-256 be3f1a871c40d92d23034fd98927d954c574000df52340b7027b23f56ef3f447

See more details on using hashes here.

File details

Details for the file spglib-2.4.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for spglib-2.4.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2112fa02d30bea4ba288ec1a1df544b309ee0f9b8f3462be364110cb56e2c3a1
MD5 b9a4fc878434ef952c32e955b852b86c
BLAKE2b-256 dbaa9f62cbe39f680a2f425d66b7203ea9117cbee87e06c1508d57d70ae23639

See more details on using hashes here.

File details

Details for the file spglib-2.4.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: spglib-2.4.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 299.3 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for spglib-2.4.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 50783e71dfde8a48ceec40164feeaad932df14759ab17a3a8a02b4847cd3ca9e
MD5 3e998a6eacd832a56be903ae1ca35960
BLAKE2b-256 318c92e8386de75ff1625a437ad646f0b633e9159141c1c194d08529d8ce6f97

See more details on using hashes here.

File details

Details for the file spglib-2.4.0-cp39-cp39-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for spglib-2.4.0-cp39-cp39-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 27648486e280ff3e69596725e4cbfe4920942c73eae193e1b9e6637661cbbada
MD5 911a4aa8767ecaaa60b9018906f167e4
BLAKE2b-256 57ef893ef0c8f730fc536467a57f428246d07268e89daec4bacb094cf9e08c4a

See more details on using hashes here.

File details

Details for the file spglib-2.4.0-cp39-cp39-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for spglib-2.4.0-cp39-cp39-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 8ef0e83e9a30a456939783a01e6fcee8c4465371551ee225613d42ec292652d2
MD5 f95cd4c4b18bcb730da3434eb2dab631
BLAKE2b-256 371d69f644b9dc264d5da40c8721e32c202faa63deee17d84115ea0807587df0

See more details on using hashes here.

File details

Details for the file spglib-2.4.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spglib-2.4.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5564ac416e21ad7ef9cd3326912e4d2b1a22438ed60efd08e83cdebbd876e55c
MD5 8306a2821c90a9b176958817d62651f4
BLAKE2b-256 7d0ce6f1dcc051700fc508b899fb8a35ff1ad65a62953799cd0cbc4c3daf1414

See more details on using hashes here.

File details

Details for the file spglib-2.4.0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for spglib-2.4.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 809c442db2ad9b23b3292c30bf3bea38e04dc7a179d399572d4b21ef3a8fec02
MD5 79bc5db212b928f65fa5b629d2babfaa
BLAKE2b-256 28d4dddb45341f7636f47c0d234ff8aeb3a7815c007af19ea76d02d049078149

See more details on using hashes here.

File details

Details for the file spglib-2.4.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: spglib-2.4.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 299.3 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for spglib-2.4.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 84bd727cb02f5873418b5ee3c08f9c6c52c8651b32b55cbadeba3d5bd01aa1dd
MD5 e46f444741c22ae1286508eae22aeba4
BLAKE2b-256 ede8262cc6f7255bf2dbc4a5824ee0a62201fbd92b25de375ca27d22f790a0db

See more details on using hashes here.

File details

Details for the file spglib-2.4.0-cp38-cp38-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for spglib-2.4.0-cp38-cp38-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 7bba198e8cf40f05b62cd1865a2553488f040429e4a1db940afda512731d4078
MD5 526f735cdc58a1beb766dd05fd4e9ccb
BLAKE2b-256 834a28991addc61cb8b00a6a20a4e30abf8767bf3e265a5fff39d22a15dbb91a

See more details on using hashes here.

File details

Details for the file spglib-2.4.0-cp38-cp38-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for spglib-2.4.0-cp38-cp38-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 fd49caf533a53f7e5857371302f486851607f2476168500d3ba76cb62488d3df
MD5 ec24f9f3e12e5dac251745842e92619c
BLAKE2b-256 08861dcaa47c4004562dc2c2ff81883362432c144a0994e5ba8028c15537f8a0

See more details on using hashes here.

File details

Details for the file spglib-2.4.0-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for spglib-2.4.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0e8ca3f31dc6b9cfc5bfa3dc95a35fe9abfd5fb9b7e9fd568fac2b914307fbc5
MD5 5ee5d5fd59aff4b411d352546aaf7f29
BLAKE2b-256 840aab259f619d1d75b7947ce23d34bb5ad02f0f94eba54cab2536c988187f96

See more details on using hashes here.

File details

Details for the file spglib-2.4.0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for spglib-2.4.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 224d5f3db6e9624d39d2ef201aeb2f0958611fcd042a7ab4f8a88cd7ac18deca
MD5 8a5491cee09a44cb955f321b9ecaffad
BLAKE2b-256 7fbdac99cd7215443e8efb84501b0ea362eecad5d22f29bc01b182ba80a68328

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page