https://github.com/quantmind/metablock-py
An asynchronous Python client for Metablock REST API
https://github.com/quantmind/metablock-py
client metablock
Last synced: 25 days ago
JSON representation
An asynchronous Python client for Metablock REST API
- Host: GitHub
- URL: https://github.com/quantmind/metablock-py
- Owner: quantmind
- License: bsd-3-clause
- Created: 2020-08-02T08:42:05.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-06-15T16:37:34.000Z (8 months ago)
- Last Synced: 2025-11-27T14:11:49.105Z (3 months ago)
- Topics: client, metablock
- Language: Python
- Homepage: https://api.metablock.io/v1/docs
- Size: 329 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# A Python Client for Metablock API
[](https://badge.fury.io/py/metablock)
[](https://pypi.org/project/metablock)
[](https://github.com/quantmind/metablock-py/actions?query=workflow%3Abuild)
[](https://codecov.io/gh/quantmind/metablock-py)
This is an asynchronous python client for [metablock API](https://api.metablock.io/v1/docs).
## Installation
This is a simple python package you can install via pip:
```
pip install metablock
```
## Usage
Create the client
```python
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:
```python
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:
```bash
pip install metablock[cli]
```
Then you can use the `metablock` command:
```bash
metablock --help
```