Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blueromans/metabase-python-client
Metabase client python package
https://github.com/blueromans/metabase-python-client
analytics camera metabase pypi pypi-package python python3 vision
Last synced: about 2 months ago
JSON representation
Metabase client python package
- Host: GitHub
- URL: https://github.com/blueromans/metabase-python-client
- Owner: blueromans
- License: mit
- Created: 2024-04-17T14:35:32.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-17T19:11:31.000Z (9 months ago)
- Last Synced: 2024-09-18T02:21:25.491Z (4 months ago)
- Topics: analytics, camera, metabase, pypi, pypi-package, python, python3, vision
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Metabase Api Client Python PyPackage
Metabase Api Client client is a Python library to access services quickly.
## Installation
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar.
```bash
pip install MetabaseRestClient
```## Environment Variables
```bash
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
```python
from metabase import MetabaseServicekwargs = {
# 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
[MIT](https://choosealicense.com/licenses/mit/)