MetabaseRestClient


NameMetabaseRestClient JSON
Version 0.0.3 PyPI version JSON
download
home_pagehttps://github.com/blueromans/Metabase-Python-Client.git
SummaryMetabase Api Client Python package
upload_time2024-04-17 19:11:13
maintainerNone
docs_urlNone
authorYaşar Özyurt
requires_python>=3.6
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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 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](https://choosealicense.com/licenses/mit/)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/blueromans/Metabase-Python-Client.git",
    "name": "MetabaseRestClient",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Ya\u015far \u00d6zyurt",
    "author_email": "blueromans@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/8d/37/df2302115e41fb3ac37881f715075588a1137c99570b1673ac5ebe798555/metabaserestclient-0.0.3.tar.gz",
    "platform": null,
    "description": "# Metabase Api Client Python PyPackage\n\nMetabase Api Client client is a Python library to access services quickly.\n\n## Installation\n\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar.\n\n```bash\npip install MetabaseRestClient\n```\n\n## Environment Variables\n\n```bash\nMETABASE_API_URL: 'API URL'\nMETABASE_API_KEY: 'METABASE API KEY'\n```\n\n### Note\n\nIf you don't want to set this variables from global environment you can pass them to class.\nYou can see usage below\n\n## Usage\n\n```python\nfrom metabase import MetabaseService\n\nkwargs = {\n    # you can also set metabase api url and api-key from environment.\n    'api-url': 'api-url',  # Default value : None\n    'api-key': 'api-key',  # Default value : None\n}\n# Initialize client with\nmetabase_service = MetabaseService()\n# or metabase_service = MetabaseService(**kwargs)\n\n# Dashboards\ndashboards = metabase_service.get_dashboard()\n# Dashboard\ndashboard = metabase_service.get_dashboard(dashboard_id)\n# Collections\ncollections = metabase_service.get_collections()\n# Collection\ncollection = metabase_service.get_collection(collection_id)\n# Collection Items\ncollection_items = metabase_service.get_collection_items(collection_id)\n# Cards\ncards = metabase_service.get_cards()\n```\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Metabase Api Client Python package",
    "version": "0.0.3",
    "project_urls": {
        "Bug Tracker": "https://github.com/blueromans/Metabase-Python-Client.git/issues",
        "Homepage": "https://github.com/blueromans/Metabase-Python-Client.git"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4fb760d7472f1de312cf67680ca346fa3b8deab4c8dad568ccc1551e04c22aef",
                "md5": "3c528522f20e4448df3cbc23a954cde5",
                "sha256": "7da52bab601c32b462be4330722c5ce8294297e9594a70d17ec64c89d2644442"
            },
            "downloads": -1,
            "filename": "MetabaseRestClient-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3c528522f20e4448df3cbc23a954cde5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 5176,
            "upload_time": "2024-04-17T19:11:10",
            "upload_time_iso_8601": "2024-04-17T19:11:10.051334Z",
            "url": "https://files.pythonhosted.org/packages/4f/b7/60d7472f1de312cf67680ca346fa3b8deab4c8dad568ccc1551e04c22aef/MetabaseRestClient-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8d37df2302115e41fb3ac37881f715075588a1137c99570b1673ac5ebe798555",
                "md5": "cfd07c7a59d6153a6d4120423a5f5ada",
                "sha256": "1705763a8f6be64a47149f24e44b1413749ad96f5d1420e5c7af27d837382ac3"
            },
            "downloads": -1,
            "filename": "metabaserestclient-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "cfd07c7a59d6153a6d4120423a5f5ada",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3916,
            "upload_time": "2024-04-17T19:11:13",
            "upload_time_iso_8601": "2024-04-17T19:11:13.015385Z",
            "url": "https://files.pythonhosted.org/packages/8d/37/df2302115e41fb3ac37881f715075588a1137c99570b1673ac5ebe798555/metabaserestclient-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-17 19:11:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "blueromans",
    "github_project": "Metabase-Python-Client",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "metabaserestclient"
}
        
Elapsed time: 0.24626s