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.3.1.tar.gz (2.8 MB view details)

Uploaded Source

Built Distributions

spglib-2.3.1-cp311-cp311-win_amd64.whl (304.0 kB view details)

Uploaded CPython 3.11 Windows x86-64

spglib-2.3.1-cp311-cp311-manylinux_2_17_x86_64.whl (807.7 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

spglib-2.3.1-cp311-cp311-manylinux_2_17_aarch64.whl (799.0 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

spglib-2.3.1-cp311-cp311-macosx_10_9_x86_64.whl (794.1 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

spglib-2.3.1-cp310-cp310-win_amd64.whl (304.0 kB view details)

Uploaded CPython 3.10 Windows x86-64

spglib-2.3.1-cp310-cp310-manylinux_2_17_x86_64.whl (807.7 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

spglib-2.3.1-cp310-cp310-manylinux_2_17_aarch64.whl (799.0 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

spglib-2.3.1-cp310-cp310-macosx_10_9_x86_64.whl (794.1 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

spglib-2.3.1-cp39-cp39-win_amd64.whl (304.0 kB view details)

Uploaded CPython 3.9 Windows x86-64

spglib-2.3.1-cp39-cp39-manylinux_2_17_x86_64.whl (807.7 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

spglib-2.3.1-cp39-cp39-manylinux_2_17_aarch64.whl (799.0 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

spglib-2.3.1-cp39-cp39-macosx_10_9_x86_64.whl (794.0 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

spglib-2.3.1-cp38-cp38-win_amd64.whl (304.0 kB view details)

Uploaded CPython 3.8 Windows x86-64

spglib-2.3.1-cp38-cp38-manylinux_2_17_x86_64.whl (807.7 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

spglib-2.3.1-cp38-cp38-manylinux_2_17_aarch64.whl (799.0 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

spglib-2.3.1-cp38-cp38-macosx_10_9_x86_64.whl (794.1 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for spglib-2.3.1.tar.gz
Algorithm Hash digest
SHA256 736e25ec67c220cb20fab7017c4fe6382eedee223076d57f4047342b1bc68ce3
MD5 77896bf252ff06066fcb3abd50af401f
BLAKE2b-256 bf16642c725894cef0d599f86e989c877a8f0bcbce4607d494ab653b2cbf3b5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spglib-2.3.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 304.0 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for spglib-2.3.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d4f8b78c3e7d25529d953c6694d4e1eef9303e67544e128cf56d2cbf795c11c4
MD5 3931fd3e4303ec8ec73996a9215f235f
BLAKE2b-256 70d835319c863bb01226b355f7c3429850db4db4f1cd38a561db0fd44317c803

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.3.1-cp311-cp311-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 1c428bd824a61920b9eb7b238e0f569ef7689a6831819f7fe07bbe54da80d98b
MD5 65977d7382f67d254f3cdc3955348edd
BLAKE2b-256 f37f0f9274b76133f344740994a227950e5e17738fa288096f8cbd2d6e9fac99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.3.1-cp311-cp311-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 101156a7a329c2e9b8683fbd41fb234d3f28fb8aef84d8f2a8c84bd9c24d7949
MD5 70e38e211b3225bf519bfad300b199f2
BLAKE2b-256 87e01d197466fa926bc0713c9a964decc1ae124d5eadc32b85889ab909cbe4d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.3.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8951a1c460d345e8275efc288734b73c46ffeaabde768ea9eff72bba9d62b26d
MD5 10ac9a20cc330d3f0a18d18fb8c13048
BLAKE2b-256 412807d08932079b70b83a2f6c237e7d8685f091e942ed5389814b1070b54af1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spglib-2.3.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 304.0 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for spglib-2.3.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0d35e58d041c33c519ecd7cf3a9ce93d176afb695645144f10bbfb7fe31bd417
MD5 f0174fae40775fd08829b55bb2f67642
BLAKE2b-256 f382daac99290f570f55e66dc3e1e749da1eee6e145d06c74367696920fc1e35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.3.1-cp310-cp310-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 b830278b50e5143698ce6d8f7af24b28ba36c95dc729d75488f6c94cfa20556a
MD5 b542029506f92d68510d0d330e89d6d6
BLAKE2b-256 0525671d10abf48a0ac3d36c356cbb03e8f0be0896ef06c3e4ef1ce9042100b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.3.1-cp310-cp310-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 e1c4d1e2ac390180249d0eb006be527eca2dd5a7d17663f8a5de5e410ad9e902
MD5 6dcb857b68dd9ac8db97e77891a16144
BLAKE2b-256 7d488ca9ed5d3187e55d08190948bf59ed8d12299e4286741b2275ab318bc087

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.3.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 41a3dddd4fec46a5814418be36a3fb85fa21d5364ce84eb269c0a36d5af9b286
MD5 d47235723a66e9090c761a279b357bc0
BLAKE2b-256 9f7dab3eec64687e1f06b0fb299bbd72fc40a2920e231712ae02f9bcc6f62fdb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spglib-2.3.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 304.0 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for spglib-2.3.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c2b0c3e772934a9777949597dce374aff0f9fbad7c43c190fba251d681655f3e
MD5 4831f8d6f2506cf9ee1004e17fc58c5a
BLAKE2b-256 ccab89426c3fbfab8eeebeb3ee03a2e84b81ed957628f935c24760afe7909040

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.3.1-cp39-cp39-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 1de85167feb0e353c49251acf073c47155b6c731bb766054059f6c5210858255
MD5 370c928758c962a1203cfdeba2cefd27
BLAKE2b-256 d4b1617784e973a41f6cf1ef319e6a09162a624000be58b0b8fa59dd4eb4b4a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.3.1-cp39-cp39-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 63900877ddc9763a57aa4c75ad737df50fffd9541e5a32460d3175823b905af0
MD5 28861f33bcd3c8346f3490fb9dad6cd3
BLAKE2b-256 029af4bcc7f9ad0a678064939491d5b7f62aecd49ae322facfcba90c6072b948

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.3.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7bd3ee410c32ec4f240a02b9c2f7d617cd66a7d049e6572f033c5836325ddd79
MD5 ba60e3d57c0fba34d938ffbace5af5f4
BLAKE2b-256 09f728f5a3e646f72800f78f33950b9f0c8b2ad7588b1eeec7c213fb86ff9666

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spglib-2.3.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 304.0 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for spglib-2.3.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2953a4bdc55fe00cd8e8bee0313a8d7071320f8819f2faa521afa58cfecce461
MD5 50f30d96450148dff77145145b1c83c4
BLAKE2b-256 ac9779f8ddbe99b5483cd12c045baeb9338edef8b007e45a234f8b2f41b0aa1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.3.1-cp38-cp38-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 25532282455f45403244102e7d252c74b647336dfd54a38802ecf749375e48b1
MD5 066a028302eb83c1c077a63286950b74
BLAKE2b-256 253da32124c7ac035eac7674fcfaa215cf3e455f56a213500e5a56b7866c256c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.3.1-cp38-cp38-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 24c645c71a8f13e0de92d17b26d913b46bc4623dea2a7bc00940f092073425d5
MD5 a895f1cb7f04f387b42d086b915d27b1
BLAKE2b-256 7aaadad346d76fac167c916ab985f4df1af5dad98c02ff2254cb8eebbbf09e2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.3.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0405b67680245e7d3abd80ac0eec31ebe21a3be51fa2243101adc9f0d1c85302
MD5 bc7458b9a576734e414c076165e62f33
BLAKE2b-256 fb8ba2f4babcf096a59dbe606868f5b79e107033b564fb8a75d86d57cc9a6ded

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