A production-ready metabase client to spare you from handling HTTP requests directly.
$ pip install metabase_client
You can provide username and password to authenticate...
from metabase_client import MetabaseClient
client = MetabaseClient("http://my-metabase-service.com", username="user", password="pass")
client.auth()
... or just provide an already-authenticated token.
from metabase_client import MetabaseClient
client = MetabaseClient("http://my-metabase-service.com", token="mytoken1q2w3e4r")
Obs: Since metabase limits the number of logins made through its API, using the second approach enables you to cache the token and avoid many logins.
Any contributions are welcome. Fork this project and follow the steps below:
- Create a virtual env.
- Implement the feature along with the automated tests.
- Apply makefile commands (
make [test|flake|black]
) - Open a Pull Request.
Please, open an issue at the Github Issues page.