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://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.4.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

mpcontribs_client-3.7.4-py2-none-any.whl (9.6 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: mpcontribs-client-3.7.4.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for mpcontribs-client-3.7.4.tar.gz
Algorithm Hash digest
SHA256 36bc2281b76070832bc36be64e9cef5a4c24d9ec99f7462fe2c0f51792aa5012
MD5 6f9766a2e0d4ed901a22aeed385a2451
BLAKE2b-256 c9ed3a8410c478d369891d246ac9a3c2fd615ea75257aab0bb8a7c487063399d

See more details on using hashes here.

Provenance

File details

Details for the file mpcontribs_client-3.7.4-py2-none-any.whl.

File metadata

  • Download URL: mpcontribs_client-3.7.4-py2-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for mpcontribs_client-3.7.4-py2-none-any.whl
Algorithm Hash digest
SHA256 c3b833a386d09caf932b1ee2cdde665f874f08bdaaafcc59b43e4ed523387ad7
MD5 b86d879af756c38477988281cf604f4e
BLAKE2b-256 e48667c177679690350c68704df51de36daddbb153c08f6ddcdd6efbcf7947c6

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