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-knowntqdmlibrary, but it prevents user from usingprintstatements. For simple use-cases this progress bar should be enough. There is another nice libraryalive-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 theinit.py -
Add tests - Add tests automation Nox
- Add badges
- test coverage (coveralls)
- Add packaging
- Publish nurgapy to pip
- Add a runner, which automatically publishes a new version to pip
- Add
documentationfolder - Create an
examplesfolder
Progress bar ⏲️
- Add percentages
- Flexible size
- Progress bar runs in the independent thread
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e4a28e2ad0a5bf54aafc8168f3cb78a54a0faf250170d04267b50de03eba9ec
|
|
| MD5 |
ff3050845ef2f489b467e72ebb24acaf
|
|
| BLAKE2b-256 |
65a053c077967ad7c03687b6978cf7ad4a6912e1c45b06223d5a82877a9d36bc
|
Provenance
The following attestation bundles were made for nurgapy-0.2.0.tar.gz:
Publisher:
release.yml on nurgalive/nurgapy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nurgapy-0.2.0.tar.gz -
Subject digest:
3e4a28e2ad0a5bf54aafc8168f3cb78a54a0faf250170d04267b50de03eba9ec - Sigstore transparency entry: 219670876
- Sigstore integration time:
-
Permalink:
nurgalive/nurgapy@f0d862e6c64a35beab44bb7917eda21149702a16 -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/nurgalive
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f0d862e6c64a35beab44bb7917eda21149702a16 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f841e5de61d9d6495a6259a63861134256f3584b820c4b69ba004e9e61d3c41d
|
|
| MD5 |
96758ecff0fca9dd67eda709bacf85ef
|
|
| BLAKE2b-256 |
feac4b774b7465dffaf4ba73974a1e5dd7fd9cb21c8443ad54650f0e0f0caa69
|
Provenance
The following attestation bundles were made for nurgapy-0.2.0-py3-none-any.whl:
Publisher:
release.yml on nurgalive/nurgapy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nurgapy-0.2.0-py3-none-any.whl -
Subject digest:
f841e5de61d9d6495a6259a63861134256f3584b820c4b69ba004e9e61d3c41d - Sigstore transparency entry: 219670877
- Sigstore integration time:
-
Permalink:
nurgalive/nurgapy@f0d862e6c64a35beab44bb7917eda21149702a16 -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/nurgalive
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f0d862e6c64a35beab44bb7917eda21149702a16 -
Trigger Event:
push
-
Statement type: