Skip to main content

client library for MPContribs API

Project description

PyPI Libraries.io dependency status for latest release

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.3.6.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

mpcontribs_client-3.3.6-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file mpcontribs-client-3.3.6.tar.gz.

File metadata

  • Download URL: mpcontribs-client-3.3.6.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6

File hashes

Hashes for mpcontribs-client-3.3.6.tar.gz
Algorithm Hash digest
SHA256 10127986e2718b38a12469570d0a00638d2b35dc338d51e629e425c66b8930dd
MD5 64ca16ee46c5656ba5e60b7a8beceeae
BLAKE2b-256 07cfb7334d7507b3856d28b4c42eb1caa5f47fd8012f17d310245b85cd9a47b8

See more details on using hashes here.

Provenance

File details

Details for the file mpcontribs_client-3.3.6-py3-none-any.whl.

File metadata

  • Download URL: mpcontribs_client-3.3.6-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6

File hashes

Hashes for mpcontribs_client-3.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3f5d4199664bfb30cec3128dc5a2e110436d0a5ef1a9423b1c1295432a10f462
MD5 704eda4cef7d629fae9df719fc3412a7
BLAKE2b-256 7e95ee43ecfa793c2981533dccc65149d0ce77f995e2d0c2aad9281666268a96

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page