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.4.tar.gz (2.0 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.4-cp314-cp314-macosx_11_0_arm64.whl (991.8 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

chematic-0.4.4-cp314-cp314-macosx_10_12_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

chematic-0.4.4-cp312-cp312-win_amd64.whl (860.0 kB view details)

Uploaded CPython 3.12Windows x86-64

chematic-0.4.4-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.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.1 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

File details

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

File metadata

  • Download URL: chematic-0.4.4.tar.gz
  • Upload date:
  • Size: 2.0 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.4.tar.gz
Algorithm Hash digest
SHA256 a8f5af4d3dae838127ea12727098244c78c6884df61166e2170352dc59bb0103
MD5 184730911436652f785edd97b65197c0
BLAKE2b-256 5a67b143166565f71f867e97d286a398feac70b279df8bf85b9e5d632b9edb37

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.4-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 06d943d26bdc7b2502aa6276b8631065e7029a04fe47c96fee27bfc8158a2332
MD5 6bcbfdee53d0bfa0c615484a3d2d87c7
BLAKE2b-256 f23cf7bff811e930d92f9afaab4466a1d62ba6b5182e0b35573b9e6454014119

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.4-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5e17861f14218eed1aee72fe001256578abb77058f9cf477e56e9637dbd0cd16
MD5 97d16a15f5f3b230c07d466740af7f60
BLAKE2b-256 2d89f34141e949195ccbc634b358e566123694f2571002c00929829cff9b18e5

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chematic-0.4.4-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 860.0 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.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1692a8a390b28a0fb6c174f25982eaefe674558f888ce8e410e524abfc378a05
MD5 ef0b43b660add5923c9e270cf934a2ee
BLAKE2b-256 316b5979c62e9f3b3ab95b8a086d1628e53f9a34268bcde7560046b2de41e419

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 24a96e37ba448b1537f589b37be8790cb8cab46c10ce72db6b73b243abed97ae
MD5 783860a796b9af8563939133ff8ad7ab
BLAKE2b-256 f8364224539e09c611e442c88af3cdfdd586566fa9948601d6aede5e4d79d8e0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 83e689299e3210cb88f87dc809c399ec4d60df89a9250f9f47622c2554fc0c51
MD5 8305e0feb9b20bb681e0674c7db7598a
BLAKE2b-256 b7204f21e36a71188bcaee3578a893df43ba26caf71bcc56c636e78c67153da2

See more details on using hashes here.

Provenance

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