Skip to main content

ou-logger-py

Simple logger for use in Jupyter notebooks.

This package sets up the Pyhton logger for immediate use in a Jupyter notebook setting.

Install as: pip install ou-logger

Usage:

# Variously:
from ou_logger import logger
from ou_logger import logger, set_handler
from ou_logger import *

Importing the logger will display an information message:

Logger enabled. Set level as: logger.setLevel(LEVEL), where LEVEL is one of: DEBUG, INFO, WARNING, ERROR (default), CRITICAL.
Set text and/or text-to-speech output: set_handler('text, tts')
Usage: e.g. logger.error('This is an error message')

Logging messages will be displayed at or above the declared logging level. For example:

  • logger(CRITICAL) will only display CRITICAL messages;
  • logger(WARNING) will display WARNING, ERROR and CRITICAL messages.

By default, messages will be displayed as text:

Example of logger message displayed on a pink background as notebook streeamed output

Text to speech messages

Logged messages can also be spoken aloud using the browser text-to-speech (TTS) engine.

Enable text and/or TTS output by setting:

set_handler("text")
set_handler("text, tts")
set_handler("tts")

DEVELOPMENT

Build as: python -m build .

Push to PyPi as: twine upload dist/ou_logger*0.0.2*

Metadata

Release files for ou-logger 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 ou-logger 0.0.2
File Size Uploaded Provenance Actions
ou_logger-0.0.2.tar.gz 3.3 kB Without provenance Details for ou_logger-0.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 7.2 kB

Release files / ou_logger-0.0.2.tar.gz

Download URL ou_logger-0.0.2.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e0436c0f0a7c939145e04486eb825b96cfea4b50785b0a398ccc10ed5f4e1c48
BLAKE2b-256 checksum
How to use checksums
a4f1cfba1931b2e5f915a5600532453e235761881c4e413f3d4e680101cb108b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.0

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

Download URL ou_logger-0.0.2-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b28131f9f9e293e9da04b535aeeefa23d0649cf6f6106a2deb327f2ba25a1937
BLAKE2b-256 checksum
How to use checksums
39d4c7849a387aa2a8d578e413e635fbd618e73c873197684c60164f83389afd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.0

Security for ou-logger 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