Skip to main content

Maplewood

maplewood is a Python Library for creating logfiles in Plain Text(.txt) Format

Compatibility

maplewood has been tested to work on Windows, but should work on Linux and MacOS as well

Installing

maplewood can be installed using pip or any PyPI package managers

pip install maplewood

Usage

# import the chainsaw module 
# containing the 'Chainsaw' class
from maplewood import chainsaw as cs

# creates a log.txt file in ./logs/
example_log = cs.Chainsaw()

# To log an event, we open the file first
example_log.open()

# To write to the log file
example_log.write(success=True, message="Example Task Executed")
# OR
# if we define a default success or failure message
example_log.update(success="Example success",
                   failure="Example Failure",
                   module="example")
example.log(False) # writes default fail state
example.log(True)  # writes default pass state

# we can close the file if needed
example_log.close()
# and reopen
example_log.open()

# to check if log file is open
example_log.is_open() # -> bool

# remember to close the file
example_log.close()

Metadata

Release files for maplewood 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 maplewood 0.3.0
File Size Uploaded
maplewood-0.3.0.tar.gz 4.1 kB Details

Built distribution (wheel)

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

Total release size: 8.1 kB

Release files / maplewood-0.3.0.tar.gz

Download URL maplewood-0.3.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cc461baadb6f2446a54c8ee51934d897a7e21bf4ec558f5c4f013f8c68ff8d15
BLAKE2b-256 checksum
How to use checksums
4bcf5373478cfc66a5525a1793fed20ae6db347a0fe7e78317494a6c1fe9a791
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Release files / maplewood-0.3.0-py3-none-any.whl

Download URL maplewood-0.3.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
56b6c9e18e5855e224d687c59531e2c9a77579c3545685c2f118d61901b36566
BLAKE2b-256 checksum
How to use checksums
e9e96df43ab8d7871d2916338d13f20f78b57c909efa774365a45171a6ec7ad5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2

2 release files

0.1

2 release files

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