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

Uploaded CPython 3.14Windows x86-64

chython-2.24-cp314-cp314-manylinux_2_39_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.39+ x86-64

chython-2.24-cp314-cp314-manylinux_2_39_aarch64.whl (4.3 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.39+ ARM64

chython-2.24-cp314-cp314-macosx_26_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.14macOS 26.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

chython-2.24-cp313-cp313-manylinux_2_39_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.39+ x86-64

chython-2.24-cp313-cp313-manylinux_2_39_aarch64.whl (4.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.39+ ARM64

chython-2.24-cp313-cp313-macosx_26_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.13macOS 26.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

chython-2.24-cp312-cp312-manylinux_2_39_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.39+ x86-64

chython-2.24-cp312-cp312-manylinux_2_39_aarch64.whl (4.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.39+ ARM64

chython-2.24-cp312-cp312-macosx_26_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.12macOS 26.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

chython-2.24-cp311-cp311-manylinux_2_39_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.39+ x86-64

chython-2.24-cp311-cp311-manylinux_2_39_aarch64.whl (4.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.39+ ARM64

chython-2.24-cp311-cp311-macosx_26_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.11macOS 26.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

chython-2.24-cp310-cp310-manylinux_2_39_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.39+ x86-64

chython-2.24-cp310-cp310-manylinux_2_39_aarch64.whl (4.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.39+ ARM64

chython-2.24-cp310-cp310-macosx_26_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.10macOS 26.0+ ARM64

File details

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

File metadata

  • Download URL: chython-2.24-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.7

File hashes

Hashes for chython-2.24-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 aac23099b042f971b14e8ceb79a6b509947a5c1c41e354fa9f8e0de4160da881
MD5 f172d42c4c704bb765b643f2619e086f
BLAKE2b-256 9d2c18482f0e141aebbc29148e1ff82fcd63e3d12fd93e32942d532cb805be5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chython-2.24-cp314-cp314-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 f83327c0ddb246af87a224fe1d6ecc6fd8fa5b84a549d1f4751f2c69ec60dac3
MD5 f14111328ff8d2bb5f89d77bba8e80bc
BLAKE2b-256 00b3cf0ad676403ca2413c48f564a9e26769892f2886e5bb0127bfaebc2b8e60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chython-2.24-cp314-cp314-manylinux_2_39_aarch64.whl
Algorithm Hash digest
SHA256 8289d0103758e5848d61b28674cd959e47deacb13b174706a7acf883a8aad266
MD5 93af6162735847f778818152925136b5
BLAKE2b-256 49f8cb46bac6adbb040771d0be95dba9abeec2e7c8b65acf0ec3bc828ba25dda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chython-2.24-cp314-cp314-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 8b93527249cbea15fae95d4b77e8d9ffdeae53aa6e104d77cda62a71897dd893
MD5 866a26f56075ae1ff3e9225a08f326fe
BLAKE2b-256 f3e8e59bbf7caf25f28c306a124bc87fa3d1b9356b06528af5ca15dd98a36746

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chython-2.24-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.15

File hashes

Hashes for chython-2.24-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b420ac90e9424a0065cca7e0d6bec67c019c3cf87877151c7068d26f4c8a95d8
MD5 d1848044b9ae316370a34c623dae8eeb
BLAKE2b-256 2d81ef212972aab43b5999465b226d0f3e74efe1b0bfc9118d8afc989790687f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chython-2.24-cp313-cp313-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 4bf5d81a320092822e9cb156670c33a1d776d9ecf50f9c67bce5eb70fd468ad5
MD5 f414d09c55bf7b778c16a27d0a5b3131
BLAKE2b-256 64b8812dbf84b1d6b849dbcfda541e9596f3625a8866d4b06761b67e5832686a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chython-2.24-cp313-cp313-manylinux_2_39_aarch64.whl
Algorithm Hash digest
SHA256 b4968d32703afd51037ac8af2838cec7a313ce743730a018636c85f07e562c49
MD5 177267becd39be0eed11041f2c184bf7
BLAKE2b-256 038aa19c04e6b46277ac61ab3d4d4ad0604bfb6be93ae9794a77784c6fdc663b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chython-2.24-cp313-cp313-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 4c20566727e1acabe8dd92ffe77c4fffa06ace5adc949059e2a4945b7c7b37a9
MD5 bb71271c0033a093dfd975491cf2669e
BLAKE2b-256 26d18aab1d3b44754d08cd424a57814657d8efd5bd874a97c60c2bdb47d9795a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chython-2.24-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.24-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0ba4e0b63cea3dd933f3b9835d7d5a7dfcda67dfef20a7fe153b5ec0c53c190b
MD5 285259123ec81eaca04d840e569f391b
BLAKE2b-256 0f3cbdc2dbf1624a144678678c9929c9cce47d6281de0a476b999dc9425e80c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chython-2.24-cp312-cp312-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 0b7d84a5debaf7a22611419193e5ef5c3f138004d309b266c435f525a525e0d2
MD5 1eeedd2d0681fb0f0c84eefb74cbc5ac
BLAKE2b-256 3d9cb5816ad1fbfeee1a6abbaa1bc315017fd0b7cb8a61db8dcae92aafa7ad76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chython-2.24-cp312-cp312-manylinux_2_39_aarch64.whl
Algorithm Hash digest
SHA256 985c4bcc74f9116722673300adc89ea039395940f050778acd3885c5934de9ec
MD5 800306410f8cf391a3b7411f47f7a304
BLAKE2b-256 cf09b22202a40649c3af54aaccfe2a482b3573b9d41a63a653dd76064d0b48ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chython-2.24-cp312-cp312-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 19dd338f5b7aff573833fe3176be311fe16721bec38fc326802f7e4d6bc9ae75
MD5 cd300a60ee579555b6d782f0c6296dd8
BLAKE2b-256 4ff1f9ba9996f4fe8aae481bf5677effc6e3ede96c2c84d1120bbc96e06d4949

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chython-2.24-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.24-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f3d6d0a5fb121fcbc1a2e618de010385d2d9fa74b69275ab5a160755bc7c9b23
MD5 e6eb6078a8dfc9ba9a94d310d5365c90
BLAKE2b-256 33c43398b27fec5bc39813f0e79a992e766df22eb7b3be5cac2db137b709b3dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chython-2.24-cp311-cp311-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 53bd469af19d458976e541393d973a3aa8d87ef82f55ec58604a2168496ef0b0
MD5 ed3ee0815022d10d6ae28052ebe8d282
BLAKE2b-256 3049b1b462c35dddec56eae0c52da93142621bc534731547528163124b48e2bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chython-2.24-cp311-cp311-manylinux_2_39_aarch64.whl
Algorithm Hash digest
SHA256 2d782447d3df76089ca4255d7c3d42024e20f147f9fddb1456596dacfe30b207
MD5 fa6b84af6c807474fb54c6f0f77aa150
BLAKE2b-256 27d5a40c0ba492b43aa7b01f911a2fd9bf6c598708b45019fe910b40fb8b3353

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chython-2.24-cp311-cp311-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 a132ec9e76b6f4ec2ddad81418973cc6a210da310d2d24a9ad4b7b4357225d2c
MD5 933958f355fe9b978424e4848fa88ba4
BLAKE2b-256 8995059dc0c6a2f486178c85368cfee070752b0b464e9bc6c50bb94b3cbd86fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chython-2.24-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.24-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b0b224c90753ef6c298caf5569b41d2c1b92428f4a5ca8906b904f69006961e8
MD5 02bf0a5aba8b7112a80481a1325d87f1
BLAKE2b-256 338d5bd2852369a35a95044b39ac565966ab783c13595004610dda18ad9df99a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chython-2.24-cp310-cp310-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 18ee362b294193d29f6b64bdac6e58c8ae79cb8e652e45a9343eb3f9d0e5f043
MD5 f5911f66b53be184db9665d6c14d9774
BLAKE2b-256 572a4465aea370e3d975d2c43766e11bd6964493f5077e6f0a31b9ec1b5b621f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chython-2.24-cp310-cp310-manylinux_2_39_aarch64.whl
Algorithm Hash digest
SHA256 25a06cb195bafb5969cae819fee6ffe4c232e862b6ab6b3c15d83b026d7daeb2
MD5 2b1d6db8adfb5663f6f5485b040e780f
BLAKE2b-256 2d00c81830ce0e0dea8c023e49c9b9a733faf7d54d1755cf716fc1cd8b339ef6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chython-2.24-cp310-cp310-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 b0d49eaaf72a61759b36cf37b2b9cff8dca454ed470c81ce804cf506c73cee9f
MD5 924e48eab2162a7482c44a139c59c282
BLAKE2b-256 06f906bf9f5adcae112888b89622cfa6f39aa1b195e7f5b7c7db6745e8687fc2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.24 This release

20 files

2.22

20 files

2.21

20 files

2.20

20 files

2.19

15 files

2.18

9 files

2.17

9 files

2.16

9 files

2.15.1

9 files

2.13

9 files

2.12

9 files

2.11.1

9 files

2.11

9 files

2.10

9 files

2.9.1

9 files

2.8.1

9 files

2.7.2

14 files

2.6

9 files

2.5

9 files

2.4

13 files

2.3

12 files

1.78

12 files

1.75

12 files

1.70

16 files

1.68

7 files

1.64.1

1 file

1.64

6 files

1.57

7 files

1.54

7 files

1.48.1

7 files

1.45

7 files

1.44

4 files

1.42

1 file

1.41

1 file

1.38

1 file

1.36

1 file

1.34

1 file

1.33

1 file

1.31

1 file

1.27

1 file

1.23

1 file

1.22

1 file

1.20

1 file

1.19

1 file

1.17

1 file

1.16.1

1 file

1.15

1 file

1.11.1

1 file

1.10

1 file

1.8

1 file

1.6

1 file

1.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page