Skip to main content

Common Utility functions for development

Project description

cutility

Common utils for development

Variables

What is project_root?

  • Directory that holds your src folder is your project_root

What is data_root?

  • Directory that holds all your data folder is your data_root

Usage

Instantiate

from cutility import cutils, logger

# add data folder as per your preference
# add config folder as per your preference
cu = cutils.Cutils(
                    data_root=f"path/to/data/folder",
                    config_root=f"path/to/config/folder", # currently only supports .yml files
                    verbose=True
)


log = logger.Logger()
log.i("This is info message")
# also supports warning critical debug messages

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

cutility-0.0.2.tar.gz (8.1 kB view details)

Uploaded Source

File details

Details for the file cutility-0.0.2.tar.gz.

File metadata

  • Download URL: cutility-0.0.2.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for cutility-0.0.2.tar.gz
Algorithm Hash digest
SHA256 3f0bef35306d622be83e6c2618872d9ae9f3f02912423934ec6285c8ff3a1c72
MD5 de144d59d3861ed3db2eb8dd25e7166f
BLAKE2b-256 16f1031a820aa420ddbae4a335d86e7d8e65468820a8a5585fd8f25e7140a9d4

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