Skip to main content

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

Project description

nurgapy

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

📦 NurgaPy : A Small Convenience Python Library

NurgaPy is a small, convenient Python library designed to help you avoid copying code across multiple projects. It includes two main functions:

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 🚀

Install the NurgaPy library using pip.

pip install nurgapy

Examples 🌟

tyme function usage ⏳

from nurgapy import tyme


@tyme
def my_pow(a: int, b: int):
    for _ in range(10000000):
        res = a**b
    return res

trackbar usage ⏲️

for i in trackbar(range(10)):
    time.sleep(0.5)

For more usage examples check the examples folder.

Development and Architecture Docs 📚

If you want to get know more about how NurgaPy works, how to set up developement enviroment and how made architectural decisions behind, please check the docs.

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
  • Create an examples 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.2.0.tar.gz (3.9 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.2.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nurgapy-0.2.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for nurgapy-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3e4a28e2ad0a5bf54aafc8168f3cb78a54a0faf250170d04267b50de03eba9ec
MD5 ff3050845ef2f489b467e72ebb24acaf
BLAKE2b-256 65a053c077967ad7c03687b6978cf7ad4a6912e1c45b06223d5a82877a9d36bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for nurgapy-0.2.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: nurgapy-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for nurgapy-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f841e5de61d9d6495a6259a63861134256f3584b820c4b69ba004e9e61d3c41d
MD5 96758ecff0fca9dd67eda709bacf85ef
BLAKE2b-256 feac4b774b7465dffaf4ba73974a1e5dd7fd9cb21c8443ad54650f0e0f0caa69

See more details on using hashes here.

Provenance

The following attestation bundles were made for nurgapy-0.2.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