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.6.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.6-cp314-cp314-macosx_11_0_arm64.whl (998.4 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

chematic-0.4.6-cp314-cp314-macosx_10_12_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

chematic-0.4.6-cp312-cp312-win_amd64.whl (867.5 kB view details)

Uploaded CPython 3.12Windows x86-64

chematic-0.4.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

chematic-0.4.6-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.6.tar.gz.

File metadata

  • Download URL: chematic-0.4.6.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.6.tar.gz
Algorithm Hash digest
SHA256 c5445a6590797d02fecf39119f72bbea629d032c45f2bcd2eb1c7d8d7ef99724
MD5 9013e7e2aa0d1ed32009f1c3c12d9765
BLAKE2b-256 77cf143c838e4643b1da133c78ce426738e81bd7f057d6bc36cfdf3541c01e60

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.6-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bbcdae6ddf690e3f2dc4d9966fb4a5fd9de7357fcd96a5373b02db9646939eb0
MD5 91f85bdc192f99e6c6ed2c348745827f
BLAKE2b-256 b47b4602b87d50dfa9a56915bbb5c81ea6129a67c8383a2258c8d32fad7d15e3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.6-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 aa5e3a6842d5e0ea5430debc6da0eeecdc10619ac2029b495affd352421cb520
MD5 288ee838f856f1863aeb83f12b087fdd
BLAKE2b-256 487fae008821d743a5703636c133c6e7907039caa37712423c4b196ef462b551

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chematic-0.4.6-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 867.5 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.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 aaba75b14f90167f13c2243da3f162abd29a0a127f93093832a0f8ad44d8f85e
MD5 e2e298cf677d40b66076394791a4fc00
BLAKE2b-256 95652ea77e4d564449c7f18e8f6704f06bfe8bab9fad069a7136ece881c185f9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d91333f715afb82d27c1b26cd9468f401861936744c58bee53c6f1297af3c45f
MD5 04c0f9f314868bef17d92b1ee1edffc0
BLAKE2b-256 afce3a15aa3f03ea1e85acd145dbb24dad9cfc50f695d4e407a8d5450c9cf8a3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chematic-0.4.6-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 decd7690d567d19b731f16cdc20c77cec0f2a5460c524c94791aa6981870036a
MD5 013d37600c9f26e0777c5aece9182776
BLAKE2b-256 bbc47b5bb7925059cf10a0a85fd77b5f36f6ceef87923af582366a577959538e

See more details on using hashes here.

Provenance

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