Metadata-Version: 2.4
Name: printer-easy
Version: 0.0.2
Summary: Printer, but made easy
License-File: LICENSE
Author: danialcala94
Author-email: danielalcalavalera@gmail.com
Requires-Python: >=3.8,<3.14
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Project-URL: Homepage, https://github.com/Implosiv3/printer-easy
Project-URL: Issues, https://github.com/Implosiv3/printer-easy/issues
Description-Content-Type: text/markdown

# 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.
