Metabase Api Client Python package
Project description
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
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
Built Distribution
File details
Details for the file metabaserestclient-0.0.4.tar.gz
.
File metadata
- Download URL: metabaserestclient-0.0.4.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56061bc2a3b11329b48af3495d7b814700650027318c4a64ed11c5c1072f2e3c |
|
MD5 | 12ae061289e23c362f1eeceb3b54dd95 |
|
BLAKE2b-256 | ff6109cbc3ff77deed400aa78a60bd8968d445290038d46545d445c22e1d95ae |
File details
Details for the file MetabaseRestClient-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: MetabaseRestClient-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1a157c3a79a3b8bc6a2db1db89090de6e436830ccb5085c741c4ee963aa5199 |
|
MD5 | 6c53c4e89b8f578ee3590916107f7d4b |
|
BLAKE2b-256 | c0855fdd35970b8c49043ce89f8412da71db337cd87bca5d9a9441be59b6bd17 |