This package provides access to Mat3ra.com RESTful API.
Installation
We recommend creating a virtual environment before installing:
virtualenv my-virtualenv
source my-virtualenv/bin/activate
Install using pip:
- from PyPI:
pip install mat3ra-api-client
- from source code in development mode:
git clone git@github.com:Exabyte-io/api-client.git
cd api-client
pip install -e .
Usage
from mat3ra.api_client import APIClient
# Authenticate with OIDC token
client = APIClient.authenticate()
# Access endpoints
materials = client.materials.list()
Examples
api-examples repository contains examples for performing most-common tasks in the Mat3ra.com platform through its RESTful API in Jupyter Notebook format.
Testing
The package uses pytest for testing. Tests are organized into unit and integration tests.
Running Tests
Unit Tests (No environment setup required)
Run all unit tests:
pytest tests/py/unit
Integration Tests (Requires API credentials)
Integration tests require the following environment variables to be set:
TEST_HOST- API host (e.g.,platform.mat3ra.com)TEST_PORT- API port (e.g.,443)TEST_ACCOUNT_ID- Your account IDTEST_AUTH_TOKEN- Your authentication tokenTEST_SECURE- Use HTTPS (optional, default:False)TEST_VERSION- API version (optional, default:2018-10-01)
To run integration tests:
export TEST_HOST=platform.mat3ra.com
export TEST_PORT=443
export TEST_ACCOUNT_ID=your-account-id
export TEST_AUTH_TOKEN=your-auth-token
export TEST_SECURE=true
pytest tests/py/integration
Run All Tests
pytest tests/py
Run Tests with Coverage
pytest tests/py/unit --cov=mat3ra.api_client --cov-report=term --cov-report=html
Note: Integration tests will be automatically skipped if required environment variables are not set.
© 2020 Exabyte Inc.
Metadata
Release files for mat3ra-api-client 2026.11.4.post0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mat3ra_api_client-2026.11.4.post0.tar.gz | 29.4 kB | Without provenance | Details for mat3ra_api_client-2026.11.4.post0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mat3ra_api_client-2026.11.4.post0-py3-none-any.whl | Python 3 | none | any | Details for mat3ra_api_client-2026.11.4.post0-py3-none-any.whl |
Total release size: 57.4 kB
Release files / mat3ra_api_client-2026.11.4.post0.tar.gz
| Download URL | mat3ra_api_client-2026.11.4.post0.tar.gz |
|---|---|
| Size | 29.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f770bfccb638241227458047d594f9448a91f303fd56cfc13b9588a1207db4f1
|
|
BLAKE2b-256 checksum How to use checksums |
3b5cb8c03eb22554498fc60faebca456d129c6ea91f1e4250197ef78051e3ded
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/9.0.1 pkginfo/1.13.3 requests/2.34.2 requests-toolbelt/1.0.0 tqdm/4.70.1 CPython/3.10.13
|
Release files / mat3ra_api_client-2026.11.4.post0-py3-none-any.whl
| Download URL | mat3ra_api_client-2026.11.4.post0-py3-none-any.whl |
|---|---|
| Size | 28.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d31e252975b7a5439914171ad4cde9450b5ec16c60aa1766c38091dffde9ab7
|
|
BLAKE2b-256 checksum How to use checksums |
c2a72b545951c7f99f9c8edc3251c67f563dea04bc9679ce16dcd9720a6579ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/9.0.1 pkginfo/1.13.3 requests/2.34.2 requests-toolbelt/1.0.0 tqdm/4.70.1 CPython/3.10.13
|
Security for mat3ra-api-client 2026.11.4.post0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.