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')

Troubleshooting

twisted.web._newclient.ResponseNeverReceived:
[<twisted.python.failure.Failure OpenSSL.SSL.Error:
[('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')]>]

Set the environment variable SSL_CERT_FILE to $(python -m certifi).

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mpcontribs_client-3.8.7-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mpcontribs-client-3.8.7.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.9.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for mpcontribs-client-3.8.7.tar.gz
Algorithm Hash digest
SHA256 b5a2982a2a3b71c5688ce78bcf40b1a893299d4983c5632611379ad86e5e05d6
MD5 67e43acd68cf1f6e6c3d9e925f451a7f
BLAKE2b-256 2f409b60a28f6b1cfac26747c1a624bc1e1f8e70ab85e5e872ea2944889b56e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mpcontribs_client-3.8.7-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.9.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for mpcontribs_client-3.8.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9a8b2456239d208e10fa8e6c77fe06f9be13bf26df67702c6207a5055ddb5528
MD5 2e9af4961ed5031df5b22536fd0334b7
BLAKE2b-256 30e4d4b17db3d0ac72f29d78579b0d1690089cd3bdb039dbe3f1d015987dc3ce

See more details on using hashes here.

Supported by

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