oneprompt 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.
Files changed (42) hide show
  1. oneprompt-0.1.0/.gitignore +40 -0
  2. oneprompt-0.1.0/LICENSE +164 -0
  3. oneprompt-0.1.0/PKG-INFO +542 -0
  4. oneprompt-0.1.0/README.md +329 -0
  5. oneprompt-0.1.0/docker-compose.yml +86 -0
  6. oneprompt-0.1.0/oneprompt/__init__.py +15 -0
  7. oneprompt-0.1.0/oneprompt/_version.py +1 -0
  8. oneprompt-0.1.0/oneprompt/agents/__init__.py +1 -0
  9. oneprompt-0.1.0/oneprompt/agents/chart_agent.py +148 -0
  10. oneprompt-0.1.0/oneprompt/agents/context.py +14 -0
  11. oneprompt-0.1.0/oneprompt/agents/data_agent.py +161 -0
  12. oneprompt-0.1.0/oneprompt/agents/llm.py +65 -0
  13. oneprompt-0.1.0/oneprompt/agents/prompts/CHART_AGENT.md +35 -0
  14. oneprompt-0.1.0/oneprompt/agents/prompts/DATA_AGENT.md +26 -0
  15. oneprompt-0.1.0/oneprompt/agents/prompts/PYTHON_AGENT.md +105 -0
  16. oneprompt-0.1.0/oneprompt/agents/python_agent.py +216 -0
  17. oneprompt-0.1.0/oneprompt/api.py +346 -0
  18. oneprompt-0.1.0/oneprompt/cli.py +424 -0
  19. oneprompt-0.1.0/oneprompt/client.py +651 -0
  20. oneprompt-0.1.0/oneprompt/config.py +215 -0
  21. oneprompt-0.1.0/oneprompt/mcps/Dockerfile.artifact-store +11 -0
  22. oneprompt-0.1.0/oneprompt/mcps/Dockerfile.chart +17 -0
  23. oneprompt-0.1.0/oneprompt/mcps/Dockerfile.postgres +18 -0
  24. oneprompt-0.1.0/oneprompt/mcps/Dockerfile.python +26 -0
  25. oneprompt-0.1.0/oneprompt/mcps/__init__.py +1 -0
  26. oneprompt-0.1.0/oneprompt/mcps/chart_mcp.py +1389 -0
  27. oneprompt-0.1.0/oneprompt/mcps/postgres_mcp.py +484 -0
  28. oneprompt-0.1.0/oneprompt/mcps/python_sandbox/__init__.py +10 -0
  29. oneprompt-0.1.0/oneprompt/mcps/python_sandbox/config.py +214 -0
  30. oneprompt-0.1.0/oneprompt/mcps/python_sandbox/executor.py +230 -0
  31. oneprompt-0.1.0/oneprompt/mcps/python_sandbox/helpers.py +191 -0
  32. oneprompt-0.1.0/oneprompt/mcps/python_sandbox/sandbox.py +235 -0
  33. oneprompt-0.1.0/oneprompt/mcps/python_sandbox/server.py +339 -0
  34. oneprompt-0.1.0/oneprompt/mcps/python_sandbox/validator.py +143 -0
  35. oneprompt-0.1.0/oneprompt/mcps/resources/CHARTS.md +54 -0
  36. oneprompt-0.1.0/oneprompt/mcps/resources/DATABASE.md +25 -0
  37. oneprompt-0.1.0/oneprompt/services/__init__.py +1 -0
  38. oneprompt-0.1.0/oneprompt/services/artifact_client.py +83 -0
  39. oneprompt-0.1.0/oneprompt/services/artifact_store.py +155 -0
  40. oneprompt-0.1.0/oneprompt/services/credentials.py +80 -0
  41. oneprompt-0.1.0/oneprompt/services/state_store.py +206 -0
  42. oneprompt-0.1.0/pyproject.toml +97 -0
@@ -0,0 +1,40 @@
1
+ # .env
2
+ .env
3
+ .env.*
4
+
5
+ # Cache
6
+ .ruff_cache/
7
+ .cache/
8
+
9
+ # Python
10
+ __pycache__/
11
+ *.py[cod]
12
+ *$py.class
13
+ *.egg-info/
14
+ dist/
15
+ build/
16
+ *.egg
17
+ .venv/
18
+ test/
19
+
20
+ # Data
21
+ op_data/
22
+ *.db
23
+ exports/
24
+
25
+ # IDE
26
+ .vscode/
27
+ .idea/
28
+ *.swp
29
+
30
+ # OS
31
+ .DS_Store
32
+ Thumbs.db
33
+
34
+ # Docker
35
+ .docker/
36
+
37
+ # Other
38
+ app/
39
+ cloud/
40
+ .claude/
@@ -0,0 +1,164 @@
1
+ # PolyForm Shield License 1.0.0
2
+
3
+ <https://polyformproject.org/licenses/shield/1.0.0>
4
+
5
+ ## Acceptance
6
+
7
+ In order to get any license under these terms, you must agree
8
+ to them as both strict obligations and conditions to all
9
+ your licenses.
10
+
11
+ ## Copyright License
12
+
13
+ The licensor grants you a copyright license for the
14
+ software to do everything you might do with the software
15
+ that would otherwise infringe the licensor's copyright
16
+ in it for any permitted purpose. However, you may
17
+ only distribute the software according to [Distribution
18
+ License](#distribution-license) and make changes or new works
19
+ based on the software according to [Changes and New Works
20
+ License](#changes-and-new-works-license).
21
+
22
+ ## Distribution License
23
+
24
+ The licensor grants you an additional copyright license
25
+ to distribute copies of the software. Your license
26
+ to distribute covers distributing the software with
27
+ changes and new works permitted by [Changes and New Works
28
+ License](#changes-and-new-works-license).
29
+
30
+ ## Notices
31
+
32
+ You must ensure that anyone who gets a copy of any part of
33
+ the software from you also gets a copy of these terms or the
34
+ URL for them above, as well as copies of any plain-text lines
35
+ beginning with `Required Notice:` that the licensor provided
36
+ with the software. For example:
37
+
38
+ > Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
39
+
40
+ ## Changes and New Works License
41
+
42
+ The licensor grants you an additional copyright license to
43
+ make changes and new works based on the software for any
44
+ permitted purpose.
45
+
46
+ ## Patent License
47
+
48
+ The licensor grants you a patent license for the software that
49
+ covers patent claims the licensor can license, or becomes able
50
+ to license, that you would infringe by using the software.
51
+
52
+ ## Noncompete
53
+
54
+ Any purpose is a permitted purpose, except for providing any
55
+ product that competes with the software or any product the
56
+ licensor or any of its affiliates provides using the software.
57
+
58
+ ## Competition
59
+
60
+ Goods and services compete even when they provide functionality
61
+ through different kinds of interfaces or for different technical
62
+ platforms. Applications can compete with services, libraries
63
+ with plugins, frameworks with development tools, and so on,
64
+ even if they're written in different programming languages
65
+ or for different computer architectures. Goods and services
66
+ compete even when provided free of charge. If you market a
67
+ product as a practical substitute for the software or another
68
+ product, it definitely competes.
69
+
70
+ ## New Products
71
+
72
+ If you are using the software to provide a product that does
73
+ not compete, but the licensor or any of its affiliates brings
74
+ your product into competition by providing a new version of
75
+ the software or another product using the software, you may
76
+ continue using versions of the software available under these
77
+ terms beforehand to provide your competing product, but not
78
+ any later versions.
79
+
80
+ ## Discontinued Products
81
+
82
+ You may begin using the software to compete with a product
83
+ or service that the licensor or any of its affiliates has
84
+ stopped providing, unless the licensor includes a plain-text
85
+ line beginning with `Licensor Line of Business:` with the
86
+ software that mentions that line of business. For example:
87
+
88
+ > Licensor Line of Business: YoyodyneCMS Content Management
89
+ System (http://example.com/cms)
90
+
91
+ ## Sales of Business
92
+
93
+ If the licensor or any of its affiliates sells a line of
94
+ business developing the software or using the software
95
+ to provide a product, the buyer can also enforce
96
+ [Noncompete](#noncompete) for that product.
97
+
98
+ ## Fair Use
99
+
100
+ You may have "fair use" rights for the software under the
101
+ law. These terms do not limit them.
102
+
103
+ ## No Other Rights
104
+
105
+ These terms do not allow you to sublicense or transfer any of
106
+ your licenses to anyone else, or prevent the licensor from
107
+ granting licenses to anyone else. These terms do not imply
108
+ any other licenses.
109
+
110
+ ## Patent Defense
111
+
112
+ If you make any written claim that the software infringes or
113
+ contributes to infringement of any patent, your patent license
114
+ for the software granted under these terms ends immediately. If
115
+ your company makes such a claim, your patent license ends
116
+ immediately for work on behalf of your company.
117
+
118
+ ## Violations
119
+
120
+ The first time you are notified in writing that you have
121
+ violated any of these terms, or done anything with the software
122
+ not covered by your licenses, your licenses can nonetheless
123
+ continue if you come into full compliance with these terms,
124
+ and take practical steps to correct past violations, within
125
+ 32 days of receiving notice. Otherwise, all your licenses
126
+ end immediately.
127
+
128
+ ## No Liability
129
+
130
+ ***As far as the law allows, the software comes as is, without
131
+ any warranty or condition, and the licensor will not be liable
132
+ to you for any damages arising out of these terms or the use
133
+ or nature of the software, under any kind of legal claim.***
134
+
135
+ ## Definitions
136
+
137
+ The **licensor** is the individual or entity offering these
138
+ terms, and the **software** is the software the licensor makes
139
+ available under these terms.
140
+
141
+ A **product** can be a good or service, or a combination
142
+ of them.
143
+
144
+ **You** refers to the individual or entity agreeing to these
145
+ terms.
146
+
147
+ **Your company** is any legal entity, sole proprietorship,
148
+ or other kind of organization that you work for, plus all
149
+ its affiliates.
150
+
151
+ **Affiliates** means the other organizations than an
152
+ organization has control over, is under the control of, or is
153
+ under common control with.
154
+
155
+ **Control** means ownership of substantially all the assets of
156
+ an entity, or the power to direct its management and policies
157
+ by vote, contract, or otherwise. Control can be direct or
158
+ indirect.
159
+
160
+ **Your licenses** are all the licenses granted to you for the
161
+ software under these terms.
162
+
163
+ **Use** means anything you do with the software requiring one
164
+ of your licenses.