A package to fully control printing in Python. You can delete any line with just one command
Project description
phandler is a package to fully control printing in Python. You can delete any line with just one command.
First of all, you need to create prints handler object that will handle all the prints:
ph = phandler.prints_handler(False) # <- Set argument to True if you want to ignore errors
Now, you can print something:
ph.print('Hello world!')
If you want to delete any line, just use this command and specify target line number (counting from bottom):
ph.delete_line(1) # <- This will delete last printed line
You can use use inputs also:
name = ph.input('Enter your name: ') # <- Now, prompt and input value are removable with delete_line command
To clear saved prints you can use:
ph.clear(True) # <- Set argument to True if you want to clear all visible lines too
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 phandler-1.2.tar.gz.
File metadata
- Download URL: phandler-1.2.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f6fbb6502cd938da4353a06c857e3b1fa2971149e9153dbc4ab93a35b32aaac
|
|
| MD5 |
79fc98559439b8142126565c86112ee1
|
|
| BLAKE2b-256 |
ce99b5cdc185a784777800a171ab652ae238998f6efc9350bde9b43c1280c90d
|
File details
Details for the file phandler-1.2-py3-none-any.whl.
File metadata
- Download URL: phandler-1.2-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94b19fe6cc484f94710c0f82be85a86b6151d0e203e5f3a98fe0400bfe9d7376
|
|
| MD5 |
6f9601179f8bd95a1a120cfc6f56c957
|
|
| BLAKE2b-256 |
4cbec8dbcf3427a7c7db79c27f5612e0f53c86cca8a8d3102816642a1b7364a6
|