Commit Graph

13 Commits

Author SHA1 Message Date
Davide Casale
bd09cc4ae4 Remove skip parameter in _Serializer::parse, add flat argument in _Serializer::__init__. Add _Serializer::__flatten class method. Fix small bugs in bfxapi.rest.endpoints.rest_public_endpoints and bfxapi.rest.endpoints.rest_authenticated_endpoints. 2023-03-08 19:31:48 +01:00
Davide Casale
ae14a5d0d1 Apply pylint's linting rules to bfxapi/__init__.py, bfxapi/enums.py, bfxapi/exceptions.py, bfxapi/labeler.py, bfxapi/notification.py and bfxapi/urls.py. 2023-03-06 17:14:03 +01:00
Davide Casale
442155b48e Rename .notify_info to .data in Notification (bfxapi.notifications). 2023-02-20 18:29:08 +01:00
Davide Casale
c588d9f20c Rewrite bfxapi/rest/_Requests.py with type hinting. Add None values erasement in bfxapi/utils/JSONEncoder.py. Update code with new improvements. 2023-02-06 19:15:58 +01:00
Davide Casale
d767e5dcfe Replace every snake case (uppercase) to snake case (lowercase) in serializers, types and notification. 2023-01-26 19:00:13 +01:00
Davide Casale
2afcc76647 Fix bug regarding new typing with dataclasses. 2023-01-16 18:18:12 +01:00
Davide Casale
1613a56d81 Rename bfxapi/rest/typings.py to bfxapi/rest/types.py. 2023-01-16 16:40:14 +01:00
Davide Casale
0bb9f65a19 Replace SimpleNamespaces with dataclasses. Add base class _Typing in labeler.py to convert dictionaries to dataclasses. Remove SimpleNamespace references. 2023-01-16 16:30:06 +01:00
Davide Casale
903f68c6e3 Add support for SimpleNamespace (instead of TypedDict) in bfxapi/labeler.py and bfxapi/notifications.py. Add generics Notification type in notifications.py. Add support for new changes in bfxapi/rest/BfxRestInterface.py. 2023-01-13 18:15:29 +01:00
Davide Casale
10862aea79 Fix bug in bfxapi/notifications.py. 2023-01-10 18:19:30 +01:00
Davide Casale
72a3252e32 Add support for new rest authenticated endpoints. 2022-12-23 16:36:51 +01:00
Davide Casale
18f9fef12d Fix some mypy errors and warnings. 2022-12-22 18:48:23 +01:00
Davide Casale
4f63f4068e Add and implement notification.py in root package (bfxapi). 2022-12-22 18:24:56 +01:00