shaped 0.14.0__py3-none-any.whl → 0.14.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: shaped
3
- Version: 0.14.0
3
+ Version: 0.14.1
4
4
  Summary: CLI and SDK tools for interacting with the Shaped API.
5
5
  Home-page: https://github.com/shaped-ai/shaped-cli
6
6
  Author: Shaped Team
@@ -26,11 +26,21 @@ Requires-Dist: numpy ==1.26.4
26
26
  Requires-Dist: urllib3 <2.1.0,>=1.25.3
27
27
  Requires-Dist: python-dateutil
28
28
  Requires-Dist: typing-extensions >=4.7.1
29
- Requires-Dist: pytest ==6.2.5
29
+ Requires-Dist: pytest >=6.2.5
30
30
  Requires-Dist: pytest-mock ==3.14.0
31
31
 
32
32
  # Python SDK
33
33
 
34
+ ## Installation
35
+
36
+ ### Local Development
37
+
38
+ ```sh
39
+ pip install -e .
40
+ ```
41
+
42
+ ### Pip Installation
43
+
34
44
  ```sh
35
45
  pip install shaped
36
46
  ```
@@ -112,16 +122,24 @@ print(api_response)
112
122
  To recreate the autogenerated code:
113
123
 
114
124
  1. `brew install openapi-generator`
115
- 2. Copy across `openapi.yaml` from the `shaped-docs` repository to `/sdk`
116
- 3. Navigate to `/sdk` and run the command:
125
+ 2. Copy across `openapi.yaml` from the `shaped-docs` repository to `~`
126
+ 1. Change `-g python` to the language you want to generate
127
+ 1. Change `-o python/` to the directory you want to output to
128
+ 3. Navigate to `~` and run the command:
117
129
 
118
- ```
130
+ ### Python
131
+ ```bash
119
132
  openapi-generator generate -g python -i openapi.yaml -o python/ -p packageName=shaped.autogen --global-property models,apis,apiDocs=false,modelDocs=false,modelTests=false,apiTests=false,supportingFiles=api_client.py:api_response.py:configuration.py:exceptions.py:rest.py:__init__.py
120
133
  ```
121
134
 
122
- ## Testing
123
- `pytest sdk/python/tests/test_rank.py --api-key 'api_key'`
135
+ ### Node.js
136
+ ```bash
137
+ openapi-generator generate -i openapi.yaml -g javascript -o nodejs/src -c config.yaml --global-property models,apis,apiDocs=false,modelDocs=false,modelTests=false,apiTests=false,supportingFiles=ApiClient.js
138
+ ```
124
139
 
140
+ ## Testing
141
+ `pytest python/tests/test_rank.py --api-key 'api_key'`
142
+ `npm test`
125
143
  ---
126
144
 
127
145
  # Shaped CLI
@@ -64,9 +64,9 @@ shaped/autogen/models/value_type.py,sha256=uxlGNPto3CK17jHKDRvAl3BqNCPkHlxfRBPdo
64
64
  shaped/autogen/models/view_model_response.py,sha256=4xzesZSHMcPCZHsevo5Bt_3P9jBNiEbd_PFTWQ5Q9KU,5757
65
65
  shaped/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
66
66
  shaped/cli/shaped_cli.py,sha256=kOxCiPivUEjNPs4mNETGpi43_PzTXp61dN-dr9fp7C0,12822
67
- shaped-0.14.0.dist-info/METADATA,sha256=V-HBJAh4IdLJ9okJp5r9RCm10TaNKIr_ssdAYlXqx1o,4990
68
- shaped-0.14.0.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
69
- shaped-0.14.0.dist-info/entry_points.txt,sha256=4xoVmnNTKtmzjGNX5ezp9MCWLgi7880TtfqFByN1u5U,53
70
- shaped-0.14.0.dist-info/top_level.txt,sha256=w-lDaoadQVYpze9N9gZyK9qngb7fZCJ-KCdHLGvt0SU,7
71
- shaped-0.14.0.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
72
- shaped-0.14.0.dist-info/RECORD,,
67
+ shaped-0.14.1.dist-info/METADATA,sha256=thrHS_hfUqWd74uh_yUpaFgZhGnjlJV3wZtjLBW7_YU,5448
68
+ shaped-0.14.1.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
69
+ shaped-0.14.1.dist-info/entry_points.txt,sha256=4xoVmnNTKtmzjGNX5ezp9MCWLgi7880TtfqFByN1u5U,53
70
+ shaped-0.14.1.dist-info/top_level.txt,sha256=w-lDaoadQVYpze9N9gZyK9qngb7fZCJ-KCdHLGvt0SU,7
71
+ shaped-0.14.1.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
72
+ shaped-0.14.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (72.1.0)
2
+ Generator: setuptools (75.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5