regwright-kernel 0.1.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.
@@ -0,0 +1,15 @@
1
+ {
2
+ "argv": [
3
+ "python",
4
+ "-m",
5
+ "regwright_kernel",
6
+ "-f",
7
+ "{connection_file}"
8
+ ],
9
+ "display_name": "Regwright (Stata syntax)",
10
+ "language": "stata",
11
+ "interrupt_mode": "signal",
12
+ "metadata": {
13
+ "debugger": false
14
+ }
15
+ }
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" width="128" height="128">
2
+ <rect width="128" height="128" rx="16" fill="#1b1f2a"/>
3
+ <text x="24" y="95" font-family="Georgia, 'Noto Serif', 'DejaVu Serif', serif" font-size="86" font-weight="700" fill="#f5f1e8">R</text>
4
+ <circle cx="99" cy="88" r="10" fill="#b4232c"/>
5
+ </svg>
@@ -0,0 +1,89 @@
1
+ Metadata-Version: 2.4
2
+ Name: regwright-kernel
3
+ Version: 0.1.0
4
+ Summary: Jupyter kernel for Stata syntax, powered by the Regwright engine (no Stata required)
5
+ Author: ALGD LTD
6
+ License-Expression: MIT
7
+ License-File: LICENSE
8
+ Keywords: jupyter,kernel,stata,do-file,econometrics,statistics
9
+ Classifier: Framework :: Jupyter
10
+ Classifier: Intended Audience :: Science/Research
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Topic :: Scientific/Engineering :: Information Analysis
13
+ Project-URL: Homepage, https://regwright.com
14
+ Requires-Python: >=3.9
15
+ Requires-Dist: ipykernel>=6.0
16
+ Requires-Dist: jupyter_client>=7.0
17
+ Description-Content-Type: text/markdown
18
+
19
+ # regwright-kernel
20
+
21
+ A Jupyter kernel that runs Stata syntax in notebooks (JupyterLab, Notebook, VS Code and nbconvert)
22
+ using the [Regwright](https://regwright.com) engine. You don't need Stata.
23
+
24
+ ```stata
25
+ sysuse wages, clear
26
+ regress wage educ exper
27
+ scatter wage educ
28
+ ```
29
+
30
+ ## Install
31
+
32
+ 1. Install the `regwright` command-line tool from [regwright.com](https://regwright.com), and
33
+ check that `regwright --version` works.
34
+ 2. Install the kernel:
35
+
36
+ ```sh
37
+ pip install regwright-kernel
38
+ ```
39
+
40
+ The wheel installs the kernelspec into the environment (`share/jupyter/kernels/regwright`). If
41
+ Jupyter runs from a different environment, register the kernel there yourself:
42
+
43
+ ```sh
44
+ python -m regwright_kernel install --user # or --sys-prefix, or --prefix PATH
45
+ ```
46
+
47
+ 3. Choose **Regwright (Stata syntax)** as the notebook kernel.
48
+
49
+ ## What it does
50
+
51
+ - Each kernel keeps one `regwright serve` session, so data, macros and estimates carry over from
52
+ cell to cell, as they do in a Stata session.
53
+ - Output goes to stdout. Error messages go to stderr, and a failed cell has status `error` with the
54
+ Stata return code as its name (for example `r(111)`). A notebook run with `nbconvert --execute`
55
+ therefore stops at the first error, just as a do-file does.
56
+ - Graphs (`scatter`, `twoway`, `histogram`, `graph bar`…) appear under the cell as SVG.
57
+ - <kbd>Tab</kbd> completes command names at the start of a statement and variable names elsewhere.
58
+ <kbd>Shift</kbd>+<kbd>Tab</kbd> shows a variable's type, format and label, or a one-line summary
59
+ of a command.
60
+
61
+ ## Settings (environment variables)
62
+
63
+ | Variable | Meaning |
64
+ |---|---|
65
+ | `REGWRIGHT_PATH` | Path to the `regwright` binary, if it isn't on `PATH` |
66
+ | `REGWRIGHT_DATA` | Extra folders for `sysuse`/`use`, separated by `:` (`;` on Windows) |
67
+ | `REGWRIGHT_KERNEL_ECHO=1` | Echo each command (`. regress …`) before its output, as in a log |
68
+ | `REGWRIGHT_LICENSE` | Licence key. You can also install it with `regwright licence install KEY` |
69
+
70
+ **Regwright Free** handles datasets of up to 1,000 observations. Licences that remove the limit
71
+ are listed at [regwright.com/pricing](https://regwright.com/pricing).
72
+
73
+ ## Building from source
74
+
75
+ The package has its own small build backend (`_backend/`), so it builds with no build dependencies:
76
+
77
+ ```sh
78
+ python -m pip wheel --no-deps --no-build-isolation kernel/ -w dist
79
+ ```
80
+
81
+ To run the tests you need a `regwright` binary plus ipykernel, jupyter_client, nbclient and nbformat:
82
+
83
+ ```sh
84
+ REGWRIGHT_BIN=/path/to/regwright REGWRIGHT_TEST_DATA=/path/with/wages.dta python kernel/tests/test_kernel.py
85
+ ```
86
+
87
+ "Stata" is a trademark of StataCorp LLC. Regwright is an independent product and is not
88
+ affiliated with StataCorp. The kernel is MIT-licensed. The Regwright engine is commercial
89
+ software with a free tier.
@@ -0,0 +1,17 @@
1
+ regwright_kernel/__init__.py,sha256=7fB0e4awuK8XsX2Uq8GNDkyXl1X69vBxmPIAssfdLno,112
2
+ regwright_kernel/__main__.py,sha256=vq1Mi7KEzmbk1Kawz-H1-XX-9QrSTqQPewK2euL8jAY,487
3
+ regwright_kernel/install.py,sha256=-RmgP7_msIIlz3nNqPMewAAjrEdANjcXvlh8XImty-c,2954
4
+ regwright_kernel/kernel.py,sha256=z8VAaWk97J7h__U6O-ear8E2V_ZCVvihaf7stOnEqWc,11808
5
+ regwright_kernel/logo-32x32.png,sha256=XohKLTwnpnPTPiWp87HVsdNz2xdlGXM24mzPFLCSVkM,1124
6
+ regwright_kernel/logo-64x64.png,sha256=dn6tq6g37x-k016M-aLrwJVfg1Vl0phF-yqpkQzOZII,1875
7
+ regwright_kernel/logo-svg.svg,sha256=31UtMNExRapj94VpvfPDpmTQE4hsPea9gdb1CF-BJvM,341
8
+ regwright_kernel/serve.py,sha256=VJeRFuasdG23bEZgWFcVmVJUWlMfGLxVUyxcfUK7d2E,6557
9
+ regwright_kernel/words.json,sha256=Z_R-q5YzXXZQi2UZJ3EnCYiYilMDx4CXLS1YbFOO4KQ,15145
10
+ regwright_kernel-0.1.0.data/data/share/jupyter/kernels/regwright/kernel.json,sha256=godFrMPlYuG0GDbTBsu1Gpk0XzVrDTDLi17Dmm_3mSQ,224
11
+ regwright_kernel-0.1.0.data/data/share/jupyter/kernels/regwright/logo-32x32.png,sha256=XohKLTwnpnPTPiWp87HVsdNz2xdlGXM24mzPFLCSVkM,1124
12
+ regwright_kernel-0.1.0.data/data/share/jupyter/kernels/regwright/logo-64x64.png,sha256=dn6tq6g37x-k016M-aLrwJVfg1Vl0phF-yqpkQzOZII,1875
13
+ regwright_kernel-0.1.0.data/data/share/jupyter/kernels/regwright/logo-svg.svg,sha256=31UtMNExRapj94VpvfPDpmTQE4hsPea9gdb1CF-BJvM,341
14
+ regwright_kernel-0.1.0.dist-info/METADATA,sha256=_CTns2M7uOrQr3PZRru6FRl0U5LbNUTjWJeRQKXekoE,3459
15
+ regwright_kernel-0.1.0.dist-info/WHEEL,sha256=1gAFAyqq8pCckZnil809ZSrEOWXb7hOOTfaXy2eRZ9U,90
16
+ regwright_kernel-0.1.0.dist-info/licenses/LICENSE,sha256=sco-metQEVDLqP7WZJQPxlC-zcIRCrPWvOc_2xPHJO8,1270
17
+ regwright_kernel-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: regwright_build 0.1
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,25 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ALGD LTD
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ This licence covers the code of this Jupyter kernel only. The Regwright
24
+ engine (the `regwright` command-line tool) is separate, commercial software
25
+ with its own licence terms: https://regwright.com/legal