polyapi-python 0.1.0.dev9__py3-none-any.whl → 0.1.0.dev11__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.
polyapi/function_cli.py CHANGED
@@ -17,7 +17,7 @@ import importlib
17
17
 
18
18
  # these libraries are already installed in the base docker image
19
19
  # and shouldnt be included in additional requirements
20
- BASE_REQUIREMENTS = {"requests", "typing_extensions", "jsonschema-gentypes", "pydantic"}
20
+ BASE_REQUIREMENTS = {"polyapi", "requests", "typing_extensions", "jsonschema-gentypes", "pydantic"}
21
21
  all_stdlib_symbols = stdlib_list('.'.join([str(v) for v in sys.version_info[0:2]]))
22
22
  BASE_REQUIREMENTS.update(all_stdlib_symbols) # dont need to pip install stuff in the python standard library
23
23
 
polyapi/generate.py CHANGED
@@ -120,6 +120,11 @@ def generate() -> None:
120
120
  if variables:
121
121
  generate_variables(variables)
122
122
 
123
+ # indicator to vscode extension that this is a polyapi-python project
124
+ file_path = os.path.join(os.getcwd(), '.polyapi-python')
125
+ open(file_path, 'w').close()
126
+
127
+
123
128
 
124
129
  def clear() -> None:
125
130
  base = os.path.dirname(os.path.abspath(__file__))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: polyapi-python
3
- Version: 0.1.0.dev9
3
+ Version: 0.1.0.dev11
4
4
  Summary: The PolyAPI Python Client
5
5
  Author-email: Dan Fellin <dan@polyapi.io>
6
6
  License: MIT License
@@ -146,6 +146,14 @@ To upgrade your library to the latest dev version, pass the `--pre` flag.
146
146
  pip install polyapi-python --pre --upgrade
147
147
  ```
148
148
 
149
+ ## Change Your API Key
150
+
151
+ If you need to change your API key or what server you are pointing to, you can run:
152
+
153
+ ```bash
154
+ python -m polyapi setup
155
+ ```
156
+
149
157
  ## Unit Tests
150
158
 
151
159
  To run this library's unit tests, please clone the repo then run:
@@ -6,15 +6,15 @@ polyapi/config.py,sha256=s_hFehyH_-i5Ut4HvUXmJBHewhGUeb3MMA6p65Ixrv8,2251
6
6
  polyapi/constants.py,sha256=NGjso6K5rGnE8TGdrXmdEfvvr-HI3DTVGwOYiWO68LM,511
7
7
  polyapi/exceptions.py,sha256=Zh7i7eCUhDuXEdUYjatkLFTeZkrx1BJ1P5ePgbJ9eIY,89
8
8
  polyapi/execute.py,sha256=ehFfZP3uoGDDeRMNoKpf0R0Vgq1Po1NFP2C7lM5jKLY,1612
9
- polyapi/function_cli.py,sha256=kfW-wO2qfrwbXVx-A2zFXqo1riBzqwDlFO_TL3pygMs,7308
10
- polyapi/generate.py,sha256=-U8mnKWKCJ1wyKLPhb_kDI-v2_FO3_z23moCMMZObrU,3970
9
+ polyapi/function_cli.py,sha256=Isnea8tHijrRBWop9iGDYRWXqV3pGosVj4q-cpwg7Hw,7319
10
+ polyapi/generate.py,sha256=H8zh0tmiQYMctDJQsddfxhoGCtmUwptHlkRgj7FcomQ,4140
11
11
  polyapi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  polyapi/schema.py,sha256=1a7nIO867Xy3bagmPUNdYMxtS5OoCAv8oKIbYgj55dk,2957
13
13
  polyapi/typedefs.py,sha256=RZ3I6sgJm_5MuuORG1QjUE-UJy_z2WRXNdiWjEdLvQg,1371
14
14
  polyapi/utils.py,sha256=b9A2Zy2T1Sz8g6L1zq5H6Bznb7b-OU7kav699R-ZG58,1465
15
15
  polyapi/variables.py,sha256=uYeeVcYu-OKtS8b6hlm7HlrYujcJtv3J2ByILoJrjzQ,3044
16
- polyapi_python-0.1.0.dev9.dist-info/LICENSE,sha256=Hi0kDr56Dsy0uYIwNt4r9G7tI8x8miXRTlyvbeplCP8,1068
17
- polyapi_python-0.1.0.dev9.dist-info/METADATA,sha256=fWhZzvCo756P88JSM0pNVDsfYWSXEfwzWsABFREP_Fw,4544
18
- polyapi_python-0.1.0.dev9.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
19
- polyapi_python-0.1.0.dev9.dist-info/top_level.txt,sha256=CEFllOnzowci_50RYJac-M54KD2IdAptFsayVVF_f04,8
20
- polyapi_python-0.1.0.dev9.dist-info/RECORD,,
16
+ polyapi_python-0.1.0.dev11.dist-info/LICENSE,sha256=Hi0kDr56Dsy0uYIwNt4r9G7tI8x8miXRTlyvbeplCP8,1068
17
+ polyapi_python-0.1.0.dev11.dist-info/METADATA,sha256=dEMO-6LBpSPpBrNQy_mL106u0q5Fa-NkQr6Y1fMFTUw,4691
18
+ polyapi_python-0.1.0.dev11.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
19
+ polyapi_python-0.1.0.dev11.dist-info/top_level.txt,sha256=CEFllOnzowci_50RYJac-M54KD2IdAptFsayVVF_f04,8
20
+ polyapi_python-0.1.0.dev11.dist-info/RECORD,,