libmsym python binding
Project description
pymsym
libmsym is a C library dealing with point group symmetry in molecules. pymsym is its python interface.
about
this library was originally developed by Marcus Johansson. the original library can be found here and seems unmaintained - after reaching out to the initial authors, i've decided to fork this so i can maintain it.
api
there are two high-level functions, pymsym.get_point_group()
and pymsym.get_symmetry_number()
.
here's a simple introduction:
import pymsym
# water
atomic_numbers = [8, 1, 1]
positions = [
[0.007544053252786398, 0.39774343371391296, 0.0],
[-0.7671031355857849, -0.18439316749572754, 0.0],
[0.7595590949058533, -0.21335026621818542, 0.0]
]
pymsym.get_point_group(atomic_numbers, positions) # returns C2v
print(pymsym.get_symmetry_number(atomic_numbers, positions) # returns 2
the original lower-level classes from libmsym can also be accessed (pymsym.Element
, etc).
point groups
here's all the point groups that pymsym can handle. some of these haven't been tested very well, please let me know if there are issues.
point_groups = [
"C1", "Cs", "Ci", "C2", "C3", "C4", "C5", "C6", "C7", "C8",
"D2", "D3", "D4", "D5", "D6", "D7", "D8", "C2v", "C3v", "C4v",
"C5v", "C6v", "C7v", "C8v", "C2h", "C3h", "C4h", "C5h", "C6h",
"C7h", "C8h", "D2h", "D3h", "D4h", "D5h", "D6h", "D7h", "D8h",
"D2d", "D3d", "D4d", "D5d", "D6d", "D7d", "D8d", "S4", "S6",
"S8", "T", "Th", "Td", "O", "Oh", "Cinfv", "Dinfh", "I", "Kh"
]
Corin Wagen, 2024
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
Built Distributions
File details
Details for the file pymsym-0.3.4.tar.gz
.
File metadata
- Download URL: pymsym-0.3.4.tar.gz
- Upload date:
- Size: 88.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e13df5b63530a1404c7e92f01ba92483b08cb886182c000d051a1fe09af73edb |
|
MD5 | af520fd3b3189ccbfbdd0bdd9f5fb9ef |
|
BLAKE2b-256 | 364d3581800bebbdfb0bfd8e22050b5466077c17eb28e3ec059a0ff1925cfb96 |
File details
Details for the file pymsym-0.3.4-cp312-cp312-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: pymsym-0.3.4-cp312-cp312-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 118.0 kB
- Tags: CPython 3.12, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | baf17397c728881db98867a698e646d76a098cf695b57c6a091bb1da6152361c |
|
MD5 | 93039a046bf1550f2affbb0e1002df23 |
|
BLAKE2b-256 | cd7d05b39f8f840e3aa42988a15ad4930ac9dcba9b37cd67ebbacf82b2d648f1 |
File details
Details for the file pymsym-0.3.4-cp312-cp312-musllinux_1_1_i686.whl
.
File metadata
- Download URL: pymsym-0.3.4-cp312-cp312-musllinux_1_1_i686.whl
- Upload date:
- Size: 114.9 kB
- Tags: CPython 3.12, musllinux: musl 1.1+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99b68de6f9aec8a0da8ad9fc8986634ffb2a9075a636879fc31c7ecc5c679d41 |
|
MD5 | e14292b7907bec9554b3776b0785a0b7 |
|
BLAKE2b-256 | b9525b957f9ebce8e3ae214ef3003b7395535dc1ff1f4404d160480e2482fc42 |
File details
Details for the file pymsym-0.3.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pymsym-0.3.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 115.9 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63bef4c1ff2146e0b4025b6bb420218595f5ac939c437e147a64cb3ff9059737 |
|
MD5 | d46750f4334e200d3036cf3722cf5f13 |
|
BLAKE2b-256 | de1253a8f0b1fe6ee216f7e92e467acb678ef88e134388e4fd34dd14a3f7601c |
File details
Details for the file pymsym-0.3.4-cp312-cp312-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: pymsym-0.3.4-cp312-cp312-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 120.6 kB
- Tags: CPython 3.12, manylinux: glibc 2.12+ i686, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf41f91d98206a9970797022005e6131472688b5c2bee3489c8b030aea5799bd |
|
MD5 | be54f8eb1b6cc4781deaa2eef2e22790 |
|
BLAKE2b-256 | 832041c0b742f6bb7331ca465d673396607fe3279dd26b638c3f2c2e861d483e |
File details
Details for the file pymsym-0.3.4-cp312-cp312-macosx_11_0_arm64.whl
.
File metadata
- Download URL: pymsym-0.3.4-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 104.2 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f70dbcbd29d06e3f8f90738d6829f1c42d3ba7c41090147b0b716a2562df2b9 |
|
MD5 | fd49a70bc36e7b58e580b4063f0926d0 |
|
BLAKE2b-256 | e91a34e2189dfd3014e9973d820be3013a4f3c7f337d089d60ec968fb81ac853 |
File details
Details for the file pymsym-0.3.4-cp312-cp312-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: pymsym-0.3.4-cp312-cp312-macosx_10_9_x86_64.whl
- Upload date:
- Size: 117.7 kB
- Tags: CPython 3.12, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b220cd24e229aa2adae4d9695e68ddab20932f40f686ade1213474c2d05cf972 |
|
MD5 | da6c2a286fd15d7b307f93f9bf8bc554 |
|
BLAKE2b-256 | 66bb27d346eea50d1fc747166e2afc91b09a26185b9c8ccf1a59f3afec601c65 |
File details
Details for the file pymsym-0.3.4-cp311-cp311-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: pymsym-0.3.4-cp311-cp311-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 118.0 kB
- Tags: CPython 3.11, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9e66ad1d9b238259543f859b1e9e96c46e02614edcadebecd0c8a04f89db613 |
|
MD5 | 659def2c81549837a836d55608b0d9a0 |
|
BLAKE2b-256 | 10e1dac94bee32018e4418ccde809a1d78120013a2394d954dfd4db6899b0cc6 |
File details
Details for the file pymsym-0.3.4-cp311-cp311-musllinux_1_1_i686.whl
.
File metadata
- Download URL: pymsym-0.3.4-cp311-cp311-musllinux_1_1_i686.whl
- Upload date:
- Size: 114.9 kB
- Tags: CPython 3.11, musllinux: musl 1.1+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e82314dda26c74713b316b369f832da6f8ff71983f250e0181a6875c7c36618 |
|
MD5 | d3f8bb7874f78fc20f78ddf4a1e88a50 |
|
BLAKE2b-256 | 53ae94b0d7aa64b038f9a747d689bebca650f869e40926f48af07de731c8a1e8 |
File details
Details for the file pymsym-0.3.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pymsym-0.3.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 115.9 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d73eb5742fc01ab2b2daf48221e5ff164d72429dfe797453602bbf51c5c9af7 |
|
MD5 | 32ba0656be533c9149f31ee064f3af25 |
|
BLAKE2b-256 | 858a1b2acfd4000534d4bd8a3c07fa98ff4284950c18e301169b53b06c3f41fa |
File details
Details for the file pymsym-0.3.4-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: pymsym-0.3.4-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 120.6 kB
- Tags: CPython 3.11, manylinux: glibc 2.12+ i686, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e224219cc87167c6fd2d3636bb2cf9f091fc13f5254d2ab68dbfb77ef15e359d |
|
MD5 | b12a414dc7c67f59362279f1877125fb |
|
BLAKE2b-256 | cdb81a79e2c0da961816840cfd883478cb8edac08ff6f28c6ca3e3f4516efa3f |
File details
Details for the file pymsym-0.3.4-cp311-cp311-macosx_11_0_arm64.whl
.
File metadata
- Download URL: pymsym-0.3.4-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 104.2 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8e9bfd88588398289cbddb7b62b0eeccf65ceab1097454562843cd5aa8da2f0 |
|
MD5 | 402075417184457134ade6795fbea0f8 |
|
BLAKE2b-256 | 7206ec4d98a5ef242842c54ebcd7b7cb31d5a3298d214696786621b01dae424b |
File details
Details for the file pymsym-0.3.4-cp311-cp311-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: pymsym-0.3.4-cp311-cp311-macosx_10_9_x86_64.whl
- Upload date:
- Size: 117.7 kB
- Tags: CPython 3.11, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19b82ce3c545dd6ca37426f06953fc0107b68aacb8b0cf88cd4743a770926377 |
|
MD5 | b11d3860512b93fa1cf1a55fac845c07 |
|
BLAKE2b-256 | 01c3d78f01d4dafcc3616c2eb42287284102368828aa3e9127f2ad4f36c8d283 |
File details
Details for the file pymsym-0.3.4-cp310-cp310-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: pymsym-0.3.4-cp310-cp310-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 118.0 kB
- Tags: CPython 3.10, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15a96fa8e0fff8e6d5a375bdf7df5b457e89a4e7a58715081eef6601151d2959 |
|
MD5 | 5b84172c66c7f29a162bc86011259aeb |
|
BLAKE2b-256 | 4b6a95fb811bea024bf8ee069a9e377552de34e099382dc5bd53ec3e1875ed48 |
File details
Details for the file pymsym-0.3.4-cp310-cp310-musllinux_1_1_i686.whl
.
File metadata
- Download URL: pymsym-0.3.4-cp310-cp310-musllinux_1_1_i686.whl
- Upload date:
- Size: 114.9 kB
- Tags: CPython 3.10, musllinux: musl 1.1+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1ef8d2d3aa3db6c35229441373bec5b2cc9ef8484efbebeda0e9e2ec8454717 |
|
MD5 | 89adeea3dee79383dd088556227afd02 |
|
BLAKE2b-256 | bb23f62624e2e178f9cff77b20baf832f32f0384d67f8569b7446131a0047018 |
File details
Details for the file pymsym-0.3.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pymsym-0.3.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 115.9 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78f6caa63e79be3f19fcd38c0aff8357125ec1141b360a7e76fd7bbe4fbf5802 |
|
MD5 | 524408d8ec33881bb848512eccb802fc |
|
BLAKE2b-256 | 7361a92079c9a5a4e600f8c1e5989caaf72a95ce30370aa78918d079a3914a16 |
File details
Details for the file pymsym-0.3.4-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: pymsym-0.3.4-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 120.6 kB
- Tags: CPython 3.10, manylinux: glibc 2.12+ i686, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 574f7581ddc7ba2132ca171c60c4b9284710eb850901a575e284c3a206c5dc6d |
|
MD5 | ac437de449ac1e07485771e6db35b997 |
|
BLAKE2b-256 | d41b3c90b59a5422f60a866f4ce6e30002ee809a7a20c63b121181f07afbe5db |
File details
Details for the file pymsym-0.3.4-cp310-cp310-macosx_11_0_arm64.whl
.
File metadata
- Download URL: pymsym-0.3.4-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 104.2 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d11786b08ad0198e4e8556a5c1d06b9cb98af9fae18b1f743f3a57459652db4 |
|
MD5 | 0b48d609ee9a87dd1f0152b6e945f301 |
|
BLAKE2b-256 | 77469df326d74358d5332f409f4429d8eefa3f1bf7521b8d9086b86782cfd0ac |
File details
Details for the file pymsym-0.3.4-cp310-cp310-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: pymsym-0.3.4-cp310-cp310-macosx_10_9_x86_64.whl
- Upload date:
- Size: 117.7 kB
- Tags: CPython 3.10, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b76871f47fdd2f1c0322e578953513b10334454158fb6e421b015ccfc92c6603 |
|
MD5 | b7806c12f7b8b8850f4a81a878dc93c8 |
|
BLAKE2b-256 | e26f4501ff5c1c32b77ee8f59caf64cec45548bd18f67c454c86fc7ba67d3166 |
File details
Details for the file pymsym-0.3.4-cp39-cp39-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: pymsym-0.3.4-cp39-cp39-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 118.0 kB
- Tags: CPython 3.9, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6adaa899af7adcdec38b06ad16218b5eb7b5c195f6c3d5bca474a71ea5b14427 |
|
MD5 | 67a7cb277a5dd7cc78bfe0c560711dd0 |
|
BLAKE2b-256 | 2ba888c6b0da35149302867191629ff7dd08f540c3790d730fb1fa28d158f77f |
File details
Details for the file pymsym-0.3.4-cp39-cp39-musllinux_1_1_i686.whl
.
File metadata
- Download URL: pymsym-0.3.4-cp39-cp39-musllinux_1_1_i686.whl
- Upload date:
- Size: 114.9 kB
- Tags: CPython 3.9, musllinux: musl 1.1+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e90193b8200b495043ee3d4f5d97848514e30d44a6288d20ec4ebba26cb2a4b3 |
|
MD5 | c8f20fff1aea80df54abe1a18f608366 |
|
BLAKE2b-256 | bc031d0f868e35bca903bd4a3aae233749ac248a3c2a009e662a0a979c8b768a |
File details
Details for the file pymsym-0.3.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pymsym-0.3.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 115.9 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a1558d2f2e7f8789eb7529f1b782f8eedf716c01d01eb7b74f5f645c6666984 |
|
MD5 | 19268fff01022706b12beecaf81020ea |
|
BLAKE2b-256 | dce5150d8b4368bae8cfd175eb1931173360ac77da6bcbb9787150a0271f01bf |
File details
Details for the file pymsym-0.3.4-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: pymsym-0.3.4-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 120.6 kB
- Tags: CPython 3.9, manylinux: glibc 2.12+ i686, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfd2abec4008c6811c9ca0a6e0338077adfd5634e4d4a8e8c827978ea386ad80 |
|
MD5 | f6522b50ffc81f6c96a3a5ee3130f594 |
|
BLAKE2b-256 | ce37552ae6c6a0a4f227816a80ffc5fa1223f995b3e396fc28a08a811c7033db |
File details
Details for the file pymsym-0.3.4-cp39-cp39-macosx_11_0_arm64.whl
.
File metadata
- Download URL: pymsym-0.3.4-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 104.2 kB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe9e77faeb43019484dc6edd02a31c7a3a2828644e0f09639419963de0df0a1d |
|
MD5 | 0d9b0f5a93658d1c12d7bd97cd522234 |
|
BLAKE2b-256 | 6b5a980b2d573eaa9c395f5722a125d1d7fa06722f1288dc03893b392e5c7833 |
File details
Details for the file pymsym-0.3.4-cp39-cp39-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: pymsym-0.3.4-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 117.7 kB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7241fb7ec12a0e2ca53fc2730a94c98fa261a844522d3766941c792fa6f30d9 |
|
MD5 | e8b9d2e336bee4c78a43aad68e565d1b |
|
BLAKE2b-256 | 5d1b04dd3f21d86860d17a7147f69c5791120e9f0f3c1c0293c6b2fee4313ab2 |