Skip to main content
Latest PyPI version https://travis-ci.org/kragniz/lode.png?branch=master

Tiny and minimalistic logging utility module.

Lode is designed to be used in the case where normally simple print statement style debugging would be useful, like checking whether or not a section of code is executed, but stdout or stderr has been robbed from you by something like a devilishly clever test framework. Rather than try to uncover which dark alleyway your calls to print end up, lode just outputs it to a friendly file.

Lode is tested and supported on python versions 2.6, 2.7, 3.2, 3.3 and 3.4.

Installing

Lode can be installed with pip:

$ pip install lode

Or from source:

$ git clone https://github.com/kragniz/lode.git
$ cd lode
$ python setup.py install

Using this thing

For the most basic usage, just import lode and call the log function. Usage is largely the same as the print function, with it taking any number of positional arguments, formatting those to a string, and joining them together separated by spaces.

import lode; lode.log('hi there!')

Tests

Tests are stored the tests subdirectory of the main lode package. Set up lode for testing by running in the root directory of the git repository the following commands:

$ pip install -e .
$ pip install -r test-requirements.txt

Then run the tests:

$ py.test -v

Metadata

Release files for lode 0.3.0

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

Source distribution (sdist)

Source distribution for lode 0.3.0
File Size Uploaded Provenance Actions
lode-0.3.0.tar.gz 3.0 kB Without provenance Details for lode-0.3.0.tar.gz

Release files / lode-0.3.0.tar.gz

Download URL lode-0.3.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5d55c4e7cecc4551feb22c6355e2337952fa5fdd067c31df856c8941f1204ec6
BLAKE2b-256 checksum
How to use checksums
2372364e03353bbe61fd7788a220c9de57c73563daaa25570dadcc789952770d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for lode 0.3.0

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.

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