antstudio 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.
@@ -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.
@@ -0,0 +1,310 @@
1
+ Metadata-Version: 2.4
2
+ Name: antstudio
3
+ Version: 0.1.0
4
+ Summary: Build, Run, Control. Local-first responsible AI: one command, real results.
5
+ Author-email: Venkatkumar Rajan <venkatkumarr.vk99@gmail.com>
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/VK-Ant/ant-studio
8
+ Keywords: ai,pipeline,document-intelligence,forecasting,privacy,local-first,Ant Intelligence Ecosystem,No Code
9
+ Classifier: Development Status :: 3 - Alpha
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
13
+ Requires-Python: >=3.9
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ Requires-Dist: click>=8.0
17
+ Requires-Dist: pandas>=1.5
18
+ Provides-Extra: full
19
+ Requires-Dist: PyMuPDF; extra == "full"
20
+ Requires-Dist: openpyxl; extra == "full"
21
+ Requires-Dist: httpx; extra == "full"
22
+ Requires-Dist: docqwise; extra == "full"
23
+ Requires-Dist: wavqwise; extra == "full"
24
+ Requires-Dist: llmevalkit; extra == "full"
25
+ Requires-Dist: antguard; extra == "full"
26
+ Requires-Dist: adaptive-intelligence; extra == "full"
27
+ Provides-Extra: dev
28
+ Requires-Dist: pytest; extra == "dev"
29
+ Dynamic: license-file
30
+
31
+ <p align="center">
32
+ <img src="https://raw.githubusercontent.com/VK-Ant/ant-studio/main/assets/hero.png" alt="Ant Studio" width="70%">
33
+ </p>
34
+
35
+ <p align="center">
36
+ <em>One command, Real results, Quality scored, Privacy audited.</em>
37
+ </p>
38
+
39
+ <p align="center">
40
+ <a href="https://pypi.org/project/antstudio/"><img src="https://img.shields.io/pypi/v/antstudio?color=orange&style=for-the-badge" alt="PyPI"></a>
41
+ <a href="#"><img src="https://img.shields.io/badge/python-3.9+-blue?style=for-the-badge" alt="Python"></a>
42
+ <a href="#"><img src="https://img.shields.io/badge/license-Apache%202.0-blue?style=for-the-badge" alt="License"></a>
43
+ </p>
44
+
45
+ ---
46
+
47
+ ## What is Ant Studio?
48
+
49
+ Ant Studio is a CLI + Python tool that solves AI problems in one command. Extract fields from 1000 PDFs. Forecast time-series. Detect anomalies. Ask questions about documents. Every command automatically includes quality scoring (78 metrics) and privacy auditing.
50
+
51
+ Not a framework. Not a platform. A tool like `ffmpeg` for media or `curl` for HTTP.
52
+
53
+ ```bash
54
+ pip install antstudio
55
+ antstudio doc extract ./invoices/ --fields vendor,amount,date --output results.csv
56
+ ```
57
+
58
+ ---
59
+
60
+ ## Quick Start
61
+
62
+ ```bash
63
+ pip install antstudio
64
+
65
+ # Extract from documents (PDF, DOCX, Excel, images, TXT)
66
+ antstudio doc extract ./invoices/ --fields vendor,amount --output results.csv
67
+
68
+ # Ask questions about documents
69
+ antstudio doc ask ./report.pdf "What is the total revenue?"
70
+
71
+ # Forecast time-series
72
+ antstudio ts forecast ./sales.csv --target revenue --horizon 30
73
+
74
+ # Detect anomalies
75
+ antstudio ts anomaly ./sensors.csv --target temperature --method zscore
76
+ ```
77
+
78
+ Every command auto-runs: **Adaptive Intelligence** (routing) + **llmevalkit** (quality) + **AntGuard** (privacy).
79
+
80
+ ---
81
+
82
+ ## How It Works
83
+
84
+ ```
85
+ $ antstudio doc extract ./invoices/ --fields vendor,amount --output results.csv
86
+
87
+ Ant Studio v0.1.0 | DocQWise + llmevalkit + AntGuard
88
+
89
+ [1/4] Scanning .................... 47 files found
90
+ [2/4] Extracting .................. 47/47 complete
91
+ [3/4] Quality (llmevalkit) ........ 44 passed, 3 flagged
92
+ [4/4] Privacy (AntGuard) .......... data_left: NO | risk: LOW
93
+
94
+ Results saved: results.csv (47 rows)
95
+ Flagged items: results_flagged.csv (3 rows)
96
+
97
+ Pipeline: Document Extraction [a1b2c3d4]
98
+ ============================================================
99
+ [+] Scan Input 0ms
100
+ |
101
+ v
102
+ [+] Extract Fields 456ms
103
+ |
104
+ v
105
+ [+] Quality Check 1ms q:0.94
106
+ |
107
+ v
108
+ [+] Privacy Audit 0ms
109
+ ============================================================
110
+ 4/4 passed | 457ms total | Status: SUCCESS
111
+ ```
112
+
113
+ ---
114
+
115
+ ## Input Sources
116
+
117
+ Ant Studio reads from **any source**:
118
+
119
+ ```bash
120
+ # Local file (PDF, DOCX, Excel, CSV, TXT, images)
121
+ antstudio doc extract ./invoice.pdf
122
+
123
+ # Local folder (batch 1000+ files, recursive)
124
+ antstudio doc extract ./invoices/
125
+
126
+ # Specific file types from folder
127
+ antstudio doc extract ./mixed_docs/ --extensions .pdf,.docx,.xlsx,.png
128
+
129
+ # Network drive / NAS
130
+ antstudio doc extract /mnt/nas/documents/
131
+ antstudio doc extract Z:\SharedDocs\
132
+
133
+ # Database
134
+ antstudio doc extract --db "postgresql://user:pass@host/db" --query "SELECT * FROM docs"
135
+ antstudio doc extract --db "sqlite:///data/invoices.db" --query "SELECT text FROM pending"
136
+
137
+ # URL
138
+ antstudio doc extract --url "https://example.com/report.pdf"
139
+ ```
140
+
141
+ **Supported file types:** PDF, DOCX, XLSX/XLS, CSV, TXT, MD, JSON, XML, HTML, PNG, JPG, JPEG, BMP, TIFF (images via OCR)
142
+
143
+ ---
144
+
145
+ ## Output Destinations
146
+
147
+ Results go **anywhere**:
148
+
149
+ ```bash
150
+ # Local files
151
+ antstudio doc extract ./invoices/ --output results.csv
152
+ antstudio doc extract ./invoices/ --output results.xlsx
153
+ antstudio doc extract ./invoices/ --output results.json
154
+
155
+ # Database
156
+ antstudio doc extract ./invoices/ --output-db "postgresql://user:pass@host/db" --table extracted
157
+
158
+ # Cloud (coming)
159
+ antstudio doc extract ./invoices/ --output-azure "connection_string" --container results
160
+ antstudio doc extract ./invoices/ --output-s3 my-bucket --path output/
161
+ antstudio doc extract ./invoices/ --output-webhook "https://api.example.com/results"
162
+ ```
163
+
164
+ ---
165
+
166
+ ## Python SDK
167
+
168
+ Same engine, in code:
169
+
170
+ ```python
171
+ from antstudio.doc.extract import run as extract
172
+ from antstudio.doc.ask import run as ask
173
+ from antstudio.ts.forecast import run as forecast
174
+ from antstudio.ts.anomaly import run as detect
175
+
176
+ # Extract from folder of any file type
177
+ results = extract("./invoices/", fields=["vendor", "amount", "date"])
178
+ results.to_csv("output.csv")
179
+ results.to_excel("output.xlsx")
180
+ results.to_database("postgresql://...", table="results")
181
+ print(results.quality) # llmevalkit scores
182
+ print(results.audit) # AntGuard report
183
+
184
+ # Forecast
185
+ fc = forecast("./sales.csv", target="revenue", horizon=30)
186
+ fc.to_csv("forecast.csv")
187
+ fc.save_chart("chart.png")
188
+
189
+ # Anomaly detection
190
+ anom = detect("./sensors.csv", target="temperature", method="zscore")
191
+ anom.to_csv("anomalies.csv")
192
+
193
+ # Document Q&A
194
+ answer = ask("./report.pdf", "What are the payment terms?", rag="auto")
195
+ print(answer.text, answer.confidence)
196
+ ```
197
+
198
+ ---
199
+
200
+ ## Pipeline Tracking
201
+
202
+ Every command creates a tracked pipeline run:
203
+
204
+ ```bash
205
+ # List all past runs
206
+ antstudio runs
207
+
208
+ ID Pipeline Steps Status Time
209
+ ────────── ──────────────────────────────────────── ──────────── ────────── ────────
210
+ a1b2c3d4 Document Extraction: ./invoices/ 4/4 passed success 12.3s
211
+ e5f6g7h8 Forecast: ./sales.csv 3/3 passed success 3.1s
212
+ i9j0k1l2 Anomaly Detection: ./sensors.csv 3/3 passed success 0.5s
213
+
214
+ # Show detailed step-by-step view
215
+ antstudio run-detail a1b2c3d4
216
+
217
+ Pipeline: Document Extraction [a1b2c3d4]
218
+ Status: SUCCESS | 12.3s | 2026-09-05T10:30:00
219
+ ============================================================
220
+ [+] Scan Input 15ms
221
+ |
222
+ v
223
+ [+] Extract Fields 11800ms
224
+ |
225
+ v
226
+ [+] Quality Check 1ms
227
+ |
228
+ v
229
+ [+] Privacy Audit 0ms
230
+ ============================================================
231
+ 4/4 steps passed
232
+ ```
233
+
234
+ ---
235
+
236
+ ## Responsible AI — Always On
237
+
238
+ Three pillars run on **every command**. Never configured. Never skipped.
239
+
240
+ | Pillar | Library | What It Does |
241
+ |--------|---------|-------------|
242
+ | **Routing** | Adaptive Intelligence | Auto-detects file type, routes to correct pipeline |
243
+ | **Quality** | llmevalkit (78 metrics) | Scores every output. Flags low confidence. |
244
+ | **Privacy** | AntGuard | Monitors file/network. Proves data stayed local. |
245
+
246
+ ```
247
+ Every command output includes:
248
+ Quality: 44 passed, 3 flagged
249
+ Privacy: data_left: NO | risk: LOW
250
+ ```
251
+
252
+ ---
253
+
254
+ ## All Commands
255
+
256
+ ```bash
257
+ # Document Intelligence
258
+ antstudio doc extract <source> [options] # Extract fields from documents
259
+ antstudio doc ask <source> "question" # Ask questions about documents
260
+
261
+ # Temporal Intelligence
262
+ antstudio ts forecast <source> [options] # Forecast time-series
263
+ antstudio ts anomaly <source> [options] # Detect anomalies
264
+
265
+ # Pipeline Tracking
266
+ antstudio runs # List all pipeline runs
267
+ antstudio run-detail <run_id> # Detailed step-by-step view
268
+ antstudio history # Execution history with quality scores
269
+
270
+ # System
271
+ antstudio models # List Ollama models
272
+ antstudio status # Library + system status
273
+ ```
274
+
275
+ ---
276
+
277
+ ## Ant Intelligence Ecosystem
278
+
279
+ | Library | Domain | Tagline |
280
+ |---------|--------|---------|
281
+ | [DocQWise](https://pypi.org/project/docqwise/) | Documents | Read. Extract. Retrieve. |
282
+ | [WavQWise](https://pypi.org/project/wavqwise/) | Temporal | Sense. Forecast. Alert. |
283
+ | [SightRAG](https://pypi.org/project/sightrag/) | Vision | See. Search. Retrieve. |
284
+ | [SonarWise](https://pypi.org/project/sonarwise/) | Audio | Hear. Search. Retrieve. |
285
+ | [Adaptive Intelligence](https://pypi.org/project/adaptive-intelligence/) | Routing | Learn. Remember. Adapt. |
286
+ | [llmevalkit](https://pypi.org/project/llmevalkit/) | Quality | Evaluate. Score. Improve. |
287
+ | [AntGuard](https://pypi.org/project/antguard/) | Privacy | Guard. Detect. Protect. |
288
+
289
+ ---
290
+
291
+ ## Testing
292
+
293
+ ```bash
294
+ pip install pytest
295
+ python -m pytest tests/ -v
296
+ ```
297
+
298
+ ---
299
+
300
+ ## License
301
+
302
+ Apache 2.0
303
+
304
+ ---
305
+
306
+ <p align="center">
307
+ <img src="assets/logo.png" alt="Ant Studio" width="100">
308
+ <br>
309
+ <b><a href="https://github.com/VK-Ant/ant-studio">Venkatkumar Rajan</a></b> — One ecosystem. Limitless possibilities.
310
+ </p>