Skip to main content

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

Release files for candore 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for candore 1.4.0
File Size Uploaded
candore-1.4.0.tar.gz 28.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for candore 1.4.0
File Interpreter ABI Platform
candore-1.4.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 63.6 kB

Release files / candore-1.4.0.tar.gz

Download URL candore-1.4.0.tar.gz
Size 28.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e623f77caee648581b499baa387bf0d34e3a60af20c2fe992e9cc3ccea1021c4
BLAKE2b-256 checksum
How to use checksums
e2a9e463bea920ce5df864db4fe7c8d451110a17c045b9eebad03bc0bb927bff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.5

Release files / candore-1.4.0-py2.py3-none-any.whl

Download URL candore-1.4.0-py2.py3-none-any.whl
Size 35.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f8c4f5a600d5d4d4e753a478977b1cb11ce01e1a6c1cd076df3bc58aa0691cee
BLAKE2b-256 checksum
How to use checksums
bb534b8e9eab807c2ad3beecf075c4f5e21da89f48581c6f7efaa01f417861b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.5

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.6

2 release files

1.2.5

2 release files

1.2.0

2 release files

1.1.5

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page