Skip to main content

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

MIT

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

metabaserestclient-0.0.5.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

MetabaseRestClient-0.0.5-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file metabaserestclient-0.0.5.tar.gz.

File metadata

  • Download URL: metabaserestclient-0.0.5.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

Hashes for metabaserestclient-0.0.5.tar.gz
Algorithm Hash digest
SHA256 1778648a2f7782a5252632c7fdde9a8eb3514b26db616aacb8a7aaa2ae309f06
MD5 919ae3c28ecde8f1e507fc1a568d9bc3
BLAKE2b-256 3089b90c7ca674e5a980bcce96a5eb6603575c621896fc81dca3e1f6ebfd21d4

See more details on using hashes here.

File details

Details for the file MetabaseRestClient-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for MetabaseRestClient-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 05267a1285f9c89021a9e618f0057cf41d00be051a8be68db439187c6cec2463
MD5 fb0cf3df42f0df73dfd62d2bd1423521
BLAKE2b-256 89d788df9236a47ea789aa2bded8ce3eac20b13a3629ea9e2ad579cc67010984

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page