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.2.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.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hudutils-0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 47fbb2de8720df873eb98691738ce5d69b14d049d6e34229220a032468bf0899
MD5 df8a999540f32efa4fe84487d45b06eb
BLAKE2b-256 df9404b6ecf10e9c1e7191f0ff76a4591253dc04fa841a2baf6a990474da4578

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hudutils-0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e0daf0bac08d0923e33ff7b0ae3f4fae78a6a193f3d2cb191f5d72fe7aff1980
MD5 f9b9104e54527bfd45e96db62f44ae62
BLAKE2b-256 a88fe6054a88823ca55d04bc73eeecb2e2ed122c926f6f000e438acdf5461c13

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