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.1.0.tar.gz (8.4 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.1.0-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: metablock-1.1.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.4 Linux/6.11.0-1015-azure

File hashes

Hashes for metablock-1.1.0.tar.gz
Algorithm Hash digest
SHA256 f0af922215502ea8db09a9d1c67f06f87aa0a238733d53df90c42b06da9d92b9
MD5 2e32f533ef3f23ad59d736958472476e
BLAKE2b-256 d2fd5b6137c52acfff162459f6e3c3407f3466ff315ad959a35adfe02f7468c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: metablock-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.4 Linux/6.11.0-1015-azure

File hashes

Hashes for metablock-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3edcb7c4546570d21239dc1e06a781e7264368385ab4bae41dd778b7ffd1c6b2
MD5 47f8dbb625350871914884e6bc4a8781
BLAKE2b-256 b03c86eeea8a4f74ae75a545e4f3edf2ce46020eca708d3d2bd24b0a787cf767

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