polyapi-python 0.2.7.dev4__py3-none-any.whl → 0.2.9__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_python-0.2.7.dev4.dist-info → polyapi_python-0.2.9.dist-info}/METADATA +27 -9
- {polyapi_python-0.2.7.dev4.dist-info → polyapi_python-0.2.9.dist-info}/RECORD +5 -5
- {polyapi_python-0.2.7.dev4.dist-info → polyapi_python-0.2.9.dist-info}/WHEEL +1 -1
- {polyapi_python-0.2.7.dev4.dist-info → polyapi_python-0.2.9.dist-info}/LICENSE +0 -0
- {polyapi_python-0.2.7.dev4.dist-info → polyapi_python-0.2.9.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: polyapi-python
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.9
|
|
4
4
|
Summary: The Python Client for PolyAPI, the IPaaS by Developers for Developers
|
|
5
5
|
Author-email: Dan Fellin <dan@polyapi.io>
|
|
6
6
|
License: MIT License
|
|
@@ -28,14 +28,14 @@ Project-URL: Homepage, https://github.com/polyapi/polyapi-python
|
|
|
28
28
|
Requires-Python: >=3.10
|
|
29
29
|
Description-Content-Type: text/markdown
|
|
30
30
|
License-File: LICENSE
|
|
31
|
-
Requires-Dist: requests
|
|
32
|
-
Requires-Dist: typing-extensions
|
|
33
|
-
Requires-Dist: jsonschema-gentypes
|
|
34
|
-
Requires-Dist: pydantic
|
|
35
|
-
Requires-Dist: stdlib-list
|
|
36
|
-
Requires-Dist: colorama
|
|
37
|
-
Requires-Dist: python-socketio[asyncio_client]
|
|
38
|
-
Requires-Dist: truststore
|
|
31
|
+
Requires-Dist: requests==2.31.0
|
|
32
|
+
Requires-Dist: typing-extensions==4.10.0
|
|
33
|
+
Requires-Dist: jsonschema-gentypes==2.6.0
|
|
34
|
+
Requires-Dist: pydantic==2.6.4
|
|
35
|
+
Requires-Dist: stdlib-list==0.10.0
|
|
36
|
+
Requires-Dist: colorama==0.4.4
|
|
37
|
+
Requires-Dist: python-socketio[asyncio_client]==5.11.1
|
|
38
|
+
Requires-Dist: truststore==0.8.0
|
|
39
39
|
|
|
40
40
|
# PolyAPI Python Library
|
|
41
41
|
|
|
@@ -109,6 +109,24 @@ def bar():
|
|
|
109
109
|
return "Hello World"
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
+
## See Server Function Logs
|
|
113
|
+
|
|
114
|
+
In order to see function logs, please first set `logsEnabled` to `true` in Canopy for the function.
|
|
115
|
+
|
|
116
|
+
https://na1.polyapi.io/canopy/polyui/collections/server-functions
|
|
117
|
+
|
|
118
|
+
Then in your code, get the poly logger and log with it like so:
|
|
119
|
+
|
|
120
|
+
```python
|
|
121
|
+
logger = logging.getLogger("poly")
|
|
122
|
+
def bar():
|
|
123
|
+
logger.warning("I AM THE LOG")
|
|
124
|
+
return "Hello World"
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Finally, click the "Show Logs" button to see your server function logs in Canopy!
|
|
128
|
+
|
|
129
|
+
|
|
112
130
|
## Complex Types In Server Functions
|
|
113
131
|
|
|
114
132
|
You can define arbitrarily complex argument and return types using TypedDicts.
|
|
@@ -19,8 +19,8 @@ polyapi/typedefs.py,sha256=mRqwd2LKofxNn_VSKxBzixni2j-tai8mfTQ0Wi2aLNM,1487
|
|
|
19
19
|
polyapi/utils.py,sha256=PD70FbVLZX0x1Jf2IYZLG2U5XHP6DfYZAwjwlVcl1z8,7141
|
|
20
20
|
polyapi/variables.py,sha256=d36-trnfTL_8m2NkorMiImb4O3UrJbiFV38CHxV5i0A,4200
|
|
21
21
|
polyapi/webhook.py,sha256=LWv28c2MLz_OKBI_Nn7WR4C-gs1SWgbdXsoxIIf-9UI,4886
|
|
22
|
-
polyapi_python-0.2.
|
|
23
|
-
polyapi_python-0.2.
|
|
24
|
-
polyapi_python-0.2.
|
|
25
|
-
polyapi_python-0.2.
|
|
26
|
-
polyapi_python-0.2.
|
|
22
|
+
polyapi_python-0.2.9.dist-info/LICENSE,sha256=Hi0kDr56Dsy0uYIwNt4r9G7tI8x8miXRTlyvbeplCP8,1068
|
|
23
|
+
polyapi_python-0.2.9.dist-info/METADATA,sha256=kMetmxAyil1FzOGKsBMs8NMpV6AmomsKs4lvIHbU7Y4,5321
|
|
24
|
+
polyapi_python-0.2.9.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
|
|
25
|
+
polyapi_python-0.2.9.dist-info/top_level.txt,sha256=CEFllOnzowci_50RYJac-M54KD2IdAptFsayVVF_f04,8
|
|
26
|
+
polyapi_python-0.2.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|