Easy-to-use interactive console for Python
Project description
Snap Console
Easy-to-use interactive console for Python
Installation
You can install Snap console
with pip.
pip install snap-console
Getting Started
Snap console
is built on top of the curses
library to give you access to powerful console functionality without having to deal with low-level read/writes.
To begin, you can set up the console with the following code:
from snapconsole import SnapConsole
console = SnapConsole()
console.start()
# Handle console commands here
console.stop()
start()
initializes the empty console, and stop()
resets the console to how it was before. You can also use Python's context manager syntax to use the console:
from snapconsole import SnapConsole
with SnapConsole() as console:
# Handle console commands here
The console
The console consists of 2 segments: the display and the input box. By default, the logs are aligned to the bottom
with SnapConsole() as console:
console.logs
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
snap-console-1.0.3.tar.gz
(8.0 kB
view hashes)
Built Distribution
Close
Hashes for snap_console-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 856fbc9997d5096b668620380b12f4402ea1a72e55e2497ccbc65495b9c94385 |
|
MD5 | f0a9c28975c18e740bbfa38ffb112d93 |
|
BLAKE2b-256 | 91c3dcecce3232627a5bfead7b66d9370269c88a774b9dc0f63f1d72cbb6731f |