Skip to main content

Sifflet CLI

Project description

Sifflet CLI

This package provides a command line interface (CLI) to Sifflet application.

Getting Started

Installation

Sifflet CLI is compatible with Python version 3.7 or greater

pip install sifflet

sifflet --version

Configuration

Before using the Sifflet CLI, you need to set your tenant and credentials. You can do it in several ways:

  • Sifflet command line sifflet configure (which will persists configuration in a file)
  • Or with environment variables

You will need in both cases the following information:

  • <access_token>: you can find more information on how to generate it here
  • For SaaS version: <tenant_name>: Name of your tenant. Sifflet UI URL is https://<tenant_name>.siffletdata.com. Sifflet Backend URL is https://<tenant_name>api.siffletdata.com. For instance, if you access to Sifflet UI with https://mycompany.siffletdata.com, then your tenant would be mycompany.
  • For self-hosted deployment: <backend_url>: Full URL to the Sifflet backend on your deployment including for instance: https://sifflet-backend.mycompany.com

Sifflet configure

You can input the tenant and credentials directly with the sifflet configure command.

For SaaS version:

> sifflet configure --tenant <tenant_name>
Your API access token [None]: <access_token>

or, for self-hosted deployment:

> sifflet configure --backend-url <backend_url>
Your API access token [None]: <access_token>

The use of sifflet configure will persist the configuration in a file located at ~/.sifflet/config.ini (or in %UserProfile%\.sifflet/config.ini on Windows).

Environment variables

To use environment variables, you can do the following:

For SaaS version:

> export SIFFLET_TENANT=<tenant_name>
> export SIFFLET_TOKEN=<access_token>

or, for self-hosted deployment:

> export SIFFLET_BACKEND_URL=<backend_url>
> export SIFFLET_TOKEN=<access_token>

You can check that setup is done correctly with sifflet status.

> sifflet status

Sifflet version = x.x.x
Tenant = my_tenant
Tenant is up and reachable
Token expiration date = 2024-01-01 00:00:00
Token is valid with scope API
Status = OK

If you encounter any error at this step, please check your tenant and token configurations.

Documentation

The documentation with the available commands can be found here.

Help

The --help option is available for any command, for instance sifflet --help or sifflet rules list --help.

Examples

Trigger a specific rule

  • First, find your rule id with sifflet rules list. You can filter with --name to narrow your search.
# Display rules
sifflet rules list
sifflet rules list --name <search_criteria>
  • Then you can trigger one of several rules with sifflet rules run
# Run one or many rules
sifflet rules run --id <rule_id>
sifflet rules run --id <rule_id_1> --id <rule_id_2> --id <rule_id_3>
  • Finally, retrieve the run status of a rule with sifflet rules run_history
# Display rule runs history for a given rule id
sifflet rules run_history --id <rule_id>

Send dbt artifacts

If you have already added the datasource to Sifflet, you can then send the dbt artifacts for syncing the data.

# send the dbt artifacts
sifflet ingest dbt --project-name <project_name> --target <target> --input-folder <dbt_artifacts_directory>

Contact

For any queries, you can reach us at contact@siffletdata.com

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

sifflet-0.3.18.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sifflet-0.3.18-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file sifflet-0.3.18.tar.gz.

File metadata

  • Download URL: sifflet-0.3.18.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for sifflet-0.3.18.tar.gz
Algorithm Hash digest
SHA256 2f5117573776964a71625f9ebaffb2151ae0cb6af80124cc36fc4516a35a05d5
MD5 61bab3c4bffbfcc8146878e6d368d12b
BLAKE2b-256 a7349367a5ff0429018b0c3f8af8c2133cd598be7c3ebb7257d0d1a88b9283ca

See more details on using hashes here.

File details

Details for the file sifflet-0.3.18-py3-none-any.whl.

File metadata

  • Download URL: sifflet-0.3.18-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for sifflet-0.3.18-py3-none-any.whl
Algorithm Hash digest
SHA256 c0149a9b9d9cb74b5bf7d43fe344c3487ecc8e8dae94706ec9b6b16909129304
MD5 a1ff60302a34893d64a422c04f6420dc
BLAKE2b-256 8dccfb8188d544970f1c5916a9ae5b963f911fa6bb509c12ffb231c5292a0d97

See more details on using hashes here.

Supported by

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