Skip to main content

No project description provided

Project description

Candore

Introduction

Candore is the command line interface data integrity tool. The tool is build to verify the change made in a product has any impact on data in product.

The change could be:

  • Upgrade of the product to new version
  • Some Patch applied to the product
  • Developers made code changes locally / upstream etc
  • Or any kind of change that we could think of

Verifications that candore supports is:

  • Data loss - The major impact that candore cares
  • Data Altered - The change in data entity
  • Relation between the entities - Verifies if the link is not broken between entities

Installation

$ mkdir ~/candore && cd ~/candore
$ pip install candore

Configuration

The candore uses the DynaConf configuration python module to access the data in settings.yaml, it also allows an unique way of declaring secrets via Environment variables instead of putting in plain settings.yaml.

e.g: The password field can be set via environment variable by exporting the environment variable

# export CANDORE_CANDORE_PASSWORD = myPa$$worb"

Configuration with PyPi package:

Copy/Download settings.yaml.template to local ~/candore directory as settings.yaml, update it with the details and other configuration details for successful run.

Usage Examples

  • candore help:
# candore --help

Usage: candore [OPTIONS] COMMAND [ARGS]...

  A data integrity validation CLI tool for products post change

Options:
  --version                   Installed version of candore
  -s, --settings-file TEXT    Settings file path
  -c, --components-file TEXT  Components file path
  --help                      Show this message and exit.

Commands:
  apis     List API lister endpoints from Product
  compare  Compare pre and post upgrade data
  extract  Extract and save data using API lister endpoints
  reader   JSON Reader for reading the specific path data from entities...

There are 3 stages in which candore works:

  1. Read data from the web server using APIs, before change:
# candore extract -o pre_entities.json --mode pre

This reads all data from web server before the change and saves in the json file in the current directory.

  1. Read data from the web server using APIs, after change:
# candore extract -o post_entities.json --mode post

This reads all data from web server after the change and saves in the json file in the current directory.

  1. Use the json data files to compare the data integrity:
# candore compare -t csv -o results.csv --pre pre_entities.json --post post_entities.json

This compares two json datasets and generates the reports of data integrity in CSV format in CSV file.

Reports could be generated in json:

# candore compare -t json -o results.json --pre pre_entities.json --post post_entities.json

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

candore-1.2.5.tar.gz (26.6 kB view details)

Uploaded Source

Built Distribution

candore-1.2.5-py2.py3-none-any.whl (33.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file candore-1.2.5.tar.gz.

File metadata

  • Download URL: candore-1.2.5.tar.gz
  • Upload date:
  • Size: 26.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for candore-1.2.5.tar.gz
Algorithm Hash digest
SHA256 5fa8dd8c76dd51bc78c62133454d4166c6799c256c438639f2c81830a243ffde
MD5 a03f73e2cf972b961bc8b25b6bd4a7a3
BLAKE2b-256 9dd96586074b0ddae611865413fab455c1fa2bb766ee17ec393d1e4e49649349

See more details on using hashes here.

File details

Details for the file candore-1.2.5-py2.py3-none-any.whl.

File metadata

  • Download URL: candore-1.2.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 33.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for candore-1.2.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d2522b521a5a9b26e9262c0045cb3fda3566f1f764afb2d90d1b56f0711fe81e
MD5 221c73f124d8c577937565b4536945e3
BLAKE2b-256 38fb23cc04e020fecc78470c5124e2fef7d269e51906046023bb4cd3ca013cd3

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