Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dkist-service-configuration

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dkist-service-configuration

Library for retrieving configurations for DKIST services

  • 2.3.0
  • PyPI
  • Socket score

Maintainers
1

dkist-service-configuration

A configuration for the loguru <https://github.com/Delgan/loguru>_ logger and base configuration object using pydantic <https://docs.pydantic.dev/1.10/usage/settings/>_ base settings.

It is important that it be the first import to run so the standard logging basicConfig method has an effect.

Features

  • Stderr output
  • Intercepted logging from client libraries
  • Disabled better exceptions for log levels above debug to mitigate secret leaking
  • Configuration logging with secrets redacted
  • DKIST Mesh Service configuration parsing

Installation

.. code:: bash

pip install dkist-service-configuration

Examples

config.py

.. code:: python

from dkist_service_configuration.logging import logger
from dkist_service_configuration import MeshServiceConfigurationBase
logger.debug('hello world)
class NewConfiguration(MeshServiceConfigurationBase):
    username: str = "me"
    password: str = "pass"
new_configuration = NewConfiguration()
new_configuration.log_configurations()

The code above will register the existing loggers, retrieve mesh configuration and custom configuration from the environment and log it while redacting the password.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc