Skip to main content

This lightweight Python library provides reusable utility functions to simplify common development tasks.

Project description

nurgapy

 | \ | |_   _ _ __ __ _  __ _|  _ \ _   _
 |  \| | | | | '__/ _` |/ _` | |_) | | | |
 | |\  | |_| | | | (_| | (_| |  __/| |_| |
 |_| \_|\__,_|_|  \__, |\__,_|_|    \__, |
                  |___/             |___/

Small convenience Python library.

Rationality to build this library, that I don't want to copy over this code to multiple projects.

Currently, nurgapy library consists two functions:

  • tyme - it is a small wrapper function, which is used for measuring execution time of functions. Also works for the class functions.
  • trackbar - it is a simple progress bar, which just works without many imports. Inspired by stackoverflow post. There is well-known tqdm library, but it prevents user from using print statements. For simple use-cases this progress bar should be enough. There is another nice library alive-progress, which does not have this issue and many others. But I just wanted to have some simple progress bar, which lives in the single library with other convenience functions.

Getting started

This project uses Poetry for the package management.

Install Poetry (if not installed)

curl -sSL https://install.python-poetry.org | python3 -

Install dependencies

poetry install

Run the project example

poetry run src/main.py

Running tests

Run tests using pytest.

poetry run pytest -v

-s - will print the print() statements. Use it for debug.

Roadmap

  • Add basic code
  • Add pre-commit hook
    • Add more rules to pre-commit
  • Add public API to the init.py
  • Add tests
  • Add tests automation Nox
  • Add badges
  • Add packaging
  • Publish nurgapy to pip
  • Add a runner, which automatically publishes a new version to pip
  • Add documentation folder

Progress bar

  • Add percentages
  • Flexible size
  • Progress bar runs in the independent thread

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

nurgapy-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nurgapy-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file nurgapy-0.1.0.tar.gz.

File metadata

  • Download URL: nurgapy-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for nurgapy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 77fe4fb5bfcb6d1a44d9c03d413cf4c7d232b08123abb69f8a8593ca6a9a3317
MD5 3212cd61c3a13f201f8414ab6563f332
BLAKE2b-256 31654adf5a8df8f38fc06b19a24cf446abb762bee1e3705e5215d6df8bdb199d

See more details on using hashes here.

Provenance

The following attestation bundles were made for nurgapy-0.1.0.tar.gz:

Publisher: release.yml on nurgalive/nurgapy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nurgapy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nurgapy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for nurgapy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d6455f3596530af349ec08a01e1dc6520b96ee794e2f423901bbd8c3c4340fb
MD5 ac2737cb783c3f061cb12419a65032df
BLAKE2b-256 4510ae28b2a3e032982a619f219996d108a47bbf689859c85ae4c8a6f480ffbe

See more details on using hashes here.

Provenance

The following attestation bundles were made for nurgapy-0.1.0-py3-none-any.whl:

Publisher: release.yml on nurgalive/nurgapy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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