Skip to main content

POLYHUB system helpers

Project description

polyants

POLYHUB system helpers.

pipeline status PyPI version

Installation

OS X & Linux & Windows:

pip install polyants

Usage example

from polyants.polyhub.helpers.common import get_now

print(get_now())

Development setup

  • tool requirements:

    • poetry
  • activating environment

poetry shell
  • preparing environment
poetry install --no-root
  • generating grpc artifacts
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
$ poetry run pytest --cov
  • format
$ poetry run black polyants -S
  • lint
$ poetry run ruff check
  • type checking
$ poetry run pyre --sequential

Release History

  • 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://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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

polyants-0.5a0.tar.gz (35.9 kB view details)

Uploaded Source

Built Distribution

polyants-0.5a0-py3-none-any.whl (50.1 kB view details)

Uploaded Python 3

File details

Details for the file polyants-0.5a0.tar.gz.

File metadata

  • Download URL: polyants-0.5a0.tar.gz
  • Upload date:
  • Size: 35.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.7 Linux/5.15.154+

File hashes

Hashes for polyants-0.5a0.tar.gz
Algorithm Hash digest
SHA256 9ebb5f9b2705dd7cc12ac8bed78780a0de22b5b704ea674ddb003092e435621f
MD5 a4aa830375c6b4b795a8dbd2e54c34ff
BLAKE2b-256 6afc51370255410024839c2b551eb497a241ce338feca17a38cd7188dc0d5cff

See more details on using hashes here.

File details

Details for the file polyants-0.5a0-py3-none-any.whl.

File metadata

  • Download URL: polyants-0.5a0-py3-none-any.whl
  • Upload date:
  • Size: 50.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.7 Linux/5.15.154+

File hashes

Hashes for polyants-0.5a0-py3-none-any.whl
Algorithm Hash digest
SHA256 2352335136ee9b56b8f8bbd97323c3ffe8d0c2cf61daa22a388d48c51361da00
MD5 1e6f548470ae5f023af4a85537c3b56d
BLAKE2b-256 da67382a656c26e38852380b5588b9f2ad1f8e2fa43dc9d96430676cce730860

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page