Console Printer
The easiest way to print in the console and in a file.
Functionality
Now its very easy to write messages in the console or in a file to have them as a log.
Usage
Here you have some examples:
# Activate it to print and log
printer = ConsolePrinter(
do_print = True,
do_write_file = True
)
# Will just print something
printer.print(33)
printer.deactivate_print()
# Will not print it
printer.print('message')
# Will not print but log in file
printer.print('in file', 'file.txt')
printer.deactivate_write()
# Will not print nor log it
printer.print('in file', 'file.txt')
# Is singleton, this will work also
ConsolePrinter().activate_write()
# This code below would do the same
# printer.activate_write()
ConsolePrinter().activate_print()
# This will reset the singleton instance
ConsolePrinter(
do_print = True,
do_write_file = True
)
# Will print and log in the file
ConsolePrinter().print('in file', 'file.txt')
# This code below would do the same
# printer.print('in file', 'file.txt')
You can see and try the tests with more examples.
Metadata
Release files for printer-easy 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| printer_easy-0.0.2.tar.gz | 4.0 kB | Without provenance | Details for printer_easy-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| printer_easy-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for printer_easy-0.0.2-py3-none-any.whl |
Total release size: 8.7 kB
Release files / printer_easy-0.0.2.tar.gz
| Download URL | printer_easy-0.0.2.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d81034a65543de2bad136275dfddbf907c2a5e6bd04227c9f3362b8753fcedc6
|
|
BLAKE2b-256 checksum How to use checksums |
8521939e9d2f9bb523b76c4c6b7d1857bb06170d4373d19963959d52f9158e5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.0 CPython/3.9.0 Windows/10
|
Release files / printer_easy-0.0.2-py3-none-any.whl
| Download URL | printer_easy-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f1302b01fa503ecae5820602451aaaba4d0bdc19e62b583f0bd4807d9fbb6aaa
|
|
BLAKE2b-256 checksum How to use checksums |
49b281b3cc0946e3c7c922e5d612ead32246b11b14f2ea2c241fd7154732cdf8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.0 CPython/3.9.0 Windows/10
|
Security for printer-easy 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.