DQ for Python API

https://img.shields.io/pypi/v/dq_batch_client.svg https://github.com/Algolytics/dq_batch_client/actions/workflows/build.yml/badge.svg Documentation Status

Python client for dataquality.pl

Python library which allows to use http://dataquality.pl in the easy way.

Features

  • Full API client

  • Automatic encoding file conversion

Credits

This package was created by Algolytics dev team.

Installation

Requirements

For the full functionality Python 3 is required.

Stable release

To install Python client for dataquality.pl, run this command in your terminal:

This is the preferred method to install Python client for dataquality.pl, as it will always install the most recent stable release.

If you don’t have pip installed, this Python installation guide can guide you through the process.

From sources

The sources for Python client for dataquality.pl can be downloaded from the Github repo.

You can either clone the public repository:

Or download the tarball:

Once you have a copy of the source, you can install it with:

Usage

To use Python client for dataquality.pl in a project:

API token can be obtain on the page “Moje konto”.

Account

Check account status:

Jobs

List jobs

Create new job

Create new deduplication job

Available column functions:

  • addresses

    • KOD_POCZTOWY

    • MIEJSCOWOSC

    • ULICA_NUMER_DOMU_I_MIESZKANIA

    • ULICA

    • NUMER_DOMU

    • NUMER_MIESZKANIA

    • NUMER_DOMU_I_MIESZKANIA

    • WOJEWODZTWO

    • POWIAT

    • GMINA

  • names

    • IMIE

    • NAZWISKO

    • NAZWA_PODMIOTU

    • IMIE_I_NAZWISKO

  • people/companies

    • PESEL

    • NIP

    • REGON

  • contact

    • EMAIL1

    • EMAIL2

    • TELEFON1

    • TELEFON2

  • dates

    • DATA_URODZENIA

    • CZAS_AKTUALIZACJI

  • mixed

    • DANE_OGOLNE

  • id

    • ID_REKORDU

  • others

    • PRZEPISZ

    • POMIN

To process input columns, you must enable the corresponding module. Method module_std is used to set active modules:

  • address

  • names

  • contact

  • id_numbers

For address module to be started it is necessary to ensure at least one column with the role listed below:

  • DANE_OGOLNE

  • KOD_POCZTOWY

  • MIEJSCOWOSC

Analogously for other modules:

  • names require one of

    • DANE_OGOLNE

    • IMIE

    • NAZWISKO

    • IMIE_I_NAZWISKO

    • NAZWA_PODMIOTU

  • contact

    • DANE_OGOLNE

    • EMAIL1

    • EMAIL2

    • TELEFON1

    • TELEFON2

  • id

    • DANE_OGOLNE

    • PESEL

    • NIP

    • REGON

Check job state

Cancel job

Retrieve job report

Save job results

Delete job and its results

Contributing

Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.

You can contribute in many ways:

Types of Contributions

Report Bugs

Report bugs at https://github.com/Algolytics/dq_batch_client/issues.

If you are reporting a bug, please include:

  • Your operating system name and version.

  • Any details about your local setup that might be helpful in troubleshooting.

  • Detailed steps to reproduce the bug.

Fix Bugs

Look through the GitHub issues for bugs. Anything tagged with “bug” and “help wanted” is open to whoever wants to implement it.

Implement Features

Look through the GitHub issues for features. Anything tagged with “enhancement” and “help wanted” is open to whoever wants to implement it.

Write Documentation

Python client for dataquality.pl could always use more documentation, whether as part of the official Python client for dataquality.pl docs, in docstrings, or even on the web in blog posts, articles, and such.

Submit Feedback

The best way to send feedback is to file an issue at https://github.com/Algolytics/dq_batch_client/issues.

If you are proposing a feature:

  • Explain in detail how it would work.

  • Keep the scope as narrow as possible, to make it easier to implement.

  • Remember that this is a volunteer-driven project, and that contributions are welcome :)

Get Started!

Ready to contribute? Here’s how to set up dq-batch-client for local development.

  1. Fork the dq_batch_client repo on GitHub.

  2. Clone your fork locally:

  3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development:

  4. Create a branch for local development:

    Now you can make your changes locally.

  5. When you’re done making changes, check that your changes pass flake8 and the tests, including testing other Python versions with tox:

    To get flake8 and tox, just pip install them into your virtualenv.

  6. Commit your changes and push your branch to GitHub:

  7. Submit a pull request through the GitHub website.

Pull Request Guidelines

Before you submit a pull request, check that it meets these guidelines:

  1. The pull request should include tests.

  2. If the pull request adds functionality, the docs should be updated. Put your new functionality into a function with a docstring, and add the feature to the list in README.rst.

  3. The pull request should work for Python versions 3.6 - 3.13, and for PyPy. Check https://github.com/Algolytics/dq_batch_client/pulls and make sure that the tests pass for all supported Python versions.

Tips

To run a subset of tests:

Credits Algolytics Team

History

0.6.0 (2024-12-11)

  • RENAME PACKAGE NAME TO dq-batch-client

  • Update dependencies: minimal version of Python is now 3.6

  • Add financial scoring option to JobConfig

  • Update documentation

0.5.0 (2018-07-13)

0.4.0 (2018-07-10)

0.3.0 (2018-07-04)

0.2.0 (2018-03-05)

0.1.0 (2016-10-19)

  • First release on PyPI.

Last updated