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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: polyapi-python
3
- Version: 0.2.7.dev4
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 ==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
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.7.dev4.dist-info/LICENSE,sha256=Hi0kDr56Dsy0uYIwNt4r9G7tI8x8miXRTlyvbeplCP8,1068
23
- polyapi_python-0.2.7.dev4.dist-info/METADATA,sha256=6M7yV5HAzf7EKsBiIDd1OiakFED4gu5yJhFQgwDMZPA,4867
24
- polyapi_python-0.2.7.dev4.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
25
- polyapi_python-0.2.7.dev4.dist-info/top_level.txt,sha256=CEFllOnzowci_50RYJac-M54KD2IdAptFsayVVF_f04,8
26
- polyapi_python-0.2.7.dev4.dist-info/RECORD,,
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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (70.3.0)
2
+ Generator: setuptools (75.2.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5