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

todo

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

Uploaded Source

File details

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

File metadata

  • Download URL: cutility-0.0.3.tar.gz
  • Upload date:
  • Size: 10.3 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.3.tar.gz
Algorithm Hash digest
SHA256 5b6948d29e2f5a0f2fe441c28dded57ae8705fcef2f9567b76076b56242cb46c
MD5 0083bab3eb023ac8240f1a6d4fa3b883
BLAKE2b-256 6a1acc5e68dc1ed16de22d25e47434f2447452d832e87448716429312741c8a2

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