Skip to main content

GNU Readline based Python REPL without any external dependencies

Project description

rlpython is a GNU Readline based Python REPL without any external dependencies

Installation

# pip install rlpython

Starting rlpython from the command line

# rlpython

Starting rlpython from Python code

import rlpython

rlpython.embed()

Attach a rlpython shell over network

import rlpython

rlpython.embed(bind='localhost:5000')
# rlpython localhost:5000

Start a multisession shell server

Server

import asyncio

import rlpython

loop = asyncio.get_event_loop()

with rlpython.embed(bind='localhost:5000', multi_session=True):
    loop.run_forever()
# rlpython localhost:5000

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for rlpython, version 0.8.4
Filename, size File type Python version Upload date Hashes
Filename, size rlpython-0.8.4.tar.gz (20.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page