Extended functionalities and better control over Python's built-in print function
Project description
Print Extended
Extended functionalists and better control over Python's built-in print function
Installation
> pip install print-extended
Usage
If you run Python interpreter with -O
flag print will be disabled:
python -O
>>> import print_extended
>>> print('foo')
>>>
Runing it without -O
flag works normal:
python
>>> import print_extended
>>> print('foo')
foo
>>>
Control your print with PrintControl
class:
import print_extended
from print_extended import PrintControl
PrintControl.template = '--> {print} <--'
PrintControl.fg_color = 'green'
PrintControl.bg_color = 'blue'
Change underlying print function:
import print_extended
from pprint import pprint
from print_extended import PrintControl
PrintControl.print_function = pprint
print({...}) # will print it using pprint
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
print_extended-0.1.0.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for print_extended-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e323481f8c9b8591a1f74baf3caa957bca6f1c4c6c4fb89d2b3ae09070aff2c7 |
|
MD5 | ece4e7f04d811e26e6fffc9227627d53 |
|
BLAKE2b-256 | 5d91aa167727ba9e32cf59a6a7ed40d32b006112780b4d0c299ef9e90180964d |