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

Uploaded Source

Built Distributions

spglib-2.3.0-cp311-cp311-win_amd64.whl (295.8 kB view details)

Uploaded CPython 3.11 Windows x86-64

spglib-2.3.0-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.0-cp311-cp311-manylinux_2_17_aarch64.whl (799.0 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

spglib-2.3.0-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.0-cp310-cp310-win_amd64.whl (295.8 kB view details)

Uploaded CPython 3.10 Windows x86-64

spglib-2.3.0-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.0-cp310-cp310-manylinux_2_17_aarch64.whl (799.0 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

spglib-2.3.0-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.0-cp39-cp39-win_amd64.whl (295.9 kB view details)

Uploaded CPython 3.9 Windows x86-64

spglib-2.3.0-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.0-cp39-cp39-manylinux_2_17_aarch64.whl (799.0 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

spglib-2.3.0-cp39-cp39-macosx_10_9_x86_64.whl (794.1 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

spglib-2.3.0-cp38-cp38-win_amd64.whl (295.9 kB view details)

Uploaded CPython 3.8 Windows x86-64

spglib-2.3.0-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.0-cp38-cp38-manylinux_2_17_aarch64.whl (799.0 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

spglib-2.3.0-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.0.tar.gz.

File metadata

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

File hashes

Hashes for spglib-2.3.0.tar.gz
Algorithm Hash digest
SHA256 3dc375ed49107a2c22a91e47faa43a3a26b71debb42d7b3931def05418544e02
MD5 30844e7470d659b566fb0a04cad4c4e0
BLAKE2b-256 23c7a333f2dbb9141a73c6a91065fdce163fbbd041f82314cd3476f9964be805

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for spglib-2.3.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 555b64fe4efa0e5eea222bff822cf5be5d5322db5b1b7e011095d9c6b6ccacd3
MD5 e19205b803af6f1621a268464cc06844
BLAKE2b-256 061e96db03bdbabc6167f09c25fb56c4699788618926f326abbdde8ccfd67a7c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.3.0-cp311-cp311-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 034eb4a4e325e1233e4733fde3f8a49000f25cb79c31fc2d762d3f0a646f33c2
MD5 a053b53dcc54eacb5a0d7ca4d86260bb
BLAKE2b-256 b942a7e513a947d1addbc2504e45933aadda7d0ea3703cf572a0b320a3ba356f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.3.0-cp311-cp311-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 2cdca54b1d9223e182240b1b575155ac3e002380442127bc34be74ff0fdcf9ff
MD5 b9ac719180c4caf1ff41c38d5e9430bb
BLAKE2b-256 130be3512c6bc1b5c960436d0101f107e70f11d7abe5888ac1a42fc2a3d92446

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.3.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 bfbe57116288b5723b49ccde89b9a08aa404aa868a09f5024572c77df9eb7eb8
MD5 c0fa1c3942f638ce16b3702123af7faa
BLAKE2b-256 5ff8a56c98c0d123874c070935494fad62e9237b64a78e7b805ae55bf952d17f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for spglib-2.3.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7ed435b487a37a8e33897330a183e51d601dad82ef79354a1eb2377d55385bad
MD5 c9a1dc1543d910be0ddf3930fd2a082a
BLAKE2b-256 473f126818303ea59acbae2d3e0a1564be3f11b6c6eb4b1094a51b268dfd547d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.3.0-cp310-cp310-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 515b0ffcdc3254a8fd69495492615cc7b4c82e953a6872921268c4814806f19d
MD5 c4be4db2418953dd35b71aaf1f374166
BLAKE2b-256 80d08238ab059530cb6e6c4892c4abc8dbf2866a71ad7a5c3bb2c76e7ebcf20f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.3.0-cp310-cp310-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 7bb37b8ae1657679fb0348bf0678c08a49af0b86bffb41ecd1f7937c72da0c1d
MD5 0142ae2bc747406658717bdf9f131f14
BLAKE2b-256 c62358c95106d499596be7d97dc165556bcfa76ae87b24b119437d5dad3c39b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.3.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b343d91354a4193dd729f8a532c8f9c300a205cbec43a9d40d2a89d8163513ad
MD5 54b8ce7141e0dd1f7c24f016974ea84e
BLAKE2b-256 a4dd074096ef8432bbf41c4b7c9563ccbaba8fbf80444bb127acef9283fc04f9

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for spglib-2.3.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0ee595554520d59a387fd15074e53cae23180105ac394069ebe894af5132df28
MD5 8df9be0f146f067c4052b86ca51802f8
BLAKE2b-256 1e6965dd7b34f696908c1aba528b95c6e6e5813abab1e16ce655f74714d15a7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.3.0-cp39-cp39-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 230c01064f820a1318925cadcba3f299df55860848dc8c2f2694780363b4624a
MD5 485e58b509d879f139d853f025adad4c
BLAKE2b-256 72a8fdcceb6c0025a330c2d284460375f1db619a215709214637fc1bbbb1ff3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.3.0-cp39-cp39-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 a8fb3b3ab3030cc63420d38b5bd0744dbca4fd96a331c126980e9d2e9cafb18e
MD5 5db31b0661e883b56209497e4a24dbb6
BLAKE2b-256 80a966f100a39fe8e276885c22b54d406359e617bc05ac17ef54be1a0e914ed3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.3.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 76e1cf6e4191bd557cf4000543e5e3b8b6754cb8e305a1a8519369478f93b7c6
MD5 fccc8471de158aaf033824299c2f6e08
BLAKE2b-256 9051ac9c136145eec26c4b2f96517f7c86fd5f47a6b0e6eaed6581dec0cc625c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for spglib-2.3.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ec7d4252f5f2ae5266a71ff837066d9dee132dcc06280648bffbdac976beefeb
MD5 121a1bd4ba16fd186f3a4f943c10dd0d
BLAKE2b-256 105187ce052785023877aff91cf52dbbfd24c947f7535d2cdedfff5742456de9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.3.0-cp38-cp38-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 a5a196dd4661fe3cd5c535df37807b11c5a650e7e8a15c75fecd3bfe96fed510
MD5 f81d48acb2d1c4e74171128c0380ef92
BLAKE2b-256 42ce8ce7f4d747af65d4688f61dbb62d1118c34aac6365a36e8d2488979c15db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.3.0-cp38-cp38-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 228c0652b0dc6b8699fda70f43375454ef3c7d6d1d41cdf4e2b2f0027d0ac210
MD5 296848496b30557e8ac53dc1fef072da
BLAKE2b-256 57df4c4c452dd8050e8ae616633e74cac53a705df3c9b038c38b0bf69064ac18

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spglib-2.3.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 db8b0eb52e1247728e77fb43107fa1049e4db2c28aeb425229e28f8645b841c5
MD5 a0675afcafcb5d812ce04109394b21d7
BLAKE2b-256 9cb43fea5b7c74775b0d61bbea3277d38255ca6c87037a9a67d8518ed87e5651

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