shaped 1.0.2__tar.gz → 2.0.1__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 (83) hide show
  1. shaped-2.0.1/PKG-INFO +269 -0
  2. shaped-2.0.1/README.md +228 -0
  3. shaped-2.0.1/python/shaped/cli/shaped_cli.py +670 -0
  4. shaped-2.0.1/python/shaped.egg-info/PKG-INFO +269 -0
  5. {shaped-1.0.2 → shaped-2.0.1}/python/shaped.egg-info/requires.txt +4 -4
  6. {shaped-1.0.2 → shaped-2.0.1}/setup.py +6 -7
  7. shaped-1.0.2/PKG-INFO +0 -266
  8. shaped-1.0.2/README.md +0 -225
  9. shaped-1.0.2/python/shaped/cli/shaped_cli.py +0 -393
  10. shaped-1.0.2/python/shaped.egg-info/PKG-INFO +0 -266
  11. {shaped-1.0.2 → shaped-2.0.1}/pyproject.toml +0 -0
  12. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/__init__.py +0 -0
  13. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/__init__.py +0 -0
  14. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/api/__init__.py +0 -0
  15. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/api/dataset_api.py +0 -0
  16. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/api/model_inference_api.py +0 -0
  17. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/api/model_management_api.py +0 -0
  18. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/api_client.py +0 -0
  19. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/api_response.py +0 -0
  20. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/configuration.py +0 -0
  21. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/exceptions.py +0 -0
  22. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/__init__.py +0 -0
  23. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/amplitude_dataset_config.py +0 -0
  24. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/aws_pinpoint_dataset_config.py +0 -0
  25. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/big_query_dataset_config.py +0 -0
  26. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/complement_items_request.py +0 -0
  27. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/complement_items_response.py +0 -0
  28. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/connectors_inner.py +0 -0
  29. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/create_dataset_arguments.py +0 -0
  30. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/create_embedding_response.py +0 -0
  31. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/create_item_embedding_request.py +0 -0
  32. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/create_model_arguments.py +0 -0
  33. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/create_model_response.py +0 -0
  34. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/create_user_embedding_request.py +0 -0
  35. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/custom_dataset_config.py +0 -0
  36. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/dataset_config.py +0 -0
  37. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/dataset_schema_type.py +0 -0
  38. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/datasets_inner.py +0 -0
  39. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/delete_model_response.py +0 -0
  40. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/fetch_config.py +0 -0
  41. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/file_config.py +0 -0
  42. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/file_source_config.py +0 -0
  43. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/http_validation_error.py +0 -0
  44. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/inference_config.py +0 -0
  45. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/insert_model_response.py +0 -0
  46. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/interaction.py +0 -0
  47. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/list_datasets_response.py +0 -0
  48. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/list_models_response.py +0 -0
  49. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/model_config.py +0 -0
  50. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/model_response.py +0 -0
  51. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/mongo_db_dataset_config.py +0 -0
  52. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/my_sql_dataset_config.py +0 -0
  53. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/path.py +0 -0
  54. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/post_rank_request.py +0 -0
  55. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/postgres_dataset_config.py +0 -0
  56. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/rank_attribute_response.py +0 -0
  57. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/rank_grid_attribute_request.py +0 -0
  58. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/rank_grid_attribute_request1.py +0 -0
  59. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/rank_grid_attribute_response.py +0 -0
  60. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/rank_response.py +0 -0
  61. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/redshift_dataset_config.py +0 -0
  62. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/retrieve_request.py +0 -0
  63. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/retrieve_response.py +0 -0
  64. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/retriever_top_k_override.py +0 -0
  65. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/rudder_stack_dataset_config.py +0 -0
  66. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/segment_dataset_config.py +0 -0
  67. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/similar_item_request.py +0 -0
  68. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/similar_response.py +0 -0
  69. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/similar_users_request.py +0 -0
  70. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/snowflake_dataset_config.py +0 -0
  71. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/successful_response.py +0 -0
  72. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/validation_error.py +0 -0
  73. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/value_type.py +0 -0
  74. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/models/view_model_response.py +0 -0
  75. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/autogen/rest.py +0 -0
  76. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/cli/__init__.py +0 -0
  77. {shaped-1.0.2 → shaped-2.0.1}/python/shaped/client.py +0 -0
  78. {shaped-1.0.2 → shaped-2.0.1}/python/shaped.egg-info/SOURCES.txt +0 -0
  79. {shaped-1.0.2 → shaped-2.0.1}/python/shaped.egg-info/dependency_links.txt +0 -0
  80. {shaped-1.0.2 → shaped-2.0.1}/python/shaped.egg-info/entry_points.txt +0 -0
  81. {shaped-1.0.2 → shaped-2.0.1}/python/shaped.egg-info/top_level.txt +0 -0
  82. {shaped-1.0.2 → shaped-2.0.1}/python/shaped.egg-info/zip-safe +0 -0
  83. {shaped-1.0.2 → shaped-2.0.1}/setup.cfg +0 -0
shaped-2.0.1/PKG-INFO ADDED
@@ -0,0 +1,269 @@
1
+ Metadata-Version: 2.4
2
+ Name: shaped
3
+ Version: 2.0.1
4
+ Summary: CLI and SDK tools for interacting with the Shaped API.
5
+ Home-page: https://github.com/shaped-ai/shaped-cli
6
+ Author: Shaped Team
7
+ Author-email: support@shaped.ai
8
+ Keywords: shaped-ai
9
+ Classifier: Operating System :: POSIX :: Linux
10
+ Classifier: Operating System :: MacOS :: MacOS X
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Development Status :: 5 - Production/Stable
13
+ Classifier: Intended Audience :: Developers
14
+ Requires-Python: >=3.9, <3.14
15
+ Description-Content-Type: text/markdown
16
+ Requires-Dist: pyarrow==20.0.0
17
+ Requires-Dist: pandas==2.3.0
18
+ Requires-Dist: numpy==1.26.4
19
+ Requires-Dist: typer>=0.7.0
20
+ Requires-Dist: requests>=2.28.1
21
+ Requires-Dist: pydantic>=2.8.2
22
+ Requires-Dist: pyyaml>=6.0
23
+ Requires-Dist: tqdm==4.67.1
24
+ Requires-Dist: s3fs==0.4.2
25
+ Requires-Dist: fsspec==2023.5.0
26
+ Requires-Dist: urllib3<2.1.0,>=1.25.3
27
+ Requires-Dist: python-dateutil
28
+ Requires-Dist: typing-extensions>=4.7.1
29
+ Requires-Dist: pytest>=6.2.5
30
+ Requires-Dist: pytest-mock==3.14.0
31
+ Dynamic: author
32
+ Dynamic: author-email
33
+ Dynamic: classifier
34
+ Dynamic: description
35
+ Dynamic: description-content-type
36
+ Dynamic: home-page
37
+ Dynamic: keywords
38
+ Dynamic: requires-dist
39
+ Dynamic: requires-python
40
+ Dynamic: summary
41
+
42
+ # Shaped CLI
43
+
44
+ CLI for interactions with the Shaped API.
45
+
46
+ For full documentation, see [docs.shaped.ai](https://docs.shaped.ai/).
47
+
48
+ ## Installing the Shaped CLI
49
+
50
+ ```
51
+ pip install shaped
52
+ ```
53
+
54
+ ## Initialize
55
+
56
+ ```
57
+ shaped init --api-key <API_KEY> [--env <ENV>]
58
+ ```
59
+
60
+ The `--env` option defaults to `prod` and can be set to other environments like `dev` or `staging`.
61
+
62
+ ## Engine API
63
+
64
+ ### Create Engine
65
+
66
+ ```
67
+ shaped create-engine --file <PATH_TO_FILE>
68
+ ```
69
+
70
+ Or pipe from stdin:
71
+
72
+ ```
73
+ cat <PATH_TO_FILE> | shaped create-engine
74
+ ```
75
+
76
+ ### Update Engine
77
+
78
+ ```
79
+ shaped update-engine --file <PATH_TO_FILE>
80
+ ```
81
+
82
+ Or pipe from stdin:
83
+
84
+ ```
85
+ cat <PATH_TO_FILE> | shaped update-engine
86
+ ```
87
+
88
+ ### List Engines
89
+
90
+ ```
91
+ shaped list-engines
92
+ ```
93
+
94
+ ### View Engine
95
+
96
+ ```
97
+ shaped view-engine --engine-name <ENGINE_NAME>
98
+ ```
99
+
100
+ ### Delete Engine
101
+
102
+ ```
103
+ shaped delete-engine --engine-name <ENGINE_NAME>
104
+ ```
105
+
106
+ ## Table API
107
+
108
+ ### Create Table
109
+
110
+ ```
111
+ shaped create-table --file <PATH_TO_FILE>
112
+ ```
113
+
114
+ Or pipe from stdin:
115
+
116
+ ```
117
+ cat <PATH_TO_FILE> | shaped create-table
118
+ ```
119
+
120
+ ### Create Table from URI
121
+
122
+ Create a table and automatically insert data from a file:
123
+
124
+ ```
125
+ shaped create-table-from-uri --name <TABLE_NAME> --path <PATH_TO_FILE> --type <FILE_TYPE>
126
+ ```
127
+
128
+ Supported file types: `parquet`, `csv`, `tsv`, `json`, `jsonl`
129
+
130
+ ### List Tables
131
+
132
+ ```
133
+ shaped list-tables
134
+ ```
135
+
136
+ ### Table Insert
137
+
138
+ Insert data into an existing table:
139
+
140
+ ```
141
+ shaped table-insert --table-name <TABLE_NAME> --file <DATAFRAME_FILE> --type <FILE_TYPE>
142
+ ```
143
+
144
+ Supported file types: `parquet`, `csv`, `tsv`, `json`, `jsonl`
145
+
146
+ ### View Table
147
+
148
+ ```
149
+ shaped view-table --table-name <TABLE_NAME>
150
+ ```
151
+
152
+ ### Update Table
153
+
154
+ ```
155
+ shaped update-table --file <PATH_TO_FILE>
156
+ ```
157
+
158
+ Or pipe from stdin:
159
+
160
+ ```
161
+ cat <PATH_TO_FILE> | shaped update-table
162
+ ```
163
+
164
+ ### Delete Table
165
+
166
+ ```
167
+ shaped delete-table --table-name <TABLE_NAME>
168
+ ```
169
+
170
+ ## View API
171
+
172
+ ### Create View
173
+
174
+ ```
175
+ shaped create-view --file <PATH_TO_FILE>
176
+ ```
177
+
178
+ Or pipe from stdin:
179
+
180
+ ```
181
+ cat <PATH_TO_FILE> | shaped create-view
182
+ ```
183
+
184
+ ### List Views
185
+
186
+ ```
187
+ shaped list-views
188
+ ```
189
+
190
+ ### View View
191
+
192
+ ```
193
+ shaped view-view --view-name <VIEW_NAME>
194
+ ```
195
+
196
+ ### Update View
197
+
198
+ ```
199
+ shaped update-view --file <PATH_TO_FILE>
200
+ ```
201
+
202
+ Or pipe from stdin:
203
+
204
+ ```
205
+ cat <PATH_TO_FILE> | shaped update-view
206
+ ```
207
+
208
+ ### Delete View
209
+
210
+ ```
211
+ shaped delete-view --view-name <VIEW_NAME>
212
+ ```
213
+
214
+ ## Query API
215
+
216
+ ### Execute Query
217
+
218
+ Execute an ad-hoc query against an engine. The query can be provided in three ways:
219
+
220
+ **From a file:**
221
+ ```
222
+ shaped query --engine-name <ENGINE_NAME> --query-file <PATH_TO_FILE>
223
+ ```
224
+
225
+ **As a JSON string:**
226
+ ```
227
+ shaped query --engine-name <ENGINE_NAME> --query '{"sql": "SELECT * FROM table"}'
228
+ ```
229
+
230
+ **From stdin:**
231
+ ```
232
+ cat <PATH_TO_FILE> | shaped query --engine-name <ENGINE_NAME>
233
+ ```
234
+
235
+ ### Execute Saved Query
236
+
237
+ Execute a previously saved query by name:
238
+
239
+ ```
240
+ shaped execute-saved-query --engine-name <ENGINE_NAME> --query-name <QUERY_NAME>
241
+ ```
242
+
243
+ ### List Saved Queries
244
+
245
+ List all saved queries for an engine:
246
+
247
+ ```
248
+ shaped list-saved-queries --engine-name <ENGINE_NAME>
249
+ ```
250
+
251
+ ### View Saved Query
252
+
253
+ View the definition of a saved query:
254
+
255
+ ```
256
+ shaped view-saved-query --engine-name <ENGINE_NAME> --query-name <QUERY_NAME>
257
+ ```
258
+
259
+ ---
260
+
261
+ # Python SDK
262
+
263
+ ## Installation
264
+
265
+ ### Pip Installation
266
+
267
+ ```sh
268
+ pip install shaped
269
+ ```
shaped-2.0.1/README.md ADDED
@@ -0,0 +1,228 @@
1
+ # Shaped CLI
2
+
3
+ CLI for interactions with the Shaped API.
4
+
5
+ For full documentation, see [docs.shaped.ai](https://docs.shaped.ai/).
6
+
7
+ ## Installing the Shaped CLI
8
+
9
+ ```
10
+ pip install shaped
11
+ ```
12
+
13
+ ## Initialize
14
+
15
+ ```
16
+ shaped init --api-key <API_KEY> [--env <ENV>]
17
+ ```
18
+
19
+ The `--env` option defaults to `prod` and can be set to other environments like `dev` or `staging`.
20
+
21
+ ## Engine API
22
+
23
+ ### Create Engine
24
+
25
+ ```
26
+ shaped create-engine --file <PATH_TO_FILE>
27
+ ```
28
+
29
+ Or pipe from stdin:
30
+
31
+ ```
32
+ cat <PATH_TO_FILE> | shaped create-engine
33
+ ```
34
+
35
+ ### Update Engine
36
+
37
+ ```
38
+ shaped update-engine --file <PATH_TO_FILE>
39
+ ```
40
+
41
+ Or pipe from stdin:
42
+
43
+ ```
44
+ cat <PATH_TO_FILE> | shaped update-engine
45
+ ```
46
+
47
+ ### List Engines
48
+
49
+ ```
50
+ shaped list-engines
51
+ ```
52
+
53
+ ### View Engine
54
+
55
+ ```
56
+ shaped view-engine --engine-name <ENGINE_NAME>
57
+ ```
58
+
59
+ ### Delete Engine
60
+
61
+ ```
62
+ shaped delete-engine --engine-name <ENGINE_NAME>
63
+ ```
64
+
65
+ ## Table API
66
+
67
+ ### Create Table
68
+
69
+ ```
70
+ shaped create-table --file <PATH_TO_FILE>
71
+ ```
72
+
73
+ Or pipe from stdin:
74
+
75
+ ```
76
+ cat <PATH_TO_FILE> | shaped create-table
77
+ ```
78
+
79
+ ### Create Table from URI
80
+
81
+ Create a table and automatically insert data from a file:
82
+
83
+ ```
84
+ shaped create-table-from-uri --name <TABLE_NAME> --path <PATH_TO_FILE> --type <FILE_TYPE>
85
+ ```
86
+
87
+ Supported file types: `parquet`, `csv`, `tsv`, `json`, `jsonl`
88
+
89
+ ### List Tables
90
+
91
+ ```
92
+ shaped list-tables
93
+ ```
94
+
95
+ ### Table Insert
96
+
97
+ Insert data into an existing table:
98
+
99
+ ```
100
+ shaped table-insert --table-name <TABLE_NAME> --file <DATAFRAME_FILE> --type <FILE_TYPE>
101
+ ```
102
+
103
+ Supported file types: `parquet`, `csv`, `tsv`, `json`, `jsonl`
104
+
105
+ ### View Table
106
+
107
+ ```
108
+ shaped view-table --table-name <TABLE_NAME>
109
+ ```
110
+
111
+ ### Update Table
112
+
113
+ ```
114
+ shaped update-table --file <PATH_TO_FILE>
115
+ ```
116
+
117
+ Or pipe from stdin:
118
+
119
+ ```
120
+ cat <PATH_TO_FILE> | shaped update-table
121
+ ```
122
+
123
+ ### Delete Table
124
+
125
+ ```
126
+ shaped delete-table --table-name <TABLE_NAME>
127
+ ```
128
+
129
+ ## View API
130
+
131
+ ### Create View
132
+
133
+ ```
134
+ shaped create-view --file <PATH_TO_FILE>
135
+ ```
136
+
137
+ Or pipe from stdin:
138
+
139
+ ```
140
+ cat <PATH_TO_FILE> | shaped create-view
141
+ ```
142
+
143
+ ### List Views
144
+
145
+ ```
146
+ shaped list-views
147
+ ```
148
+
149
+ ### View View
150
+
151
+ ```
152
+ shaped view-view --view-name <VIEW_NAME>
153
+ ```
154
+
155
+ ### Update View
156
+
157
+ ```
158
+ shaped update-view --file <PATH_TO_FILE>
159
+ ```
160
+
161
+ Or pipe from stdin:
162
+
163
+ ```
164
+ cat <PATH_TO_FILE> | shaped update-view
165
+ ```
166
+
167
+ ### Delete View
168
+
169
+ ```
170
+ shaped delete-view --view-name <VIEW_NAME>
171
+ ```
172
+
173
+ ## Query API
174
+
175
+ ### Execute Query
176
+
177
+ Execute an ad-hoc query against an engine. The query can be provided in three ways:
178
+
179
+ **From a file:**
180
+ ```
181
+ shaped query --engine-name <ENGINE_NAME> --query-file <PATH_TO_FILE>
182
+ ```
183
+
184
+ **As a JSON string:**
185
+ ```
186
+ shaped query --engine-name <ENGINE_NAME> --query '{"sql": "SELECT * FROM table"}'
187
+ ```
188
+
189
+ **From stdin:**
190
+ ```
191
+ cat <PATH_TO_FILE> | shaped query --engine-name <ENGINE_NAME>
192
+ ```
193
+
194
+ ### Execute Saved Query
195
+
196
+ Execute a previously saved query by name:
197
+
198
+ ```
199
+ shaped execute-saved-query --engine-name <ENGINE_NAME> --query-name <QUERY_NAME>
200
+ ```
201
+
202
+ ### List Saved Queries
203
+
204
+ List all saved queries for an engine:
205
+
206
+ ```
207
+ shaped list-saved-queries --engine-name <ENGINE_NAME>
208
+ ```
209
+
210
+ ### View Saved Query
211
+
212
+ View the definition of a saved query:
213
+
214
+ ```
215
+ shaped view-saved-query --engine-name <ENGINE_NAME> --query-name <QUERY_NAME>
216
+ ```
217
+
218
+ ---
219
+
220
+ # Python SDK
221
+
222
+ ## Installation
223
+
224
+ ### Pip Installation
225
+
226
+ ```sh
227
+ pip install shaped
228
+ ```