Skip to content

emanuel-schmid/envipath-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

envipath-api

Installation

pip install envipath-api

Example

Get all SMIRKS of a particular Biodegradation Rule

from envirest import EnviPathClient
client = EnviPathClient('envipath.org')

# find package by name
EAWAGBBD = client.findpackage('EAWAG-BBD')

# find rule by name
bbd_rules = client.get(f'{EAWAGBBD}/rule')['rule']
BT37 = [rule['id'] for rule in bbd_rules if rule['name'] == 'bt0037'][0]

# collect SMIRKS from simple rules
simple_rules = client.get(BT37)['simpleRules']
smirks = [client.get(rule['id'])['smirks'] for rule in simple_rules]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages