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.iter_read_cache_dirs(),find_cached_file()andget_write_cache_dir(): convenience functions to get the cache path for a A*V package, checkingScopeSim_Datafirst.
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.
Metadata
Release files for astar-utils 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| astar_utils-0.7.0.tar.gz | 29.4 kB | Without provenance | Details for astar_utils-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| astar_utils-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for astar_utils-0.7.0-py3-none-any.whl |
Total release size: 61.6 kB
Release files / astar_utils-0.7.0.tar.gz
| Download URL | astar_utils-0.7.0.tar.gz |
|---|---|
| Size | 29.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
049e837889ba759df71b707ca282ab0737bf990caddea7854f9f06e1d94326a7
|
|
BLAKE2b-256 checksum How to use checksums |
bafe4f1214ee263c8557d7bd43bd4099d72efa47d513412494f9d402034a55f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.0 CPython/3.12.3 Linux/6.17.0-1021-azure
|
Release files / astar_utils-0.7.0-py3-none-any.whl
| Download URL | astar_utils-0.7.0-py3-none-any.whl |
|---|---|
| Size | 32.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f5b3a9e63ba54b75824dfe37fa885680c835c6a25976684f298a8fd517743872
|
|
BLAKE2b-256 checksum How to use checksums |
68d5f70358114ace9d20c4454a0d5b0b6ad5e5a74b0fdb3bc4ba86e58fdccbf0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.0 CPython/3.12.3 Linux/6.17.0-1021-azure
|
Security for astar-utils 0.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.