diffport-0.4.0
توضیحات
Database summary diff reporting tool
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | diffport-0.4.0 |
| نام | diffport |
| نسخه کتابخانه | 0.4.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Abhinav Tushar |
| ایمیل نویسنده | lepisma@fastmail.com |
| آدرس صفحه اصلی | https://github.com/reichlab/diffport |
| آدرس اینترنتی | https://pypi.org/project/diffport/ |
| مجوز | - |
diffport
========
.. image:: https://img.shields.io/travis/reichlab/diffport.svg?style=flat-square
:target: https://travis-ci.org/reichlab/diffport
.. image:: https://img.shields.io/pypi/v/diffport.svg?style=flat-square
:target: https://pypi.python.org/pypi/diffport
Diffport is a database *summary diff* reporting tool. It helps in maintaining,
diffing and reporting summaries from a database based on a set of *watchers*. It
currently works (and is tested) under postgres.
Usage
-----
Diffport works by using a set of *watchers* to take snapshots of database at
different times and then producing a difference report when asked for it.
It uses a config file specifying these watchers and their own specific
configuration needs. An example follows::
# diffport.yaml
- name: number-of-rows
config:
groupby:
- <groupby-column-one>
- <groupby-column-two>
table: <table-name>
- name: tables-in-schema
config:
- <schema-one>
- <schema-two>
The first watcher (``number-of-rows``) keeps the count of rows in table
``<table-name``, grouped by columns ``<groupby-column-one>`` and
``<groupby-column-two>``. The second watcher ``tables-in-schema`` keeps the list
of tables in each of the schema provided in *its* config.
For more details and usage instructions, head over to the project's
documentation `here <http://reichlab.io/diffport>`_.
نحوه نصب
نصب پکیج whl diffport-0.4.0:
pip install diffport-0.4.0.whl
نصب پکیج tar.gz diffport-0.4.0:
pip install diffport-0.4.0.tar.gz