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.7.0.tar.gz
(10.0 kB
view hashes)
Built Distribution
Close
Hashes for mpcontribs_client-3.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 767ee228677c5000285488e4df21c58bf87c9af3488cad7a7a66877b766446f7 |
|
MD5 | c5f96268f838e5b5ece434bb29b62856 |
|
BLAKE2b-256 | 1adb3f2a749140c30bdbf3937fb48e6010ba22e5801227b233c0be1100fcd0cc |