Skip to main content

chython logo

Chython [ˈkʌɪθ(ə)n]

PyPI version Python versions License: LGPLv3 Documentation

Library for processing molecules and reactions in a Python way.

Features

File formats

  • Read/write/convert MDL RDF/RXN and SDF/MOL (V2000 & V3000, including atom parity and enhanced stereo), MRV, SMILES/SMARTS, InChI (inchi-trust library), XYZ, PDB
  • Compact binary (de)serialization and full pickle support

Toolkit interoperability

Conversions build the target structure directly from the graph, so atom order matches atoms() and stereo is carried over without needing a 2D layout.

Toolkit API Requires
RDKit to_rdkit() / MoleculeContainer.from_rdkit() extra rdkit
Open Babel to_openbabel() extra extra-clean2d
Indigo to_indigo() extra extra-clean2d
CDK to_cdk() extra extra-clean2d + cdk.jar (CDK_PATH)
CDPKit 3D conformers (conformer_engine = 'cdpkit') extra extra-clean3d

Allene stereo is not portable through any of these toolkits. Indigo additionally omits cis-trans, which it derives from 2D coordinates.

IUPAC names, both directions

from chython import iupac

mol = iupac('ethanol')   # name -> structure, via OPSIN
mol.iupac                # 'ethanol' -- structure -> name, via openclatura

iupac() needs JPype and opsin.jar (OPSIN_PATH); the .iupac property needs the iupac extra (Python >= 3.11) and returns None when the structure cannot be named.

Molecules

  • Build and edit molecules and reactions with a pure-Python API
  • Standardize, canonicalize, kekulize/aromatize, and check valences
  • Tautomer enumeration
  • Tetrahedral, allene, and cis/trans stereo
  • Morgan and linear fingerprints with Tanimoto similarity

Search

  • Subgraph isomorphism and maximum common substructure (MCS) search
  • SMARTS parser with chython-specific query semantics

Reactions

  • Condensed Graph of Reaction (CGR)
  • Atom-to-atom mapping (neural attention + rule-based fixing) and template-based mapping reconstruction
  • Template-based reaction application (Reactor, Transformer) and reaction enumeration
  • Functional and protective group detection and deprotection
  • Sticky fragment / linker enumeration for combinatorial reassembly

Depiction

  • 2D coordinate generation, default SmilesDrawer, switchable to RDKit/CDK/Open Babel/Indigo (clean2d_engine)
  • 3D conformer generation with RDKit or CDPKit (conformer_engine)
  • 2D/3D SVG depiction with Jupyter support

Full documentation can be found here.

Install

Only Python 3.10+.

pip install chython[racer-default]

Optional extras, combinable (chython[racer-default,rdkit,iupac]):

Extra Enables
racer-default JS engine for the default 2D layout backend
rdkit to_rdkit/from_rdkit, RDKit 2D layout and 3D conformers
mapping neural atom-to-atom mapping
iupac molecule.iupac name generation (Python >= 3.11)
extra-clean2d CDK, Open Babel and Indigo backends (CDK also needs cdk.jar)
extra-clean3d CDPKit conformer engine
png PNG output from depiction

CGRtools

Chython is a fork of CGRtools.

Copyright

Contributors

CGRtools contributors are included too.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

chython-2.22-cp314-cp314-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.14Windows x86-64

chython-2.22-cp314-cp314-manylinux_2_39_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.39+ x86-64

chython-2.22-cp314-cp314-manylinux_2_39_aarch64.whl (4.2 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.39+ ARM64

chython-2.22-cp314-cp314-macosx_26_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.14macOS 26.0+ ARM64

chython-2.22-cp313-cp313-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.13Windows x86-64

chython-2.22-cp313-cp313-manylinux_2_39_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.39+ x86-64

chython-2.22-cp313-cp313-manylinux_2_39_aarch64.whl (4.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.39+ ARM64

chython-2.22-cp313-cp313-macosx_26_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.13macOS 26.0+ ARM64

chython-2.22-cp312-cp312-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.12Windows x86-64

chython-2.22-cp312-cp312-manylinux_2_39_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.39+ x86-64

chython-2.22-cp312-cp312-manylinux_2_39_aarch64.whl (4.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.39+ ARM64

chython-2.22-cp312-cp312-macosx_26_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.12macOS 26.0+ ARM64

chython-2.22-cp311-cp311-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.11Windows x86-64

chython-2.22-cp311-cp311-manylinux_2_39_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.39+ x86-64

chython-2.22-cp311-cp311-manylinux_2_39_aarch64.whl (4.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.39+ ARM64

chython-2.22-cp311-cp311-macosx_26_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.11macOS 26.0+ ARM64

chython-2.22-cp310-cp310-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.10Windows x86-64

chython-2.22-cp310-cp310-manylinux_2_39_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.39+ x86-64

chython-2.22-cp310-cp310-manylinux_2_39_aarch64.whl (4.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.39+ ARM64

chython-2.22-cp310-cp310-macosx_26_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.10macOS 26.0+ ARM64

File details

Details for the file chython-2.22-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: chython-2.22-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for chython-2.22-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 4706c9e9dd14e84f310484f245b6b2b3185dc5636cba58704e3b3a8e143b31a3
MD5 f05ca9b42c7740f5f3a64df0361fbfc4
BLAKE2b-256 a6766c41c12cd191edb3bf39ef8957dc989acb381ce039554e902d1f8397a0aa

See more details on using hashes here.

File details

Details for the file chython-2.22-cp314-cp314-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for chython-2.22-cp314-cp314-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 829a74f457350d3b0bbc52a2baaaaab106a0358dbd56711352ca85028ec85604
MD5 7198f6404bec5c4415ffe6db3967185c
BLAKE2b-256 dbd483649fc29eb2a9b256e3ff319f0840c25baf4efa65ca6667f4d14ad46f8e

See more details on using hashes here.

File details

Details for the file chython-2.22-cp314-cp314-manylinux_2_39_aarch64.whl.

File metadata

File hashes

Hashes for chython-2.22-cp314-cp314-manylinux_2_39_aarch64.whl
Algorithm Hash digest
SHA256 d2eb1a959dfab512747e268ce2a4627e84cdc6d8330c70a98963758c700ef038
MD5 05d39e3bb69daeb425fcee9050d8458e
BLAKE2b-256 e715b59c22b2e64362f3a09606a861d42dd339b808502cd52d3bc68535579186

See more details on using hashes here.

File details

Details for the file chython-2.22-cp314-cp314-macosx_26_0_arm64.whl.

File metadata

File hashes

Hashes for chython-2.22-cp314-cp314-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 84c79481e799971e089fa7b36924f5276ce2447961a30ccdfea3fe6269101ce7
MD5 2dcc70167d69abe31a17a8edcf964bc6
BLAKE2b-256 6630f5215dbbf9bc379feb66932586e2714165f2c52d583661df2d29a0e2689c

See more details on using hashes here.

File details

Details for the file chython-2.22-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: chython-2.22-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for chython-2.22-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2cae2010b9b4bf065736df9dec1d423220c9c596edd2ce0f7f9e27489c6dbfdf
MD5 6d2e91d3b9248ff3c278c1cf60f72048
BLAKE2b-256 617d8d14fcc8fa42dcb1c02e3220633b62a810830fa949be6c88720cb80fd9cf

See more details on using hashes here.

File details

Details for the file chython-2.22-cp313-cp313-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for chython-2.22-cp313-cp313-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 fd85fc0dc829da2440bde1ae7ccca07500ce54529e3c0490bdcf96482432a812
MD5 d84077bf02302273bf7c1f0dbb585e60
BLAKE2b-256 9649dca41e8022b126df205b72a1cf08aa690afacb2ecec99b2e3eadf4df6abe

See more details on using hashes here.

File details

Details for the file chython-2.22-cp313-cp313-manylinux_2_39_aarch64.whl.

File metadata

File hashes

Hashes for chython-2.22-cp313-cp313-manylinux_2_39_aarch64.whl
Algorithm Hash digest
SHA256 18b62f14104870f05717f260e22b497386b3568ffcf698142f80b6a6c76d2c0a
MD5 243080b69731682f57d43fab3abafdf1
BLAKE2b-256 d8857fc21eb3db6868dad1c4f9a746ba14f074628224651d9626c6663feb948a

See more details on using hashes here.

File details

Details for the file chython-2.22-cp313-cp313-macosx_26_0_arm64.whl.

File metadata

File hashes

Hashes for chython-2.22-cp313-cp313-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 20646765bdd47c07ec82a3c9bd4da7612c7accee335cfa973a3e5b2672c623f1
MD5 8c6bc4f88a4dc93b86f96a1d8c97b7b9
BLAKE2b-256 868567c71f94400796bfccb28013a567c3c435afb276297e6ccab08e1a6b075a

See more details on using hashes here.

File details

Details for the file chython-2.22-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: chython-2.22-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.10

File hashes

Hashes for chython-2.22-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d9b8cb33e3246fc3998d84bb780ea643eb564d2942d6e04a6a79bac278337207
MD5 73d4025ee4c195250490851db80072eb
BLAKE2b-256 5e5c59571a394a1e1c160f8cb30333580c4b13f99776da6b48912bc2fb884b08

See more details on using hashes here.

File details

Details for the file chython-2.22-cp312-cp312-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for chython-2.22-cp312-cp312-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 31201d9d209bc672fcf0ad914533172d9d5edb16a111d36f3ecfefcb9a7051a2
MD5 3107169c5f848c92880cc7abe4de0332
BLAKE2b-256 13e37aef5aeefd9b27c9dfd1eb42e16d1c11adbf628a034e6933ee9941d8e840

See more details on using hashes here.

File details

Details for the file chython-2.22-cp312-cp312-manylinux_2_39_aarch64.whl.

File metadata

File hashes

Hashes for chython-2.22-cp312-cp312-manylinux_2_39_aarch64.whl
Algorithm Hash digest
SHA256 482a39905b46a7635cae4429981e5c8b7e962c8f28c45da5152aa287b83b271b
MD5 200b688ae450dfed6270e1054b5f0fae
BLAKE2b-256 326b868c97364b02b24dd80aa23bf003df751cb70c6a876701bcf873172b46f3

See more details on using hashes here.

File details

Details for the file chython-2.22-cp312-cp312-macosx_26_0_arm64.whl.

File metadata

File hashes

Hashes for chython-2.22-cp312-cp312-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 95e089f6158b3f7dd62b5b83515b5f16b27f145ee4ce6ae072ad4cf5cea1fd74
MD5 28cf7eec5b5299b009cb9607c8841d5a
BLAKE2b-256 ccc78b9d935fd59ae2fc21d510b36bddb6ce551074a5d3ade12885fad10526a1

See more details on using hashes here.

File details

Details for the file chython-2.22-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: chython-2.22-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.9

File hashes

Hashes for chython-2.22-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 859ed46d91df225df1040644a046c9ada7d526beef332999a1946e5509f433bb
MD5 ebb76cffc9da332fdf18dab41a139c8b
BLAKE2b-256 8bf0271dd1a27652f7a8db883105a93b9788d9effb1bddda82dc6412cafd4f43

See more details on using hashes here.

File details

Details for the file chython-2.22-cp311-cp311-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for chython-2.22-cp311-cp311-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 1a2441c720daa8f02f9cb6fbc9112688905d6e71755469cad0561d586581fbf5
MD5 0ab41e37074bbd20d6064470bfc21fba
BLAKE2b-256 d3e6f8680df125a7c9d60841ff5267b8956a0de8e47171944f6a3fc8b5f918cf

See more details on using hashes here.

File details

Details for the file chython-2.22-cp311-cp311-manylinux_2_39_aarch64.whl.

File metadata

File hashes

Hashes for chython-2.22-cp311-cp311-manylinux_2_39_aarch64.whl
Algorithm Hash digest
SHA256 64e3109e0e437ea52b56d7908a9fb1c41303545880896da7e68717064374cd29
MD5 54134662f1284bb314bfd905ef7e1093
BLAKE2b-256 d1f5ea505488e178c033f4be826bb0c5bd505d48c3dce9f2c14bc170ac5a369b

See more details on using hashes here.

File details

Details for the file chython-2.22-cp311-cp311-macosx_26_0_arm64.whl.

File metadata

File hashes

Hashes for chython-2.22-cp311-cp311-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 34b4eeb8912baae509bca068995766ecf132b39d8a0980c5e368b736649e3e77
MD5 30ace92216083c26791636d1020ed6af
BLAKE2b-256 79d16187782e96f7b08492f89ebee3f5d2ab1ff75cc97ee08ab8b53376c6359e

See more details on using hashes here.

File details

Details for the file chython-2.22-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: chython-2.22-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.11

File hashes

Hashes for chython-2.22-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7ad77deb0ac21ad985a2cb629f683b0c512d8e0eee663d3e5e792fe191555ea6
MD5 b429502e5ace587e962ff7c150663f00
BLAKE2b-256 714d319431d359b729e8d51c01deec151730b8ae4072c915ad69bcddaa8f216d

See more details on using hashes here.

File details

Details for the file chython-2.22-cp310-cp310-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for chython-2.22-cp310-cp310-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 a7f507fa698e3e3382f652c61d9767dec8a307ae481e9aac54d2486b57be2f10
MD5 f00950c433c7807d8ca0a574a3b446db
BLAKE2b-256 e4b23349af505068f30e512db4f0af8b966df84d864b03c162c0c961ac7ae946

See more details on using hashes here.

File details

Details for the file chython-2.22-cp310-cp310-manylinux_2_39_aarch64.whl.

File metadata

File hashes

Hashes for chython-2.22-cp310-cp310-manylinux_2_39_aarch64.whl
Algorithm Hash digest
SHA256 2be4d352911c67cce382c32644bbe8a95dbe5aaecfdea2f37a27af8ec14e5fdf
MD5 d6e33ab42e64d30185a4b7d7e26c1e72
BLAKE2b-256 1ba55273032e833b1d055e488516df1f238e11559cea47e6f0930cb60587a176

See more details on using hashes here.

File details

Details for the file chython-2.22-cp310-cp310-macosx_26_0_arm64.whl.

File metadata

File hashes

Hashes for chython-2.22-cp310-cp310-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 2a3744fdd9f4f2a36146f99d00e1d544b6b8daeb8645bcc24f325231f707c969
MD5 1618a1cf1c40440eb43e8ca1b8cff893
BLAKE2b-256 7f4c46431c98859b6df783a2e165b3bce8586bb8cfa8d417a85a8384e22709f4

See more details on using hashes here.

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