This is an asynchronous python client for metablock API.
This is a simple python package you can install via pip:
pip install metablock 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")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