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 displayCRITICALmessages;logger(WARNING)will displayWARNING,ERRORandCRITICALmessages.
By default, messages will be displayed as text:
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)
| File | Size | Uploaded | |
|---|---|---|---|
| ou_logger-0.0.2.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ou_logger-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
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
|