Metabase Api Client Python PyPackage
Metabase Api Client client is a Python library to access services quickly.
Installation
Use the package manager pip to install foobar.
pip install MetabaseRestClient
Environment Variables
METABASE_API_URL: 'API URL'
METABASE_API_KEY: 'METABASE API KEY'
Note
If you don't want to set this variables from global environment you can pass them to class. You can see usage below
Usage
from metabase import MetabaseService
kwargs = {
# you can also set metabase api url and api-key from environment.
'api-url': 'api-url', # Default value : None
'api-key': 'api-key', # Default value : None
}
# Initialize client with
metabase_service = MetabaseService()
# or metabase_service = MetabaseService(**kwargs)
# Dashboards
dashboards = metabase_service.get_dashboard()
# Dashboard
dashboard = metabase_service.get_dashboard(dashboard_id)
# Collections
collections = metabase_service.get_collections()
# Collection
collection = metabase_service.get_collection(collection_id)
# Collection Items
collection_items = metabase_service.get_collection_items(collection_id)
# Cards
cards = metabase_service.get_cards()
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
Release files for MetabaseRestClient 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| metabaserestclient-0.0.5.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| MetabaseRestClient-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.2 kB
Release files / metabaserestclient-0.0.5.tar.gz
| Download URL | metabaserestclient-0.0.5.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1778648a2f7782a5252632c7fdde9a8eb3514b26db616aacb8a7aaa2ae309f06
|
|
BLAKE2b-256 checksum How to use checksums |
3089b90c7ca674e5a980bcce96a5eb6603575c621896fc81dca3e1f6ebfd21d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.6
|
Release files / MetabaseRestClient-0.0.5-py3-none-any.whl
| Download URL | MetabaseRestClient-0.0.5-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
05267a1285f9c89021a9e618f0057cf41d00be051a8be68db439187c6cec2463
|
|
BLAKE2b-256 checksum How to use checksums |
89d788df9236a47ea789aa2bded8ce3eac20b13a3629ea9e2ad579cc67010984
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.6
|