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

# New descriptors
print(mol.vabc)              # van der Waals volume (no 3D needed)
print(mol.schultz_mti)       # Schultz MTI
print(mol.gutman_mti)        # Gutman MTI*
print(mol.gravitational_index)  # gravitational index

# 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())

# SVG / PDF / EPS depiction
svg = mol.to_svg()
pdf_bytes = mol.to_pdf()   # bytes; requires pdf feature
eps_str   = mol.to_eps()   # PostScript string

# ChemicalJSON (Avogadro 2 / MolSSI)
cjson_str = mol.to_cjson(coords=[])   # coords: list of (x,y,z) tuples, optional
mol2, coords = chematic.from_cjson(cjson_str)

# 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")

# Bulk substructure match against a pre-parsed Mol list (returns indices)
mols = [chematic.from_smiles(s) for s in ["CCO", "c1ccccc1O", "CC(=O)O"]]
hits = chematic.bulk.substructure_match("[OH]", mols)  # → [0, 1, 2]

# 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 / ChemicalJSON 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), vabc, schultz_mti, gutman_mti, gravitational_index
  • 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 searchchematic.smarts_match() and bulk.substructure_match(smarts, mols) (pre-parsed Mol list, returns indices)
  • SVG / PDF / EPS depiction: mol.to_svg(), mol.to_pdf(), mol.to_eps()
  • ChemicalJSON: mol.to_cjson(coords=[]), chematic.from_cjson(s) — Avogadro 2 / MolSSI compatible

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.19.tar.gz (2.2 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.19-cp313-cp313-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.13Windows x86-64

chematic-0.4.19-cp313-cp313-macosx_11_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

chematic-0.4.19-cp313-cp313-macosx_10_12_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

chematic-0.4.19-cp312-cp312-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.12Windows x86-64

chematic-0.4.19-cp312-cp312-macosx_11_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

chematic-0.4.19-cp312-cp312-macosx_10_12_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

chematic-0.4.19-cp311-cp311-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.11Windows x86-64

chematic-0.4.19-cp311-cp311-macosx_11_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

chematic-0.4.19-cp311-cp311-macosx_10_12_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

chematic-0.4.19-cp310-cp310-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.10Windows x86-64

chematic-0.4.19-cp310-cp310-macosx_11_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

chematic-0.4.19-cp310-cp310-macosx_10_12_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

chematic-0.4.19-cp39-cp39-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.9Windows x86-64

chematic-0.4.19-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

chematic-0.4.19-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.2 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

chematic-0.4.19-cp39-cp39-macosx_11_0_arm64.whl (2.7 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

chematic-0.4.19-cp39-cp39-macosx_10_12_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.9macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: chematic-0.4.19.tar.gz
  • Upload date:
  • Size: 2.2 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.19.tar.gz
Algorithm Hash digest
SHA256 01116b6917ed5ec8c8e4d82d689ed7e103f6866005cf3e67bf6e6764b34ff03b
MD5 e53f6c655a9ded508cea588c11e4e1f7
BLAKE2b-256 75844efc1a654f937eee7c556229d133bac2b87732ce560565cc9d37c7ed46d5

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chematic-0.4.19-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 2.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.19-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 34b908d2f82caa5f1b73be3ef93da09a2a1a3da327b608fe96c2406c729dd73c
MD5 f6e4e5468b236007c63ac51aa170b499
BLAKE2b-256 780866c786111e551da3fb56f4514d6b35d49cd98d7595a7eae851f8549a8da8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.19-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 30a1e3156ab8334c8912db72e4e0ea07cc0788017f2dc81d84bd6d681cda87b9
MD5 fa36f819c8ca95b65fdc0256df5e9c92
BLAKE2b-256 6f3ca7ab3780a52458d0cdc5edcffc960cf00b9848d8d568667b91fb846bf405

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.19-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d71c07f252195207261b04ab306acba04f6f34940f22eeadca443832fdf9b34e
MD5 5f6578663da9b582b2bb4a2c36e79705
BLAKE2b-256 bb58382b85b232245c87a3eaf7dccdf735ce5d850b28b5d52c6d65d2288cc598

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chematic-0.4.19-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 2.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.19-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0a5397cc3581c7863a4b9d25bc8096866616d1fa3315119d0d245b2a14969903
MD5 f3ffcddd98f635d70fce5d5e94cc814d
BLAKE2b-256 748212f7b9e6150f07c9d076c3aa6b93ee352e05bb73623b34bafe66a258994f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.19-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5c99ecbf861b2856674054448a3a97a6cba7ced5688e4693f777646933d51721
MD5 b3ce30c1712bb2c0b2fcc7edc921727c
BLAKE2b-256 f3b331250221fdfac6a5403175cc11907b93931a726c58d40bbee521c7aab03a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.19-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6571ea2c4e1db4362de54d6e8811ccf83bfe3f5e66fe1bb8f86d48334011cb87
MD5 73aa4b05ebe3f097dc46fb37c9e00944
BLAKE2b-256 d3b94b44704c1753c095a71350e6fd61b43ed3a51b22d371b918ac8de2c6e5c6

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chematic-0.4.19-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 2.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.19-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 768238cab4b8fa84ad2003cc4a4d6923438009586530dc476d7a6e29da72d67f
MD5 054d553c5687392463ca4787c04ff024
BLAKE2b-256 2c8bb9c77b9d325beb2464e4c665f33119a1af1280480236f7396baaff60a247

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.19-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 24478bacdec07ce3b362f1d36d86e6570dd8f288012144c2488c52d555bc632d
MD5 d487a4b845517a5721c9f437de60b0c9
BLAKE2b-256 d6be5c0b842e8dba3b038d3238278f8f1bcada3ae0da71d06cd8aaf3de48d82d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.19-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e0bea09b6e1a26261ebf31b15b4374db24142fd395dc1bb016bc6707ea096e92
MD5 a5cd1f3084650d29e1df9b139c20fe70
BLAKE2b-256 1b60c6b84bc99d46e461a4ba95c1936bbf3f28a0e67ccd8d94c5956fc65d2e19

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chematic-0.4.19-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 2.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.19-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2c672d41e8aac5876c53545713e22bfc977752dd7d61b90ba6d500c21304d93c
MD5 76ddf1a69981400d13abfe1e35726dbb
BLAKE2b-256 be71acf93ae2eee7a7351644d463e2c961c3739cbadcc31e337a9c35d6805e40

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.19-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6484dda29b17b46ccf3f1e9ebd101a9ad68008ee6630b9cab8bbab8cbfd7ecc7
MD5 f02982b34b4d72fcd9e570cd5dc7b0f4
BLAKE2b-256 fe6489e0a0ad058aa8b1a0900af7943b3b3af94caa5bf519d13f71858312b501

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.19-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a8a1ac85df0ec50f242c121a540fce1f0a54819a7b0188e32906510d4df907d2
MD5 e6c1fbe565a06c51de805bdaf6b41c85
BLAKE2b-256 4f5aa5f3af70a6c68309d13ddd44979b0ca4a3dc9b7613db17240b81cc1dadc4

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chematic-0.4.19-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 2.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.19-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0c7741a61628c4cc402a8de8a6fb35e8bb7b614e2811465f9984f9a706bd5955
MD5 a385fd7f7c7f2ce08678325100a2a40c
BLAKE2b-256 e02905a371f5e18f0c93338126c87d8885aa49ad61ce99c49b08583ac5f065b9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.19-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7668189020c1d1689d1876c5b52c6cc2b251f35bd25b2db3e3d43d4f4564b2dc
MD5 9765052f4d58cc356cb309e983207612
BLAKE2b-256 76bbf64692f997d0a3d0fe48092c9b0b42edad46a584a843d237ae8b80273f0c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.19-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 33cc218e79320b2c01380ea746a90e9f52c4f86253aa0b1fe6965145a99a5f05
MD5 6a500ca1523607b55e725aebfc3e4c12
BLAKE2b-256 6052662d50e72d6bda36ae7d0440ce9710beb20433b6ca06e1e96ff6e424cbb5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.19-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 02944288902944e241ee3d4ae7b515e540144c6f6f3477dc52a76f0337784337
MD5 e9feb02b6c5b592b4f216e7fe35c2188
BLAKE2b-256 71e7bb8d753484ef179d1d44bd8926b76fc95aaed18f6b24b94894596ab010fb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.19-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d9697b1b9a3ebd159ffbd3e8feb4aba13f68c5a9e92121c1cdc6e5aef06d944c
MD5 3a67ddfff4d7ecf6758c9e2a54fcdb27
BLAKE2b-256 6d4315e10e92fee5c4ca9aaccca272a6ab14c8d444d3d0690c31839ca2f736cb

See more details on using hashes here.

Provenance

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