Metadata-Version: 2.1
Name: rlpython
Version: 0.10.2
Summary: GNU Readline based Python REPL without any external dependencies
Author-email: Florian Scherf <mail@florianscherf.de>
License: MIT License
        
        Copyright (c) 2021 Florian Scherf
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/fscherf/rlpython
Project-URL: Repository, https://github.com/fscherf/rlpython
Project-URL: Bug Tracker, https://github.com/fscherf/rlpython/issues
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Debuggers
Classifier: Topic :: System :: Monitoring
Classifier: Topic :: System :: Shells
Classifier: Topic :: Terminals
Classifier: Topic :: Utilities
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3 :: Only
Description-Content-Type: text/x-rst
Provides-Extra: packaging
License-File: LICENSE.txt

rlpython
========

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


Installation
------------

.. code-block:: text

    # pip install rlpython


Starting rlpython from the command line
---------------------------------------

.. code-block:: text

    # rlpython


Starting rlpython from Python code
----------------------------------

.. code-block:: python

    import rlpython

    rlpython.embed()


Attach a rlpython shell over network
-------------------------------------

.. code-block:: python

    import rlpython

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


.. code-block:: text

    # rlpython localhost:5000


Start a multisession shell server
---------------------------------

Server
~~~~~~

.. code-block:: python

    import asyncio

    import rlpython

    loop = asyncio.get_event_loop()

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

.. code-block:: text

    # rlpython localhost:5000
