Skip to main content

Crystallographic space group library in Python

Project description

Xcore is a crystallographic space group library written in Python.


>>> from xcore import UnitCell, SpaceGroup

>>> spgr = SpaceGroup("Pnma")
Space group Pnma

    Number       62
    Schoenflies  D2h^16
    Hall         -P 2ac 2n
    H-M symbol   Pnma

Laue  group  mmm
Point group  mmm

Order     8
Order P   8

# +(0.0 0.0 0.0), Inversion Flag = 0
# +(0.0 0.0 0.0), Inversion Flag = 1


>>> cell = UnitCell((19.9020, 10.1561, 24.6892, 105.88), "P21/c", name="SSO", composition="Si80 O163")
Cell SSO (Si80 O163)
   a      19.9020       al        90.00
   b      10.1561       be       105.88
   c      24.6892       ga        90.00
Vol.    4799.90
Spgr P121/c1


pip install xcore


  • Python2.7
  • Numpy
  • Pandas

Inspired by (and built on) sginfo.

Project details

Download files

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

Files for xcore, version 0.7.2
Filename, size File type Python version Upload date Hashes
Filename, size xcore-0.7.2-cp27-cp27m-win_amd64.whl (216.2 kB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size xcore-0.7.2.tar.gz (135.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page