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

Uploaded Source

Built Distribution

mpcontribs_client-3.6.2-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mpcontribs-client-3.6.2.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for mpcontribs-client-3.6.2.tar.gz
Algorithm Hash digest
SHA256 ffc950882c0bc8b6f651ea9338e99057106692bd4bfa907af9edf946416b8640
MD5 11d336b5ce1dd1acea2054e2f48bd0cd
BLAKE2b-256 d6d0af2551c7764a5dbe996e7361d0f1e481fe2f628c9b14c0d84173998cebbd

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: mpcontribs_client-3.6.2-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for mpcontribs_client-3.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b2b42eacdd1ea987d2d977efd0ead3209a80ae96d1e4c75c6a42f7e864fb3d04
MD5 48e63b3920c488611c1e5e7f219dbbde
BLAKE2b-256 fca591bd4567f789c0091d5aff5aa5e4d7112bfbf83521d0aeb747d19b1bd42a

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