Skip to main content

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.

Metadata

Release files for inspector 0.5.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for inspector 0.5.1.1
File Size Uploaded Provenance Actions
inspector-0.5.1.1.tar.gz 6.9 kB Without provenance Details for inspector-0.5.1.1.tar.gz

Release files / inspector-0.5.1.1.tar.gz

Download URL inspector-0.5.1.1.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
61dc698235a37d3ab54f67e3f42af0a5386ebeaf18b3b10b6155ce4f5c49e50c
BLAKE2b-256 checksum
How to use checksums
d0085dce581f4fd18a2bd39e1ed9419988e8b7c730f6ae6df34c8169a6da85b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for inspector 0.5.1.1

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.

Release history Release notifications | RSS feed

This release

0.5.1.1 This release

1 release file No provenance

0.4.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page