Skip to main content

chemicaltagger for python

Project description

ChemicalTaggerPy

这是一个调用中科大校内网ChemicalTagger REST-API的包

from ctpy import ChemicalTagger
sent = 'To a stirred solution of 4-hydroxypiperidine (0.97 g, 9.60 mmol) in anhydrous dimethylformamide (20 mL) at 0°C was added 1-(bromomethyl)-4-methoxybenzene (1.93 g, 9.60 mmol) and triethylamine (2.16 g, 21.4 mmol).'
mols = ChemicalTagger.sentence_to_mols(sent)

# mols: [{'name': '4-hydroxypiperidine', 'smiles': 'OC1CCNCC1'}, 
#        {'name': 'dimethylformamide', 'smiles': 'CN(C=O)C'},
#        ...]

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

ctpy-0.0.1.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file ctpy-0.0.1.tar.gz.

File metadata

  • Download URL: ctpy-0.0.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.13

File hashes

Hashes for ctpy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b6dc48877c857074128d8b619c30ae50829bc886595cbc5a576608e859bf9609
MD5 5e61020aef42847c911fa732c343c381
BLAKE2b-256 70c0f296efcc99481e77399abc2ed74e083c235ef20bc77a6bf6969b366d1d56

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page