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.
Files changed (26) hide show
  1. {yaylib-1.5.1 → yaylib-1.5.3.dev1}/PKG-INFO +9 -8
  2. {yaylib-1.5.1 → yaylib-1.5.3.dev1}/pyproject.toml +9 -10
  3. {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/__init__.py +1 -1
  4. {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/api/misc.py +1 -1
  5. {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/api/post.py +2 -1
  6. {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/client.py +2 -2
  7. {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/config.py +3 -3
  8. {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/errors.py +2 -0
  9. {yaylib-1.5.1 → yaylib-1.5.3.dev1}/LICENSE +0 -0
  10. {yaylib-1.5.1 → yaylib-1.5.3.dev1}/README.md +0 -0
  11. {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/api/__init__.py +0 -0
  12. {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/api/auth.py +0 -0
  13. {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/api/call.py +0 -0
  14. {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/api/chat.py +0 -0
  15. {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/api/group.py +0 -0
  16. {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/api/notification.py +0 -0
  17. {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/api/review.py +0 -0
  18. {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/api/thread.py +0 -0
  19. {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/api/user.py +0 -0
  20. {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/constants.py +0 -0
  21. {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/device.py +0 -0
  22. {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/models.py +0 -0
  23. {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/responses.py +0 -0
  24. {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/state.py +0 -0
  25. {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/utils.py +0 -0
  26. {yaylib-1.5.1 → yaylib-1.5.3.dev1}/yaylib/ws.py +0 -0
@@ -1,21 +1,22 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: yaylib
3
- Version: 1.5.1
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.12
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
- Requires-Dist: aiohttp (==3.9.5)
16
- Requires-Dist: cryptography (==41.0.1)
17
- Requires-Dist: pillow (==9.3.0)
18
- Requires-Dist: poetry-version-plugin (>=0.2.0,<0.3.0)
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 = "0.0.0"
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.12"
26
- aiohttp = "3.9.5"
27
- pillow = "9.3.0"
28
- cryptography = "41.0.1"
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"
@@ -23,7 +23,7 @@ __copyright__ = "Copyright (c) 2023 ekkx"
23
23
  # 1.0.0rc1 Release Candidate
24
24
  # 1.0.0 Final Release
25
25
  # 1.0.0.post1 Post Release
26
- __version__ = "1.5.1"
26
+ __version__ = "1.5.3.dev1"
27
27
 
28
28
  from .client import Client
29
29
  from .constants import *
@@ -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
- if params.get("shared_url") is not None:
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, post_id: int, text: Optional[str] = None, **params
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(post_id, text, **params))
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 = "3.54"
26
- VERSION_NAME = "3.54.0"
27
- API_VERSION_KEY = "bb0d38c4987d44279bfb168a21438d06"
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