yaylib 1.5.1__tar.gz → 1.5.3.dev1__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.
- {yaylib-1.5.1 → yaylib-1.5.3.dev1}/PKG-INFO +9 -8
- {yaylib-1.5.1 → yaylib-1.5.3.dev1}/pyproject.toml +9 -10
- {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/__init__.py +1 -1
- {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/api/misc.py +1 -1
- {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/api/post.py +2 -1
- {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/client.py +2 -2
- {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/config.py +3 -3
- {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/errors.py +2 -0
- {yaylib-1.5.1 → yaylib-1.5.3.dev1}/LICENSE +0 -0
- {yaylib-1.5.1 → yaylib-1.5.3.dev1}/README.md +0 -0
- {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/api/__init__.py +0 -0
- {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/api/auth.py +0 -0
- {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/api/call.py +0 -0
- {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/api/chat.py +0 -0
- {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/api/group.py +0 -0
- {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/api/notification.py +0 -0
- {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/api/review.py +0 -0
- {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/api/thread.py +0 -0
- {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/api/user.py +0 -0
- {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/constants.py +0 -0
- {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/device.py +0 -0
- {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/models.py +0 -0
- {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/responses.py +0 -0
- {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/state.py +0 -0
- {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/utils.py +0 -0
- {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/ws.py +0 -0
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: yaylib
|
|
3
|
-
Version: 1.5.
|
|
3
|
+
Version: 1.5.3.dev1
|
|
4
4
|
Summary: 同世代と趣味の通話コミュニティ - Yay! (イェイ) で投稿やタイムラインの取得、リツイートやいいねの実行、フォローや投稿の検索など様々な機能をPythonプログラムから利用可能なAPIクライアントツールです。
|
|
5
|
-
Home-page: https://github.com/ekkx/yaylib
|
|
6
5
|
License: MIT
|
|
7
6
|
Keywords: yay,yaylib,api,bot,tool,client,library,wrapper,ボット,ライブラリ,ツール
|
|
8
7
|
Author: ekkx
|
|
9
8
|
Author-email: nikola.desuga@gmail.com
|
|
10
|
-
Requires-Python: >=3.10,<3.
|
|
9
|
+
Requires-Python: >=3.10,<3.14
|
|
11
10
|
Classifier: License :: OSI Approved :: MIT License
|
|
12
11
|
Classifier: Programming Language :: Python :: 3
|
|
13
12
|
Classifier: Programming Language :: Python :: 3.10
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
Requires-Dist:
|
|
18
|
-
Requires-Dist:
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Requires-Dist: aiohttp (>=3.11.0,<4.0.0)
|
|
17
|
+
Requires-Dist: cryptography (>=44.0.0,<45.0.0)
|
|
18
|
+
Requires-Dist: pillow (>=11.2.0,<12.0.0)
|
|
19
|
+
Project-URL: Homepage, https://github.com/ekkx/yaylib
|
|
19
20
|
Project-URL: Repository, https://github.com/ekkx/yaylib
|
|
20
21
|
Description-Content-Type: text/markdown
|
|
21
22
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "yaylib"
|
|
3
|
-
version = "
|
|
3
|
+
version = "1.5.3.dev1"
|
|
4
4
|
description = "同世代と趣味の通話コミュニティ - Yay! (イェイ) で投稿やタイムラインの取得、リツイートやいいねの実行、フォローや投稿の検索など様々な機能をPythonプログラムから利用可能なAPIクライアントツールです。"
|
|
5
5
|
authors = ["ekkx <nikola.desuga@gmail.com>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -22,17 +22,16 @@ keywords = [
|
|
|
22
22
|
]
|
|
23
23
|
|
|
24
24
|
[tool.poetry.dependencies]
|
|
25
|
-
python = ">=3.10,<3.
|
|
26
|
-
aiohttp = "3.
|
|
27
|
-
pillow = "
|
|
28
|
-
cryptography = "
|
|
29
|
-
poetry-version-plugin = "^0.2.0"
|
|
25
|
+
python = ">=3.10,<3.14"
|
|
26
|
+
aiohttp = "^3.11.0"
|
|
27
|
+
pillow = "^11.2.0"
|
|
28
|
+
cryptography = "^44.0.0"
|
|
30
29
|
|
|
31
30
|
[tool.poetry.group.dev.dependencies]
|
|
32
|
-
sphinx = "
|
|
33
|
-
shibuya = "
|
|
34
|
-
sphinx_copybutton = "
|
|
35
|
-
sphinx-design = "
|
|
31
|
+
sphinx = "8.0.2"
|
|
32
|
+
shibuya = "2024.8.21"
|
|
33
|
+
sphinx_copybutton = "0.5.2"
|
|
34
|
+
sphinx-design = "0.6.1"
|
|
36
35
|
|
|
37
36
|
[tool.poetry-version-plugin]
|
|
38
37
|
source = "init"
|
|
@@ -330,7 +330,7 @@ class MiscApi:
|
|
|
330
330
|
|
|
331
331
|
image_data = BytesIO()
|
|
332
332
|
if x.file.format == "GIF" and x.file.is_animated:
|
|
333
|
-
x.file.save(image_data, format=x.file.format, save_all=True)
|
|
333
|
+
x.file.save(image_data, format=x.file.format, save_all=True, disposal=2)
|
|
334
334
|
else:
|
|
335
335
|
x.file.save(image_data, format=x.file.format)
|
|
336
336
|
image_data.seek(0)
|
|
@@ -377,7 +377,8 @@ class PostApi:
|
|
|
377
377
|
attachment_filename=params.get("attachment_filename"),
|
|
378
378
|
)
|
|
379
379
|
|
|
380
|
-
|
|
380
|
+
shared_url = params.get("shared_url")
|
|
381
|
+
if shared_url is not None:
|
|
381
382
|
try:
|
|
382
383
|
shared_url = (
|
|
383
384
|
await self.get_url_metadata(url=params.get("shared_url"))
|
|
@@ -2019,7 +2019,7 @@ class Client(WebSocketInteractor):
|
|
|
2019
2019
|
)
|
|
2020
2020
|
|
|
2021
2021
|
def create_thread_post(
|
|
2022
|
-
self,
|
|
2022
|
+
self, thread_id: int, text: Optional[str] = None, **params
|
|
2023
2023
|
) -> Post:
|
|
2024
2024
|
"""スレッドの投稿を作成する
|
|
2025
2025
|
|
|
@@ -2048,7 +2048,7 @@ class Client(WebSocketInteractor):
|
|
|
2048
2048
|
Returns:
|
|
2049
2049
|
Post:
|
|
2050
2050
|
"""
|
|
2051
|
-
return asyncio.run(self.post.create_thread_post(
|
|
2051
|
+
return asyncio.run(self.post.create_thread_post(thread_id, text, **params))
|
|
2052
2052
|
|
|
2053
2053
|
def delete_all_posts(self) -> Response:
|
|
2054
2054
|
"""すべての自分の投稿を削除する
|
|
@@ -22,9 +22,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
22
22
|
SOFTWARE.
|
|
23
23
|
"""
|
|
24
24
|
|
|
25
|
-
API_VERSION_NAME = "
|
|
26
|
-
VERSION_NAME = "
|
|
27
|
-
API_VERSION_KEY = "
|
|
25
|
+
API_VERSION_NAME = "4.10"
|
|
26
|
+
VERSION_NAME = "4.10.0"
|
|
27
|
+
API_VERSION_KEY = "3572af0d90494c4789f178a7a880e643"
|
|
28
28
|
API_KEY = "ccd59ee269c01511ba763467045c115779fcae3050238a252f1bd1a4b65cfec6"
|
|
29
29
|
SHARED_KEY = "yayZ1"
|
|
30
30
|
STORE_KEY = "yayZ1payment"
|
|
@@ -863,6 +863,8 @@ async def raise_for_status(response: aiohttp.ClientResponse):
|
|
|
863
863
|
raise HTTPForbiddenError(response)
|
|
864
864
|
case 404:
|
|
865
865
|
raise HTTPNotFoundError(response)
|
|
866
|
+
case 429:
|
|
867
|
+
raise HTTPRateLimitError(response)
|
|
866
868
|
case status if status >= 500:
|
|
867
869
|
raise HTTPInternalServerError(response)
|
|
868
870
|
case status if status and not 200 <= status < 300:
|
|
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
|