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
mpcontribs-client-3.6.4.tar.gz
(10.0 kB
view details)
Built Distribution
File details
Details for the file mpcontribs-client-3.6.4.tar.gz
.
File metadata
- Download URL: mpcontribs-client-3.6.4.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e13f842d8dac213e0081ed4df860feb63c0d2501598e4f22b723d9eeb5e2761 |
|
MD5 | 8cd37baf38d9ea736f1950c07294c9f4 |
|
BLAKE2b-256 | e838867b51935ad7996c29306ee8989cf1a8c2d68b42897ba21d2406fe03e937 |
Provenance
File details
Details for the file mpcontribs_client-3.6.4-py3-none-any.whl
.
File metadata
- Download URL: mpcontribs_client-3.6.4-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32cff0bbbddac4ff2f9dc389895aea78992045b587a33a47346562dbd6dca5c3 |
|
MD5 | e30d9e9bb64c2f47e2d947413429e14b |
|
BLAKE2b-256 | 1f6a5ec0edf8bfb5be6b019802a3b755f85e970bc8bed7a325bf15d29006ce75 |