-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
56 lines (41 loc) · 1.7 KB
/
Copy pathsetup.py
File metadata and controls
56 lines (41 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
from distutils.core import setup
long_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.
"""
setup(
name='inspector',
description='a Python server and shell for inspecting Python processes',
long_description=long_description,
author='Jure Ziberna and Andrew Moffat (Inspect-Shell)',
author_email='j.ziberna@gmail.com',
url='https://github.com/jzib/inspector',
version='0.5.1.1',
license='GNU GPL 3',
py_modules=['inspector']
)