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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.13macOS 10.12+ x86-64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.12macOS 10.12+ x86-64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.11macOS 10.12+ x86-64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.10macOS 10.12+ x86-64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9macOS 11.0+ ARM64

chematic-0.4.18-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.18.tar.gz.

File metadata

  • Download URL: chematic-0.4.18.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.18.tar.gz
Algorithm Hash digest
SHA256 9f399b811a972d7d2696a1dbd77db567387e70e558e94b3fc431ce352a52e85d
MD5 4b5e2b15fe9f81f438455d40e068c0c2
BLAKE2b-256 3babb375f661faad0edf92e3d4fbf2a65f09f3f3e6628a9a2f3cf2235405c5cd

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chematic-0.4.18-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.18-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1ede70a7327a1bd784f674f2d1c2d9a0955f953179bbe030bd232bebc860af3c
MD5 654156c69bdabb8570ca0896befc7d9f
BLAKE2b-256 f8d0b06053593f910e7bf9d861ca808228917edfa3e760e936ecaccf2fdc048f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.18-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1e94b3e0a671078eb5153cdc14f30c91f49aac5bbff134c8e577d640cc8ee12a
MD5 b98f66afa1b14c82975b7aa1a6a51c9f
BLAKE2b-256 e9b5b1b76d1fe32d119bf707450b78ea747a76d1f03bb3da28f4f76b21ab0daf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.18-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4f09ad7ff2221e1999213c7fb908e478d1da95ca93101e5edd6e6430aeee1124
MD5 9e27e90640508a4fbed7d15212be384d
BLAKE2b-256 a34bb1e8b3f875ebea1f8591b798a3e53131bea7c766a4c183e0ee7bb4182e8d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chematic-0.4.18-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.18-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f78567add8faa5a59571810c582ad1de6a9d7840e70d471e97d51df584d4e843
MD5 19d6d652f3e3bcd02eb5a7b178546488
BLAKE2b-256 fb71097750519c64e278c04a1a481d9698b075a26ef759858345d172b140249a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.18-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 783afb6be68fba220a2ca599027de10819c666ee30df93e69d8b93952b75584e
MD5 99d59dae5f558adea2c2fe8ce21948ce
BLAKE2b-256 a5c3d226f35face92d33d82a7774cc28fde8d702c92cb74127f66f6d849f722e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.18-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 fda13efa856f573b403523e6a9aba7f62e32197ad43386a425ea7f3253881118
MD5 f940004a03d353f13f8439d57e913dad
BLAKE2b-256 3e821806cbe2229292513cfb6b2cb9893c10fa83b3f5ff105d1f17e2d7725694

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chematic-0.4.18-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.18-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e94bfef8ec71d407d731fa2179638a9ad7c4e0e1143c98d67758a281d5db2c85
MD5 f3a2cc550158194f4f4662f844760f42
BLAKE2b-256 78fc9e621e56d9222be3edba6064770da448b5af3a8c994d0b03c05c4ef978b3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.18-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5c4141bb2ca926f8a1ccf48ad9ff730e08bce9f4c6d502bdc3b1706e19e4548f
MD5 ce4f4dde0604ca8f67279ab025c079af
BLAKE2b-256 9bfddf4d89f6906d765528cab28f55e33c9a9b830293e95b5f72f18b564ed8f1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.18-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 89051828ec3b020b1427b21ae4b9f5d28e710dfbbe13efc11ebc3bc48f3efd03
MD5 a42c6f23ddf935d7afe8aa9093259c13
BLAKE2b-256 a44435c70b9fdb35de2672fd94f13a334988fdc20cd657818845d3ff18b0cb32

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chematic-0.4.18-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.18-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c2d21821708950083f0871c0ce1cdc6797db6e29b0bc57e20247b4cc41bdd574
MD5 53dc09f10663078f614d5bb3a4a4f314
BLAKE2b-256 17a4baca1d842fe8497058555eb4a5235318986dd3ed7c650c3e2bb27b00e8ec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.18-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 146039544885b6eb30ce4d7a54ea05dbd951ffdcd25ce8707658c6ba9bcd30de
MD5 8edb807c86882dfc304371cb57103be3
BLAKE2b-256 b10ec9ae29c28be51c8257107890999e271be71211470a946532367e4a391114

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.18-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5da1b0375af02a6ee211265a7bf070a2b035b4e54334bf406bb86fce99b3314e
MD5 d3ef3d5a5f905d2ad29b0a20e67a54e2
BLAKE2b-256 c89cc4c20fa6a10c710e7e59e45eda70c98120bbc90c14e7f5648f0a4bf4600b

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chematic-0.4.18-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.18-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 aa669c4eb1ed397711f6efc8d4333a0c0685e184dab4ece13e392f4b45ff100e
MD5 3cbb4c3f033920ae087f8f052c83ef24
BLAKE2b-256 2149fe3e7bea0c20386394c61a5bed0290ce34c46369b8dee45f854f6d4b0ccc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.18-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9fa742ad387470d0d540686f9d15f6d04ec2accbc78f44f844166c34c885e94f
MD5 ff71145f60ac9b8851687d18b35e3dd9
BLAKE2b-256 ebe0f55f9186bd835c619a30d8a6bf0253169f8433f5b42d920d96a9a92cbf59

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.18-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2ff2f66cbb31d3105445e19f00ee18390c5fc85dbac712364032a6a86d94e21d
MD5 ed62756c9d5f13a7eb5fa6f34b62d904
BLAKE2b-256 e88bdbf4c866cc4ae80806d0269a17b64aa54819b7e5647ed9f6f834d3f377ec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.18-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6e3c8a6fe276e19258cb84aa7a5a3ced22e2271a5cd8f4df5115fe8340f26b88
MD5 a0d74978709e00a37e381ba4a7fc096c
BLAKE2b-256 42af0da2020878e7d492f374c9cf2d394817623ac7e54df1f4ccf739b80cd7ca

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.18-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1700e93e8cdad6e02e2b5abac1d53363383e762ca40c1968c7dcf97b0b931d7c
MD5 c81b994b650a315aba66dd9e89378d08
BLAKE2b-256 370e31e623c3f2ee863b248dde839c21af6ab87e19de9796efb70c2352179063

See more details on using hashes here.

Provenance

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