Skip to main content

libmsym python binding

Project description

pymsym

PyPI version Downloads

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.

for more info, read the blog post.

installation

use pip:

pip install pymsym

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


Download files

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

Source Distribution

pymsym-0.3.5.tar.gz (89.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pymsym-0.3.5-cp314-cp314-musllinux_1_2_x86_64.whl (121.0 kB view details)

Uploaded CPython 3.14musllinux: musl 1.2+ x86-64

pymsym-0.3.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (119.2 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

pymsym-0.3.5-cp314-cp314-macosx_11_0_arm64.whl (104.9 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

pymsym-0.3.5-cp314-cp314-macosx_10_15_x86_64.whl (115.5 kB view details)

Uploaded CPython 3.14macOS 10.15+ x86-64

pymsym-0.3.5-cp313-cp313-musllinux_1_2_x86_64.whl (121.0 kB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

pymsym-0.3.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (119.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

pymsym-0.3.5-cp313-cp313-macosx_11_0_arm64.whl (104.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

pymsym-0.3.5-cp313-cp313-macosx_10_13_x86_64.whl (115.4 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

pymsym-0.3.5-cp312-cp312-musllinux_1_2_x86_64.whl (121.0 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

pymsym-0.3.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (119.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

pymsym-0.3.5-cp312-cp312-macosx_11_0_arm64.whl (104.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pymsym-0.3.5-cp312-cp312-macosx_10_13_x86_64.whl (115.4 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

pymsym-0.3.5-cp311-cp311-musllinux_1_2_x86_64.whl (121.0 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

pymsym-0.3.5-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (119.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

pymsym-0.3.5-cp311-cp311-macosx_11_0_arm64.whl (104.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pymsym-0.3.5-cp311-cp311-macosx_10_9_x86_64.whl (115.2 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

File details

Details for the file pymsym-0.3.5.tar.gz.

File metadata

  • Download URL: pymsym-0.3.5.tar.gz
  • Upload date:
  • Size: 89.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pymsym-0.3.5.tar.gz
Algorithm Hash digest
SHA256 d3ca3fc5c1704ac3addb8521885144f06ca118d95d2af8e449bbe71b2d847150
MD5 05550ff5ff80507d969878ac5dac312f
BLAKE2b-256 b6554647ce5b49f71807768fcc0ac78b3699706005ca0442c4a7aa8485bf2ad0

See more details on using hashes here.

File details

Details for the file pymsym-0.3.5-cp314-cp314-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pymsym-0.3.5-cp314-cp314-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 fc22822ff7e0aa409d1d6560136bfedadbfdf0e708259c4977fc243dfe4d95f1
MD5 c690aea12dcc675c815bc5446db14c5c
BLAKE2b-256 0504ce898b80280ff30037853614d0f00e24b529eda0f013f174a286833e51d9

See more details on using hashes here.

File details

Details for the file pymsym-0.3.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pymsym-0.3.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 be8173e81692ddd49e5735b76eb58996e48fcc3898520083ed2210954864dd68
MD5 c4f57e4599e9b2f05e29c78f6a5fd195
BLAKE2b-256 7800ea42e6faf78c7220fce9b36c3b35e5c3c6c0984894547ccc1110ca9dcac3

See more details on using hashes here.

File details

Details for the file pymsym-0.3.5-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pymsym-0.3.5-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e3b7f36c1168493dd79ab7fa73407bb927a7389fa540af8f4ee89085460c2ba0
MD5 d1e89176038a8da55e9485a89de17621
BLAKE2b-256 5ca17e7d3534fa55a8cfbde992d23b3421a768fc2fddcbdd863e5c3f535d6a65

See more details on using hashes here.

File details

Details for the file pymsym-0.3.5-cp314-cp314-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for pymsym-0.3.5-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 ccb390db8fc02c9326978149f2e5407af94f98f35d52d3350427f44d7e8632b3
MD5 522fe950ee61e03f349e6b5611157434
BLAKE2b-256 89cc21c124d49f1f6b959b184e7c1092ecba87c4596cfe98bf2bb04bb08f8be6

See more details on using hashes here.

File details

Details for the file pymsym-0.3.5-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pymsym-0.3.5-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9266d45b71f9cc0b3f821157ed2062b04df7a8b0c891a2eb234500f678301409
MD5 c9b3fcfcac007f4da1867128f7007b1f
BLAKE2b-256 3385730c29a7d7a566bc4b89472310128e6c0dff534611dd20822d76370ba058

See more details on using hashes here.

File details

Details for the file pymsym-0.3.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pymsym-0.3.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 26ecea43e656da88777d9ebea87af867ca8a6668f58ec2267f07d2bff5502aaf
MD5 7ad55abf85e8ca01b6bfa2d004723916
BLAKE2b-256 7b0f3a1ba824fdb10c8895be302055ea75fa0eb7f3525fea4f765dd55e8945be

See more details on using hashes here.

File details

Details for the file pymsym-0.3.5-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pymsym-0.3.5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 25de7f285dd2fea7b78819a30a80bf18e96f6c56e6808c2360b167fbfe1badf1
MD5 d783c6d351d4d10691401587344820ad
BLAKE2b-256 b77c2089f249e01a135208033e291375f6eaee34e7907513318eb5124edd074b

See more details on using hashes here.

File details

Details for the file pymsym-0.3.5-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for pymsym-0.3.5-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 23cca5cd54cec1eff1e8ffcce9bdf6f83cdac37809f58df16ca38c43c6c3d099
MD5 a6f7ba68a398ff5124bfe4f15a9a0959
BLAKE2b-256 35e3c22c77f5da5f1d75b47b0b70d471f489cc1302834998bdfb84a25397c7d8

See more details on using hashes here.

File details

Details for the file pymsym-0.3.5-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pymsym-0.3.5-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5d20c0f97798f84933c79fb00931da74bfbd635653cf55b0e030bf593b7e2e1e
MD5 3b83896ea0db843a12d4291edd7e37b3
BLAKE2b-256 5131be5f49601629a4da140f61bf338e608255f1dfde37306eddcbcae0ec2929

See more details on using hashes here.

File details

Details for the file pymsym-0.3.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pymsym-0.3.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1393dabff3cbca36711f8d55ab49266a8516406a30e21c7608b53b58e54279b5
MD5 07618fad1cdc5bb26d81043ca6ac87f0
BLAKE2b-256 9b1dfd8c0df5701df68eced1b49f920e17112d10a451bd25d3d4c12c627b53bc

See more details on using hashes here.

File details

Details for the file pymsym-0.3.5-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pymsym-0.3.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1a849b213d4ba835882fdf834759051ea7386aafa7c33319424644dad9118b6b
MD5 122f8275b2d2131509d6cc8fd2a7198c
BLAKE2b-256 026b0274227260b40dd21ba0a5958d5d2b77b64d1606c7f209e86fa1df5adb44

See more details on using hashes here.

File details

Details for the file pymsym-0.3.5-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for pymsym-0.3.5-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 b8379e3f33c3ad94a8214464f3da37aaddff81386e0e0699c579541adeebe6d7
MD5 6c166fc58c8ff646ea48545091703595
BLAKE2b-256 13688e4d32f52fb7432d287a065a5131fc69bb66597acf0e8e392b96171b53d9

See more details on using hashes here.

File details

Details for the file pymsym-0.3.5-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pymsym-0.3.5-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 894b3224479513340a54e115c3670bf9226e987a7cc9faa94e554c1444098110
MD5 9bbbb750ae485e51230d7f803eac256c
BLAKE2b-256 773576c7087bbb513183007c8669ec7afbc819296df4149318efc560fec1f640

See more details on using hashes here.

File details

Details for the file pymsym-0.3.5-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pymsym-0.3.5-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6adf39942e5bc0885b4af5e1503eae5051e417aab4a17d6b8744a0843f33328f
MD5 c812932357ada5376db930c3005a4596
BLAKE2b-256 adb2f34f0fb1ad3476a100a0bdc252c2aa4088b42c739a1be88ccb6633e9ff2d

See more details on using hashes here.

File details

Details for the file pymsym-0.3.5-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pymsym-0.3.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bc3764a9d3fb4871932d0e514dc37666de3333c6326f918cedbd20ff4b3ec115
MD5 8a825640141aff9518cabae3c6cf9830
BLAKE2b-256 f5c0361a93509f7824f195be8f2bb5cd45f9858cc2e3442f82608513569bdc97

See more details on using hashes here.

File details

Details for the file pymsym-0.3.5-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pymsym-0.3.5-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f4ec131776af044c8c43094b10817f229fe260600a59cdaa72c075591f7c0e3f
MD5 575b1cc824e91f1198a3ae874face0e2
BLAKE2b-256 d901e9f8aa01c88d6fa16f65e88ba1a51997a46b5ca5f15cde807f762d862cc5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page