Skip to main content

Utility functions that are commmonly useful

Project description

pelutils

Utility functions that we commonly use including flexible parser, logger and time taker.

Parser

A combination of parsing CLI and config file arguments which allows for a powerful, easy-to-use workflow. Useful for parametric methods such as machine learning.

Logger

Easy to use logger which fit common needs.

TickTock

Simple time taker inspired by Matlab Tic, Toc.

DataStorage

Mutation of dataclass that saves/loads its fields from disk

0.2.2

- Better logging of errors

0.2.1 - BREAKING CHANGES

- Removed torch as dependency

0.2.0 - BREAKING CHANGES

- Logger is now a global variable. Logging should happen by importing the log variable and calling .configure to set it up. To reset the logger, .clean can be called.
- It is still possible to just import Logger and use it in the traditional way, though .configure should be called first.
- Changed timestamp function to give a cleaner output.
- get_commit now returns None if gitpython is not installed.

0.1.2

- Update documentation for logger and ticktock.
- Fix bug where seperator was not an argument to Logger.__call__.

0.1.0

- Include DataStorage.
- Logger can throw errors and handle seperators.
- TickTock includes time handling and units.
- Minor parser path changes.

0.0.1

- Logger, Parser, TickTock added from previous 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

pelutils-0.2.4.tar.gz (9.0 kB view hashes)

Uploaded Source

Built Distribution

pelutils-0.2.4-py3-none-any.whl (10.1 kB view hashes)

Uploaded Python 3

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