Skip to main content

Metablock cloud python client

Project description

A Python Client for Metablock API

PyPI version Python versions Build codecov

This is an asynchronous python client for metablock API.

Installation

This is a simple python package you can install via pip:

pip install metablock

Usage

Create the client

from metablock import Metablock

cli = Metablock()

# get the user associated with the API token
user = await cli.get_user()

For the authentication token, you can use the METABLOCK_API_TOKEN environment variable, alternatively, you can pass it to the client constructor:

cli = Metablock(auth_key="your-token")

Command line

You can also use the client from the command line, to do so, install the package with the cli extra:

pip install metablock[cli]

Then you can use the metablock command:

metablock --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

metablock-1.2.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

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

metablock-1.2.0-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file metablock-1.2.0.tar.gz.

File metadata

  • Download URL: metablock-1.2.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.14.3 Linux/6.14.0-1017-azure

File hashes

Hashes for metablock-1.2.0.tar.gz
Algorithm Hash digest
SHA256 6143c6245db3b63802fd5b8b0ff8455eaee6acecfb12b9e33495c2a352e2a4bc
MD5 9fd2980b3209fa88f5853bf5873ea6e8
BLAKE2b-256 e3891861d981ce6b6b8ca8777c1e70bac474c2c4122a8a755ab056125b866a5e

See more details on using hashes here.

File details

Details for the file metablock-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: metablock-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.14.3 Linux/6.14.0-1017-azure

File hashes

Hashes for metablock-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9a8dbdd41cdf086da20bd5fecae065763a88960991497ce170805a01d48dc20
MD5 54e10946f106ad8a8f5d82f966329fac
BLAKE2b-256 867386d9908e6bf7ec5b68acf85040f83200e44492ad6c1a2d429c5c7ff98ca9

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