longwei 2.0.2__tar.gz → 2.0.3__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.
- {longwei-2.0.2 → longwei-2.0.3}/PKG-INFO +2 -1
- {longwei-2.0.2 → longwei-2.0.3}/README.md +1 -0
- {longwei-2.0.2 → longwei-2.0.3}/pyproject.toml +5 -1
- {longwei-2.0.2 → longwei-2.0.3}/src/longwei/enums.py +4 -4
- {longwei-2.0.2 → longwei-2.0.3}/src/longwei/__init__.py +0 -0
- {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_base.py +0 -0
- {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_accounts.py +0 -0
- {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_auth.py +0 -0
- {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_credentials.py +0 -0
- {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_discovery.py +0 -0
- {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_favourites_bookmarks.py +0 -0
- {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_filters.py +0 -0
- {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_gotosocial.py +0 -0
- {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_instance.py +0 -0
- {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_lists.py +0 -0
- {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_notifications.py +0 -0
- {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_pleroma.py +0 -0
- {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_polls.py +0 -0
- {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_reports.py +0 -0
- {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_request_helpers.py +0 -0
- {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_statuses.py +0 -0
- {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_timelines.py +0 -0
- {longwei-2.0.2 → longwei-2.0.3}/src/longwei/constants.py +0 -0
- {longwei-2.0.2 → longwei-2.0.3}/src/longwei/exceptions.py +0 -0
- {longwei-2.0.2 → longwei-2.0.3}/src/longwei/models.py +0 -0
- {longwei-2.0.2 → longwei-2.0.3}/src/longwei/types.py +0 -0
- {longwei-2.0.2 → longwei-2.0.3}/src/longwei/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: longwei
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.3
|
|
4
4
|
Summary: Python client library for ActivityPub-compatible servers
|
|
5
5
|
Author: marvin8
|
|
6
6
|
Author-email: marvin8 <marvin8@tuta.io>
|
|
@@ -31,6 +31,7 @@ Description-Content-Type: text/markdown
|
|
|
31
31
|
[](https://pepy.tech/project/longwei "Download count")
|
|
32
32
|
[](https://docs.astral.sh/uv/guides/audit/ "Checked with uv-secure")
|
|
33
33
|
[](https://github.com/gitleaks/gitleaks "Checked with gitleaks")
|
|
34
|
+
[](https://ai-declaration.md/ "AI Declaration: copilot")
|
|
34
35
|
[](https://github.com/astral-sh/pysentry "Checked with pysentry")
|
|
35
36
|
[](https://github.com/rohaquinlop/complexipy "Checked with complexipy")
|
|
36
37
|
[](https://github.com/astral-sh/ruff "Code style: ruff")
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
[](https://pepy.tech/project/longwei "Download count")
|
|
7
7
|
[](https://docs.astral.sh/uv/guides/audit/ "Checked with uv-secure")
|
|
8
8
|
[](https://github.com/gitleaks/gitleaks "Checked with gitleaks")
|
|
9
|
+
[](https://ai-declaration.md/ "AI Declaration: copilot")
|
|
9
10
|
[](https://github.com/astral-sh/pysentry "Checked with pysentry")
|
|
10
11
|
[](https://github.com/rohaquinlop/complexipy "Checked with complexipy")
|
|
11
12
|
[](https://github.com/astral-sh/ruff "Code style: ruff")
|
|
@@ -4,7 +4,7 @@ build-backend = "uv_build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "longwei"
|
|
7
|
-
version = "2.0.
|
|
7
|
+
version = "2.0.3"
|
|
8
8
|
authors = [
|
|
9
9
|
{ name = "marvin8", email = "marvin8@tuta.io" },
|
|
10
10
|
]
|
|
@@ -49,6 +49,7 @@ dev = [
|
|
|
49
49
|
|
|
50
50
|
[tool.uv]
|
|
51
51
|
constraint-dependencies = [
|
|
52
|
+
"click>=8.3.3", # PYSEC-2026-2132
|
|
52
53
|
"requests>=2.33.0", # GHSA-gc5v-m9x4-r6x2
|
|
53
54
|
"urllib3>=2.7.0", # PYSEC-2026-141, PYSEC-2026-142
|
|
54
55
|
"idna>=3.15", # GHSA-65pc-fj4g-8rjx
|
|
@@ -82,6 +83,9 @@ filename = "Release-Notes.md"
|
|
|
82
83
|
search = "longwei {current_version}"
|
|
83
84
|
replace = "longwei {new_version}"
|
|
84
85
|
|
|
86
|
+
[tool.deptry.per_rule_ignores]
|
|
87
|
+
DEP002 = ["requests", "urllib3", "idna", "pymdown-extensions", "uv", "pydantic-settings"]
|
|
88
|
+
|
|
85
89
|
[tool.pytest.ini_options]
|
|
86
90
|
asyncio_default_fixture_loop_scope = "session"
|
|
87
91
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"""Public enum types for longwei consumers."""
|
|
2
2
|
|
|
3
|
-
from enum import
|
|
3
|
+
from enum import StrEnum
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
class Visibility(
|
|
6
|
+
class Visibility(StrEnum):
|
|
7
7
|
"""Enumerating possible Visibility values for statuses."""
|
|
8
8
|
|
|
9
9
|
PUBLIC = "public"
|
|
@@ -12,7 +12,7 @@ class Visibility(str, Enum):
|
|
|
12
12
|
DIRECT = "direct"
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
class SearchType(
|
|
15
|
+
class SearchType(StrEnum):
|
|
16
16
|
"""Enumerating possible type values for status searches."""
|
|
17
17
|
|
|
18
18
|
ACCOUNTS = "accounts"
|
|
@@ -20,7 +20,7 @@ class SearchType(str, Enum):
|
|
|
20
20
|
STATUSES = "statuses"
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
class HttpMethod(
|
|
23
|
+
class HttpMethod(StrEnum):
|
|
24
24
|
"""HTTP methods used by the ActivityPub client."""
|
|
25
25
|
|
|
26
26
|
GET = "GET"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|