Skip to main content

consolejs

A console logger / debugger for Python CLI programs

Currently consolejs only support functions. support for classes will be added later.

Installation

$ pip install consolejs

Getting Started

# Create a Conlog from the constructor.
consolejs = Conlog.create("main")

# Set the required logging level
consolejs.level = Conlog.DEBUG

# To use on the `main` module
console = consolejs.get_console()

####  in module2.py

@Conlog.fn
def say_hi(name):
	console = Conlog.get_console("main")
	console.debug("args {name=}")
	print(f"Hi {name}"

How it works.

console.debug supports expr debug expressions introduced in Python 3.8. It dynamically rewrites the function in Python 3.8 and uses a beautiful way to support it in < 3.7

See tests/ for samples.

License


Copyright (c) 2019 Cswl Coldwind

consolejs is distributed under the terms

  • MIT License <https://choosealicense.com/licenses/mit>_

Metadata

Release files for consolejs 1.0.9

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

Source distribution (sdist)

Source distribution for consolejs 1.0.9
File Size Uploaded Provenance Actions
consolejs-1.0.9.tar.gz 5.4 kB Without provenance Details for consolejs-1.0.9.tar.gz

Built distribution (wheel)

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

Total release size: 13.2 kB

Release files / consolejs-1.0.9.tar.gz

Download URL consolejs-1.0.9.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b68bf509fa06ccaea974c9161c991341820cd065da2276392b3737e4eee322c5
BLAKE2b-256 checksum
How to use checksums
11902e3d520a06256fbfd088b65b2f5cafb324cf7e223387cee9bb4dd185b733
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5

Release files / consolejs-1.0.9-py3-none-any.whl

Download URL consolejs-1.0.9-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
32c4fca3cd2ba69ca16ba2555c7c82b656da26dd2ace6b27b60f0e8ba1a541a2
BLAKE2b-256 checksum
How to use checksums
06583ff7f92687f89c2fcac0358ca28d962e1daec3ea55e5e5f347e9266cd012
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5

Security for consolejs 1.0.9

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

1.0.9 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