Habiticalib 0.1.0a3__tar.gz → 0.2.0__tar.gz
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-0.1.0a3 → habiticalib-0.2.0}/PKG-INFO +2 -1
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/pyproject.toml +2 -1
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/src/habiticalib/__init__.py +30 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/src/habiticalib/const.py +3 -1
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/src/habiticalib/lib.py +484 -11
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/src/habiticalib/types.py +419 -9
- habiticalib-0.2.0/tests/__snapshots__/test_lib.ambr +7 -0
- habiticalib-0.2.0/tests/fixtures/login.json +10 -0
- habiticalib-0.1.0a3/tests/test_user.py → habiticalib-0.2.0/tests/test_lib.py +12 -0
- habiticalib-0.1.0a3/tests/__snapshots__/test_user.ambr +0 -4
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/.cruft.json +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/.editorconfig +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/.github/FUNDING.yml +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/.github/dependabot.yml +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/.github/labels.yml +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/.github/release-drafter.yml +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/.github/workflows/build.yml +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/.github/workflows/documentation.yml +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/.github/workflows/draft.yml +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/.github/workflows/labeler.yml +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/.gitignore +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/.pre-commit-config.yaml +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/.vscode/settings.json +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/LICENSE +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/README.md +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/docs/index.md +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/docs/reference/habiticalib.md +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/mkdocs.yml +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/src/habiticalib/exceptions.py +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/src/habiticalib/helpers.py +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/src/habiticalib/py.typed +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/tests/__init__.py +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/tests/__snapshots__/test_avatar.ambr +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/tests/conftest.py +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/tests/fixtures/user.json +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/tests/fixtures/user_styles.json +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/tests/fixtures/user_styles_kickstarter.json +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/tests/fixtures/user_styles_seafoam.json +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/tests/fixtures/user_styles_shinySeed.json +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/tests/fixtures/user_styles_sleeping.json +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/tests/fixtures/user_styles_snowball.json +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/tests/fixtures/user_styles_spookySparkles.json +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/tests/fixtures/user_styles_with_chair.json +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/tests/test_avatar.py +0 -0
- {habiticalib-0.1.0a3 → habiticalib-0.2.0}/tests/test_init.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: Habiticalib
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.2.0
|
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
|
@@ -11,6 +11,7 @@ Classifier: Operating System :: OS Independent
|
|
11
11
|
Classifier: Programming Language :: Python :: 3 :: Only
|
12
12
|
Requires-Python: >=3.12
|
13
13
|
Requires-Dist: aiohttp~=3.9
|
14
|
+
Requires-Dist: habitipy~=0.3.3
|
14
15
|
Requires-Dist: mashumaro~=3.13
|
15
16
|
Requires-Dist: orjson~=3.10
|
16
17
|
Requires-Dist: pillow~=11.0
|
@@ -8,17 +8,24 @@ from .exceptions import (
|
|
8
8
|
NotFoundError,
|
9
9
|
TooManyRequestsError,
|
10
10
|
)
|
11
|
+
from .helpers import deserialize_task
|
11
12
|
from .lib import Habitica
|
12
13
|
from .types import (
|
13
14
|
Attributes,
|
15
|
+
ChangeClassData,
|
16
|
+
ContentData,
|
14
17
|
Direction,
|
15
18
|
Frequency,
|
16
19
|
HabiticaClass,
|
17
20
|
HabiticaClassSystemResponse,
|
21
|
+
HabiticaContentResponse,
|
18
22
|
HabiticaErrorResponse,
|
23
|
+
HabiticaGroupMembersResponse,
|
19
24
|
HabiticaLoginResponse,
|
25
|
+
HabiticaQuestResponse,
|
20
26
|
HabiticaResponse,
|
21
27
|
HabiticaScoreResponse,
|
28
|
+
HabiticaSleepResponse,
|
22
29
|
HabiticaStatsResponse,
|
23
30
|
HabiticaTagResponse,
|
24
31
|
HabiticaTagsResponse,
|
@@ -28,10 +35,18 @@ from .types import (
|
|
28
35
|
HabiticaUserExport,
|
29
36
|
HabiticaUserResponse,
|
30
37
|
Language,
|
38
|
+
LoginData,
|
39
|
+
QuestData,
|
40
|
+
ScoreData,
|
31
41
|
Skill,
|
42
|
+
StatsUser,
|
43
|
+
TagsUser,
|
32
44
|
Task,
|
45
|
+
TaskData,
|
33
46
|
TaskFilter,
|
47
|
+
TaskPriority,
|
34
48
|
TaskType,
|
49
|
+
UserData,
|
35
50
|
UserStyles,
|
36
51
|
)
|
37
52
|
|
@@ -40,17 +55,24 @@ __all__ = [
|
|
40
55
|
"ASSETS_URL",
|
41
56
|
"Attributes",
|
42
57
|
"BadRequestError",
|
58
|
+
"ChangeClassData",
|
59
|
+
"ContentData",
|
43
60
|
"DEFAULT_URL",
|
61
|
+
"deserialize_task",
|
44
62
|
"Direction",
|
45
63
|
"Frequency",
|
46
64
|
"Habitica",
|
47
65
|
"HabiticaClass",
|
48
66
|
"HabiticaClassSystemResponse",
|
67
|
+
"HabiticaContentResponse",
|
49
68
|
"HabiticaErrorResponse",
|
50
69
|
"HabiticaException",
|
70
|
+
"HabiticaGroupMembersResponse",
|
51
71
|
"HabiticaLoginResponse",
|
72
|
+
"HabiticaQuestResponse",
|
52
73
|
"HabiticaResponse",
|
53
74
|
"HabiticaScoreResponse",
|
75
|
+
"HabiticaSleepResponse",
|
54
76
|
"HabiticaStatsResponse",
|
55
77
|
"HabiticaTagResponse",
|
56
78
|
"HabiticaTagsResponse",
|
@@ -60,12 +82,20 @@ __all__ = [
|
|
60
82
|
"HabiticaUserExport",
|
61
83
|
"HabiticaUserResponse",
|
62
84
|
"Language",
|
85
|
+
"LoginData",
|
63
86
|
"NotAuthorizedError",
|
64
87
|
"NotFoundError",
|
88
|
+
"QuestData",
|
89
|
+
"ScoreData",
|
65
90
|
"Skill",
|
91
|
+
"StatsUser",
|
92
|
+
"TagsUser",
|
66
93
|
"Task",
|
94
|
+
"TaskData",
|
67
95
|
"TaskFilter",
|
96
|
+
"TaskPriority",
|
68
97
|
"TaskType",
|
69
98
|
"TooManyRequestsError",
|
99
|
+
"UserData",
|
70
100
|
"UserStyles",
|
71
101
|
]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"""Constants for Habiticalib."""
|
2
2
|
|
3
|
-
__version__ = "0.
|
3
|
+
__version__ = "0.2.0"
|
4
4
|
|
5
5
|
DEFAULT_URL = "https://habitica.com/"
|
6
6
|
ASSETS_URL = "https://habitica-assets.s3.amazonaws.com/mobileApp/images/"
|
@@ -14,3 +14,5 @@ BACKER_ONLY_GEAR = {
|
|
14
14
|
"shield_special_ks2019": "BackerOnly-Equip-MythicGryphonShield.gif",
|
15
15
|
"weapon_special_ks2019": "BackerOnly-Equip-MythicGryphonGlaive.gif",
|
16
16
|
}
|
17
|
+
|
18
|
+
PAGE_LIMIT = 60
|