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://contribs-api.materialsproject.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
Built Distribution
Close
Hashes for mpcontribs_client-3.7.3-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 428cfad936704952805e6b12c2adc386ff17dbfff81a56c3e9f47a44c4ea5242 |
|
MD5 | a2997a474a711b8ca7978727ec95b89f |
|
BLAKE2b-256 | ad830d96128b3af3ac3e6d9a76152d06dd0385c9f25640ba7124e95e3ab20763 |