rowlab 0.0.1__tar.gz → 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.
- rowlab-0.1.0/.gitignore +14 -0
- rowlab-0.1.0/.python-version +1 -0
- rowlab-0.1.0/LICENSE +201 -0
- rowlab-0.1.0/PKG-INFO +77 -0
- rowlab-0.1.0/README.md +54 -0
- rowlab-0.1.0/pyproject.toml +58 -0
- rowlab-0.1.0/src/rowlab/__init__.py +3 -0
- rowlab-0.1.0/src/rowlab/api/__init__.py +0 -0
- rowlab-0.1.0/src/rowlab/api/auth.py +109 -0
- rowlab-0.1.0/src/rowlab/api/connections.py +29 -0
- rowlab-0.1.0/src/rowlab/api/datasets.py +130 -0
- rowlab-0.1.0/src/rowlab/api/links.py +31 -0
- rowlab-0.1.0/src/rowlab/api/members.py +36 -0
- rowlab-0.1.0/src/rowlab/api/runs.py +70 -0
- rowlab-0.1.0/src/rowlab/api/settings.py +55 -0
- rowlab-0.1.0/src/rowlab/api/utils.py +22 -0
- rowlab-0.1.0/src/rowlab/app.py +123 -0
- rowlab-0.1.0/src/rowlab/cli.py +59 -0
- rowlab-0.1.0/src/rowlab/core/__init__.py +0 -0
- rowlab-0.1.0/src/rowlab/core/answers.py +136 -0
- rowlab-0.1.0/src/rowlab/core/auth.py +262 -0
- rowlab-0.1.0/src/rowlab/core/compare.py +613 -0
- rowlab-0.1.0/src/rowlab/core/config.py +149 -0
- rowlab-0.1.0/src/rowlab/core/connections.py +178 -0
- rowlab-0.1.0/src/rowlab/core/crypto.py +52 -0
- rowlab-0.1.0/src/rowlab/core/datasets.py +564 -0
- rowlab-0.1.0/src/rowlab/core/db.py +130 -0
- rowlab-0.1.0/src/rowlab/core/errors.py +14 -0
- rowlab-0.1.0/src/rowlab/core/exports.py +162 -0
- rowlab-0.1.0/src/rowlab/core/links.py +81 -0
- rowlab-0.1.0/src/rowlab/core/manual.py +106 -0
- rowlab-0.1.0/src/rowlab/core/members.py +142 -0
- rowlab-0.1.0/src/rowlab/core/migrations/001_initial.sql +60 -0
- rowlab-0.1.0/src/rowlab/core/migrations/002_organisations.sql +73 -0
- rowlab-0.1.0/src/rowlab/core/migrations/003_run_turns.sql +8 -0
- rowlab-0.1.0/src/rowlab/core/migrations/004_usage.sql +22 -0
- rowlab-0.1.0/src/rowlab/core/migrations/005_answers.sql +28 -0
- rowlab-0.1.0/src/rowlab/core/network.py +63 -0
- rowlab-0.1.0/src/rowlab/core/prompts.py +155 -0
- rowlab-0.1.0/src/rowlab/core/providers/__init__.py +0 -0
- rowlab-0.1.0/src/rowlab/core/providers/openrouter.py +228 -0
- rowlab-0.1.0/src/rowlab/core/providers/workos.py +60 -0
- rowlab-0.1.0/src/rowlab/core/runs.py +765 -0
- rowlab-0.1.0/src/rowlab/core/settings.py +67 -0
- rowlab-0.1.0/src/rowlab/core/sql.py +162 -0
- rowlab-0.1.0/src/rowlab/core/storage.py +201 -0
- rowlab-0.1.0/src/rowlab/core/tasks.py +709 -0
- rowlab-0.1.0/src/rowlab/core/usage.py +170 -0
- rowlab-0.1.0/src/rowlab/mcp/__init__.py +0 -0
- rowlab-0.1.0/src/rowlab/mcp/server.py +462 -0
- rowlab-0.1.0/src/rowlab/static/404/index.html +1 -0
- rowlab-0.1.0/src/rowlab/static/404.html +1 -0
- rowlab-0.1.0/src/rowlab/static/__next.__PAGE__.txt +37 -0
- rowlab-0.1.0/src/rowlab/static/__next._full.txt +31 -0
- rowlab-0.1.0/src/rowlab/static/__next._tree.txt +5 -0
- rowlab-0.1.0/src/rowlab/static/_next/static/PLCJd551koLkS1SAN_CZS/_buildManifest.js +11 -0
- rowlab-0.1.0/src/rowlab/static/_next/static/PLCJd551koLkS1SAN_CZS/_clientMiddlewareManifest.js +1 -0
- rowlab-0.1.0/src/rowlab/static/_next/static/PLCJd551koLkS1SAN_CZS/_ssgManifest.js +1 -0
- rowlab-0.1.0/src/rowlab/static/_next/static/chunks/08zf1vmh64xn6.css +3 -0
- rowlab-0.1.0/src/rowlab/static/_next/static/chunks/0cz1d0mv5g_q7.js +1 -0
- rowlab-0.1.0/src/rowlab/static/_next/static/chunks/0oh00evjk6lw0.js +1 -0
- rowlab-0.1.0/src/rowlab/static/_next/static/chunks/0x6t6il8vheop.js +22 -0
- rowlab-0.1.0/src/rowlab/static/_next/static/chunks/22ufna4q60lz3.js +71 -0
- rowlab-0.1.0/src/rowlab/static/_next/static/chunks/25qbkipp9f-z5.js +1 -0
- rowlab-0.1.0/src/rowlab/static/_next/static/chunks/3-k3sbprswqkv.js +31 -0
- rowlab-0.1.0/src/rowlab/static/_next/static/chunks/3rl-_w30kvfel.js +2 -0
- rowlab-0.1.0/src/rowlab/static/_next/static/chunks/3y2uigl1k880y.js +1 -0
- rowlab-0.1.0/src/rowlab/static/_next/static/chunks/3ya2p1xd7qwr0.js +1 -0
- rowlab-0.1.0/src/rowlab/static/_next/static/chunks/40xd1ajj3x8ji.js +5 -0
- rowlab-0.1.0/src/rowlab/static/_next/static/chunks/turbopack-2u1d16houkiyo.js +1 -0
- rowlab-0.1.0/src/rowlab/static/_next/static/media/07935285219a259d-s.1qq4vpdcun5oj.woff2 +0 -0
- rowlab-0.1.0/src/rowlab/static/_next/static/media/07a39a8a4660cc7c-s.p.0r6juujl39pe6.woff2 +0 -0
- rowlab-0.1.0/src/rowlab/static/_next/static/media/2a04751c893bf294-s.1rgnod-3esatf.woff2 +0 -0
- rowlab-0.1.0/src/rowlab/static/_next/static/media/2bb852295097cd96-s.2dbetqa9o8jxf.woff2 +0 -0
- rowlab-0.1.0/src/rowlab/static/_next/static/media/4f6667dd39116621-s.3p2_lha1f2xer.woff2 +0 -0
- rowlab-0.1.0/src/rowlab/static/_next/static/media/605ce01b664af129-s.p.0wgildi0cnwt9.woff2 +0 -0
- rowlab-0.1.0/src/rowlab/static/_next/static/media/6e342921ee4dcd9d-s.2tuy5pz7dlieh.woff2 +0 -0
- rowlab-0.1.0/src/rowlab/static/_next/static/media/77814b00d5ca94a4-s.21jp631_3pja2.woff2 +0 -0
- rowlab-0.1.0/src/rowlab/static/_next/static/media/9eb5a876700c0028-s.1uyisp29ctx0d.woff2 +0 -0
- rowlab-0.1.0/src/rowlab/static/_next/static/media/b0c6b664fd57c2c6-s.31988l_ccedte.woff2 +0 -0
- rowlab-0.1.0/src/rowlab/static/_next/static/media/f58031ded4338640-s.390ncx5urfkfu.woff2 +0 -0
- rowlab-0.1.0/src/rowlab/static/_not-found/__next._full.txt +26 -0
- rowlab-0.1.0/src/rowlab/static/_not-found/__next._not-found.__PAGE__.txt +36 -0
- rowlab-0.1.0/src/rowlab/static/_not-found/__next._tree.txt +4 -0
- rowlab-0.1.0/src/rowlab/static/_not-found/index.html +1 -0
- rowlab-0.1.0/src/rowlab/static/_not-found/index.txt +26 -0
- rowlab-0.1.0/src/rowlab/static/apple-touch-icon.png +0 -0
- rowlab-0.1.0/src/rowlab/static/brand/logo.svg +1 -0
- rowlab-0.1.0/src/rowlab/static/brand/mark.svg +4 -0
- rowlab-0.1.0/src/rowlab/static/brand/social/app.png +0 -0
- rowlab-0.1.0/src/rowlab/static/brand/social/settings.png +0 -0
- rowlab-0.1.0/src/rowlab/static/favicon.ico +0 -0
- rowlab-0.1.0/src/rowlab/static/favicon.svg +4 -0
- rowlab-0.1.0/src/rowlab/static/index.html +1 -0
- rowlab-0.1.0/src/rowlab/static/index.txt +31 -0
- rowlab-0.1.0/src/rowlab/static/settings/__next._full.txt +32 -0
- rowlab-0.1.0/src/rowlab/static/settings/__next._tree.txt +6 -0
- rowlab-0.1.0/src/rowlab/static/settings/__next.settings.__PAGE__.txt +38 -0
- rowlab-0.1.0/src/rowlab/static/settings/index.html +1 -0
- rowlab-0.1.0/src/rowlab/static/settings/index.txt +32 -0
- rowlab-0.1.0/tests/conftest.py +120 -0
- rowlab-0.1.0/tests/test_app.py +11 -0
- rowlab-0.1.0/tests/test_auth.py +229 -0
- rowlab-0.1.0/tests/test_cli.py +21 -0
- rowlab-0.1.0/tests/test_compare.py +329 -0
- rowlab-0.1.0/tests/test_datasets.py +339 -0
- rowlab-0.1.0/tests/test_db.py +60 -0
- rowlab-0.1.0/tests/test_exports.py +84 -0
- rowlab-0.1.0/tests/test_links.py +69 -0
- rowlab-0.1.0/tests/test_manual.py +239 -0
- rowlab-0.1.0/tests/test_mcp.py +254 -0
- rowlab-0.1.0/tests/test_prompts.py +148 -0
- rowlab-0.1.0/tests/test_protections.py +198 -0
- rowlab-0.1.0/tests/test_runs.py +897 -0
- rowlab-0.1.0/tests/test_s3.py +125 -0
- rowlab-0.1.0/tests/test_tasks.py +246 -0
- rowlab-0.1.0/tests/test_usage.py +24 -0
- rowlab-0.1.0/uv.lock +2954 -0
- rowlab-0.0.1/PKG-INFO +0 -14
- rowlab-0.0.1/README.md +0 -5
- rowlab-0.0.1/pyproject.toml +0 -14
- rowlab-0.0.1/src/rowlab/__init__.py +0 -1
rowlab-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.13
|
rowlab-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
rowlab-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: rowlab
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: AI labeling, filtering and analysis for tabular data
|
|
5
|
+
Project-URL: Homepage, https://rowlab.dev
|
|
6
|
+
Project-URL: Documentation, https://docs.rowlab.dev
|
|
7
|
+
Project-URL: Source, https://github.com/row-and-reason/rowlab
|
|
8
|
+
Author-email: Row & Reason <support@rowandreason.com>
|
|
9
|
+
License-Expression: Apache-2.0
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Requires-Python: >=3.13
|
|
12
|
+
Requires-Dist: duckdb>=2.0.0
|
|
13
|
+
Requires-Dist: fastapi[standard]>=0.162.0
|
|
14
|
+
Requires-Dist: fastmcp>=4.1.6
|
|
15
|
+
Requires-Dist: tiktoken>=0.14.0
|
|
16
|
+
Provides-Extra: hosted
|
|
17
|
+
Requires-Dist: boto3>=1.40; extra == 'hosted'
|
|
18
|
+
Requires-Dist: cryptography>=44; extra == 'hosted'
|
|
19
|
+
Requires-Dist: psycopg[binary,pool]>=3.2; extra == 'hosted'
|
|
20
|
+
Requires-Dist: pyjwt>=2.10; extra == 'hosted'
|
|
21
|
+
Requires-Dist: workos>=10.8.0; extra == 'hosted'
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
|
|
24
|
+
# rowlab
|
|
25
|
+
|
|
26
|
+
Ask a question of every row. rowlab labels, extracts and rewrites tabular data with AI: add a CSV,
|
|
27
|
+
JSON, JSONL or Parquet file, write the question from the row's own columns, try it on twenty rows,
|
|
28
|
+
then run it on a million. Every run makes a new dataset of the selected rows with the answers added;
|
|
29
|
+
your data is never changed in place.
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
uvx rowlab
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Open [localhost:8000](http://localhost:8000), paste an [OpenRouter](https://openrouter.ai) key in
|
|
36
|
+
Settings, add a file, and ask it something.
|
|
37
|
+
|
|
38
|
+
- Docs: [docs.rowlab.dev](https://docs.rowlab.dev)
|
|
39
|
+
- Source, issues and contributing:
|
|
40
|
+
[github.com/row-and-reason/rowlab](https://github.com/row-and-reason/rowlab)
|
|
41
|
+
- Hosted: [app.rowlab.dev](https://app.rowlab.dev)
|
|
42
|
+
|
|
43
|
+
Open source under Apache-2.0, by [Row & Reason](https://rowlab.dev).
|
|
44
|
+
|
|
45
|
+
## Agent setup and dataset names
|
|
46
|
+
|
|
47
|
+
Open **Settings → Connect agents** for copyable Codex and Claude Code commands, including sign-in
|
|
48
|
+
on hosted servers and installation of the single Rowlab skill. The commands use this server's URL.
|
|
49
|
+
Rename imports or run results from the dataset menu, the command palette, or MCP `dataset_rename`.
|
|
50
|
+
Names are display labels; IDs and lineage stay unchanged.
|
|
51
|
+
|
|
52
|
+
MCP `models_list` returns 20 models by default with `total` and `next_offset`; filter by `search` or
|
|
53
|
+
`kind`, or page with `offset` and `limit` (up to 100). `columns_compare` defaults to a compact summary
|
|
54
|
+
with per-class precision and recall; use `detail="full"` for distributions and all drill-down filters.
|
|
55
|
+
New sampled runs contain only selected rows, preserving source `__row_id` values. Existing result
|
|
56
|
+
datasets keep their stored rows; rerun from the source to create a result using the new behavior.
|
|
57
|
+
|
|
58
|
+
### Manual runs
|
|
59
|
+
|
|
60
|
+
`POST /v1/datasets/{id}/runs` accepts `method: "manual"` (the default is `"llm"`).
|
|
61
|
+
It freezes the tasks and selected rows, creates the output dataset, and waits for labels in
|
|
62
|
+
status `manual`. There are no model calls or provider-key requirements. All task types work;
|
|
63
|
+
output columns use task names without model suffixes, probabilities or status columns.
|
|
64
|
+
|
|
65
|
+
Use `PUT /v1/runs/{id}/tasks/{task_id}/answers` with
|
|
66
|
+
`{"answers": [{"row_id": 0, "value": true}]}` (up to 1,000 answers).
|
|
67
|
+
Yes/no takes a boolean; pick one and scale take an option name; pick any takes a list of
|
|
68
|
+
option names; write takes text; extract takes an object keyed by field name. Null clears.
|
|
69
|
+
`POST /v1/runs/{id}/finish` freezes the output with unanswered cells null. Repeating finish
|
|
70
|
+
is safe. Completed outputs use the existing query, compare and export interfaces.
|
|
71
|
+
|
|
72
|
+
Manual saves reuse the run's typed Parquet parts, rewriting only affected chunks of at most
|
|
73
|
+
500 source row IDs. No per-answer database records, retry receipts or history are retained.
|
|
74
|
+
Saves and finishing serialize on the run. Last saved value wins; retry an interrupted batch
|
|
75
|
+
with the same values, since a batch spanning parts can be partially saved. After a crash
|
|
76
|
+
before finish commits, readers still use the parts and finishing can be retried. Deleting
|
|
77
|
+
the output dataset deletes its run and files. Manual runs ask no models, so keep no model replies.
|
rowlab-0.1.0/README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# rowlab
|
|
2
|
+
|
|
3
|
+
Ask a question of every row. rowlab labels, extracts and rewrites tabular data with AI: add a CSV,
|
|
4
|
+
JSON, JSONL or Parquet file, write the question from the row's own columns, try it on twenty rows,
|
|
5
|
+
then run it on a million. Every run makes a new dataset of the selected rows with the answers added;
|
|
6
|
+
your data is never changed in place.
|
|
7
|
+
|
|
8
|
+
```sh
|
|
9
|
+
uvx rowlab
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Open [localhost:8000](http://localhost:8000), paste an [OpenRouter](https://openrouter.ai) key in
|
|
13
|
+
Settings, add a file, and ask it something.
|
|
14
|
+
|
|
15
|
+
- Docs: [docs.rowlab.dev](https://docs.rowlab.dev)
|
|
16
|
+
- Source, issues and contributing:
|
|
17
|
+
[github.com/row-and-reason/rowlab](https://github.com/row-and-reason/rowlab)
|
|
18
|
+
- Hosted: [app.rowlab.dev](https://app.rowlab.dev)
|
|
19
|
+
|
|
20
|
+
Open source under Apache-2.0, by [Row & Reason](https://rowlab.dev).
|
|
21
|
+
|
|
22
|
+
## Agent setup and dataset names
|
|
23
|
+
|
|
24
|
+
Open **Settings → Connect agents** for copyable Codex and Claude Code commands, including sign-in
|
|
25
|
+
on hosted servers and installation of the single Rowlab skill. The commands use this server's URL.
|
|
26
|
+
Rename imports or run results from the dataset menu, the command palette, or MCP `dataset_rename`.
|
|
27
|
+
Names are display labels; IDs and lineage stay unchanged.
|
|
28
|
+
|
|
29
|
+
MCP `models_list` returns 20 models by default with `total` and `next_offset`; filter by `search` or
|
|
30
|
+
`kind`, or page with `offset` and `limit` (up to 100). `columns_compare` defaults to a compact summary
|
|
31
|
+
with per-class precision and recall; use `detail="full"` for distributions and all drill-down filters.
|
|
32
|
+
New sampled runs contain only selected rows, preserving source `__row_id` values. Existing result
|
|
33
|
+
datasets keep their stored rows; rerun from the source to create a result using the new behavior.
|
|
34
|
+
|
|
35
|
+
### Manual runs
|
|
36
|
+
|
|
37
|
+
`POST /v1/datasets/{id}/runs` accepts `method: "manual"` (the default is `"llm"`).
|
|
38
|
+
It freezes the tasks and selected rows, creates the output dataset, and waits for labels in
|
|
39
|
+
status `manual`. There are no model calls or provider-key requirements. All task types work;
|
|
40
|
+
output columns use task names without model suffixes, probabilities or status columns.
|
|
41
|
+
|
|
42
|
+
Use `PUT /v1/runs/{id}/tasks/{task_id}/answers` with
|
|
43
|
+
`{"answers": [{"row_id": 0, "value": true}]}` (up to 1,000 answers).
|
|
44
|
+
Yes/no takes a boolean; pick one and scale take an option name; pick any takes a list of
|
|
45
|
+
option names; write takes text; extract takes an object keyed by field name. Null clears.
|
|
46
|
+
`POST /v1/runs/{id}/finish` freezes the output with unanswered cells null. Repeating finish
|
|
47
|
+
is safe. Completed outputs use the existing query, compare and export interfaces.
|
|
48
|
+
|
|
49
|
+
Manual saves reuse the run's typed Parquet parts, rewriting only affected chunks of at most
|
|
50
|
+
500 source row IDs. No per-answer database records, retry receipts or history are retained.
|
|
51
|
+
Saves and finishing serialize on the run. Last saved value wins; retry an interrupted batch
|
|
52
|
+
with the same values, since a batch spanning parts can be partially saved. After a crash
|
|
53
|
+
before finish commits, readers still use the parts and finishing can be retried. Deleting
|
|
54
|
+
the output dataset deletes its run and files. Manual runs ask no models, so keep no model replies.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "rowlab"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "AI labeling, filtering and analysis for tabular data"
|
|
5
|
+
authors = [
|
|
6
|
+
{ name = "Row & Reason", email = "support@rowandreason.com" }
|
|
7
|
+
]
|
|
8
|
+
license = "Apache-2.0"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.13"
|
|
11
|
+
dependencies = [
|
|
12
|
+
"duckdb>=2.0.0",
|
|
13
|
+
"fastapi[standard]>=0.162.0",
|
|
14
|
+
"fastmcp>=4.1.6",
|
|
15
|
+
"tiktoken>=0.14.0",
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
[project.optional-dependencies]
|
|
19
|
+
# For hosted setups: Postgres (`ROWLAB_DATABASE_URL`), datasets on S3 (`ROWLAB_STORAGE_URL`) and
|
|
20
|
+
# sign-in with WorkOS, with saved keys encrypted.
|
|
21
|
+
hosted = [
|
|
22
|
+
"boto3>=1.40",
|
|
23
|
+
"cryptography>=44",
|
|
24
|
+
"psycopg[binary,pool]>=3.2",
|
|
25
|
+
"pyjwt>=2.10",
|
|
26
|
+
"workos>=10.8.0",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
[project.urls]
|
|
30
|
+
Homepage = "https://rowlab.dev"
|
|
31
|
+
Documentation = "https://docs.rowlab.dev"
|
|
32
|
+
Source = "https://github.com/row-and-reason/rowlab"
|
|
33
|
+
|
|
34
|
+
[project.scripts]
|
|
35
|
+
rowlab = "rowlab.cli:main"
|
|
36
|
+
|
|
37
|
+
[build-system]
|
|
38
|
+
requires = ["hatchling"]
|
|
39
|
+
build-backend = "hatchling.build"
|
|
40
|
+
|
|
41
|
+
[dependency-groups]
|
|
42
|
+
dev = [
|
|
43
|
+
"moto[server]>=5.2.5",
|
|
44
|
+
# So the tests can run on Postgres and S3 too (see tests/conftest.py).
|
|
45
|
+
"rowlab[hosted]",
|
|
46
|
+
"pytest>=9.2.0",
|
|
47
|
+
"ruff>=0.17.4",
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
[tool.pytest.ini_options]
|
|
51
|
+
testpaths = ["tests"]
|
|
52
|
+
|
|
53
|
+
[tool.ruff]
|
|
54
|
+
line-length = 100
|
|
55
|
+
|
|
56
|
+
[tool.hatch.build]
|
|
57
|
+
# The bundled web UI is gitignored but must ship in the wheel.
|
|
58
|
+
artifacts = ["src/rowlab/static/**"]
|
|
File without changes
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import secrets
|
|
2
|
+
from typing import Annotated
|
|
3
|
+
|
|
4
|
+
from fastapi import APIRouter, Depends, Request
|
|
5
|
+
from fastapi.responses import RedirectResponse
|
|
6
|
+
from fastapi.security import APIKeyCookie, HTTPAuthorizationCredentials, HTTPBearer
|
|
7
|
+
from pydantic import BaseModel, Field
|
|
8
|
+
|
|
9
|
+
from rowlab.core import auth
|
|
10
|
+
from rowlab.core.auth import Me
|
|
11
|
+
from rowlab.core.config import config
|
|
12
|
+
from rowlab.core.errors import Unauthorized
|
|
13
|
+
from rowlab.core.providers import workos
|
|
14
|
+
|
|
15
|
+
SESSION_COOKIE = "rowlab_session"
|
|
16
|
+
STATE_COOKIE = "rowlab_sign_in"
|
|
17
|
+
|
|
18
|
+
_bearer = HTTPBearer(auto_error=False, description="An API key, `rl_…`. Hosted only.")
|
|
19
|
+
_session = APIKeyCookie(
|
|
20
|
+
name=SESSION_COOKIE, auto_error=False, description="Set by signing in. Hosted only."
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def _me(
|
|
25
|
+
bearer: Annotated[HTTPAuthorizationCredentials | None, Depends(_bearer)],
|
|
26
|
+
session: Annotated[str | None, Depends(_session)],
|
|
27
|
+
) -> Me:
|
|
28
|
+
return auth.authenticate(session, bearer.credentials if bearer else None)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def _member(me: Annotated[Me, Depends(_me)]) -> Me:
|
|
32
|
+
auth.require(me, "member")
|
|
33
|
+
return me
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def _admin(me: Annotated[Me, Depends(_me)]) -> Me:
|
|
37
|
+
auth.require(me, "admin")
|
|
38
|
+
return me
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
# What an endpoint needs: any role reads; members also add, run and export; admins change settings.
|
|
42
|
+
CanRead = Annotated[Me, Depends(_me)]
|
|
43
|
+
CanEdit = Annotated[Me, Depends(_member)]
|
|
44
|
+
CanAdmin = Annotated[Me, Depends(_admin)]
|
|
45
|
+
|
|
46
|
+
router = APIRouter(tags=["auth"])
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class Analytics(BaseModel):
|
|
50
|
+
"""The PostHog project the web app sends product analytics to; `phc_` tokens are public."""
|
|
51
|
+
|
|
52
|
+
token: str
|
|
53
|
+
host: str
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
class WhoAmI(Me):
|
|
57
|
+
analytics: Analytics | None = Field(
|
|
58
|
+
description="Set when the server collects product analytics in the web app: hosted, with "
|
|
59
|
+
"`ROWLAB_POSTHOG_TOKEN`."
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
@router.get("/v1/me", operation_id="getMe")
|
|
64
|
+
def get_me(me: CanRead) -> WhoAmI:
|
|
65
|
+
"""Who is calling: their organisation and role. Locally, always the one implicit admin."""
|
|
66
|
+
token = config().posthog_token
|
|
67
|
+
analytics = Analytics(token=token, host=config().posthog_host) if token else None
|
|
68
|
+
return WhoAmI(**me.model_dump(), analytics=analytics)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
# Signing in and out, in a browser. Not part of the API.
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
@router.get("/auth/sign-in", include_in_schema=False)
|
|
75
|
+
def sign_in() -> RedirectResponse:
|
|
76
|
+
if config().mode == "local":
|
|
77
|
+
return RedirectResponse("/")
|
|
78
|
+
state = secrets.token_urlsafe(16)
|
|
79
|
+
response = RedirectResponse(workos.sign_in_url(state))
|
|
80
|
+
response.set_cookie(STATE_COOKIE, state, max_age=600, **_cookie())
|
|
81
|
+
return response
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
@router.get("/auth/callback", include_in_schema=False)
|
|
85
|
+
def callback(request: Request, code: str = "", state: str = "") -> RedirectResponse:
|
|
86
|
+
# The state proves this browser started the sign-in.
|
|
87
|
+
if not code or not state or state != request.cookies.get(STATE_COOKIE):
|
|
88
|
+
raise Unauthorized("The sign-in didn't come from this browser. Sign in again.")
|
|
89
|
+
token = auth.sign_in(workos.authenticate(code))
|
|
90
|
+
response = RedirectResponse("/")
|
|
91
|
+
response.delete_cookie(STATE_COOKIE)
|
|
92
|
+
response.set_cookie(SESSION_COOKIE, token, max_age=auth.SESSION_DAYS * 86400, **_cookie())
|
|
93
|
+
return response
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
@router.post("/auth/sign-out", include_in_schema=False)
|
|
97
|
+
def sign_out(request: Request) -> RedirectResponse:
|
|
98
|
+
session = request.cookies.get(SESSION_COOKIE)
|
|
99
|
+
workos_session = auth.sign_out(session) if session else None
|
|
100
|
+
response = RedirectResponse(
|
|
101
|
+
workos.sign_out_url(workos_session) if workos_session else "/", status_code=303
|
|
102
|
+
)
|
|
103
|
+
response.delete_cookie(SESSION_COOKIE)
|
|
104
|
+
return response
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
def _cookie() -> dict:
|
|
108
|
+
# Lax: sent when following a link here, not with other sites' requests (no CSRF).
|
|
109
|
+
return {"httponly": True, "samesite": "lax", "secure": config().url.startswith("https://")}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
from fastapi import APIRouter
|
|
2
|
+
|
|
3
|
+
from rowlab.api.auth import CanAdmin, CanRead
|
|
4
|
+
from rowlab.core import connections
|
|
5
|
+
from rowlab.core.connections import Connection, ConnectionInput
|
|
6
|
+
|
|
7
|
+
router = APIRouter(prefix="/v1/settings/connections", tags=["settings"])
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@router.get("", operation_id="listConnections")
|
|
11
|
+
def list_connections(me: CanRead) -> list[Connection]:
|
|
12
|
+
"""Connections to S3-compatible storage, by name. Secret keys are never returned."""
|
|
13
|
+
return connections.list_connections(me.org.id)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@router.post("", operation_id="createConnection", status_code=201)
|
|
17
|
+
def create_connection(data: ConnectionInput, me: CanAdmin) -> Connection:
|
|
18
|
+
return connections.create_connection(me.org.id, data)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
@router.put("/{connection_id}", operation_id="updateConnection")
|
|
22
|
+
def update_connection(connection_id: str, data: ConnectionInput, me: CanAdmin) -> Connection:
|
|
23
|
+
"""Change a connection; leave out `secret_access_key` to keep the saved one."""
|
|
24
|
+
return connections.update_connection(me.org.id, connection_id, data)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@router.delete("/{connection_id}", operation_id="deleteConnection", status_code=204)
|
|
28
|
+
def delete_connection(connection_id: str, me: CanAdmin) -> None:
|
|
29
|
+
connections.delete_connection(me.org.id, connection_id)
|