Skip to main content

Basic diagnostic facilities, for Python

Project description

Diagnosticism.Python

Diagnosticism library, for Python

PyPI version

Table of Contents

Introduction

Diagnosticism is a standalone library of simple components for aiding in diagnostics for Python projects. It contains versions of components seen in the other Diagnosticisms - see below - though there is not a 1-to-1 correspondence between any of them.

Installation & usage

Install via pip or pip3, as in:

$ pip3 install diagnosticism

Use via import:

import diagnosticism

When using the simple logging facilities, we find it convenient to import as follows:

import diagnosticism as d
import diagnosticism.severity as sev

that may then be used as:

d.log(sev.INFO, "hello")

Components

Diagnosticism.Python provides components in the following categories:

  • Contingent Reporting
  • Diagnostic Logging
  • Tracing

NOTE: for the moment, the Diagnostic Logging facilities emit to the standard error stream, via the Contingent Reporting API. In the near future this will be changed to work with more sophisticated logging libraries, including the standard logging facilities and the (as yet to be release) Pantheios.Python.

Examples

Examples are provided in the examples directory, along with a markdown description for each. A detailed list TOC of them is provided in EXAMPLES.md.

Project Information

Where to get help

GitHub Page

Contribution guidelines

Defect reports, feature requests, and pull requests are welcome on https://github.com/synesissoftware/Diagnosticism.Python.

Dependencies

Related projects

License

Diagnosticism.Python is released under the 3-clause BSD license. See LICENSE for details.

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

diagnosticism-0.13.0.tar.gz (19.8 kB view details)

Uploaded Source

File details

Details for the file diagnosticism-0.13.0.tar.gz.

File metadata

  • Download URL: diagnosticism-0.13.0.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for diagnosticism-0.13.0.tar.gz
Algorithm Hash digest
SHA256 c282b0707eb15013a94a1cdd1a2ec976e8f6df00e846402976f1186bfd5d3081
MD5 35d44e777131b3c84263ce700102ae56
BLAKE2b-256 a61d2920ff9128cd77cadfc20cd2086e6094bcb551b27a9d8f6754f643a82eb4

See more details on using hashes here.

Supported by

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