pdit 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pdit-0.1.0/MANIFEST.in ADDED
@@ -0,0 +1,3 @@
1
+ recursive-include pdit/_static *
2
+ global-exclude *.pyc
3
+ global-exclude __pycache__
pdit-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,155 @@
1
+ Metadata-Version: 2.4
2
+ Name: pdit
3
+ Version: 0.1.0
4
+ Summary: Interactive Python code editor with inline execution results
5
+ Author: Harry Vangberg
6
+ License: Private
7
+ Project-URL: Homepage, https://github.com/vangberg/pdit
8
+ Project-URL: Repository, https://github.com/vangberg/pdit
9
+ Project-URL: Issues, https://github.com/vangberg/pdit/issues
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.8
14
+ Classifier: Programming Language :: Python :: 3.9
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Requires-Python: <3.14,>=3.9
19
+ Description-Content-Type: text/markdown
20
+ Requires-Dist: fastapi>=0.104.0
21
+ Requires-Dist: uvicorn[standard]>=0.24.0
22
+ Requires-Dist: typer>=0.9.0
23
+ Requires-Dist: aiofiles>=23.0.0
24
+ Requires-Dist: watchfiles>=0.20.0
25
+ Requires-Dist: jupyter_client>=8.0.0
26
+ Requires-Dist: ipykernel>=6.29.0
27
+ Requires-Dist: itables>=2.6.1
28
+ Requires-Dist: ipython>=8.18.1
29
+ Provides-Extra: examples
30
+ Requires-Dist: great-tables>=0.20.0; extra == "examples"
31
+ Requires-Dist: matplotlib>=3.7.5; extra == "examples"
32
+ Requires-Dist: pandas>=2.0.3; extra == "examples"
33
+ Requires-Dist: polars>=1.8.2; extra == "examples"
34
+
35
+ # pdit
36
+
37
+ Output-focused Python editor.
38
+
39
+ pdit lets you write regular Python files and see execution results inline, like a notebook but without cells. Edit in your browser or your favorite editor.
40
+
41
+ ## Quick Start
42
+
43
+ ```bash
44
+ pip install pdit
45
+ pdit script.py
46
+ ```
47
+
48
+ ## Features
49
+
50
+ - **Output-focused** - Results appear inline next to the code that generated them
51
+ - **Just Python scripts** - No notebooks, no cells, no special format. Work with plain `.py` files
52
+ - **File watching** - Changes to the file on disk automatically reload in the editor
53
+ - **Auto-run** - Execute code automatically when the file changes
54
+ - **Coding agents** - Perfect companion for Claude Code, Cursor, and other AI coding tools that edit files
55
+
56
+ ### Rich Output
57
+
58
+ - **IPython display** - Rich outputs via [IPython.display](https://ipython.readthedocs.io/en/latest/api/generated/IPython.display.html)
59
+ - **Matplotlib** - Inline plot rendering
60
+ - **Interactive DataFrames** - Sortable, searchable tables
61
+ - **Markdown** - Format text output with Markdown
62
+
63
+ ## Output
64
+
65
+ ### Markdown
66
+
67
+ Top-level string output renders as Markdown, so headings, lists, and emphasis display cleanly.
68
+
69
+ ### HTML
70
+
71
+ Rich HTML output is supported for objects that implement `_repr_html_()`; see note: [IPython.display.display](https://ipython.readthedocs.io/en/latest/api/generated/IPython.display.html#IPython.display.display).
72
+
73
+ ### IPython display
74
+
75
+ IPython display objects render inline; see [IPython.display](https://ipython.readthedocs.io/en/latest/api/generated/IPython.display.html) for details.
76
+
77
+ ### DataFrames
78
+
79
+ Pandas and Polars DataFrames render as interactive tables automatically.
80
+
81
+ ### Plots
82
+
83
+ Matplotlib figures display inline. Call `plt.show()`.
84
+
85
+ ## Installation
86
+
87
+ For development installs or running from source, use [uv](https://github.com/astral-sh/uv).
88
+
89
+ ```bash
90
+ # Install from dist branch (recommended, includes pre-built assets)
91
+ uv add git+https://github.com/vangberg/pdit@dist
92
+
93
+ # Or use directly with uvx
94
+ uvx --from git+https://github.com/vangberg/pdit@dist pdit script.py
95
+
96
+ # From cloned repo (for development)
97
+ git clone git@github.com:vangberg/pdit.git
98
+ cd pdit
99
+ uv pip install -e .
100
+ uv run pdit script.py
101
+ ```
102
+
103
+ ## Usage
104
+
105
+ Start pdit with a Python file:
106
+
107
+ ```bash
108
+ pdit script.py
109
+ ```
110
+
111
+ This will:
112
+ 1. Start the local server on port 8888
113
+ 2. Open your browser automatically
114
+ 3. Load the script file in the editor
115
+
116
+ If you're running from source, use:
117
+
118
+ ```bash
119
+ uv run pdit script.py
120
+ ```
121
+
122
+ ### Options
123
+
124
+ ```bash
125
+ pdit [OPTIONS] [SCRIPT]
126
+
127
+ Options:
128
+ --port INTEGER Port to run server on (default: 8888)
129
+ --host TEXT Host to bind to (default: 127.0.0.1)
130
+ --no-browser Don't open browser automatically
131
+ --help Show help message
132
+ ```
133
+
134
+ ### Examples
135
+
136
+ ```bash
137
+ # Start with script
138
+ pdit analysis.py
139
+
140
+ # Custom port
141
+ pdit --port 9000 script.py
142
+
143
+ # Start without opening browser
144
+ pdit --no-browser script.py
145
+
146
+ # Just start the editor (no script)
147
+ pdit
148
+ ```
149
+ ## Development
150
+
151
+ See [DEVELOPMENT.md](DEVELOPMENT.md) for development setup and testing.
152
+
153
+ ## License
154
+
155
+ Private
pdit-0.1.0/README.md ADDED
@@ -0,0 +1,121 @@
1
+ # pdit
2
+
3
+ Output-focused Python editor.
4
+
5
+ pdit lets you write regular Python files and see execution results inline, like a notebook but without cells. Edit in your browser or your favorite editor.
6
+
7
+ ## Quick Start
8
+
9
+ ```bash
10
+ pip install pdit
11
+ pdit script.py
12
+ ```
13
+
14
+ ## Features
15
+
16
+ - **Output-focused** - Results appear inline next to the code that generated them
17
+ - **Just Python scripts** - No notebooks, no cells, no special format. Work with plain `.py` files
18
+ - **File watching** - Changes to the file on disk automatically reload in the editor
19
+ - **Auto-run** - Execute code automatically when the file changes
20
+ - **Coding agents** - Perfect companion for Claude Code, Cursor, and other AI coding tools that edit files
21
+
22
+ ### Rich Output
23
+
24
+ - **IPython display** - Rich outputs via [IPython.display](https://ipython.readthedocs.io/en/latest/api/generated/IPython.display.html)
25
+ - **Matplotlib** - Inline plot rendering
26
+ - **Interactive DataFrames** - Sortable, searchable tables
27
+ - **Markdown** - Format text output with Markdown
28
+
29
+ ## Output
30
+
31
+ ### Markdown
32
+
33
+ Top-level string output renders as Markdown, so headings, lists, and emphasis display cleanly.
34
+
35
+ ### HTML
36
+
37
+ Rich HTML output is supported for objects that implement `_repr_html_()`; see note: [IPython.display.display](https://ipython.readthedocs.io/en/latest/api/generated/IPython.display.html#IPython.display.display).
38
+
39
+ ### IPython display
40
+
41
+ IPython display objects render inline; see [IPython.display](https://ipython.readthedocs.io/en/latest/api/generated/IPython.display.html) for details.
42
+
43
+ ### DataFrames
44
+
45
+ Pandas and Polars DataFrames render as interactive tables automatically.
46
+
47
+ ### Plots
48
+
49
+ Matplotlib figures display inline. Call `plt.show()`.
50
+
51
+ ## Installation
52
+
53
+ For development installs or running from source, use [uv](https://github.com/astral-sh/uv).
54
+
55
+ ```bash
56
+ # Install from dist branch (recommended, includes pre-built assets)
57
+ uv add git+https://github.com/vangberg/pdit@dist
58
+
59
+ # Or use directly with uvx
60
+ uvx --from git+https://github.com/vangberg/pdit@dist pdit script.py
61
+
62
+ # From cloned repo (for development)
63
+ git clone git@github.com:vangberg/pdit.git
64
+ cd pdit
65
+ uv pip install -e .
66
+ uv run pdit script.py
67
+ ```
68
+
69
+ ## Usage
70
+
71
+ Start pdit with a Python file:
72
+
73
+ ```bash
74
+ pdit script.py
75
+ ```
76
+
77
+ This will:
78
+ 1. Start the local server on port 8888
79
+ 2. Open your browser automatically
80
+ 3. Load the script file in the editor
81
+
82
+ If you're running from source, use:
83
+
84
+ ```bash
85
+ uv run pdit script.py
86
+ ```
87
+
88
+ ### Options
89
+
90
+ ```bash
91
+ pdit [OPTIONS] [SCRIPT]
92
+
93
+ Options:
94
+ --port INTEGER Port to run server on (default: 8888)
95
+ --host TEXT Host to bind to (default: 127.0.0.1)
96
+ --no-browser Don't open browser automatically
97
+ --help Show help message
98
+ ```
99
+
100
+ ### Examples
101
+
102
+ ```bash
103
+ # Start with script
104
+ pdit analysis.py
105
+
106
+ # Custom port
107
+ pdit --port 9000 script.py
108
+
109
+ # Start without opening browser
110
+ pdit --no-browser script.py
111
+
112
+ # Just start the editor (no script)
113
+ pdit
114
+ ```
115
+ ## Development
116
+
117
+ See [DEVELOPMENT.md](DEVELOPMENT.md) for development setup and testing.
118
+
119
+ ## License
120
+
121
+ Private
@@ -0,0 +1,11 @@
1
+ """
2
+ pdit - Interactive Python code editor with inline execution results.
3
+ """
4
+
5
+ from .ipython_executor import IPythonExecutor
6
+
7
+ __version__ = "0.1.0"
8
+
9
+ __all__ = [
10
+ "IPythonExecutor",
11
+ ]