# polyants
> POLYHUB system helpers.
[](https://gitlab.com/ru-r5/polyants/-/commits/master)
[](https://badge.fury.io/py/polyants)

## 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.8a0
- `SYNC_FILES` bucket token capability (#36)
- 0.7a0
- `REPOSITORY` object type and auxiliary functions (#35)
- 0.6a0
- float schema version number support (#34)
- new object type `SCRIPT` and it's types (#35)
- 0.5a0
- process_folder function without recursion (#29)
- object settings caching (#30)
- function to encode a string as urlsafe base64 (#31)
- semi-automatically generation of `calculated` attribute in datagrid definitions (#32)
- 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
Raw data
{
"_id": null,
"home_page": "https://gitlab.com/ru-r5/polyants",
"name": "polyants",
"maintainer": null,
"docs_url": null,
"requires_python": "<3.13,>=3.9",
"maintainer_email": null,
"keywords": "tools, helpers",
"author": "pymancer",
"author_email": "pymancer@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/c9/b9/23809eba172daf6b701907d58d37c70acac4b5849f6c96afabf35e2e34fd/polyants-0.8a0.tar.gz",
"platform": null,
"description": "# polyants\n> POLYHUB system helpers.\n\n[](https://gitlab.com/ru-r5/polyants/-/commits/master)\n[](https://badge.fury.io/py/polyants)\n\n\n\n## Installation\n\nOS X & Linux & Windows:\n\n```sh\npip install polyants\n```\n\n## Usage example\n\n```python\nfrom polyants.polyhub.helpers.common import get_now\n\nprint(get_now())\n```\n\n## Development setup\n- tool requirements:\n - poetry\n\n- activating environment\n\n```sh\npoetry shell\n```\n\n- preparing environment\n\n```sh\npoetry install --no-root\n```\n\n- generating grpc artifacts\n\n```sh\nrm -rf ./polyants/polyhub/grpc/*\ntouch ./polyants/polyhub/grpc/__init__.py\npython -m grpc_tools.protoc -I ./protos --python_out=./ --pyi_out=./ --grpc_python_out=./ ./protos/polyants/polyhub/grpc/*.proto\n```\n\n- coverage\n\n```sh\n$ poetry run pytest --cov\n```\n\n- format\n\n```sh\n$ poetry run black polyants -S\n```\n\n- lint\n\n```sh\n$ poetry run ruff check\n```\n\n- type checking\n\n```sh\n$ poetry run pyre --sequential\n```\n\n## Release History\n- 0.8a0\n - `SYNC_FILES` bucket token capability (#36)\n- 0.7a0\n - `REPOSITORY` object type and auxiliary functions (#35)\n- 0.6a0\n - float schema version number support (#34)\n - new object type `SCRIPT` and it's types (#35)\n- 0.5a0\n - process_folder function without recursion (#29)\n - object settings caching (#30)\n - function to encode a string as urlsafe base64 (#31)\n - semi-automatically generation of `calculated` attribute in datagrid definitions (#32)\n- 0.4a0\n - to_plain_json function to remove meta from json definitions (#28)\n- 0.3a0\n - polyhub helpers starter bundle (#21)\n- 0.2a0\n - configurable enum class (#3)\n- 0.1a0\n - mvp (#1)\n\n## Meta\n\npymancer@gmail.com ([Polyanalitika LLC](https://polyanalitika.ru)) \n[https://gitlab.com/ru-r5/polyants](https://gitlab.com/ru-r5/polyants)\n\n## License\n\nThis Source Code Form is subject to the terms of the Mozilla Public \nLicense, v. 2.0. If a copy of the MPL was not distributed with this \nfile, You can obtain one at https://mozilla.org/MPL/2.0/. \n\n## Contributing\n\n1. Fork it (<https://gitlab.com/ru-r5/polyants/fork>)\n2. Create your feature branch (`git checkout -b feature/foo`)\n3. Commit your changes (`git commit -am 'Add some foo'`)\n4. Push to the branch (`git push origin feature/foo`)\n5. Create a new Pull Request\n",
"bugtrack_url": null,
"license": "MPL-2.0",
"summary": "POLYHUB system helpers",
"version": "0.8a0",
"project_urls": {
"Documentation": "https://gitlab.com/ru-r5/polyants/-/wikis/home",
"Homepage": "https://gitlab.com/ru-r5/polyants",
"Repository": "https://gitlab.com/ru-r5/polyants"
},
"split_keywords": [
"tools",
" helpers"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "bb9c172d68e5f36013184a0f2c63435241f5fccfa80471caaeaa22a26911f189",
"md5": "a844cbe4f7c6699490aa4361a1c61a42",
"sha256": "9a5f4d9cc38b16a451aa47e73bd24e04179bc9cb988eb55cf9e00d3f0dac2fa9"
},
"downloads": -1,
"filename": "polyants-0.8a0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a844cbe4f7c6699490aa4361a1c61a42",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.13,>=3.9",
"size": 50723,
"upload_time": "2024-12-27T09:36:58",
"upload_time_iso_8601": "2024-12-27T09:36:58.295390Z",
"url": "https://files.pythonhosted.org/packages/bb/9c/172d68e5f36013184a0f2c63435241f5fccfa80471caaeaa22a26911f189/polyants-0.8a0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c9b923809eba172daf6b701907d58d37c70acac4b5849f6c96afabf35e2e34fd",
"md5": "68d4d3865a81e4a134827dc65a9a28a5",
"sha256": "66866bca900e68bce30a81d83728b8d57e1faec0468c44f040061f6e36d7816c"
},
"downloads": -1,
"filename": "polyants-0.8a0.tar.gz",
"has_sig": false,
"md5_digest": "68d4d3865a81e4a134827dc65a9a28a5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.13,>=3.9",
"size": 36453,
"upload_time": "2024-12-27T09:37:00",
"upload_time_iso_8601": "2024-12-27T09:37:00.673940Z",
"url": "https://files.pythonhosted.org/packages/c9/b9/23809eba172daf6b701907d58d37c70acac4b5849f6c96afabf35e2e34fd/polyants-0.8a0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-27 09:37:00",
"github": false,
"gitlab": true,
"bitbucket": false,
"codeberg": false,
"gitlab_user": "ru-r5",
"gitlab_project": "polyants",
"lcname": "polyants"
}