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.5.tar.gz
(10.0 kB
view hashes)
Built Distribution
Close
Hashes for mpcontribs_client-3.6.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6ebd80d92da895f131285deaea5b390a6f0b5f7f10fd75146083783a8ac2d84 |
|
MD5 | 474af11b1c8bc0d99d42737f1de0490e |
|
BLAKE2b-256 | 4933b531849a52fff85c8dfaf917a80815f5eafa3f098a2e288919236133673f |