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.6-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9de7703c92f1712ca44f5aa4ea696289eb54c63be459fd94f0200fe765a35994 |
|
MD5 | 00e4bd905b917c40c5b3a6e47e5b66ae |
|
BLAKE2b-256 | ae40efa4138a000fc892be26b9c1a3ed5dd59b99b7ed641ca5efafd36acc82d9 |