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.15.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.15-cp313-cp313-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.13macOS 10.12+ x86-64

chematic-0.4.15-cp312-cp312-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.12macOS 10.12+ x86-64

chematic-0.4.15-cp311-cp311-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

chematic-0.4.15-cp311-cp311-macosx_10_12_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

chematic-0.4.15-cp310-cp310-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

chematic-0.4.15-cp310-cp310-macosx_10_12_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

chematic-0.4.15-cp39-cp39-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.9Windows x86-64

chematic-0.4.15-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.15-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.9macOS 11.0+ ARM64

chematic-0.4.15-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.15.tar.gz.

File metadata

  • Download URL: chematic-0.4.15.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.15.tar.gz
Algorithm Hash digest
SHA256 5fe43119101312cab0c630d2a4cf6e488627f1c91e1945998308e6509c081505
MD5 8065c89d7879fa32d1e18c44a1b61c40
BLAKE2b-256 6c6e7e537908dd6f33b9e4238d3c1a18897080729c1ab990612f458cf707e53f

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.15.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.15-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: chematic-0.4.15-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.5 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.15-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 9ced3016cba28818b67abdc0b5f75eabafae2c49a3352c2245d0275663ad93f8
MD5 45b8722578cdb9ea97cafda7e4bd562d
BLAKE2b-256 5b5b545686f333d76fc0a04645b4566832645f99a9b0649b72cae03e8b46f499

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.15-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.15-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for chematic-0.4.15-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 215c737c345eec890b57ff28ee5523ba86c56e5ae0b7b2b59f6dbb9832afab71
MD5 961bd9af85fddfd63366568d8c12435a
BLAKE2b-256 c80556bd7fcb913aa73d42bcac2a80c6fd204119bd5185eb5234fa31924b6f30

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.15-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.15-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for chematic-0.4.15-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a38f51f0b6cb845a01a26e7df197c8d166a4aab42520ee2ba2777379b67d83b5
MD5 1204af39c34e795765eff902a14fa0a2
BLAKE2b-256 cd3c6bb6d45de607d8c5beafc68655c0af45dc65ace62d2a046f8d3d8d1926fa

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.15-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.15-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: chematic-0.4.15-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.5 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.15-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7bb02bc4f90220b4ca6a28f4da477c6d991b764a770d0ed6aea905af12125a80
MD5 bc8466fa290964c54d7937f5fa3881aa
BLAKE2b-256 cfd0691b5cb0de20469e0ac8e6a45296dd685e1413592ab940eb1eab8232cf41

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.15-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.15-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for chematic-0.4.15-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 44bd883be1d559925b95528e163fef53a04a2b81601f3da0c5ef70281b77fd70
MD5 8e549bd586c25244dc36ce560a420833
BLAKE2b-256 51a8a7797622715734d4d7693d659d43126c05722c890522dda5771328a0bbfd

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.15-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.15-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for chematic-0.4.15-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ea04b09d438c82654636f83fb523ac6b84b44d4b0709e610a98b71158cfe433c
MD5 2bfd824110ebe61254ca78c33542bf07
BLAKE2b-256 3c37c91637e9a17208748e3768ba8298ed84f0cecf07331b1b31436e35b32d92

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.15-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.15-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: chematic-0.4.15-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.5 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.15-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d9a4344459d20974b0cefb4e365cd495e4513aa05b273746d571a6a0c51e08b7
MD5 db155178ed6b38f1afd6410e0c05859b
BLAKE2b-256 79cf0c12749bc6b14c5339dbbc70844f461726a3e0bbbfcd9a7246333ad4d7a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.15-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.15-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for chematic-0.4.15-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 24b31f1e1bf0188d4576a7a3ed8c310eed6f4405ac171cb2f004a3f73280e742
MD5 c29410ba0ce52d86906090b73a504dae
BLAKE2b-256 617f0ddab6659fba16a8291c7173d8d89489361f5faba14814a911c4a8d71a40

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.15-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.15-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for chematic-0.4.15-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 fe693252346197f04763ac3148a5083a1d9e4fb9c47a572b0e15c5777900c168
MD5 6d406931cb41fc81f95bc85857e321d2
BLAKE2b-256 c1bf40fade717c02de1b3243de2706608205daf558fd2a0037431136d8f6d355

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.15-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.15-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: chematic-0.4.15-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.5 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.15-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cc9d2a68488826469cb1043a43be3a41f37197af2eabe2b4a78e51945f0edb59
MD5 5b5aba5b823c6976a362674e12815804
BLAKE2b-256 e0cc2d8bd94a318de0914c3a9c25be2f2449574e14c94c50eb2116beb6c48ec2

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.15-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.15-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for chematic-0.4.15-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6651d76465518890ea766bfa0996bfa6191df27e57da2b8c123bcd3da75b3b94
MD5 12466c016e2dbf8215386eceea376293
BLAKE2b-256 45b92b31e99fede088d37d0887208d2acc18252f05342a0d992ce29ecc2ee246

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.15-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.15-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for chematic-0.4.15-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 19a7005bc45d495909a87dc07f7e7e9907fceccafce487805b53f3ce83e9bc44
MD5 e0a5acbceca365c5f4de2de5a46270fd
BLAKE2b-256 39b5b3500695a0fa1c364b5677bc11491e311e2a2700416a085207205c74c7ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.15-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.15-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: chematic-0.4.15-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.5 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.15-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a03e3bcbc5cfeb7706aa13fc8b1b3bfd3cef75f09a4ca05e32bf98a56cc1b557
MD5 2e250ad25b4cae44e9ba1f2f2a7e897b
BLAKE2b-256 11556303d0dd8af1d2def9707247ff19e3fb10160207496238fc798eb65faf50

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.15-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.15-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for chematic-0.4.15-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c7d1243f2e3679d0832cf8d767556327cdf8dece3a670d6c29e8f9ac16b720ca
MD5 499d16c0be979c51244e4cf1bda65a68
BLAKE2b-256 755b2c2b9b8d7b68de6afc941ce771d603a5b21d5b8eb7c971bdba3b91693f83

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.15-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.15-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for chematic-0.4.15-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ba599111336e0e76d1765f135a5160bb5dc6a09e1622473f150fbd751cd55835
MD5 f62951dc647525c332a65c342b582973
BLAKE2b-256 247403a9ce298eefb6825d6e27ba55b7f5087e5794f583f747f6bd929d325306

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.15-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.15-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for chematic-0.4.15-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 63866502947ded9b69a6abc3e5942ee13162c9971dce483d472d9f575d170957
MD5 3209d002dec0fe9d945ab7a524f80434
BLAKE2b-256 e929f445a1432dfa54805c36d5af3461bd43cec95ed7ea508ada0e724abef0f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.15-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.15-cp39-cp39-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for chematic-0.4.15-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 0d1273d73cf7d02a575603cf484648ff94e28e801f5c57e8381cbff2f657f76b
MD5 a29233c87f949d3015b7d04d32555166
BLAKE2b-256 d167819f0fa46067253b7ed1327f4c8a471289bb494cf79c2cfb0c142c1b2a31

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.15-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