Skip to main content

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

brevo-dc-cli-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

brevo_dc_cli-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file brevo-dc-cli-0.1.0.tar.gz.

File metadata

  • Download URL: brevo-dc-cli-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for brevo-dc-cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5779b53aa5944fbbfaf35437d06323fc5a5dd7a25cb7a605225258f3e676e470
MD5 9b055ca02a086697ca66659a741a9934
BLAKE2b-256 3185302ea1713e446a96e4807fd78932187c919dcd639293962eb82224512907

See more details on using hashes here.

File details

Details for the file brevo_dc_cli-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for brevo_dc_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 64fe4c64e1179009eb35f9f63f334503d58c71bc1c061e78b93288fb1f3af95d
MD5 a0d553d47e657a35a4d4da8b3d941490
BLAKE2b-256 72b8ed4d0596d85910276387eae5140fcef0b1ad61e607e1ddf0fa2161cbc56a

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