python3-core-api-client 0.4.2__py3-none-any.whl → 1.0.1__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.
@@ -2,13 +2,14 @@ import datetime
2
2
  from json import JSONEncoder
3
3
  from ipaddress import IPv4Address, IPv6Address
4
4
  from typing import Any
5
+ from uuid import UUID
5
6
 
6
7
 
7
8
  class CustomEncoder(JSONEncoder):
8
9
  def default(self, o: Any) -> str:
9
10
  if isinstance(o, datetime.date):
10
11
  return o.strftime("%Y-%m-%dT%H:%M:%S.%fZ")
11
- elif isinstance(o, (IPv6Address, IPv4Address)):
12
+ elif isinstance(o, (IPv6Address, IPv4Address, UUID)):
12
13
  return str(o)
13
14
 
14
15
  return super().default(o)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python3-core-api-client
3
- Version: 0.4.2
3
+ Version: 1.0.1
4
4
  Summary: Python client for Core API.
5
5
  Author-email: Cyberfusion <support@cyberfusion.io>
6
6
  Project-URL: Source, https://github.com/CyberfusionIO/python3-core-api-client
@@ -1,5 +1,5 @@
1
1
  cyberfusion/CoreApiClient/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- cyberfusion/CoreApiClient/_encoders.py,sha256=A40qzD9Ld6Ak7cfzMOH4alMxS9AJgksvBs5xf0EAgbI,402
2
+ cyberfusion/CoreApiClient/_encoders.py,sha256=b4k_ULo1KOR1XBsYGXsmnOUsWL2bBHU_NMtc-Zl4C4Q,430
3
3
  cyberfusion/CoreApiClient/connector.py,sha256=7yQs9fH8ldGHpw41xHU07NkXD5OPm3_pjckk3asF6u4,12698
4
4
  cyberfusion/CoreApiClient/exceptions.py,sha256=fNxPtzVL4SzPiVNZmBTu1l8D57dkCxMxflyIXDPLE4Q,204
5
5
  cyberfusion/CoreApiClient/http.py,sha256=z6ZyfQyUnA3QDCmej2BEIw9BOlTYoCE8zvTZ0-u_VoQ,429
@@ -53,7 +53,7 @@ cyberfusion/CoreApiClient/resources/tombstones.py,sha256=brtaywIKuIHfzrhAQSg8wtx
53
53
  cyberfusion/CoreApiClient/resources/unix_users.py,sha256=64j14_pfh4jWgM1hzJUYCicHcYQ7CT84cFzePCp0zTg,3622
54
54
  cyberfusion/CoreApiClient/resources/url_redirects.py,sha256=GBUin-MRtkuKk9191-8EsYc6iZf5X2cMOk_Y-xleW2s,2358
55
55
  cyberfusion/CoreApiClient/resources/virtual_hosts.py,sha256=ZwlymtfSp8sMtglm8iGrUb7wpw4cGtFU6h5b7HTu9Kw,3702
56
- python3_core_api_client-0.4.2.dist-info/METADATA,sha256=Lb-KUusBRboHtRaIjrPI8I1b9OGd09VVU-N79CsLRJs,7031
57
- python3_core_api_client-0.4.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
58
- python3_core_api_client-0.4.2.dist-info/top_level.txt,sha256=ss011q9S6SL_KIIyq7iujFmIYa0grSjlnInO7cDkeag,12
59
- python3_core_api_client-0.4.2.dist-info/RECORD,,
56
+ python3_core_api_client-1.0.1.dist-info/METADATA,sha256=nfU7o0rtVJ3rIMR3bJcbuhIrjFhRvR69z5IMAiUKO3w,7031
57
+ python3_core_api_client-1.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
58
+ python3_core_api_client-1.0.1.dist-info/top_level.txt,sha256=ss011q9S6SL_KIIyq7iujFmIYa0grSjlnInO7cDkeag,12
59
+ python3_core_api_client-1.0.1.dist-info/RECORD,,