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.

Source Distribution

rlpython-0.9.tar.gz (20.3 kB view hashes)

Uploaded Source

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