nightforo 1.0.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.
Files changed (76) hide show
  1. nightforo-1.0.0/LICENSE +21 -0
  2. nightforo-1.0.0/PKG-INFO +32 -0
  3. nightforo-1.0.0/README.md +18 -0
  4. nightforo-1.0.0/nightforo/__init__.py +24 -0
  5. nightforo-1.0.0/nightforo/api_scopes.py +26 -0
  6. nightforo-1.0.0/nightforo/client.py +2416 -0
  7. nightforo-1.0.0/nightforo/endpoint.py +51 -0
  8. nightforo-1.0.0/nightforo/endpoints.py +502 -0
  9. nightforo-1.0.0/nightforo/errors.py +20 -0
  10. nightforo-1.0.0/nightforo/groups.py +26 -0
  11. nightforo-1.0.0/nightforo/http.py +951 -0
  12. nightforo-1.0.0/nightforo/types/alert/__init__.py +3 -0
  13. nightforo-1.0.0/nightforo/types/alert/alert.py +22 -0
  14. nightforo-1.0.0/nightforo/types/alert/params.py +36 -0
  15. nightforo-1.0.0/nightforo/types/alert/response.py +35 -0
  16. nightforo-1.0.0/nightforo/types/attachment/__init__.py +3 -0
  17. nightforo-1.0.0/nightforo/types/attachment/attachment.py +19 -0
  18. nightforo-1.0.0/nightforo/types/attachment/params.py +28 -0
  19. nightforo-1.0.0/nightforo/types/attachment/response.py +46 -0
  20. nightforo-1.0.0/nightforo/types/auth/__init__.py +2 -0
  21. nightforo-1.0.0/nightforo/types/auth/params.py +24 -0
  22. nightforo-1.0.0/nightforo/types/auth/response.py +24 -0
  23. nightforo-1.0.0/nightforo/types/conversation/__init__.py +3 -0
  24. nightforo-1.0.0/nightforo/types/conversation/conversation.py +34 -0
  25. nightforo-1.0.0/nightforo/types/conversation/params.py +63 -0
  26. nightforo-1.0.0/nightforo/types/conversation/response.py +66 -0
  27. nightforo-1.0.0/nightforo/types/conversation_message/__init__.py +3 -0
  28. nightforo-1.0.0/nightforo/types/conversation_message/conversation_message.py +46 -0
  29. nightforo-1.0.0/nightforo/types/conversation_message/params.py +24 -0
  30. nightforo-1.0.0/nightforo/types/conversation_message/response.py +29 -0
  31. nightforo-1.0.0/nightforo/types/forum/__init__.py +3 -0
  32. nightforo-1.0.0/nightforo/types/forum/forum.py +10 -0
  33. nightforo-1.0.0/nightforo/types/forum/params.py +32 -0
  34. nightforo-1.0.0/nightforo/types/forum/response.py +30 -0
  35. nightforo-1.0.0/nightforo/types/me/__init__.py +2 -0
  36. nightforo-1.0.0/nightforo/types/me/params.py +39 -0
  37. nightforo-1.0.0/nightforo/types/me/response.py +37 -0
  38. nightforo-1.0.0/nightforo/types/node/__init__.py +3 -0
  39. nightforo-1.0.0/nightforo/types/node/node.py +35 -0
  40. nightforo-1.0.0/nightforo/types/node/params.py +22 -0
  41. nightforo-1.0.0/nightforo/types/node/response.py +39 -0
  42. nightforo-1.0.0/nightforo/types/page/__init__.py +2 -0
  43. nightforo-1.0.0/nightforo/types/page/page.py +8 -0
  44. nightforo-1.0.0/nightforo/types/page/response.py +22 -0
  45. nightforo-1.0.0/nightforo/types/pagination.py +11 -0
  46. nightforo-1.0.0/nightforo/types/post/__init__.py +3 -0
  47. nightforo-1.0.0/nightforo/types/post/params.py +43 -0
  48. nightforo-1.0.0/nightforo/types/post/post.py +49 -0
  49. nightforo-1.0.0/nightforo/types/post/response.py +49 -0
  50. nightforo-1.0.0/nightforo/types/profile_post/__init__.py +3 -0
  51. nightforo-1.0.0/nightforo/types/profile_post/params.py +41 -0
  52. nightforo-1.0.0/nightforo/types/profile_post/profile_post.py +49 -0
  53. nightforo-1.0.0/nightforo/types/profile_post/response.py +46 -0
  54. nightforo-1.0.0/nightforo/types/profile_post_comment/__init__.py +3 -0
  55. nightforo-1.0.0/nightforo/types/profile_post_comment/params.py +40 -0
  56. nightforo-1.0.0/nightforo/types/profile_post_comment/profile_post_comment.py +41 -0
  57. nightforo-1.0.0/nightforo/types/profile_post_comment/response.py +34 -0
  58. nightforo-1.0.0/nightforo/types/stats/__init__.py +2 -0
  59. nightforo-1.0.0/nightforo/types/stats/response.py +11 -0
  60. nightforo-1.0.0/nightforo/types/stats/stats.py +21 -0
  61. nightforo-1.0.0/nightforo/types/thread/__init__.py +3 -0
  62. nightforo-1.0.0/nightforo/types/thread/params.py +93 -0
  63. nightforo-1.0.0/nightforo/types/thread/response.py +76 -0
  64. nightforo-1.0.0/nightforo/types/thread/thread.py +59 -0
  65. nightforo-1.0.0/nightforo/types/user/__init__.py +3 -0
  66. nightforo-1.0.0/nightforo/types/user/params.py +105 -0
  67. nightforo-1.0.0/nightforo/types/user/response.py +100 -0
  68. nightforo-1.0.0/nightforo/types/user/user.py +126 -0
  69. nightforo-1.0.0/nightforo/types/vote_type.py +8 -0
  70. nightforo-1.0.0/nightforo.egg-info/PKG-INFO +32 -0
  71. nightforo-1.0.0/nightforo.egg-info/SOURCES.txt +74 -0
  72. nightforo-1.0.0/nightforo.egg-info/dependency_links.txt +1 -0
  73. nightforo-1.0.0/nightforo.egg-info/requires.txt +2 -0
  74. nightforo-1.0.0/nightforo.egg-info/top_level.txt +1 -0
  75. nightforo-1.0.0/pyproject.toml +102 -0
  76. nightforo-1.0.0/setup.cfg +4 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 nightcore-team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,32 @@
1
+ Metadata-Version: 2.4
2
+ Name: nightforo
3
+ Version: 1.0.0
4
+ Summary: API wrapper for Arizona Guard written in Python
5
+ Author: nightcore-team
6
+ License-Expression: MIT
7
+ Project-URL: Repository, https://github.com/nightcore-team/NightForo
8
+ Requires-Python: >=3.8
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Requires-Dist: aiohttp>=3.10.11
12
+ Requires-Dist: pydantic>=2.10.6
13
+ Dynamic: license-file
14
+
15
+ # NightForo
16
+ API wrapper for Arizona Guard written in Python
17
+
18
+ ## Установка
19
+
20
+ ### Установка через pip
21
+ ```bash
22
+ pip install nightforo
23
+ ```
24
+
25
+ ### Установка через uv
26
+ ```bash
27
+ uv add nightforo
28
+ ```
29
+
30
+ ## Примеры использования
31
+
32
+ Примеры кода находятся в директории [examples](https://github.com/nightcore-team/NightForo/tree/main/examples)
@@ -0,0 +1,18 @@
1
+ # NightForo
2
+ API wrapper for Arizona Guard written in Python
3
+
4
+ ## Установка
5
+
6
+ ### Установка через pip
7
+ ```bash
8
+ pip install nightforo
9
+ ```
10
+
11
+ ### Установка через uv
12
+ ```bash
13
+ uv add nightforo
14
+ ```
15
+
16
+ ## Примеры использования
17
+
18
+ Примеры кода находятся в директории [examples](https://github.com/nightcore-team/NightForo/tree/main/examples)
@@ -0,0 +1,24 @@
1
+ from .client import * # noqa: F403
2
+ from .errors import * # noqa: F403
3
+ from .groups import * # noqa: F403
4
+ from .types.alert import * # noqa: F403
5
+ from .types.attachment import * # noqa: F403
6
+ from .types.auth import * # noqa: F403
7
+ from .types.conversation import * # noqa: F403
8
+ from .types.conversation_message import * # noqa: F403
9
+ from .types.forum import * # noqa: F403
10
+ from .types.me import * # noqa: F403
11
+ from .types.node import * # noqa: F403
12
+ from .types.page import * # noqa: F403
13
+ from .types.pagination import * # noqa: F403
14
+ from .types.post import * # noqa: F403
15
+ from .types.profile_post import * # noqa: F403
16
+ from .types.profile_post_comment import * # noqa: F403
17
+ from .types.stats import * # noqa: F403
18
+ from .types.thread import * # noqa: F403
19
+ from .types.user import * # noqa: F403
20
+ from .types.vote_type import * # noqa: F403
21
+
22
+ Post.model_rebuild() # noqa: F405
23
+ Thread.model_rebuild() # noqa: F405
24
+ UserGetResponse.model_rebuild() # noqa: F405
@@ -0,0 +1,26 @@
1
+ from enum import Enum
2
+
3
+
4
+ class APIScopeIdsEnum(Enum):
5
+ ALERT_READ = "alert:read"
6
+ ALERT_WRITE = "alert:write"
7
+ ATTACHMENT_DELETE = "attachment:delete"
8
+ ATTACHMENT_READ = "attachment:read"
9
+ ATTACHMENT_WRITE = "attachment:write"
10
+ AUTH = "auth"
11
+ AUTH_LOGIN_TOKEN = "auth:login_token"
12
+ CONVERSATION_READ = "conversation:read"
13
+ CONVERSATION_WRITE = "conversation:write"
14
+ NODE_DELETE = "node:delete"
15
+ NODE_WRITE = "node:write"
16
+ NODE_READ = "node:read"
17
+ PROFILE_POST_DELETE_HARD = "profile_post:delete_hard"
18
+ PROFILE_POST_READ = "profile_post:read"
19
+ PROFILE_POST_WRITE = "profile_post:write"
20
+ THREAD_DELETE_HARD = "thread:delete_hard"
21
+ THREAD_READ = "thread:read"
22
+ THREAD_WRITE = "thread:write"
23
+ USER_DELETE = "user:delete"
24
+ USER_WRITE = "user:write"
25
+ USER_READ = "user:read"
26
+ USER_PROMOTE = "user:promote"