atb_api
This API is a re-write of the UQ version in Python 2.7
This is a work in progress. It is for Lily's personal use, so not all features of the old API are supported yet. Please open an issue on the Issue tracker if you notice a bug or need a feature.
Example
You will need a valid ATB token to use this API. Please email the ATB administrators to request a token.
Create an instance by passing an API token, or the filename of one:
api = ATBApi(api_token="MY_TOKEN")
Submit a molecule by passing in a PDB string or filename:
molid = api.submit_molecule(my_pdb_file.pdb, net_charge=0, molecule_type="heteromolecule")
assert isinstance(molid, int)
Get a molecule with a molecule ID:
molecule = api.get_molecule(molid=molid)
print(molecule.atoms)
print(molecule.bonds[0].code)
Download a molecule file with a molecule ID:
pdb_as_str = api.download_molecule(molid=903922, format="pdb",
resolution="all_atom", optimized=True)
Copyright
Copyright (c) 2022, Lily Wang
Acknowledgements
Many thanks to the original ATB API from Bertrand Caron.
Project based on the Computational Molecular Science Python Cookiecutter version 1.6.
Metadata
Release files for atb-api 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| atb_api-0.0.1.tar.gz | 132.9 kB | Without provenance | Details for atb_api-0.0.1.tar.gz |
Release files / atb_api-0.0.1.tar.gz
| Download URL | atb_api-0.0.1.tar.gz |
|---|---|
| Size | 132.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a178f016bfa62e9c28abb0dd77af535ded6bffc6189e90de03e45d442b115268
|
|
BLAKE2b-256 checksum How to use checksums |
2f292a6331cbcc902f2834fb98a3c728b0504aec0ae37326c7df207bdd7522dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7
|
Security for atb-api 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.