https://github.com/ultraflame4/better-console-python
Provides a better console for python programs.
https://github.com/ultraflame4/better-console-python
Last synced: over 1 year ago
JSON representation
Provides a better console for python programs.
- Host: GitHub
- URL: https://github.com/ultraflame4/better-console-python
- Owner: ultraflame4
- License: gpl-3.0
- Created: 2020-05-23T08:18:22.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-12-27T04:58:07.000Z (over 4 years ago)
- Last Synced: 2025-01-11T01:12:43.410Z (over 1 year ago)
- Language: Python
- Size: 533 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Better Console
## Features:
Filters for Debug, Info, Warning, Critical , Error and Normal messages
Text input bar to execute commands
[](https://www.python.org/)
[](https://www.python.org/downloads/release/python-375/)
[](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity)
[](http://perso.crans.org/besson/LICENSE.html)


Provides a better console for python programs to use
## Installation:
### Prerequisites
python 3.7.5 or above (have no idea if the versions below that work)
PySimpleGuiQt (should install itself when Better Console is installing)
### install
pip install Better-Console==0.0.6
## Usage:
```python
# Example:
import Better_Console
# Create an instance of better console . Warning: Please only create one instance of the object
c=betterConsole.BetterConsole()
# I recommend you to execute this once after creating an instance of better console
c.loop()
# Printing to console
c.print("Test","test")
# Logging
c.debug("Test","test")
c.info("Test","test")
c.warn("test","test")
c.crit("Crit TEst","test")
c.error("tset","test")
# Add commands
def func():
c.print("Example")
c.commandHandler.addCommands({"func":func})
while True:
#Update Better Console
c.loop()
```