Skip to main content

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

phandler-1.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

phandler-1.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file phandler-1.0.tar.gz.

File metadata

  • Download URL: phandler-1.0.tar.gz
  • Upload date:
  • Size: 2.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

Hashes for phandler-1.0.tar.gz
Algorithm Hash digest
SHA256 8c63d234ad49b0c7c5ac170752bbd8b9b9e0c67848f1d44beca596d1ee6b3f06
MD5 bd2359042d8e47adffb7783de16609e3
BLAKE2b-256 d157d01f065fc34c7f93e8086d052875a7c8c5cb9cd7ccf4a1980364203b0ce4

See more details on using hashes here.

File details

Details for the file phandler-1.0-py3-none-any.whl.

File metadata

  • Download URL: phandler-1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.6 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

Hashes for phandler-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5cbe4c81317e675b1c7e334fbb3295b279c414b4ffd039c1ab44fde863c268f
MD5 f22cd50aa1453d1f9021cdd467634b3d
BLAKE2b-256 6ecd74ba00f75a7541bd5e25d25ee3a47c2d5532e04480f4c3a442687adfe550

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page