Skip to main content

Documentation

Documentation Status PyPI Status CI Test Coverage

Introduction

Simple package/script to setup JSON logging for a Python app or script. Uses python-json-logger and is mostly just a wrapper around it. Instead of adding this script to every Python module that I/you create you can just add this as a dependency and call:

from nialog import setup_module_logging, LoggingLevel

# Default logging level is WARNING
setup_module_logging()

# LoggingLevel has enums for default logging module levels
# Can be used with e.g. typer as command-line inputs
LoggingLevel.DEBUG.value == "DEBUG"  # = True

Running tests

To run pytest in currently installed environment:

poetry run pytest

To run test suite best suited for before pushing to e.g. GitHub.

poetry run invoke prepush

To run full extensive test suite:

poetry run invoke test

Formatting and linting

Formatting and linting is done with a single command. First formats, then lints.

poetry run invoke format-and-lint

Building docs

Docs can be built locally to test that ReadTheDocs can also build them:

poetry run invoke docs

Invoke usage

To list all available commands from tasks.py:

poetry run invoke --list

Development

Development dependencies include:

  • invoke

  • nox

  • copier

  • pytest

  • coverage

  • sphinx

Big thanks to all maintainers of the above packages!

License

Copyright © 2021, Nikolas Ovaskainen.

Metadata

Release files for nialog 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nialog 0.0.2
File Size Uploaded Provenance Actions
nialog-0.0.2.tar.gz 5.2 kB Without provenance Details for nialog-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nialog 0.0.2
File Interpreter ABI Platform Actions
nialog-0.0.2-py3-none-any.whl Python 3 none any Details for nialog-0.0.2-py3-none-any.whl

Total release size: 9.7 kB

Release files / nialog-0.0.2.tar.gz

Download URL nialog-0.0.2.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4b9e12bcc6b02aa2e894e516b5ef55b32efaa7dd4bd10b35900dace00caaf9c1
BLAKE2b-256 checksum
How to use checksums
fe0c2efa387b7b59b8c87787c657f469ce87ec4535481c9c76c49f7e00dd505a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

Release files / nialog-0.0.2-py3-none-any.whl

Download URL nialog-0.0.2-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef9b71fe7d129912fa8a33236b8a7e51a3bb7ce6e05aa27f2793977b944e0d6b
BLAKE2b-256 checksum
How to use checksums
36ab7f1f8f9f019092304fdd04eb0c3fc3884769efea3c1b6082309e2172bb1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

Security for nialog 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page