Skip to main content

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 fits common needs.

TickTock

Simple time taker inspired by Matlab Tic, Toc, which also has profiling tooling

DataStorage

Mutation of dataclass that saves/loads its fields from disk

0.2.13

- Readd clean method to logger

0.2.12 - Breaking changes

- The logger is now solely a global variable. Different loggers are handled internally in the global _Logger instance

0.2.11

- Add catch property to logger to allow automatically logging errors with with
- All code is now indented using spaces

0.2.10

- Allow finer verbosity control in logger
- Allow multiple log commands to be collected and logged at the same time
- Add decorator for aforementioned feature
- Change thousand_seps from TickTock method to stand-alone function in __init__
- Verbose logging now has same signature as normal logging

0.2.8

- Add code to execute code with specific environment variables

0.2.7

- Fix error where the full stacktrace was not printed by log.throw
- set_seeds now checks if torch is available. This means torch seeds are still set without needing it as a dependency

0.2.6 - Breaking changes

- Make Unverbose class private and update documentation
- Update formatting when using .input

0.2.5

- Add input method to logger

0.2.4

- 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

Metadata

Release files for pelutils 0.2.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pelutils 0.2.13
File Size Uploaded
pelutils-0.2.13.tar.gz 11.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pelutils 0.2.13
File Interpreter ABI Platform
pelutils-0.2.13-py3-none-any.whl Python 3 none any Details

Total release size: 23.3 kB

Release files / pelutils-0.2.13.tar.gz

Download URL pelutils-0.2.13.tar.gz
Size 11.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e663d003fbc47ade185107333dbb6391cd52b665655f35f22312beab02672132
BLAKE2b-256 checksum
How to use checksums
2c04be37c213338ce0a70a513bfef87f4dbed9a41d7788ac3ed3e09ab06b930b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

Release files / pelutils-0.2.13-py3-none-any.whl

Download URL pelutils-0.2.13-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
640886550e5074d8d7b329a3faf212295e9f572ae33fd07c00092be653b3ff1d
BLAKE2b-256 checksum
How to use checksums
ad1c5bd28be593ce7ca7a9e31ff326c179dc6f9cb6ad40e1f8783b14da2f2094
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

Release history Release notifications | RSS feed

4.4.0

36 release files

4.3.1

36 release files

4.3.0

36 release files

4.2.1

36 release files

4.2.0

17 release files

4.0.0

17 release files

3.8.4

25 release files

3.8.3

25 release files

3.8.2

25 release files

3.6.2

25 release files

3.6.1

25 release files

3.6.0

25 release files

3.5.0

1 release file

3.4.1

1 release file

3.3.0

1 release file

3.1.0

17 release files

3.0.0

17 release files

2.0.0

17 release files

1.1.0

17 release files

1.0.0

13 release files

0.6.9

2 release files

0.6.7

2 release files

0.6.6

2 release files

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.9

2 release files

0.5.7

2 release files

0.5.6

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.5

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

This release

0.2.13 This release

2 release files

0.2.12

2 release files

0.2.11

2 release files

0.2.10

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

1 release file

0.1.1

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page