Skip to main content

A tool to compare data from different sources.

Project description

Build Status Coverage status

Features

  • Compare databases

Development Environment Setup

  • For live installation execute pip install –editable core.

Build wheel executable

  • Execute python -m build under root dierctory.

Install wheel executable file

  • Execute pip install <wheel-file.whl>

Connection Profiles

Connection profiles must be setup in profiles.yml file and it must be placed under $HOME/.tulona dierctory. This is how a sample profiles.yml looks like:

integration_project: # project_name
  profiles:
    pgdb:
      type: postgres
      host: localhost
      port: 5432
      database: postgres
      username: postgres
      password: postgres
    mydb:
      type: mysql
      host: localhost
      port: 3306
      database: db
      username: user
      password: password
    snowflake:
      type: snowflake
      account: snowflake_account
      warehouse: dev_x_small
      role: dev_role
      database: dev_stage
      schema: user_schema
      user: dev_user
      private_key: 'rsa_key.p8'
      private_key_passphrase: 444444
    mssql:
      type: mssql
      connection_string: 'DRIVER={ODBC Driver 18 for SQL Server};SERVER=dagger;DATABASE=test;UID=user;PWD=password'

Project Config File

Project config must be created in tulona-project.yml file and this file can be placed anywhere. The output folder will be create in the same dierctory where tulona-project.yml file is present. This is how a tulona-project.yml file looks like:

version: '2.0'
name: integration_project
config-version: 1

outdir: output # the folder comparison result is written into

# This is just the list of data sources, doesn't mean tulona will run tasks for all of them.
# Datasources need to be picked in the CLI command to run tasks against.
datasources:
  postgres_postgres_public_employee:
    connection_profile: pgdb
    database: postgres
    schema: public
    table: employee
    primary_key: employee_id
    exclude_columns:
      - name
    compare_column: Employee_ID
  mysql_db_db_employee:
    connection_profile: mydb
    database: db
    schema: db
    table: employee
    primary_key: employee_id
    exclude_columns:
      - phone_number
    compare_column: Employee_ID

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

tulona-0.1.1.tar.gz (19.9 kB view hashes)

Uploaded Source

Built Distribution

tulona-0.1.1-py3-none-any.whl (26.3 kB view hashes)

Uploaded Python 3

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