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.SpectralType
: a class to parse, store and compare spectral type designations.
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.3.1.tar.gz
(26.3 kB
view details)
Built Distribution
File details
Details for the file astar_utils-0.3.1.tar.gz
.
File metadata
- Download URL: astar_utils-0.3.1.tar.gz
- Upload date:
- Size: 26.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eae7108aa508b5c6364aac7c4e6160ea13ff5d5887550477a477eb62db4c5270 |
|
MD5 | a671009fc8542b348b18bad49df85cc4 |
|
BLAKE2b-256 | e0553bbc3fd9e7522dc78b7d765292f6b5dc1306489ca153039904a98825609d |
File details
Details for the file astar_utils-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: astar_utils-0.3.1-py3-none-any.whl
- Upload date:
- Size: 28.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cb6cac868ec4642130183ad3f9519cd60cf37b7326ff0bf38a19caee90d5638 |
|
MD5 | 190d094c9e9fc9cfab81300825629cb4 |
|
BLAKE2b-256 | 8d0c01e3ead9af17389e39098b839c6a18e36d570d2a0ad0289041bc0c1ff6f1 |