spglib 2.6.0


pip install spglib

  Latest version

Released: Mar 10, 2025


Meta
Author: Atsushi Togo
Maintainer: Atsushi Togo, Cristian Le, Kohei Shinohara
Requires Python: >=3.9

Classifiers

Topic
  • Scientific/Engineering :: Physics

Intended Audience
  • Science/Research

Programming Language
  • C
  • Python :: 3
  • Python :: 3 :: Only
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13

Operating System
  • Unix
  • MacOS
  • Microsoft :: Windows

Development Status
  • 5 - Production/Stable

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
2.6.0 Mar 10, 2025
2.5.0 Jul 11, 2024
2.4.0 Apr 11, 2024
2.3.1 Feb 11, 2024
2.3.0 Jan 27, 2024
2.2.0 Dec 08, 2023
2.1.0 Sep 10, 2023
2.0.2 Nov 06, 2022
2.0.1 Aug 31, 2022
2.0.0 Aug 17, 2022
1.16.5 May 06, 2022
1.16.4 May 05, 2022
1.16.3 Dec 08, 2021
1.16.2 Aug 10, 2021
1.16.1 Jan 29, 2021
1.16.0 Jul 30, 2020
1.15.1 Apr 28, 2020
1.15.0 Apr 18, 2020
1.14.1.post0 Jul 30, 2019
1.14.0.post23 Jul 30, 2019
1.14.0.post0 Jul 30, 2019
1.13.0.post6 Jul 02, 2019
1.13.0.post5 Jul 02, 2019
1.13.0.post4 Jul 02, 2019
1.13.0.post3 Jul 02, 2019
1.13.0.post2 Jul 02, 2019
1.13.0.post1 Jul 02, 2019
1.13.0.post0 Jul 02, 2019
1.12.2.post0 Feb 06, 2019
1.12.1.post7 Feb 01, 2019
1.12.1.post0 Jan 30, 2019
1.12.0.post5 Jan 29, 2019
1.12.0.post3 Jan 29, 2019
1.11.2.post1 Dec 07, 2018
1.11.2.post0 Dec 07, 2018
1.11.1.post3 Nov 12, 2018
1.11.0.post19 Nov 08, 2018
1.11.0.post18 Nov 08, 2018
1.10.4.11 Aug 10, 2018
1.10.4.7 Aug 07, 2018
1.10.4.1 Aug 01, 2018
1.10.4 Aug 01, 2018
1.10.3.75 Jul 14, 2018
1.10.3.65 Apr 20, 2018
1.10.3.62 Apr 19, 2018
1.10.3.56 Apr 18, 2018
1.10.3.54 Apr 16, 2018
1.10.3.52 Apr 16, 2018
1.10.3.50 Mar 29, 2018
1.10.3.43 Mar 21, 2018
1.10.3.41 Mar 21, 2018
1.10.3.39 Feb 23, 2018
1.10.3.33 Feb 23, 2018
1.10.3.23 Feb 22, 2018
1.10.3.20 Feb 22, 2018
1.10.3.14 Jan 29, 2018
1.10.3.12 Jan 29, 2018
1.10.3.5 Jan 18, 2018
1.10.3 Jan 13, 2018
1.10.2.4 Dec 13, 2017
1.10.2 Dec 13, 2017
1.10.1.4 Nov 07, 2017
1.10.1 Oct 27, 2017
1.10.0.2 Oct 22, 2017
1.10.0.1 Oct 22, 2017
1.10.0 Oct 22, 2017
1.9.10.1 Oct 02, 2017
1.9.10 Oct 02, 2017
1.9.9.121 Sep 28, 2017
1.9.9.116 Sep 22, 2017
1.9.9.44 May 15, 2017
1.9.9.38 Mar 25, 2017
1.9.9.29 Mar 19, 2017
1.9.9.25 Mar 16, 2017
1.9.9.18 Dec 20, 2016
1.9.9.15 Dec 19, 2016
1.9.9.11 Dec 15, 2016
1.9.9.5 Dec 15, 2016
1.9.9 Dec 14, 2016
1.9.8.20 Nov 25, 2016
1.9.8.15 Nov 07, 2016
1.9.8.11 Nov 03, 2016
1.9.8.9 Nov 03, 2016
1.9.8.7 Nov 02, 2016
1.9.8 Nov 01, 2016
1.9.7.17 Oct 29, 2016
1.9.7.9 Oct 24, 2016
1.9.7.1 Oct 19, 2016
1.9.7 Oct 19, 2016
1.9.6 Oct 17, 2016
1.9.5 Sep 15, 2016
1.9.4.4 Jul 28, 2016
1.9.4.3 Jul 28, 2016
1.9.4.2 May 13, 2016
1.9.3.4 May 12, 2016
1.9.3.1 May 11, 2016
1.9.3 May 11, 2016
1.9.2.13 May 11, 2016
1.9.0.54 Mar 07, 2016
1.9.0.53 Mar 07, 2016
1.9.0.52 Mar 06, 2016
1.9.0.5 Dec 22, 2015
1.6.0.3 May 20, 2014
1.6.0.2 May 20, 2014
1.6.0.1 May 20, 2014
1.6.0 May 20, 2014

Wheel compatibility matrix

Platform CPython 3.9 CPython 3.10 CPython 3.11 CPython 3.12 CPython 3.13
macosx_10_13_x86_64
macosx_10_9_x86_64
macosx_11_0_arm64
manylinux2014_aarch64
manylinux2014_x86_64
manylinux_2_17_aarch64
manylinux_2_17_x86_64
win_amd64

Files in release

spglib-2.6.0-cp310-cp310-macosx_10_9_x86_64.whl (777.6KiB)
spglib-2.6.0-cp310-cp310-macosx_11_0_arm64.whl (780.0KiB)
spglib-2.6.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (786.2KiB)
spglib-2.6.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (790.1KiB)
spglib-2.6.0-cp310-cp310-win_amd64.whl (548.0KiB)
spglib-2.6.0-cp311-cp311-macosx_10_9_x86_64.whl (777.6KiB)
spglib-2.6.0-cp311-cp311-macosx_11_0_arm64.whl (780.0KiB)
spglib-2.6.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (786.2KiB)
spglib-2.6.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (790.1KiB)
spglib-2.6.0-cp311-cp311-win_amd64.whl (548.0KiB)
spglib-2.6.0-cp312-cp312-macosx_10_13_x86_64.whl (777.0KiB)
spglib-2.6.0-cp312-cp312-macosx_11_0_arm64.whl (780.0KiB)
spglib-2.6.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (786.1KiB)
spglib-2.6.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (790.1KiB)
spglib-2.6.0-cp312-cp312-win_amd64.whl (547.9KiB)
spglib-2.6.0-cp313-cp313-macosx_10_13_x86_64.whl (777.0KiB)
spglib-2.6.0-cp313-cp313-macosx_11_0_arm64.whl (780.0KiB)
spglib-2.6.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (786.2KiB)
spglib-2.6.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (790.1KiB)
spglib-2.6.0-cp313-cp313-win_amd64.whl (547.9KiB)
spglib-2.6.0-cp39-cp39-macosx_10_9_x86_64.whl (777.6KiB)
spglib-2.6.0-cp39-cp39-macosx_11_0_arm64.whl (780.0KiB)
spglib-2.6.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (786.2KiB)
spglib-2.6.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (790.1KiB)
spglib-2.6.0-cp39-cp39-win_amd64.whl (548.0KiB)
spglib-2.6.0.tar.gz (2.3MiB)
Extras:
Dependencies:
numpy (<3,>=1.20)
importlib-resources
typing-extensions (>=4.9.0)