Skip to main content

Pure-Rust cheminformatics — SMILES, fingerprints, 70+ descriptors, pKa, ADMET

Project description

chematic

Pure-Rust cheminformatics library for Python — SMILES parsing, 70+ molecular descriptors, fingerprints, pKa prediction, ADMET profiling, and template-based retrosynthesis.

Installation

pip install chematic

Quick Start

import chematic

mol = chematic.from_smiles("CC(=O)Oc1ccccc1C(=O)O")  # aspirin

print(mol.mw)      # 180.16
print(mol.logp)    # 1.31
print(mol.tpsa)    # 63.6
print(mol.qed)     # 0.55

# pKa prediction
print(mol.pka())   # {"most_acidic": 3.49, "most_basic": None}

# ADMET profile
print(mol.admet())
# {"bbb": False, "bbb_score": ..., "caco2": ..., "herg_risk": ..., "cyp3a4_risk": ...}

# Fingerprints (bytes, 2048-bit ECFP4)
fp = mol.ecfp4()

# Tanimoto similarity
mol2 = chematic.from_smiles("c1ccccc1")
sim = chematic.tanimoto(mol.ecfp4(), mol2.ecfp4())

# Template-based retrosynthesis (60 retro-SMIRKS templates)
mol3 = chematic.from_smiles("CC(=O)Nc1ccccc1")  # acetanilide
results = mol3.retro_disconnect(max_results=5)
for r in results:
    print(r["template"], "→", r["precursors"])
# amide_secondary → ['CC(=O)O', 'Nc1ccccc1']

# Filter by reaction class
amides = mol3.retro_disconnect(reaction_class="AmideBond")

# All descriptors as a dict (for Pandas)
import pandas as pd
smiles = ["CCO", "c1ccccc1", "CC(=O)O"]
df = pd.DataFrame([chematic.from_smiles(s).descriptors() for s in smiles])

Features

  • Zero C/C++ dependencies — pure Rust, no RDKit or OpenBabel required
  • SMILES / MOL / SDF parsing and writing
  • 70+ descriptors: MW, LogP (±0.3 vs RDKit), TPSA (±1.0 Ų), QED, Fsp3, SA Score, HBD (100% vs RDKit, incl. S-H)
  • 14 fingerprint algorithms: ECFP2/4/6, FCFP4/6, MACCS, AtomPair, Torsion, …
  • pKa prediction (15 SMARTS rules — unique to chematic)
  • ADMET profile: BBB, Caco-2, hERG, CYP3A4
  • Template-based retrosynthesis: mol.retro_disconnect() — 60 retro-SMIRKS templates, SA Score ranked
  • SMARTS substructure search
  • SVG depiction for Jupyter notebooks

License

MIT OR Apache-2.0

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

chematic-0.4.16.tar.gz (2.1 MB view details)

Uploaded Source

Built Distributions

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

chematic-0.4.16-cp313-cp313-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.13Windows x86-64

chematic-0.4.16-cp313-cp313-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

chematic-0.4.16-cp313-cp313-macosx_10_12_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

chematic-0.4.16-cp312-cp312-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.12Windows x86-64

chematic-0.4.16-cp312-cp312-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

chematic-0.4.16-cp312-cp312-macosx_10_12_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

chematic-0.4.16-cp311-cp311-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.11Windows x86-64

chematic-0.4.16-cp311-cp311-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

chematic-0.4.16-cp311-cp311-macosx_10_12_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

chematic-0.4.16-cp310-cp310-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.10Windows x86-64

chematic-0.4.16-cp310-cp310-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

chematic-0.4.16-cp310-cp310-macosx_10_12_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

chematic-0.4.16-cp39-cp39-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.9Windows x86-64

chematic-0.4.16-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

chematic-0.4.16-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

chematic-0.4.16-cp39-cp39-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

chematic-0.4.16-cp39-cp39-macosx_10_12_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.9macOS 10.12+ x86-64

File details

Details for the file chematic-0.4.16.tar.gz.

File metadata

  • Download URL: chematic-0.4.16.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for chematic-0.4.16.tar.gz
Algorithm Hash digest
SHA256 40d38860830c956f4bae81c2b6a760cdb6a7f8e3ad8bc5bc9cd22f7a1afa1863
MD5 57458aac18bcaffbcf690938ac3b38c6
BLAKE2b-256 2a9a5d1e519ab1aa36e48819c4e46ec7816827746b60179037ab332db58c6cd0

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.16.tar.gz:

Publisher: publish-pypi.yml on kent-tokyo/chematic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chematic-0.4.16-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: chematic-0.4.16-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for chematic-0.4.16-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5fc5abaecaa6138070ae15fe3db3b35d3a2a7154ec8118454a9f60fe1262d549
MD5 f1bda0233c749ef8de3ada5cee39c09a
BLAKE2b-256 d60e9264c4527f2ac866d2bcda5b5e2a93445d39c87735dfc03e3501b26a75d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.16-cp313-cp313-win_amd64.whl:

Publisher: publish-pypi.yml on kent-tokyo/chematic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chematic-0.4.16-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for chematic-0.4.16-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 07d512949bd26447cd1e6ba69f36b17c2531462645a237af85de231c87b629f0
MD5 ae1b7a87f133f73789addb86c851cca6
BLAKE2b-256 a114c8da01aaa8831b22f03494a076b70b24baae910e7275e2dd1607a97d9918

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.16-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: publish-pypi.yml on kent-tokyo/chematic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chematic-0.4.16-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for chematic-0.4.16-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 302f6ff281b73fc55b7022b44c4ff94c5b9292853458478c475e8e5cb582307b
MD5 860b307c28cf85cea1e4311813244a39
BLAKE2b-256 cefe9f85435d360950d4b273582ee80f74cd85de96f83cd61044ec350c263283

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.16-cp313-cp313-macosx_10_12_x86_64.whl:

Publisher: publish-pypi.yml on kent-tokyo/chematic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chematic-0.4.16-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: chematic-0.4.16-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for chematic-0.4.16-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f6e8d2ca2f6afe725c8b39cc568373b72fe488bc419033e396d3b72b814f72aa
MD5 4690ee50c6331d07635db279076b8fde
BLAKE2b-256 cb6c165bc326383ee781ed666cb3e6ae19f07dd52fb7b3f49bf53db826f3eab2

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.16-cp312-cp312-win_amd64.whl:

Publisher: publish-pypi.yml on kent-tokyo/chematic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chematic-0.4.16-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for chematic-0.4.16-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ca8d422b2d948d41a59ffdc10ad925846b0a32a68105edf407e89af3cdd4eea3
MD5 bbe992ff6f3c40aef198c4672fba2a73
BLAKE2b-256 3b4e321ecace96d4f6d47046a28d6c1aac6be661115476cea4e63b29581379aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.16-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: publish-pypi.yml on kent-tokyo/chematic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chematic-0.4.16-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for chematic-0.4.16-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 93bcdb7c9a3a5ddb3b12f237351db9451bd890b10990183f1cc858ed06c8209b
MD5 7fc613ae5fea561b57856d5f4a59f1f4
BLAKE2b-256 4bb731a1bfa983369232f4549aed08241cd0018bc2b2e2c4cc8da4a2b5a7f9f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.16-cp312-cp312-macosx_10_12_x86_64.whl:

Publisher: publish-pypi.yml on kent-tokyo/chematic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chematic-0.4.16-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: chematic-0.4.16-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for chematic-0.4.16-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 62850506360cc220cc64ec24d32baad3ffb020b5931ed5ddeffa067abe8c743b
MD5 ca14321c609227c5d0d3e7f9112ec7ea
BLAKE2b-256 6f0da530087209450f1cc0b7df74fc0b27f5b964ab15a1ada39329a08789eb33

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.16-cp311-cp311-win_amd64.whl:

Publisher: publish-pypi.yml on kent-tokyo/chematic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chematic-0.4.16-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for chematic-0.4.16-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f8b2c1c7083e3aef84bf1c2903257add1b68659638d3d8c9e6d0a7efd2256e32
MD5 2c5c791f404d062b48b7422dd550f366
BLAKE2b-256 96ac375448f6225f178b1d550b0f6a43161a34fd8c9787c587552fac6a375b58

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.16-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: publish-pypi.yml on kent-tokyo/chematic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chematic-0.4.16-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for chematic-0.4.16-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 69d359f339a5f26180613c8ab139a996fdb1672eab89b8091656973e0c4c660d
MD5 e99b8d8c95190d87b2a797e814a17960
BLAKE2b-256 173589aa40b343be126eca7e6e315cb82c56796a6c22970dfddd812a5a59df7c

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.16-cp311-cp311-macosx_10_12_x86_64.whl:

Publisher: publish-pypi.yml on kent-tokyo/chematic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chematic-0.4.16-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: chematic-0.4.16-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for chematic-0.4.16-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bc8b7ce9049305692e8a49fd81d62e5e33aac742d185ad336415d5cae1eb2592
MD5 e844c6b28458b0389693b9399fc9e85f
BLAKE2b-256 282034091288147e0b0bffba1d09244e47664dfdeade1851912f342702dedf0f

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.16-cp310-cp310-win_amd64.whl:

Publisher: publish-pypi.yml on kent-tokyo/chematic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chematic-0.4.16-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for chematic-0.4.16-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1ceaf8b61b1244871571ef6c499c28d11fa5418025ba1a10c557e75b72563497
MD5 e51e89c212b2b76c88d315f201c91dd2
BLAKE2b-256 df8252d38b46a3b2b254d5c39fcedfd64fc4a495dc608b83d0506ce0ca19328a

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.16-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: publish-pypi.yml on kent-tokyo/chematic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chematic-0.4.16-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for chematic-0.4.16-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8cdba789e81e3d895dfcd21501a07744250e86b5ec6aac5ca4625729a3ef7b13
MD5 397674373ca0d43dcf5ed9e03e7dd323
BLAKE2b-256 a3b85fb39bd6cbd5f1ded288e372e0935615ba361f7c159342fb1ae5dbc6d08f

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.16-cp310-cp310-macosx_10_12_x86_64.whl:

Publisher: publish-pypi.yml on kent-tokyo/chematic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chematic-0.4.16-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: chematic-0.4.16-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for chematic-0.4.16-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d761914c73df9721a058e36deb3fe5cd481963e3785b8a5a69bbe7703de554c5
MD5 b5586ce41eabaf196a8e8231dcc716dd
BLAKE2b-256 2af516348eeb8fa1eb9cb7be32128c2566ad66af50838f3b35e3e87260576be7

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.16-cp39-cp39-win_amd64.whl:

Publisher: publish-pypi.yml on kent-tokyo/chematic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chematic-0.4.16-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for chematic-0.4.16-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ddf91d80203ff25498a4e5931bf183e72db47379998da4b6fbfca1d1fd42b449
MD5 d1a400cf38dfaed2b58edda39b33ed60
BLAKE2b-256 43f87d3670bab9b5b515a793e29b6de4e188263ea9eddefdddf38410e0f8162c

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.16-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish-pypi.yml on kent-tokyo/chematic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chematic-0.4.16-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for chematic-0.4.16-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2210daf4994acc08a271173996524f077b1e15c3e8a571216e0a4a195eba73c9
MD5 8ae62c6027f1b6fd9d7e54513eef5287
BLAKE2b-256 a5d721b00ada0d4893571581d7f23fc2b16a63bbf0ce50e1464c5a3c7e83567d

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.16-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: publish-pypi.yml on kent-tokyo/chematic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chematic-0.4.16-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for chematic-0.4.16-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 baedc6b31356b7018df4d6faa8c3f872a04df56a71b41981aed495857361adf7
MD5 17efc854b67dc5b4357aa49a87b1c461
BLAKE2b-256 c0198e26efce0b23b22c7116a338008be6ce1fb0fd421269acc1c590f3342e6d

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.16-cp39-cp39-macosx_11_0_arm64.whl:

Publisher: publish-pypi.yml on kent-tokyo/chematic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chematic-0.4.16-cp39-cp39-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for chematic-0.4.16-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6566c8e34a4a1356a6e1052a95ac7df8b7e1f537e219c6b65edd18544231d228
MD5 61fbe864ad669059258f48cf76899581
BLAKE2b-256 b46680d20d46a5421dc7d655a45e96fc2dd4867b4fd43ab1c59dd6502cfe2d42

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.16-cp39-cp39-macosx_10_12_x86_64.whl:

Publisher: publish-pypi.yml on kent-tokyo/chematic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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