Ryzenth 1.8.3__py3-none-any.whl → 1.8.4__py3-none-any.whl

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.
Ryzenth/__version__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "1.8.3"
1
+ __version__ = "1.8.4"
2
2
  __author__ = "TeamKillerX"
3
3
  __title__ = "Ryzenth"
4
4
  __description__ = "Ryzenth Python API Wrapper"
Ryzenth/_asynchisded.py CHANGED
@@ -30,6 +30,22 @@ class RyzenthXAsync:
30
30
  self.api_key = api_key
31
31
  self.base_url = base_url.rstrip("/")
32
32
  self.headers = {"x-api-key": self.api_key}
33
+ self.images = self.ImagesAsync(self)
34
+
35
+ class ImagesAsync:
36
+ def __init__(self, parent):
37
+ self.parent = parent
38
+
39
+ async def generate(self, params: QueryParameter):
40
+ url = f"{self.parent.base_url}/v1/flux/black-forest-labs/flux-1-schnell"
41
+ async with httpx.AsyncClient() as client:
42
+ try:
43
+ response = await client.get(url, params=params.dict(), headers=self.parent.headers, timeout=30)
44
+ response.raise_for_status()
45
+ return response.content
46
+ except httpx.HTTPError as e:
47
+ LOGS.error(f"[ASYNC] Error: {str(e)}")
48
+ return None
33
49
 
34
50
  async def send_downloader(self, switch_name: str = None, params: QueryParameter = None, list_key=False):
35
51
  dl_dict = {
Ryzenth/_synchisded.py CHANGED
@@ -30,6 +30,26 @@ class RyzenthXSync:
30
30
  self.api_key = api_key
31
31
  self.base_url = base_url.rstrip("/")
32
32
  self.headers = {"x-api-key": self.api_key}
33
+ self.images = self.ImagesSync(self)
34
+
35
+ class ImagesSync:
36
+ def __init__(self, parent):
37
+ self.parent = parent
38
+
39
+ def generate(self, params: QueryParameter):
40
+ url = f"{self.parent.base_url}/v1/flux/black-forest-labs/flux-1-schnell"
41
+ try:
42
+ response = httpx.get(
43
+ url,
44
+ params=params.dict(),
45
+ headers=self.parent.headers,
46
+ timeout=30
47
+ )
48
+ response.raise_for_status()
49
+ return response.content
50
+ except httpx.HTTPError as e:
51
+ LOGS.error(f"[SYNC] Error fetching from images {e}")
52
+ return None
33
53
 
34
54
  def send_downloader(self, switch_name: str = None, params: QueryParameter = None, list_key=False):
35
55
  dl_dict = {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Ryzenth
3
- Version: 1.8.3
3
+ Version: 1.8.4
4
4
  Summary: Ryzenth Python Wrapper For Perfomance
5
5
  Author: TeamKillerX
6
6
  License: MIT
@@ -53,6 +53,13 @@ Dynamic: requires-python
53
53
  Dynamic: summary
54
54
 
55
55
  # Ryzenth Library
56
+ [![Open Source Love](https://badges.frapsoft.com/os/v2/open-source.png?v=103)](https://github.com/TeamKillerX/Ryzenth)
57
+ [![Maintenance](https://img.shields.io/badge/Maintained%3F-Yes-green)](https://github.com/TeamKillerX/Ryzenth/graphs/commit-activity)
58
+ [![GitHub Forks](https://img.shields.io/github/forks/TeamKillerX/Ryzenth?&logo=github)](https://github.com/TeamKillerX/Ryzenth)
59
+ [![License](https://img.shields.io/badge/License-GPL-pink)](https://github.com/TeamKillerX/Ryzenth/blob/main/LICENSE)
60
+ [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://makeapullrequest.com)
61
+ [![Ryzenth - Version](https://img.shields.io/pypi/v/Ryzenth?style=round)](https://pypi.org/project/Ryzenth)
62
+ [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/TeamKillerX/Ryzenth/main.svg)](https://results.pre-commit.ci/latest/github/TeamKillerX/Ryzenth/main)
56
63
 
57
64
  **Ryzenth** is a powerful and flexible Python SDK for interacting with the new **Ryzenth API** a successor to the AkenoX API supporting both synchronous and asynchronous workflows out of the box.
58
65
 
@@ -0,0 +1,11 @@
1
+ Ryzenth/__init__.py,sha256=-_DvsIrYN1rtnUJzhhgRjdCspuD26jh_AbQBtDkmoyo,944
2
+ Ryzenth/__version__.py,sha256=U4Oh60YYMdoTeWEiC3y486tZx2iKcH8DDL_2cohgg80,118
3
+ Ryzenth/_asynchisded.py,sha256=jZ-TtuIra_yI4PqW1rOrxFphdc3jK9CyhzvJh7U1DBg,4690
4
+ Ryzenth/_synchisded.py,sha256=Dd2NBZq5AS-kVu8UBLDS04vDW7M_0aGBc7ZIY0hcLkw,4513
5
+ Ryzenth/ryzenth_client.py,sha256=fN_0BcK0ao6-CTpe5bRCT9jQD7Krr_Q8-Xlf-aFqdZY,1225
6
+ Ryzenth/types/__init__.py,sha256=Uq5xqwfI5f-QwEnDRycQFJ5_yJbwzZwsM4cqgo_Wpbw,985
7
+ ryzenth-1.8.4.dist-info/licenses/LICENSE,sha256=C73aiGSgoCAVNzvAHs-TROaf5vV8yCj9nqpGrmfNHHo,1068
8
+ ryzenth-1.8.4.dist-info/METADATA,sha256=unUwDgxs4MIzZqfa9zDrqHMHQs2JasNpJIYYdhu7JGc,4143
9
+ ryzenth-1.8.4.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
10
+ ryzenth-1.8.4.dist-info/top_level.txt,sha256=0vIhjOjoQuCxLeZO0of8VCx2jsri-bLHV28nh8wWDnc,8
11
+ ryzenth-1.8.4.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- Ryzenth/__init__.py,sha256=-_DvsIrYN1rtnUJzhhgRjdCspuD26jh_AbQBtDkmoyo,944
2
- Ryzenth/__version__.py,sha256=If0AyuBSroe8Pv0wRejh5VqDLnuaW4c2SDdS63OqUEM,118
3
- Ryzenth/_asynchisded.py,sha256=JxNw0lAmzhnWh2WjeKPHETu6N8MorJv3rdEfWai8zxg,3989
4
- Ryzenth/_synchisded.py,sha256=kLKL9b5dyMt_j5ew4Of5Y5hkFSDvmA43XjnmjT2Iab0,3797
5
- Ryzenth/ryzenth_client.py,sha256=fN_0BcK0ao6-CTpe5bRCT9jQD7Krr_Q8-Xlf-aFqdZY,1225
6
- Ryzenth/types/__init__.py,sha256=Uq5xqwfI5f-QwEnDRycQFJ5_yJbwzZwsM4cqgo_Wpbw,985
7
- ryzenth-1.8.3.dist-info/licenses/LICENSE,sha256=C73aiGSgoCAVNzvAHs-TROaf5vV8yCj9nqpGrmfNHHo,1068
8
- ryzenth-1.8.3.dist-info/METADATA,sha256=eYxGY-jCsrG4xQQ0g3QBFE-RoyOK1ppfcXz0DMofWME,3262
9
- ryzenth-1.8.3.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
10
- ryzenth-1.8.3.dist-info/top_level.txt,sha256=0vIhjOjoQuCxLeZO0of8VCx2jsri-bLHV28nh8wWDnc,8
11
- ryzenth-1.8.3.dist-info/RECORD,,