Huds regularly used utilities
Project description
Certainly! Here is the updated README.md file incorporating the new filename_with_rollover function:
# HudUtils
Regularly used utils.
## Installation
```bash
pip install hudutils
Usage
Flatten JSON
from hudutils import hudutils
json_data = {
"a": 1,
"b": {
"c": 2,
"d": {
"e": 3
}
}
}
flattened = hudutils.flatten_json(json_data)
print(flattened)
Filename with Rollover
from hudutils import hudutils
filename = 'log.txt'
new_filename = hudutils.filename_with_rollover(filename, opts=['year', 'month', 'day'])
print(new_filename)
This example shows users how to import and use the `flatten_json` and `filename_with_rollover` functions from your `hudutils` library. It provides clear and practical examples of how to use the library in their own projects.
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
hudutils-0.4.tar.gz
(2.7 kB
view details)
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 hudutils-0.4.tar.gz.
File metadata
- Download URL: hudutils-0.4.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.10.0 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.8 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33f61e65cafe96be982f2e9af6a58dacbcaf5d07547f190007af6f75b53ea097
|
|
| MD5 |
d61cd0070fc52eb7dd313da672649e8e
|
|
| BLAKE2b-256 |
ce7cd9b8474c6e3cf5e1c50e187e06ed101e7ad1432d2279ad016fda3476db44
|
File details
Details for the file hudutils-0.4-py3-none-any.whl.
File metadata
- Download URL: hudutils-0.4-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.10.0 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.8 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56dcb8e778ec70ab24c3524c11fd0784304281a5e6ebbf83f479727f1e00a261
|
|
| MD5 |
044048a6f19c94a9e29745691cfd0712
|
|
| BLAKE2b-256 |
12e5589ba47ea44a9fd55b73a6b480fa01b10d042fc202daa5593354b0f44147
|