A minimal package allowing printing to a http server and the console insted of just the console. Great for monitoring long running scripts!
Project description
httpprint
This module changes python's builtin print method to one that hosts a terminal clone on a flask server. It needs almost no changes to the code, so it can be integrated easily into your projects.
Usage
Just add
from httpprint import print
into the import section of every file that prints.
...and you're done! When you run the code, a http server is opened on port 5580. Everything you print to the console also gets shown here. Update the page to view new changes.
Currently supported terminal behaviours
\tpads to the next multiple of 8 spaces\nfor newlines- Filtered output:
<and>don't break the entire page
Planned
- Escape sequences for coloring
Project details
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 httpprint-1.3.tar.gz.
File metadata
- Download URL: httpprint-1.3.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e814a87555fb7276069b58d39d48a46b0e392ff83d30a8eaa9b2cf24a0b510db
|
|
| MD5 |
150ded910ca227b71bcb9fdd84edd1d2
|
|
| BLAKE2b-256 |
a0fb48e1046284b9ac5b49ec8eb192a6635c24dac1ea264aa979afc54c65a21d
|
File details
Details for the file httpprint-1.3-py3-none-any.whl.
File metadata
- Download URL: httpprint-1.3-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdce4e7b60c726cc9fce1456150ced7df8bdccdf2e33c5e99942d3996b5581de
|
|
| MD5 |
83c5d62b88918243a8007ffc47bcd288
|
|
| BLAKE2b-256 |
68dc9506d6af333abac0a2d7cc45dd421633723db6eb1d16844c6783fa45e504
|