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

Uploaded Python 3

File details

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

File metadata

  • Download URL: hudutils-0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 41a5b6ee8ec8cc80eea3d0b1b7de61b729584b9bd459fd9b6fefe6d6329ff58c
MD5 d5ef0a3d317cfc764d6ce4f683a64927
BLAKE2b-256 923e25d548df9c35622f060eb175ce2ded7df1d6327f294f7a684546d303ab08

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hudutils-0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 14733d8a0a43d040f6009c153a6c9c4f38d4611616dffd31511e3983f1ce77a8
MD5 797077beac4c934d041d2211ca09447f
BLAKE2b-256 b08dd1092b1635112d23f81afd585d138cd012ff2ea2c4bbfab399ab82659476

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