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 ofNestedMappingalso supporting keys that reference other !-style keys.NestedChainMap: a subclass ofcollections.ChainMapsupporting instances ofRecursiveNestedMappingas 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.Badgeand 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 givennameas a child of the universalastarlogger.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.Formatterto produce colored logging messages for console output.
Dependencies
Dependencies are intentionally kept to a minimum for simplicity. Current dependencies are:
more-itertoolspyyaml
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file astar_utils-0.4.0.tar.gz.
File metadata
- Download URL: astar_utils-0.4.0.tar.gz
- Upload date:
- Size: 26.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.12.3 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8effb9fd001f5d0980f7bf9ea3ebd69ef415f949741f78d0afbe0eafa25302c1
|
|
| MD5 |
687c84702bd0b12b79ea83fae59ea95c
|
|
| BLAKE2b-256 |
0712ea4dfc27fc5f779931b95b72e8df85866302b3aa608582130203b566b693
|
File details
Details for the file astar_utils-0.4.0-py3-none-any.whl.
File metadata
- Download URL: astar_utils-0.4.0-py3-none-any.whl
- Upload date:
- Size: 28.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.12.3 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81b9614c548f36614709c2c490220e3e76ec9d823dec66ef357e7ffa6735e797
|
|
| MD5 |
dd7ca3749105fbf39e47fe1345769fdb
|
|
| BLAKE2b-256 |
8d3f8f9f523b4e6ef7f73f125f26966fad6d04d119e6e8d67f31780fda7e0695
|