polyapi-python 0.3.11.dev4__py3-none-any.whl → 0.3.12__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/config.py CHANGED
@@ -96,7 +96,8 @@ def initialize_config(force=False):
96
96
  if not key:
97
97
  key = input("? Poly App Key or User Key: ").strip()
98
98
  else:
99
- key_input = input(f"? Poly App Key or User Key ({key}): ").strip()
99
+ display_key = '*' * 8 + key[-4:]
100
+ key_input = input(f"? Poly App Key or User Key ({display_key}): ").strip()
100
101
  key = key_input if key_input else key
101
102
 
102
103
  if url and key:
polyapi/poly_tables.py CHANGED
@@ -315,7 +315,7 @@ class {table_name}:{table_description}
315
315
  @staticmethod
316
316
  def update_one(*args, **kwargs) -> {table_name}Row:
317
317
  if args:
318
- if len(args) != 2 or or not isinstance(args[0], str) not isinstance(args[1], dict):
318
+ if len(args) != 2 or not isinstance(args[0], str) or not isinstance(args[1], dict):
319
319
  raise TypeError("Expected id and query as arguments or as kwargs")
320
320
  query = args[1]
321
321
  if not isinstance(query["where"], dict):
@@ -356,7 +356,7 @@ class {table_name}:{table_description}
356
356
  @staticmethod
357
357
  def delete_one(*args, **kwargs) -> PolyDeleteResult:
358
358
  if args:
359
- if len(args) != 2 or or not isinstance(args[0], str) not isinstance(args[1], dict):
359
+ if len(args) != 2 or not isinstance(args[0], str) or not isinstance(args[1], dict):
360
360
  raise TypeError("Expected id and query as arguments or as kwargs")
361
361
  query = args[1]
362
362
  if not isinstance(query["where"], dict):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: polyapi-python
3
- Version: 0.3.11.dev4
3
+ Version: 0.3.12
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
@@ -4,7 +4,7 @@ polyapi/api.py,sha256=2nds6ZdNe9OHvCba4IjOPga0CAYIsib2SbhEyDDCmd8,2188
4
4
  polyapi/auth.py,sha256=EGstBjTSdAydI5hGAHeRRc1GcmHshogudb3sxCgO6zA,5341
5
5
  polyapi/cli.py,sha256=3M6XpMhpvQSHq4X8tBsq7N93YEwyVIqNFkz1tx_6aSs,11107
6
6
  polyapi/client.py,sha256=DW6ljG_xCwAo2yz23A9QfLooE6ZUDvSpdA4e_dCQjiQ,1418
7
- polyapi/config.py,sha256=k4UgczUTEabOjQPMSCoZtSkICymAKVWRIRWAyZKO2iA,7467
7
+ polyapi/config.py,sha256=dnowfPKEau5sA4zwBzLK_dYAHA-Wi3AOnMtDNsYwUmM,7520
8
8
  polyapi/constants.py,sha256=sc-FnS0SngBLvSu1ZWMs0UCf9EYD1u1Yhfr-sZXGLns,607
9
9
  polyapi/deployables.py,sha256=6R7XSgpTohZBcqoGd7GioQdXXKuvbBsdq_cAJ1p8jfQ,12184
10
10
  polyapi/error_handler.py,sha256=I_e0iz6VM23FLVQWJljxs2NGcl_OODbi43OcbnqBlp8,2398
@@ -14,7 +14,7 @@ polyapi/function_cli.py,sha256=W30yL2i152iZCr6zAU1CHKlDp_tt7kB2cGIXIxmWumk,4302
14
14
  polyapi/generate.py,sha256=0zVDEnKVZnbMNZ6O0SWAuDLHrBrkW01vFkjpf9wrQZo,21046
15
15
  polyapi/parser.py,sha256=IVSJGT6wcxpXUHmhx4DVhOGL1XY_MBaf5aw3Pd2DVcI,20935
16
16
  polyapi/poly_schemas.py,sha256=fZ6AGvHcOKQJtlrzSuzeBNed5DxPMA2dJGdJvuFCHWM,9066
17
- polyapi/poly_tables.py,sha256=JCUxyQCsFeo3ZQNL3b3jh097ewad0la3JxkGGbnAkho,18783
17
+ polyapi/poly_tables.py,sha256=SrByuusS1aL7L7R8o28TEr4A-8AfMGGHCKLg-9vmnxc,18783
18
18
  polyapi/prepare.py,sha256=NQzpMIoakNovStvOGOmqSYIpTwiWXaweNSE9se10A2E,7420
19
19
  polyapi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  polyapi/rendered_spec.py,sha256=nJEj2vRgG3N20fU4s-ThRtOIwAuTzXwXuOBIkXljDVc,2240
@@ -25,8 +25,8 @@ polyapi/typedefs.py,sha256=mfll-KrngOW0wzbvDNiIDaDkFMwbsT-MY5y5hzWj9RE,5642
25
25
  polyapi/utils.py,sha256=Ca189i4PM4TpwvpzwF3T8MfQsOPD45b_falXjjgYCyI,12603
26
26
  polyapi/variables.py,sha256=SJv106ePpQP5mx7Iiafl_shtFlE8FoaO9Q8lvw-3IRg,7270
27
27
  polyapi/webhook.py,sha256=I3_uOl4f4L2-2WehzRLMVMRrB-76EiXCPA9Vzoaj30I,5326
28
- polyapi_python-0.3.11.dev4.dist-info/licenses/LICENSE,sha256=6b_I7aPVp8JXhqQwdw7_B84Ca0S4JGjHj0sr_1VOdB4,1068
29
- polyapi_python-0.3.11.dev4.dist-info/METADATA,sha256=vmuuWa1eUGWCEI2T5ptklEbX_8VJMT-pF9eaKKYiWXE,5318
30
- polyapi_python-0.3.11.dev4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
31
- polyapi_python-0.3.11.dev4.dist-info/top_level.txt,sha256=CEFllOnzowci_50RYJac-M54KD2IdAptFsayVVF_f04,8
32
- polyapi_python-0.3.11.dev4.dist-info/RECORD,,
28
+ polyapi_python-0.3.12.dist-info/licenses/LICENSE,sha256=6b_I7aPVp8JXhqQwdw7_B84Ca0S4JGjHj0sr_1VOdB4,1068
29
+ polyapi_python-0.3.12.dist-info/METADATA,sha256=5PRNhIIfeUpfUlTsEV_smj2Mv9u5-Rg1GxoapFsLBgQ,5313
30
+ polyapi_python-0.3.12.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
31
+ polyapi_python-0.3.12.dist-info/top_level.txt,sha256=CEFllOnzowci_50RYJac-M54KD2IdAptFsayVVF_f04,8
32
+ polyapi_python-0.3.12.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: setuptools (80.10.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5