Metadata-Version: 2.1
Name: polyants
Version: 0.4a0
Summary: POLYHUB system helpers
Home-page: https://gitlab.com/ru-r5/polyants
License: MPL-2.0
Keywords: tools,helpers
Author: pymancer
Author-email: pymancer@gmail.com
Requires-Python: >=3.9,<3.13
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Information Technology
Classifier: License :: OSI Approved
Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Database
Classifier: Topic :: Software Development :: Libraries
Requires-Dist: Jinja2 (>=2)
Requires-Dist: MarkupSafe (>=2)
Requires-Dist: PyJWT (>=2,<3)
Requires-Dist: aiohttp (>=3,<4)
Requires-Dist: cryptography (>=43)
Requires-Dist: gql (>=2,<4)
Requires-Dist: grpcio (>=1.44.0,<1.65)
Requires-Dist: hiredis (>=3,<4)
Requires-Dist: httpx (>=0,<1)
Requires-Dist: jsqlib (>=0,<1)
Requires-Dist: pathvalidate (>=3,<4)
Requires-Dist: protobuf (>=4,<6)
Requires-Dist: psycopg2-binary (>=2,<3)
Requires-Dist: pyodbc (>=5,<6)
Requires-Dist: python-dotenv (>=1,<2)
Requires-Dist: requests (>=2,<3)
Requires-Dist: requests-toolbelt (>=1,<2)
Requires-Dist: sqlparse (>=0,<1)
Requires-Dist: walrus (>=0,<1)
Project-URL: Documentation, https://gitlab.com/ru-r5/polyants/-/wikis/home
Project-URL: Repository, https://gitlab.com/ru-r5/polyants
Description-Content-Type: text/markdown

# polyants
> POLYHUB system helpers.

[![pipeline status](https://gitlab.com/ru-r5/polyants/badges/master/pipeline.svg)](https://gitlab.com/ru-r5/polyants/-/commits/master)
[![PyPI version](https://badge.fury.io/py/polyants.png)](https://badge.fury.io/py/polyants)

![](polyants.png)

## Installation

OS X & Linux & Windows:

```sh
pip install polyants
```

## Usage example

```python
from polyants.polyhub.helpers.common import get_now

print(get_now())
```

## Development setup
- tool requirements:
  - poetry

- activating environment

```sh
poetry shell
```

- preparing environment

```sh
poetry install --no-root
```

- generating grpc artifacts

```sh
rm -rf ./polyants/polyhub/grpc/*
touch ./polyants/polyhub/grpc/__init__.py
python -m grpc_tools.protoc -I ./protos --python_out=./ --pyi_out=./ --grpc_python_out=./ ./protos/polyants/polyhub/grpc/*.proto
```

- coverage

```sh
$ poetry run pytest --cov
```

- format

```sh
$ poetry run black polyants -S
```

- lint

```sh
$ poetry run ruff check
```

- type checking

```sh
$ poetry run pyre --sequential
```

## Release History
- 0.4a0
  - to_plain_json function to remove meta from json definitions (#28)
- 0.3a0
  - polyhub helpers starter bundle (#21)
- 0.2a0
  - configurable enum class (#3)
- 0.1a0
  - mvp (#1)

## Meta

pymancer@gmail.com ([Polyanalitika LLC](https://polyanalitika.ru))  
[https://gitlab.com/ru-r5/polyants](https://gitlab.com/ru-r5/polyants)

## License

This Source Code Form is subject to the terms of the Mozilla Public  
License, v. 2.0. If a copy of the MPL was not distributed with this  
file, You can obtain one at https://mozilla.org/MPL/2.0/.  

## Contributing

1. Fork it (<https://gitlab.com/ru-r5/polyants/fork>)
2. Create your feature branch (`git checkout -b feature/foo`)
3. Commit your changes (`git commit -am 'Add some foo'`)
4. Push to the branch (`git push origin feature/foo`)
5. Create a new Pull Request

