Habiticalib 0.3.0__py3-none-any.whl → 0.3.2__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.
- habiticalib/__init__.py +2 -2
- habiticalib/const.py +1 -1
- habiticalib/lib.py +3 -3
- habiticalib/types.py +12 -3
- {habiticalib-0.3.0.dist-info → habiticalib-0.3.2.dist-info}/METADATA +3 -2
- habiticalib-0.3.2.dist-info/RECORD +11 -0
- {habiticalib-0.3.0.dist-info → habiticalib-0.3.2.dist-info}/WHEEL +1 -1
- habiticalib-0.3.0.dist-info/RECORD +0 -11
- {habiticalib-0.3.0.dist-info → habiticalib-0.3.2.dist-info}/licenses/LICENSE +0 -0
habiticalib/__init__.py
CHANGED
@@ -32,7 +32,7 @@ from .types import (
|
|
32
32
|
HabiticaTaskOrderResponse,
|
33
33
|
HabiticaTaskResponse,
|
34
34
|
HabiticaTasksResponse,
|
35
|
-
|
35
|
+
HabiticaUserAnonymizedrResponse,
|
36
36
|
HabiticaUserExport,
|
37
37
|
HabiticaUserResponse,
|
38
38
|
Language,
|
@@ -79,7 +79,7 @@ __all__ = [
|
|
79
79
|
"HabiticaTaskOrderResponse",
|
80
80
|
"HabiticaTaskResponse",
|
81
81
|
"HabiticaTasksResponse",
|
82
|
-
"
|
82
|
+
"HabiticaUserAnonymizedrResponse",
|
83
83
|
"HabiticaUserExport",
|
84
84
|
"HabiticaUserResponse",
|
85
85
|
"Language",
|
habiticalib/const.py
CHANGED
habiticalib/lib.py
CHANGED
@@ -46,7 +46,7 @@ from .types import (
|
|
46
46
|
HabiticaTaskOrderResponse,
|
47
47
|
HabiticaTaskResponse,
|
48
48
|
HabiticaTasksResponse,
|
49
|
-
|
49
|
+
HabiticaUserAnonymizedrResponse,
|
50
50
|
HabiticaUserExport,
|
51
51
|
HabiticaUserResponse,
|
52
52
|
Language,
|
@@ -254,7 +254,7 @@ class Habitica:
|
|
254
254
|
|
255
255
|
async def get_user_anonymized(
|
256
256
|
self,
|
257
|
-
) ->
|
257
|
+
) -> HabiticaUserAnonymizedrResponse:
|
258
258
|
"""Get the authenticated user's anonymized profile.
|
259
259
|
|
260
260
|
This method retrieves the user's profile data while excluding sensitive
|
@@ -291,7 +291,7 @@ class Habitica:
|
|
291
291
|
|
292
292
|
url = url / "anonymized"
|
293
293
|
|
294
|
-
return
|
294
|
+
return HabiticaUserAnonymizedrResponse.from_json(
|
295
295
|
await self._request("get", url=url),
|
296
296
|
)
|
297
297
|
|
habiticalib/types.py
CHANGED
@@ -842,6 +842,15 @@ class Reminders:
|
|
842
842
|
startDate: datetime | None = None
|
843
843
|
|
844
844
|
|
845
|
+
@dataclass(kw_only=True)
|
846
|
+
class Checklist:
|
847
|
+
"""Task checklist data."""
|
848
|
+
|
849
|
+
id: UUID
|
850
|
+
text: str
|
851
|
+
completed: bool
|
852
|
+
|
853
|
+
|
845
854
|
class TaskType(StrEnum):
|
846
855
|
"""Task types enum."""
|
847
856
|
|
@@ -881,7 +890,7 @@ class Task(TypedDict("Task", {"type": NotRequired[TaskType]}), total=True):
|
|
881
890
|
date: NotRequired[datetime | dt.date | None]
|
882
891
|
priority: NotRequired[TaskPriority]
|
883
892
|
reminders: NotRequired[list[Reminders]]
|
884
|
-
checklist: NotRequired[list[
|
893
|
+
checklist: NotRequired[list[Checklist]]
|
885
894
|
up: NotRequired[bool]
|
886
895
|
down: NotRequired[bool]
|
887
896
|
counterUp: NotRequired[int]
|
@@ -935,7 +944,7 @@ class TaskData:
|
|
935
944
|
yesterDaily: bool | None = None
|
936
945
|
completed: bool | None = None
|
937
946
|
collapseChecklist: bool = False
|
938
|
-
checklist: list[
|
947
|
+
checklist: list[Checklist] = field(default_factory=list)
|
939
948
|
isDue: bool | None = None
|
940
949
|
repeat: Repeat = field(default_factory=Repeat)
|
941
950
|
|
@@ -1050,7 +1059,7 @@ class UserAnonymizedData:
|
|
1050
1059
|
|
1051
1060
|
|
1052
1061
|
@dataclass(kw_only=True)
|
1053
|
-
class
|
1062
|
+
class HabiticaUserAnonymizedrResponse(DataClassORJSONMixin):
|
1054
1063
|
"""Representation of a anonymized user data export."""
|
1055
1064
|
|
1056
1065
|
data: UserAnonymizedData
|
@@ -1,11 +1,12 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: Habiticalib
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.2
|
4
4
|
Summary: Asynchronous Python client library for the Habitica API
|
5
5
|
Project-URL: Documentation, https://tr4nt0r.github.io/habiticalib/
|
6
6
|
Project-URL: Source, https://github.com/tr4nt0r/habiticalib
|
7
7
|
Author-email: Manfred Dennerlein Rodelo <manfred@dennerlein.name>
|
8
8
|
License: MIT License
|
9
|
+
License-File: LICENSE
|
9
10
|
Classifier: License :: OSI Approved :: MIT License
|
10
11
|
Classifier: Operating System :: OS Independent
|
11
12
|
Classifier: Programming Language :: Python :: 3 :: Only
|
@@ -0,0 +1,11 @@
|
|
1
|
+
habiticalib/__init__.py,sha256=4R9cHRWgKBakoUfouQ8x-5Q1psHnFayj88-exKCLYnE,2327
|
2
|
+
habiticalib/const.py,sha256=oVV6SvHxkvrLWD609IAcplC1Jjq9qho9DsXkv6VUJag,624
|
3
|
+
habiticalib/exceptions.py,sha256=oVFCGbHkVn0UpIKIPZPzXfvzs9US4R05ebdEn6cOpqM,1350
|
4
|
+
habiticalib/helpers.py,sha256=IRZLYWkDVLI0iVBgBMmvZ6L83KCUl-CnzGhUR_tP6Fg,4576
|
5
|
+
habiticalib/lib.py,sha256=sH0L33VspxC6gVcpsYcryCXlViwwIVTc3zuTZ3V9wnU,73527
|
6
|
+
habiticalib/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
|
+
habiticalib/types.py,sha256=YcMdZsB0jXL2_t7eYuD3-84qEl18arK1gRWBCA5quLQ,42818
|
8
|
+
habiticalib-0.3.2.dist-info/METADATA,sha256=_tuam7yUeLxcpy5QhmXvRfAz1X2bknmKLTAU83S3Hj8,4207
|
9
|
+
habiticalib-0.3.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
10
|
+
habiticalib-0.3.2.dist-info/licenses/LICENSE,sha256=oIinIOSJ49l1iVIRI3XGXFWt6SF7a83kEFBAY8ORwNI,1084
|
11
|
+
habiticalib-0.3.2.dist-info/RECORD,,
|
@@ -1,11 +0,0 @@
|
|
1
|
-
habiticalib/__init__.py,sha256=NoFYNqRKuLiMwXWCWdxxkxnubmUplxCb3Ct0kQy0ZYo,2309
|
2
|
-
habiticalib/const.py,sha256=4Pqb9TaT1nfrV6Um4OXBpGkLLNqAT7gPACn4dzV5V5Q,624
|
3
|
-
habiticalib/exceptions.py,sha256=oVFCGbHkVn0UpIKIPZPzXfvzs9US4R05ebdEn6cOpqM,1350
|
4
|
-
habiticalib/helpers.py,sha256=IRZLYWkDVLI0iVBgBMmvZ6L83KCUl-CnzGhUR_tP6Fg,4576
|
5
|
-
habiticalib/lib.py,sha256=e-UwtfDWYrxl-N5Ylns7ZgU4knquEximdyBTQz4RcYQ,73500
|
6
|
-
habiticalib/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
|
-
habiticalib/types.py,sha256=bh_Fly_piJK-9tbKjS-pZB8Z5LL_pW8MHJj1NfCyb2E,42674
|
8
|
-
habiticalib-0.3.0.dist-info/METADATA,sha256=kneBKiOMlRDpX2qdLn6cYbFRBdpl4NOppCjIypw4bG0,4185
|
9
|
-
habiticalib-0.3.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
10
|
-
habiticalib-0.3.0.dist-info/licenses/LICENSE,sha256=oIinIOSJ49l1iVIRI3XGXFWt6SF7a83kEFBAY8ORwNI,1084
|
11
|
-
habiticalib-0.3.0.dist-info/RECORD,,
|
File without changes
|