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
mpcontribs-client-3.8.3.tar.gz
(10.6 kB
view hashes)
Built Distribution
Close
Hashes for mpcontribs_client-3.8.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3003c52447dd35319c9156d3e74d081fa4a44ef754d4c1911335b63fa238be41 |
|
MD5 | bfe4746561bf79bdc7613c589b7cd3b5 |
|
BLAKE2b-256 | a9ba67ea6b76cece84254ea7a9999833967d15516845d24c30060b8b3a1e754c |