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.
Files changed (27) hide show
  1. {longwei-2.0.2 → longwei-2.0.3}/PKG-INFO +2 -1
  2. {longwei-2.0.2 → longwei-2.0.3}/README.md +1 -0
  3. {longwei-2.0.2 → longwei-2.0.3}/pyproject.toml +5 -1
  4. {longwei-2.0.2 → longwei-2.0.3}/src/longwei/enums.py +4 -4
  5. {longwei-2.0.2 → longwei-2.0.3}/src/longwei/__init__.py +0 -0
  6. {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_base.py +0 -0
  7. {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_accounts.py +0 -0
  8. {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_auth.py +0 -0
  9. {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_credentials.py +0 -0
  10. {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_discovery.py +0 -0
  11. {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_favourites_bookmarks.py +0 -0
  12. {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_filters.py +0 -0
  13. {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_gotosocial.py +0 -0
  14. {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_instance.py +0 -0
  15. {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_lists.py +0 -0
  16. {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_notifications.py +0 -0
  17. {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_pleroma.py +0 -0
  18. {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_polls.py +0 -0
  19. {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_reports.py +0 -0
  20. {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_request_helpers.py +0 -0
  21. {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_statuses.py +0 -0
  22. {longwei-2.0.2 → longwei-2.0.3}/src/longwei/_mixin_timelines.py +0 -0
  23. {longwei-2.0.2 → longwei-2.0.3}/src/longwei/constants.py +0 -0
  24. {longwei-2.0.2 → longwei-2.0.3}/src/longwei/exceptions.py +0 -0
  25. {longwei-2.0.2 → longwei-2.0.3}/src/longwei/models.py +0 -0
  26. {longwei-2.0.2 → longwei-2.0.3}/src/longwei/types.py +0 -0
  27. {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.2
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
  [![Downloads](https://pepy.tech/badge/longwei)](https://pepy.tech/project/longwei "Download count")
32
32
  [![uv_secure](https://img.shields.io/badge/uv--secure-checked-green)](https://docs.astral.sh/uv/guides/audit/ "Checked with uv-secure")
33
33
  [![gitleaks](https://img.shields.io/badge/gitleaks-checked-green)](https://github.com/gitleaks/gitleaks "Checked with gitleaks")
34
+ [![AI Declaration](https://img.shields.io/badge/AI%20Declaration-copilot-blue)](https://ai-declaration.md/ "AI Declaration: copilot")
34
35
  [![pysentry](https://img.shields.io/badge/pysentry-checked-green)](https://github.com/astral-sh/pysentry "Checked with pysentry")
35
36
  [![complexipy](https://img.shields.io/badge/complexipy-checked-green.svg)](https://github.com/rohaquinlop/complexipy "Checked with complexipy")
36
37
  [![Codestyle](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://github.com/astral-sh/ruff "Code style: ruff")
@@ -6,6 +6,7 @@
6
6
  [![Downloads](https://pepy.tech/badge/longwei)](https://pepy.tech/project/longwei "Download count")
7
7
  [![uv_secure](https://img.shields.io/badge/uv--secure-checked-green)](https://docs.astral.sh/uv/guides/audit/ "Checked with uv-secure")
8
8
  [![gitleaks](https://img.shields.io/badge/gitleaks-checked-green)](https://github.com/gitleaks/gitleaks "Checked with gitleaks")
9
+ [![AI Declaration](https://img.shields.io/badge/AI%20Declaration-copilot-blue)](https://ai-declaration.md/ "AI Declaration: copilot")
9
10
  [![pysentry](https://img.shields.io/badge/pysentry-checked-green)](https://github.com/astral-sh/pysentry "Checked with pysentry")
10
11
  [![complexipy](https://img.shields.io/badge/complexipy-checked-green.svg)](https://github.com/rohaquinlop/complexipy "Checked with complexipy")
11
12
  [![Codestyle](https://img.shields.io/badge/code%20style-ruff-000000.svg)](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.2"
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 Enum
3
+ from enum import StrEnum
4
4
 
5
5
 
6
- class Visibility(str, Enum):
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(str, Enum):
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(str, Enum):
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