Metadata-Version: 2.1
Name: tracktolib
Version: 0.7.2
Summary: Utility library for python
Home-page: https://github.com/tracktor/tracktolib
License: MIT
Keywords: utility
Author: Julien Brayere
Author-email: julien.brayere@tracktor.fr
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: python-json-logger (>=2.0.4,<3.0.0)
Project-URL: Repository, https://github.com/tracktor/tracktolib
Description-Content-Type: text/markdown

# Tracktolib

[![Python versions](https://img.shields.io/pypi/pyversions/tracktolib)](https://pypi.python.org/pypi/tracktolib)
[![Latest PyPI version](https://img.shields.io/pypi/v/tracktolib?logo=pypi)](https://pypi.python.org/pypi/tracktolib)
[![CircleCI](https://circleci.com/gh/Tracktor/tracktolib/tree/master.svg?style=shield)](https://app.circleci.com/pipelines/github/Tracktor/tracktolib?branch=master)

Utility library for python

# Installation

You can choose to not install all the dependencies by specifying
the [extra](https://python-poetry.org/docs/cli/#options-4) parameter such as:

```bash
poetry add tracktolib@latest -E pg-sync -E tests --group dev 
```

Here we only install the utilities using `psycopg2` (pg-sync) and `deepdiff` (tests) for the dev environment.

# Utilities

## 1. pg-sync

Utility functions based on psycopg2 such as `fetch_one`, `insert_many`, `fetch_count` ...

## 2. tests

Utility functions for tests such as `get_uuid` (that generates a test uuid based on an integer)

## 3. s3

Utility functions for [minio](https://min.io/docs/minio/linux/developers/python/API.html)

## 4. logs

Utility functions to initialize the logging formatting and streams

## 5. Http 

Utility functions using [httpx](https://www.python-httpx.org/)

