jk_hwriter
Introduction
This python module provides a single class: A buffer that can be used to create indented output. This is useful for producing pretty printed texts for XML, HTML or programming languages.
Information about this module can be found here:
Why this module?
A lot of output generation requires indentation. Furthermore it would be convenient in writing to automatically merge line breaks to beautify output. Therefore this module has been created that assists in such matter.
How to use this module
Loading the module
If you want to use the functionality provided by this module you're best adviced to include the module with following statement:
from jk_hwriter import *
Producing Output
For producing output you have a variety of methods:
write(...): This will write the output into the current line.lineBreak(): Perform a line break. This line break is ignored if the very last output already was a line break.writeLn(...): Write something and add a line break.
from jk_hwriter import *
Bugs
Yes, there will still be some bugs. If you find a bug please report it as an issue on GitHub. Please provide the following information:
- a small python snipplet required to reproduce the bug
- the output of the python snipplet
- the result that you would expect
Thank you!
Contact Information
- Jürgen Knauth: pubsrc@binary-overflow.de
License
This software is provided under the following license:
- Apache Software License 2.0
Metadata
Release files for jk_hwriter 0.2025.12.18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jk_hwriter-0.2025.12.18.tar.gz | 7.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jk_hwriter-0.2025.12.18-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.1 kB
Release files / jk_hwriter-0.2025.12.18.tar.gz
| Download URL | jk_hwriter-0.2025.12.18.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
977fcc760a938cb099513917940c0df81127e09b22ced27f4d36c8d313b238d3
|
|
BLAKE2b-256 checksum How to use checksums |
5b542bd8ae1cdf79ef1c9e674db15ffc4a83297183e19bc6ea466f94f02e2c4a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|
Release files / jk_hwriter-0.2025.12.18-py3-none-any.whl
| Download URL | jk_hwriter-0.2025.12.18-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
da793f69f25a05f8c8f4f8b975bf398cbea56958ad8acdaebcc9ebd4c937ee90
|
|
BLAKE2b-256 checksum How to use checksums |
6b7dbe9f8fd31b3cb07e10e105e8bbe0d490cee0df6a787b07d174afb82e41f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|