This python module supports writing indented text files.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jk_hwriter-0.2025.12.18.tar.gz.
File metadata
- Download URL: jk_hwriter-0.2025.12.18.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
977fcc760a938cb099513917940c0df81127e09b22ced27f4d36c8d313b238d3
|
|
| MD5 |
ba9c4f6f29f1363b88d64a999f8e7909
|
|
| BLAKE2b-256 |
5b542bd8ae1cdf79ef1c9e674db15ffc4a83297183e19bc6ea466f94f02e2c4a
|
File details
Details for the file jk_hwriter-0.2025.12.18-py3-none-any.whl.
File metadata
- Download URL: jk_hwriter-0.2025.12.18-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da793f69f25a05f8c8f4f8b975bf398cbea56958ad8acdaebcc9ebd4c937ee90
|
|
| MD5 |
8e68bd4503a8225781b57eae49b4883c
|
|
| BLAKE2b-256 |
6b7dbe9f8fd31b3cb07e10e105e8bbe0d490cee0df6a787b07d174afb82e41f6
|