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, and ADMET profiling.

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

# 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, TPSA, QED, Fsp3, SA Score, and more
  • 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
  • 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.0.tar.gz (516.8 kB 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.0-cp314-cp314-macosx_11_0_arm64.whl (931.8 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

chematic-0.4.0-cp314-cp314-macosx_10_12_x86_64.whl (971.8 kB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

chematic-0.4.0-cp312-cp312-win_amd64.whl (795.2 kB view details)

Uploaded CPython 3.12Windows x86-64

chematic-0.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

chematic-0.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

File details

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

File metadata

  • Download URL: chematic-0.4.0.tar.gz
  • Upload date:
  • Size: 516.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for chematic-0.4.0.tar.gz
Algorithm Hash digest
SHA256 5ffe30bb519c77ffd6c4b2f3e507ebccf116f6fba098e83524440ce202d9cb34
MD5 8ed20640c316a05928ce01acc059b01f
BLAKE2b-256 4bcb88f3caea8b896b05e7c9af84474eebf6784b380e8dda44a722acef6ed5c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.0.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.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for chematic-0.4.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f5065a40a721b5c72276d07a1a831079332ddaa6da9da46347d1d7f1b3576cce
MD5 0053a94cce033cf89f2dda29f2473dc0
BLAKE2b-256 dad59a906c1612cb3cc9462e7c7150ae17d544e6eb2018aea79508fa1c254f2e

See more details on using hashes here.

Provenance

The following attestation bundles were made for chematic-0.4.0-cp314-cp314-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.0-cp314-cp314-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for chematic-0.4.0-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 0037764565eb9c77ff9dd34092f2c3d8864e835417446fc3ef3521f4dc2cc484
MD5 26ea85ab081e9cc37d5e257b1386f6ce
BLAKE2b-256 799422d0dd01b8c60377d07c5101176fda3038758ce1af7b009f5802beba15bb

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chematic-0.4.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 795.2 kB
  • 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.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c49c3ced4e4dbb4f584342dc6a9fef3dc9755e4cb62e3fb24920d39586a71eb4
MD5 6cdd3516e864916ba536da900a01018e
BLAKE2b-256 af0472d6f7c2cff9076fd0b0cb0133e238ec7422aa5552586b7b4826e33d28bd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 19c1473cd2a2f67f09d6ef70623b789f8f74073add600bdabbd8504178c068ae
MD5 78cba0411d66b44931ce81232ec490f7
BLAKE2b-256 bcd098d641d9dc0cbf70164740c968699730d0a2e0661758e24d19f068496be0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0b1ed4626539a33759658a1eb4071d46443295b0431583cad4123514480dd895
MD5 80b6029d643d88de731660dc5d1508da
BLAKE2b-256 01c479f394f7e0bffa20ce0a1aa5349dafccf8f1838025a8af4dd6ce7be843a5

See more details on using hashes here.

Provenance

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

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