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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.13macOS 10.12+ x86-64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.12macOS 10.12+ x86-64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.11macOS 10.12+ x86-64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.10macOS 10.12+ x86-64

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

Uploaded CPython 3.9Windows x86-64

chematic-0.4.17-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.17-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.17-cp39-cp39-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

chematic-0.4.17-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.17.tar.gz.

File metadata

  • Download URL: chematic-0.4.17.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.17.tar.gz
Algorithm Hash digest
SHA256 d0f493538fc027b93891126b5204211af627ac52676ec71e7b724c9e1549594e
MD5 e7960d4b32487592feb2cda42bdf46be
BLAKE2b-256 002e262ff8bbc227869036ef0fcc4fc02e8f30441bf4caa01c86b21097f476b8

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chematic-0.4.17-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.17-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 34865108d37a6e00f2e8fb571389f6e115f4ea8308b7b9a0631d8c64c56e9318
MD5 ab502d787c123fb6e2e2d950aaf93c26
BLAKE2b-256 d5140b6412ceb9646a57ae63b31cfc4ac90ab3a96d3969288037a78dcaccf3a7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.17-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8f1f054098202ee5a7c98c59f8a3dd022e667e13e822da9e598d0b4d53691fba
MD5 9d09f65df1ea8b7045c87b5f1e0fc22d
BLAKE2b-256 8e8957db8cfa7577eb23b31f35f9cfc6b1dc211bb6bad2d870e89d56d73ce150

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.17-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 db0822931921afee08a1c7fa6e62c610b0f5f4c638d5fd70a0056aff43c83f29
MD5 a30637065c668bf6a932431b5ce3108f
BLAKE2b-256 19de597dfe434d229d12eef90fccea1cb62f8dd1a2fd9ab7c0b0814eafffcca0

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chematic-0.4.17-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.17-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f1cdda4f1ee4547924239e9a10d5076e54e85f202f8d45adb84dd210583f5fa4
MD5 32cbc3ca001d89f070931ddebb3d666c
BLAKE2b-256 5600c66aa07847fbee9c288b20bef563b8c97706866ad4503f120b478bcec810

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.17-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 36cfa71686b968325f4cc4be5b37b977b70f7def3a41946b676291cc11f86170
MD5 4313f87aa5729abbba4469ba0a312789
BLAKE2b-256 160307d846ce86534dedb04a9aca1ae77df7573de34656b5a822f46a0ca4ab7e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.17-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 104ccce01d3281800dfe75ab3d064eabe497ffd43d5a878e1201bb30f5227744
MD5 730381956a95b7b447429a70a300f080
BLAKE2b-256 69148ec9ce591ad2a14a5ec31caf4640d499bbe7caec7f5db18d34d9eaedd4e0

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chematic-0.4.17-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.17-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0587b00c025a1e13bfb63805f31ba73d407e1ee1800a8dd7bfeb8b118e1b4897
MD5 dafdff9d9845953b530a41ad5619c8f9
BLAKE2b-256 02d3fc7de1eb50ac294c8985a6fead9cc182c29957f393cbf4e37cac972b947b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.17-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 be0b8c7eb00c4c805f525c8225eed990240e717e49fe766e532b301410a1bb09
MD5 8361e28b25890d869c901aede60827ae
BLAKE2b-256 77ab4091510e4af8e24d04f6d47081d1bc9c556730e494ebe6eec19b7dea6df5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.17-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9d0889816775de073ce3273610dbdefc91fc6356b97a0b9a463c0602488dc5ea
MD5 085d717ea32a5f3bd653102bdb7651c2
BLAKE2b-256 e4f057b1452bf5f49c3b0f4e31dcaf805ff20831b4408e644ec7837ab9395efe

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chematic-0.4.17-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.17-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9ebe49c729ff17456722341cf98c2a191ec27792180dc00d99b5efd862884131
MD5 9030da2ab5e200ec6291364b51d6dd49
BLAKE2b-256 36bfd4aec1f9289ffe03a4f0c8183cb5176b7b7ca5a2285d11350327c0d80fef

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.17-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f264d3fa449a214552d7165d5d818ea55624a370e94c7d0fd07bf1740e84fd6f
MD5 186b88eea0564497a03eac749389390d
BLAKE2b-256 e4ba476fde00470693eb6d98f0e99b29b1f3939916603294ef773c54cd7a1260

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.17-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f8a6740c009cfcd789b2259a933e6986bf6cb326c5ee4a622795d38c5b5921db
MD5 e61938d33d34c5e7ef78dd0b2ddb083e
BLAKE2b-256 bfb084eee6ea4d31d27f62d0ae313a1a6d7732329d3fe5efe2438be4e2d77958

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chematic-0.4.17-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.17-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 100e02f4730bd0ad43197797505101694280d764ea986a165f7563ce12512719
MD5 e30e7d766c22f88fbec0297572359f59
BLAKE2b-256 78a50d8e47435ac50ccc141fc0bfca1a57b8d565ea2a6be113073bde11bf5dee

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.17-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 62567b8174f083d99d3a09cc10afc6dbfb3db27b0b9109cc8acccbcadff3080a
MD5 daec7c47f03b3a042cb4bbb1cf1bf49f
BLAKE2b-256 4fbce677a55e6d709949cfce0317d4f1c8103b9035bc724ae50f0fce07bcf57f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.17-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f5ca5ce127cd315a115c9797a631b761c0d1d71ae6cd8965b9e38e4419a0aaa2
MD5 0d76ce4255ad0a54164e4df116ac9fac
BLAKE2b-256 3031ff6694a1642c29884366cdf420d80c9ef3b3fb3eddaf6e9333af075168e7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.17-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d9df57da04fcdb75786fc9dae715c6dfca7bf8ddfb033ce710a19c7564059457
MD5 c2f621912289e857067cd9bbd2a14bbc
BLAKE2b-256 48258bbcadaeb6c1a1f7c137df6d1ae289b14531d1dffee557df99146acc9992

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.17-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8447ec71eb30cf3a3e9652613115f27ef56cdeb7e8f78e02b07904f0380e7107
MD5 0edb269b00b3f554ccad08fe05dc6828
BLAKE2b-256 ea561462a3766f748ae30ec5963f0650899fbd53150dd65cdf1f6893a8b405a9

See more details on using hashes here.

Provenance

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