Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

a Python server and shell for inspecting Python processes

Project Description

Inspector is a re-implementation of Andrew Moffat’s Inspect-Shell (https://github.com/amoffat/Inspect-Shell).

What it does

Inspector allows you to read, change or add global variables of your Python program from another process (a shell) while your program is running.

You could, for example, add a whole class to your program from the shell and rewrite some function so that it starts using your newly-created class. All that while your program continues to run! Yes, that’s pretty cool.

How it works

Inspector has 2 modes; server mode and shell mode. Server mode is run by your Python program (in a separate thread), while the shell mode is run by the inspector itself.

Steps:

  1. add import inspector to your program
  2. run your program
  3. run the inspector with python inspector.py
  4. type code into the shell

Inspector also supports tab completion for your program’s variables.

After you’re done, exit the shell by pressing Ctrl-D or Ctrl-C, or typing exit. You program will continue to run with all the changes made. You can run the inspector again anytime you want.

You can also import the inspector from a Python shell if you just want to see how it works.

Inspector works with Python 2 and 3. See https://github.com/jzib/inspector for more information.

Release History

Release History

This version
History Node

0.5.1.1

History Node

0.5.1

History Node

0.5.0

History Node

0.4.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
inspector-0.5.1.1.tar.gz (6.9 kB) Copy SHA256 Checksum SHA256 Source Mar 21, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting