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

Uploaded Source

Built Distribution

mpcontribs_client-3.7.3-py2-none-any.whl (9.5 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: mpcontribs-client-3.7.3.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 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.3.tar.gz
Algorithm Hash digest
SHA256 97c7a792243d238626cf3cc4c65fe22d99b1993f373c2ac48ec26d7f2b2fdf21
MD5 2e12d1ba9fb97fa8cea2e5e63d688b18
BLAKE2b-256 1176557bbb5399fecec6b756dd6d75b7b72a1d12f1d0779be350555e818a1c85

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: mpcontribs_client-3.7.3-py2-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 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.3-py2-none-any.whl
Algorithm Hash digest
SHA256 428cfad936704952805e6b12c2adc386ff17dbfff81a56c3e9f47a44c4ea5242
MD5 a2997a474a711b8ca7978727ec95b89f
BLAKE2b-256 ad830d96128b3af3ac3e6d9a76152d06dd0385c9f25640ba7124e95e3ab20763

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