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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

chematic-0.4.14-cp313-cp313-macosx_10_12_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

chematic-0.4.14-cp312-cp312-macosx_10_12_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.11macOS 10.12+ x86-64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.10macOS 10.12+ x86-64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9macOS 11.0+ ARM64

chematic-0.4.14-cp39-cp39-macosx_10_12_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.9macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: chematic-0.4.14.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.14.tar.gz
Algorithm Hash digest
SHA256 7eb83d81bc798dc0c68279836fc6e65d4546d3bf7bc7a8f04478721746155592
MD5 4bf280bc17fc3d57463e1de734589ddc
BLAKE2b-256 e0111291a28dceaff13a97b4d8937cbd91c2bd66db1ff78d5c1b9bbcd41bd167

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chematic-0.4.14-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.14-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d5723c4196dc9bf49c7f5183b20dcc40d42f95c58713a42db19c04e3d4393e84
MD5 504ee67a3860bf942d0010ee2a3f1c71
BLAKE2b-256 8e0328e87e098b16c5be07241d01646082425d3a1e18a31ceb7b0ac935bdf233

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.14-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8de6c36982bca5d75b36edfc62797b4175a8b40c98fbe6186c437a05a5b0d45f
MD5 ef15736bd34a291da31fa3480bde09a7
BLAKE2b-256 2712d343302d85207fc3f96ccf27ef3be14bc104fb0ceed3ae85910312781f72

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.14-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 49c4e700f218b8340fdb11ea8960610c0684abaa70e96c2cc23a5457e8a747a8
MD5 0805c9e0eb636abdfbaf05617706ba11
BLAKE2b-256 d1ec39b660d9b413e44376816c7ae36478b20f73a3f047457905aea65bf892af

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chematic-0.4.14-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.14-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4fca5c4135e8e204e6689b55fdcf82c761d6ba2baf1dea5bcf60e8addc28ac54
MD5 81eff22b2522210a1ecb3d01be852629
BLAKE2b-256 e3d46ee38532c0483dd367a92a89e7b4294199cf0118f2613c120722e8996c37

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.14-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a2b438f39b870643179f1ee7aecb59639a63213f30d57ec7c63c010ede55bbfd
MD5 52680f606e301c73daf88e1e5f42fc0e
BLAKE2b-256 87e7a9b656f79ccc125ee72446d6027514c0e186c1c6867bfe6de9c5de5411c0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.14-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 be43c3a4ed0ee4cdc276e09e121c01cc1710f9bf9e786b9aeba995d99d8684ee
MD5 311a9ae52347767c44d343c5befb0934
BLAKE2b-256 10145c7e5aa52d22fa1b3784f5ad2c79ceb1e0f031efd0545847f4dcc9b3a0ba

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chematic-0.4.14-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.14-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c408e864ef68389d9ae49d23240f07fd4a95affe2abb55d8159afd62fd00caaa
MD5 c47cc7115453f38f7d71b22ce1431c14
BLAKE2b-256 5cee9e705d25ff1909ae467674c2fc3a23555540f3984429143662f6668482c7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.14-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f823a605132a0acc92670b8c4bcf7ce8e0c0b79defcfedb35cf3790bcc100f7e
MD5 4ff4c209a7cc62ca590a042f1f73963a
BLAKE2b-256 ed116c44b8a57ebe2fbffe84817767de388d720f86a3c0631b8b0839e87be750

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.14-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 908619f207f11ffc1a4885e1e64f102f28344a838f60e691d87a156c815f44e6
MD5 2432e900342f86bcc9cc474ea1f9f4e3
BLAKE2b-256 6dc9e1fe4c469e94f9c9884782b7ce3c5a9aab43031f8701365dc42533667943

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chematic-0.4.14-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.14-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 841a691742ae6baad10a8470a8a6d51e05f9898cd905dafa0ee605ed3afdd373
MD5 1e100eead260c55c8823dc2e55b27862
BLAKE2b-256 5f3bb92174a16be5a638fb7173c99b170843f05b347ef8e45ea24be03151356a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.14-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 917f9b2331163702cb5187cc39f0ebdd2e2ddf248fb708baf8ff6280ff08b5c6
MD5 4f537d403363b1d47812d70d1452ff7d
BLAKE2b-256 ccf3d1166ab31c55194f84bbb159638a159299d2fafa85f8f15abe9c9f576468

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.14-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 679ac533e9ddb368ef9e0e6977f00e371d3384928cba9b3883f5f086823f4ec8
MD5 40112f4ea2e7d036523f8cb3f96e8ff3
BLAKE2b-256 7de0077352ad4e81214164a08b012c32cd128afdf8d24d4fff4bd49d24a1d428

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chematic-0.4.14-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.14-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1cd9e05ccec4830dc09b65696e5552254f9da4e97e3440e8c34ad3449769bed2
MD5 d22bffa4cec53de60c566f487e1d53ca
BLAKE2b-256 877bdf8698147a23f21185328a02f0c0803d7ee384b978b437b14bd2b0a7310d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.14-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4d1f6f667a929963886a058f53c2e9e41c31162e9ead7d8868c4060d03425498
MD5 2505144e28c2bd92b2d96d2861ce28ab
BLAKE2b-256 fcbdf7833890c31bf2a9681cf6c47340153411b9a93ee616912824d7d0bcac8c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.14-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1c24acd3c7bacd9d7258cead8623b056761bccec9749b3f3457a72fb9931e718
MD5 53145b85bb307df77ba1fccd0a75a4a8
BLAKE2b-256 d3b92afec49967947ed3167ea31265c282f6689bbeb04866a1a55ee816dc1e74

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.14-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e5f8eca0ba97773975e3199429bdb0b75a8f97d91e0ed1e8024137978fd95d3b
MD5 58362375f321ad545a68344929a10da1
BLAKE2b-256 23bd3d21a9c4bc61337fffbd8335c7f12d0bf6ea737382427c2e666276049b11

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.14-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9a348ce49a6fe27805809a9c56533d8a1e3a74e3230b5f05865f293d092f0205
MD5 e10860e36fe9d077f0a4f2e949f60f88
BLAKE2b-256 3127007ce6d80bbbeb2c1141cf4ba3f6b4141f00e6e8c3073a47878ce69bacaa

See more details on using hashes here.

Provenance

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