====
.. image:: repl-demo.gif
Runs a command in a `REPL <https://en.wikipedia.org/wiki/Read-eval-
print_loop>`_. It comes in very handy when dealing with applications that do
not ship with a REPL, but could benefit greatly from one (such as git_).
Tab completion is available and completes filenames.
Real productivity
-----------------
Set an alias in your shell's start-up file:
alias rg="repl git"
Instead of typing ``git ...``, type ``rg`` once. You'll never go back.
Installation
------------
``repl`` must be installed from PyPI_
.. _git: https://git-scm.com
.. _PyPI: http://pypi.python.org.
Detailed usage
--------------
Running ``repl COMMAND ARG1 ARG2...`` will start the loop. Any line entered
will now be appended to ``COMMAND ARG1 ARG2...`` and executed. The result is
displayed and ``repl`` will wait for the next line to be entered.
Try ``repl --help`` for a list of options.
Exiting
~~~~~~~
To quit the REPL, send an ``EOF`` symbol (usually done with ``Ctrl-d`` on *nix
systems, ``Ctrl-z`` on Windows).
Command substitution
~~~~~~~~~~~~~~~~~~~~
If you run into a command that needs arguments passed somewhere in between
other arguments by passing ``{}`` as the argument. It will be replaced with
``…`` in the prompt.
.. code-block:: sh
$ repl echo Hello, {} - Nice to meet you!
echo Hello, … - Nice to meet you!>> Alice
Hello, Alice - Nice to meet you!
echo Hello, … - Nice to meet you!>> Bob
Hello, Bob - Nice to meet you!
echo Hello, … - Nice to meet you!>>
Credits
-------
Idea stolen from https://github.com/defunkt/repl, which unfortunately is
unmaintained. Originally rewritten because I had issues with stdin/stdout; now
it boasts a few extra features (and does not require ruby)
Metadata
Release files for repl 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| repl-1.0.tar.gz | 5.1 kB | Without provenance | Details for repl-1.0.tar.gz |
Release files / repl-1.0.tar.gz
| Download URL | repl-1.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1fb1b30605383b8b868fde14faf92dc7f654d9c2612fa02e0102dfa55104bc11
|
|
BLAKE2b-256 checksum How to use checksums |
889805e853fed4d6876998bef3b7ede21c008cab7ecfe247e789e7b00c3c4664
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for repl 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.