datacontract CLI for Brevo's data team
Project description
brevo-dc-cli
brevo-dc-cli
is a command-line interface (CLI) tool for managing data contracts in Brevo. This tool provides commands to generate, compare, publish, and perform all operations related to data contracts.
Installation
To install brevo-dc-cli
, use pip:
pip install brevo-dc-cli
Usage
The dc-cli tool provides several commands for working with data contracts. Below is a list of the available commands and their descriptions.
Generate Data Contract
brevo-dc-cli datacontract -m generate [project_id] [dataset_id] [table_id] [data_column] [date_column]
Diff Data Contracts
Compare data contracts to identify differences.
brevo-dc-cli datacontract -m diff [table_id]
Publish Data Contract
brevo-dc-cli datacontract -m publish [gcp_table_id]
All Operations
brevo-dc-cli datacontract -m all [project_id] [dataset_id] [table_id] [data_column] [date_column]
Command Options
-m: Specifies the module to use, in this case, datacontract.
Build and deploy the pypi
pip install twine pip install wheel
python setup.py sdist bdist_wheel twine upload --repository-url https://upload.pypi.org/legacy/ --skip-existing --verbose dist/* --password <your_api_token>
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 brevo_dc_cli-0.1.1.tar.gz
.
File metadata
- Download URL: brevo_dc_cli-0.1.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c73183b5f7dcc09eef01392ed081d25cc0ce85aa40ce1d64d176948d346430c |
|
MD5 | 0b701b9449199d6d43592ed67551ceba |
|
BLAKE2b-256 | 0ebd4ff99a1fc13cb27c25c8391c45fc3767e51c0c98f430b972b718917ed4fb |
File details
Details for the file brevo_dc_cli-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: brevo_dc_cli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74567dde70ff17a2d81a47903068108327c988db957948d4555112a572397d77 |
|
MD5 | 8a8047b8f964afbf0468266fcc77605a |
|
BLAKE2b-256 | a0e3152c04e7f768a4f81ddb6a99bc449a45ecd84e3c6e2ba56c065fca5171d2 |