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.4.tar.gz
(10.6 kB
view hashes)
Built Distribution
Close
Hashes for mpcontribs_client-3.8.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd4c80451b22a4446a39c1c601181e0837239afa7515b3a1f078d66136e7f077 |
|
MD5 | a1acf85036db95eb1016fd4c1a2d4b29 |
|
BLAKE2b-256 | c4112c8ceeff77ad04b0e5ecd21b2d6f07fe089768a9c116a1ee035d105d8ffb |