wrapper for rest calls to envipath
Project description
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]
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
envipath-api-0.3.0.tar.gz
(22.2 kB
view hashes)
Built Distribution
Close
Hashes for envipath_api-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c90a0962a8b15e585de04007a22f63bda1bfa2eb273e8be0fae9ac4cfba56ae |
|
MD5 | 3ea9b908eafc763f663651736b58d0cf |
|
BLAKE2b-256 | f095f2fc309b685e2e17aa3a2678c205cc12ae0d57ac3e17a576d51ed1182397 |