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
Built Distribution
Close
Hashes for mpcontribs_client-3.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd538fbd2f52481ff58e24158d4f8f0b611ea85c3cf3bdc8520131ce48c5a9b4 |
|
MD5 | 3b85f63c4a1f8a0d04025d40ecd5666a |
|
BLAKE2b-256 | 79b85e3aa1db20a6efb84fe2cecf97d79b30eae300102caaebef4267ed2e95ea |