A versatile multi-file utility module, a series of useful code that is referenced from various projects that i repeatedly use.
Project description
nates-useful-functions-python-module (nuf)
A versatile, multi-file utility module that aggregates a series of useful Python code referenced repeatedly across various projects.
Package Structure
The package is structured as follows under the src directory:
src/nuf/__init__.py: Initializes the package and dynamically imports all Python files/modules in its directory.src/nuf/core.py: Core functionality.src/nuf/file_utils.py: Utilities for working with files.src/nuf/message_utils.py: Utilities for messaging and logs.src/nuf/format_utils.py: Utilities for formatting and time conversions.
Dynamic Importing
This module automatically discovers and imports all Python files present inside the src/nuf/ folder. When you add a new Python file (e.g. src/nuf/new_helper.py), it is automatically available as nuf.new_helper without needing to modify __init__.py.
Usage
Here is a quick example of how to import and use the package:
import nuf
# Access functions from core.py
print(nuf.core.core_func())
# Access functions from file_utils.py
print(nuf.file_utils.file_func())
# Access functions from message_utils.py
print(nuf.message_utils.message_func())
Running Tests
To run the local verification test suite, run:
python test_nuf.py
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 nuf-0.1.5.tar.gz.
File metadata
- Download URL: nuf-0.1.5.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d63cd15b327c45fb5fb2a76343b032827aca67e4b478f3507b2b0c84084d2807
|
|
| MD5 |
04156718dd2664b9c4aad23252f8b9d9
|
|
| BLAKE2b-256 |
9d42ce117e61002a540a949a2427e0b2767f8c9a60da6f1d49ef97be5841d59d
|
File details
Details for the file nuf-0.1.5-py3-none-any.whl.
File metadata
- Download URL: nuf-0.1.5-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9c03c866316bd10bf72907f79ebdab23125bfb642ee4ffacdc35f3ea2cf2922
|
|
| MD5 |
178162ff71f6ca13d9ab200266bccb18
|
|
| BLAKE2b-256 |
eabbe20cdd18ff479f11c3b7613dcf6b645f40e12a906968ec661b550a42bcc8
|