Contains commonly-used utilities for AstarVienna's projects.
Project description
Astar Utils
This package is devloped and maintained by Astar Vienna and contains commonly-used utilities for the group's projects to avoid both duplicating code and circular dependencies.
Contents
The package currently contains the following public functions and classes:
NestedMapping
: adict
-like structure supporting !-style nested keys.RecursiveNestedMapping
: a subclass ofNestedMapping
also supporting keys that reference other !-style keys.NestedChainMap
: a subclass ofcollections.ChainMap
supporting instances ofRecursiveNestedMapping
as levels and referencing !-style keys across chain map levels.is_bangkey()
: simple convenience function to check if something is a !-style key.is_nested_mapping()
: convenience function to check if something is a mapping containing a least one other mapping as a value.UniqueList
: alist
-like structure with no duplicate elements and some convenient methods.Badge
and subclasses: a family of custom markdown report badges. See docstring for details.BadgeReport
: context manager for collection and generation of report badges. See docstring for details and usage.get_logger()
: convenience function to get (or create) a logger with givenname
as a child of the universalastar
logger.get_astar_logger()
: convenience function to get (or create) a logger with the nameastar
, which serves as the root for all A*V packages and applications.
Loggers module
loggers.ColoredFormatter
: a subclass oflogging.Formatter
to produce colored logging messages for console output.
Dependencies
Dependencies are intentionally kept to a minimum for simplicity. Current dependencies are:
more-itertools
pyyaml
Version requirement for these dependencies can be found in the pyproject.toml
file.
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
astar_utils-0.2.2.tar.gz
(23.5 kB
view hashes)
Built Distribution
Close
Hashes for astar_utils-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f408c187a84d4cf40f49020886957c6eaeb92479d98c993a6285ff292661eda |
|
MD5 | bff17565ad34b63a0a6a5b1137d55f8c |
|
BLAKE2b-256 | ee479bb06c233ad179e3dc14a2b92f685957271da1fc6e7862b16677819e9fa1 |