Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ColinMaudry/petabase
Command line tool to mass manage Metatabase questions and dashboards
https://github.com/ColinMaudry/petabase
Last synced: 3 months ago
JSON representation
Command line tool to mass manage Metatabase questions and dashboards
- Host: GitHub
- URL: https://github.com/ColinMaudry/petabase
- Owner: ColinMaudry
- License: apache-2.0
- Created: 2021-10-20T13:43:46.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-16T08:59:39.000Z (about 3 years ago)
- Last Synced: 2024-07-25T23:02:31.676Z (5 months ago)
- Language: Python
- Size: 31.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# petabase
Command line tool to mass manage Metatabase questions and dashboards.
## Setup
```bash
pipenv install
```## Use
Activate the Python environment
```text
pipenv shell
```Clone a collection of cards (simple copy):
```bash
python3 petabase.py --clone [id of source collection] [id of parent collection of the clone]
```Clone a collection of cards and dashboards, and update the name of the cards according to the name of the new collection:
Initial situation:
```text
Production (collection id = 1)
-> BSDD (collection id = 12)
-> Card 1 (BSDD)
-> Card 2 (BSDD)
``````bash
python3 petabase.py --clone 12 1 --bsdType DASRI
```New situation:
```text
Production (collection id = 1)
-> DASRI (collection id = 13)
-> Card 1 (DASRI)
-> Card 2 (DASRI)
-> BSDD (collection id = 12)
-> Card 1 (BSDD)
-> Card 2 (BSDD)
```Set the name of the cards (not dashboards) of a collection according to the name of the collection:
Initial situation:
```text
Production (collection id = 1)
-> BSDD (collection id = 12)
-> Card 1
-> Card 2 (ABCD)
``````bash
python3 petabase.py --setNames 12
```New situation:
```text
Production (collection id = 1)
-> BSDD (collection id = 12)
-> Card 1 (BSDD)
-> Card 2 (BSDD)
```