Skip to main content

Contains commonly-used utilities for AstarVienna's projects.

Project description

Astar Utils

Tests Poetry dev version

codecov PyPI - Version PyPI - Python Version

License: GPL v3

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: a dict-like structure supporting !-style nested keys.
  • UniqueList: a list-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 given name as a child of the universal astar logger.
  • get_astar_logger(): convenience function to get (or create) a logger with the name astar, which serves as the root for all A*V packages and applications.

Loggers module

  • loggers.ColoredFormatter: a subclass of logging.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


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.0.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

astar_utils-0.2.0-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

Details for the file astar_utils-0.2.0.tar.gz.

File metadata

  • Download URL: astar_utils-0.2.0.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/6.2.0-1018-azure

File hashes

Hashes for astar_utils-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d65cfd776df533710b46e256febe1b1b891f21827fd9dcf21867fdb7b0bc8e93
MD5 ebb3e9859a7ceb86573089f42cfcef46
BLAKE2b-256 ecf0411434a24ffc7e5b24aad7920cc750dad68128a059b8a26c9afebe6b3f15

See more details on using hashes here.

File details

Details for the file astar_utils-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: astar_utils-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 23.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/6.2.0-1018-azure

File hashes

Hashes for astar_utils-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3518c857ece09d86159e7ee91f3f7933759eb679ff618c69607d0d71f0cf2b5
MD5 eddb34ee367afa88adcd14c5977e6b69
BLAKE2b-256 0f999c16f41c2bad04bfc63afa5975c376dd07217f226c4bd2cc81d996d6c7ea

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page