Skip to main content

atb_api

GitHub Actions Build Status codecov

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)

Source distribution for atb-api 0.0.1
File Size Uploaded
atb_api-0.0.1.tar.gz 132.9 kB Details

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

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page