client library for MPContribs API
Project description
Small, dynamic python client library to connect to MPContribs APIs based on Yelp's bravado.
from mpcontribs.client import Client
client = Client()
dir(client) # show available resources
By default, the client connects to https://api.mpcontribs.org and uses the environment variable
MPCONTRIBS_API_KEY
to set the API key. The key can alternatively be set explicitly via the
apikey
argument to the constructor. The host
argument or the MPCONTRIBS_API_HOST
environment variable can be set to connect to other MPContribs-style APIs:
client = Client(host='ml-api.materialsproject.org')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mpcontribs-client-3.6.6.tar.gz
(10.0 kB
view hashes)
Built Distribution
Close
Hashes for mpcontribs_client-3.6.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2681a71aedb7916cc4f9eabf7da3af463e03e3680a22bf59d051c9fb6e64ec66 |
|
MD5 | 4f8a9c4fdb6bc7b74b43a9cd792ac0af |
|
BLAKE2b-256 | 625125492b31788b669641dd0f76a11cd444e28979c550469b649c7ba2e29703 |