Skip to main content

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.5.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

hudutils-0.5-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file hudutils-0.5.tar.gz.

File metadata

  • Download URL: hudutils-0.5.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

Hashes for hudutils-0.5.tar.gz
Algorithm Hash digest
SHA256 c5d24880fc10b320cfa050b3c7b3f7b0308550ab82ab97b26d0ef61d665b4007
MD5 36eec8cb3b943919c3f78e8931cf16b2
BLAKE2b-256 034f7acfede14cdc1dd04da85bfc3e45d900277fb81ad4b3c124004de15c3a36

See more details on using hashes here.

File details

Details for the file hudutils-0.5-py3-none-any.whl.

File metadata

  • Download URL: hudutils-0.5-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

Hashes for hudutils-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f7388b30e44485061f5d7d91526da08c87eb2699a7af974dfba13b37c11fef13
MD5 151ce24c80e7ab5751c77e05cd4dc805
BLAKE2b-256 ac3a21fb7e3518002fc7920fac16ead3b88d86fa89f4f14e9b6cce2e4c8e4b6d

See more details on using hashes here.

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