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 hashes)

Uploaded Source

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