Skip to main content

A set of basic reusable utilities and tools to facilitate quickly getting up and going on any machine learning project.

Project description

cheutils

A set of basic reusable utilities and tools to facilitate quickly getting up and going on any machine learning project.

Features

  • project_tree: methods for accessing the project tree - e.g., accessing the data and output folders, loading and savings Excel and CSV.
  • common_utils: methods to support common programming tasks, such as labeling or tagging and date-stamping files
  • propertiesutil: utility for managing properties files or project configuration, based on jproperties
  • decorator_debug, decorator_timer, and decorator_singleton: decorators for enabling logging and method timers; as well as a singleton decorator

Usage

import cheutils

# retrieve the path to the data folder, which is under the project root
get_data_dir()  # returns the path to the project data folder, which is always interpreted relative to the project root

# the following provide access to the properties file, usually expected to be named "app-config.properties" and typically found in the project data folder or anywhere either in the project root or any other subfolder
# You also have access to the LOGGER - you can simply call LOGGER.debug() in a similar way to you will when using loguru or standard logging
APP_PROPS = AppProperties()
LOGGER = LoguruWrapper().get_logger()

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cheutils-2.1.5.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

cheutils-2.1.5-py3-none-any.whl (31.8 kB view details)

Uploaded Python 3

File details

Details for the file cheutils-2.1.5.tar.gz.

File metadata

  • Download URL: cheutils-2.1.5.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.12

File hashes

Hashes for cheutils-2.1.5.tar.gz
Algorithm Hash digest
SHA256 3e3dd3052471c5e228c1db119307639a8a05dae4a63dbfe61390487ae1047b0b
MD5 ea075c2ba921a836f0f4d53124cbf844
BLAKE2b-256 3a6634911e475dcf73ff2b7c4c27727e666f03605ea37da8a0b4817522d9b611

See more details on using hashes here.

File details

Details for the file cheutils-2.1.5-py3-none-any.whl.

File metadata

  • Download URL: cheutils-2.1.5-py3-none-any.whl
  • Upload date:
  • Size: 31.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.12

File hashes

Hashes for cheutils-2.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 40761b83320d598f3fe2eb5a11e7e1fef70d9e59c0b3ca84c20a432917a2dc1d
MD5 dcec961fac66245000ed5ee7e918ac8b
BLAKE2b-256 72f83168b880d78bea4f1e48fd490b84a874097a9fbf62f0debc83c2f1f568aa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page