polyapi-python 0.3.3.dev11__py3-none-any.whl → 0.3.4.dev1__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/execute.py CHANGED
@@ -8,14 +8,10 @@ from polyapi.exceptions import PolyApiException
8
8
  def execute(function_type, function_id, data) -> Response:
9
9
  """ execute a specific function id/type
10
10
  """
11
- data_without_None = data
12
- if isinstance(data, Dict):
13
- data_without_None = {k: v for k, v in data.items() if v is not None}
14
-
15
11
  api_key, api_url = get_api_key_and_url()
16
12
  headers = {"Authorization": f"Bearer {api_key}"}
17
13
  url = f"{api_url}/functions/{function_type}/{function_id}/execute"
18
- resp = requests.post(url, json=data_without_None, headers=headers)
14
+ resp = requests.post(url, json=data, headers=headers)
19
15
  # print(resp.status_code)
20
16
  # print(resp.headers["content-type"])
21
17
  if resp.status_code < 200 or resp.status_code >= 300:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: polyapi-python
3
- Version: 0.3.3.dev11
3
+ Version: 0.3.4.dev1
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
@@ -9,7 +9,7 @@ polyapi/constants.py,sha256=sc-FnS0SngBLvSu1ZWMs0UCf9EYD1u1Yhfr-sZXGLns,607
9
9
  polyapi/deployables.py,sha256=WVcNNB6W5ZW_-ukf_kK3moRcnwIkC-O4te6vLepjcco,11936
10
10
  polyapi/error_handler.py,sha256=I_e0iz6VM23FLVQWJljxs2NGcl_OODbi43OcbnqBlp8,2398
11
11
  polyapi/exceptions.py,sha256=Zh7i7eCUhDuXEdUYjatkLFTeZkrx1BJ1P5ePgbJ9eIY,89
12
- polyapi/execute.py,sha256=T9lXtiOz-JZTJgBKvJptA5_mz31qvYa6-O4NzM52mq4,2118
12
+ polyapi/execute.py,sha256=akfiJMIlRCPNtDfRvGd11baGC7F8gjwD3Uv8w9RVND4,1967
13
13
  polyapi/function_cli.py,sha256=htgmcx_dPmw4_5NKRgIivcwS7D8bkOsxCTOrJhzV3pU,3989
14
14
  polyapi/generate.py,sha256=pmlhaQEqzuqUI-XfuRave6oB_x0MDCV4Q7HMjd-hvAQ,11514
15
15
  polyapi/parser.py,sha256=mdoh4pNq8pyiHE0-i6Coqj8frEXfBLRk6itpAXMrrgI,20373
@@ -24,8 +24,8 @@ polyapi/typedefs.py,sha256=KniVl7vwcDOhgAJmHSgTJKkP0rKWvSLIPOGsWuf9jRU,2239
24
24
  polyapi/utils.py,sha256=K6QMKEf2fgmh3AswyNBADfv53sIOSAbXmGx2MaW5vy8,10261
25
25
  polyapi/variables.py,sha256=d36-trnfTL_8m2NkorMiImb4O3UrJbiFV38CHxV5i0A,4200
26
26
  polyapi/webhook.py,sha256=LWv28c2MLz_OKBI_Nn7WR4C-gs1SWgbdXsoxIIf-9UI,4886
27
- polyapi_python-0.3.3.dev11.dist-info/licenses/LICENSE,sha256=6b_I7aPVp8JXhqQwdw7_B84Ca0S4JGjHj0sr_1VOdB4,1068
28
- polyapi_python-0.3.3.dev11.dist-info/METADATA,sha256=tG1xPLUqwNCb0FTf9Bux5r0WxBgRkVCFha8XJd-kbNQ,5783
29
- polyapi_python-0.3.3.dev11.dist-info/WHEEL,sha256=wXxTzcEDnjrTwFYjLPcsW_7_XihufBwmpiBeiXNBGEA,91
30
- polyapi_python-0.3.3.dev11.dist-info/top_level.txt,sha256=CEFllOnzowci_50RYJac-M54KD2IdAptFsayVVF_f04,8
31
- polyapi_python-0.3.3.dev11.dist-info/RECORD,,
27
+ polyapi_python-0.3.4.dev1.dist-info/licenses/LICENSE,sha256=6b_I7aPVp8JXhqQwdw7_B84Ca0S4JGjHj0sr_1VOdB4,1068
28
+ polyapi_python-0.3.4.dev1.dist-info/METADATA,sha256=du4tOZKfyDUo76ZRr6IuShbWoMuflUAVUwXOqPmH83M,5782
29
+ polyapi_python-0.3.4.dev1.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
30
+ polyapi_python-0.3.4.dev1.dist-info/top_level.txt,sha256=CEFllOnzowci_50RYJac-M54KD2IdAptFsayVVF_f04,8
31
+ polyapi_python-0.3.4.dev1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.1.0)
2
+ Generator: setuptools (80.3.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5