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.2.tar.gz
.
File metadata
- Download URL: metabaserestclient-0.0.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6465635e3382de6bd9231249fec7a3024c3673c48c822afd20235d774e953ae |
|
MD5 | 362f60b39198e60be74409cd4ad90282 |
|
BLAKE2b-256 | 073026b7ed29724f48e7cc62063f6b099cf476c53f95df0442211bd4861cac61 |
File details
Details for the file MetabaseRestClient-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: MetabaseRestClient-0.0.2-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 | 064839b9e179399b99dd774f2465e0ad1b5c595393cf020fe6c9d53ebcdb90bf |
|
MD5 | 97f43b659002aa10ffc3119b82730a86 |
|
BLAKE2b-256 | c8509ca97e1ede190cea4a7fd410387fd48bdea98a29f66737eeadce0d344b43 |