pdit 0.1.0__py3-none-any.whl → 0.3.0__py3-none-any.whl
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/_demo.py +100 -0
- pdit/_static/assets/index-C5r-TK5N.css +1 -0
- pdit/_static/assets/{index-BkEyY6gm.js → index-CANjXEqm.js} +37 -37
- pdit/_static/export.html +1 -1
- pdit/_static/index.html +2 -2
- pdit/cli.py +62 -3
- pdit/ipython_executor.py +51 -0
- pdit-0.3.0.dist-info/METADATA +62 -0
- pdit-0.3.0.dist-info/RECORD +17 -0
- pdit-0.3.0.dist-info/licenses/LICENSE +21 -0
- pdit/_static/assets/index-DxOOJTA1.css +0 -1
- pdit-0.1.0.dist-info/METADATA +0 -155
- pdit-0.1.0.dist-info/RECORD +0 -15
- {pdit-0.1.0.dist-info → pdit-0.3.0.dist-info}/WHEEL +0 -0
- {pdit-0.1.0.dist-info → pdit-0.3.0.dist-info}/entry_points.txt +0 -0
- {pdit-0.1.0.dist-info → pdit-0.3.0.dist-info}/top_level.txt +0 -0
pdit-0.1.0.dist-info/METADATA
DELETED
|
@@ -1,155 +0,0 @@
|
|
|
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.dist-info/RECORD
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
pdit/__init__.py,sha256=QpiMnN_x5G3QaeWMXQlCRUtCo35IEYZLPj-cz87WG_g,185
|
|
2
|
-
pdit/cli.py,sha256=LQyHfBec2tyB-j0afDrZUW9k9OdGfLbbjtq-SYt_zRk,7708
|
|
3
|
-
pdit/exporter.py,sha256=i2emLqRQNPW92vFBTamLZyOhUTDU45_0QnOWG7PcIu8,2811
|
|
4
|
-
pdit/file_watcher.py,sha256=1WlqKWjLCdgMZLdN836MEeWTisGCtZmvgRdOFN-jns8,5200
|
|
5
|
-
pdit/ipython_executor.py,sha256=L2ci871Lyy2hcfxiEyNNiIIfiKBpVv6WaXvYM-jfiHE,13317
|
|
6
|
-
pdit/server.py,sha256=URabdsLxiLUipkl8PTc5jgDjMlQV0v8QJTMnNNy0XKs,13941
|
|
7
|
-
pdit/_static/export.html,sha256=nCo3c6UIZ_djV1hH_Zx9HCsMcubYGEnT33Joc7OVg4A,331509
|
|
8
|
-
pdit/_static/index.html,sha256=zGgZzENG7QVdL9r-1wnEkgNE05BLagWak1LD7m-hczo,450
|
|
9
|
-
pdit/_static/assets/index-BkEyY6gm.js,sha256=NVl_Txa-hhLk_vG27s4_qIpOVNYv5AiI0FNzzbME6Rc,814761
|
|
10
|
-
pdit/_static/assets/index-DxOOJTA1.css,sha256=9T_1k8PnqINanHaLnwLaQbR9xG4IzTAVpPSYgpHia_o,22150
|
|
11
|
-
pdit-0.1.0.dist-info/METADATA,sha256=9NePu5cjJ-aKjnh0xlUotim04BjcZEYCg-HdrwMdKZY,4337
|
|
12
|
-
pdit-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
13
|
-
pdit-0.1.0.dist-info/entry_points.txt,sha256=n9I4wGD7M0NQrPWJcTWOsJAzeS6bQJbTnUP8C3Sl-iY,39
|
|
14
|
-
pdit-0.1.0.dist-info/top_level.txt,sha256=wk6vel1ecJS4EZZ3U6Xue9OwDq-Tw8Pbvq_TRQz9eIQ,5
|
|
15
|
-
pdit-0.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|