Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

replize

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

replize

Tools to create REPL interfaces

  • 0.1.2
  • PyPI
  • Socket score

Maintainers
1

replize

Tools to create REPL interfaces.

To install: pip install replize

Example usage

replize system command

Converts a command line into a REPL.

Usage:

$ replize <command>

Example:

$ replize ls
ls >>> -l
total 8
-rw-r--r-- 1 user group  0 Jan  1 00:00 __init__.py
-rw-r--r-- 1 user group  0 Jan  1 00:00 __main__.py
-rw-r--r-- 1 user group  0 Jan  1 00:00 __pycache__
-rw-r--r-- 1 user group  0 Jan  1 00:00 replize.py
ls >>> exit
$

Recipes

replize is meant to be used with functools.partial to make the kind of REPL factory YOU want, by changing the defaults.

If you want a given stdout or stderr value to have the effect of exiting the REPL, you can set the callback to raise an exception that is in the exit_exceptions.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc