Skip to main content

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


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)

Uploaded Source

Built Distribution

snap_console-1.0.3-py3-none-any.whl (8.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page