Ryzenth 2.0.7__py3-none-any.whl → 2.0.8__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 +1 -1
- Ryzenth/_client.py +7 -0
- Ryzenth/_shared.py +43 -0
- {ryzenth-2.0.7.dist-info → ryzenth-2.0.8.dist-info}/METADATA +18 -2
- {ryzenth-2.0.7.dist-info → ryzenth-2.0.8.dist-info}/RECORD +8 -8
- {ryzenth-2.0.7.dist-info → ryzenth-2.0.8.dist-info}/WHEEL +0 -0
- {ryzenth-2.0.7.dist-info → ryzenth-2.0.8.dist-info}/licenses/LICENSE +0 -0
- {ryzenth-2.0.7.dist-info → ryzenth-2.0.8.dist-info}/top_level.txt +0 -0
Ryzenth/__version__.py
CHANGED
Ryzenth/_client.py
CHANGED
@@ -28,6 +28,7 @@ from os import getenv
|
|
28
28
|
import aiohttp
|
29
29
|
import httpx
|
30
30
|
import requests
|
31
|
+
from box import Box
|
31
32
|
|
32
33
|
from .__version__ import get_user_agent
|
33
34
|
from ._benchmark import Benchmark
|
@@ -91,6 +92,12 @@ class RyzenthApiClient:
|
|
91
92
|
logging.getLogger("httpx").setLevel(logging.CRITICAL)
|
92
93
|
logging.getLogger("httpcore").setLevel(logging.CRITICAL)
|
93
94
|
|
95
|
+
def dict_convert_to_dot(self, obj):
|
96
|
+
return Box(obj if obj is not None else {})
|
97
|
+
|
98
|
+
def get_kwargs(self, **params):
|
99
|
+
return {k: v for k, v in params.items() if v is not None}
|
100
|
+
|
94
101
|
def get_base_url(self, tool: str) -> str:
|
95
102
|
check_ok = self._tools.get(tool, None)
|
96
103
|
if check_ok is None:
|
Ryzenth/_shared.py
CHANGED
@@ -7,12 +7,55 @@ TOOL_DOMAIN_MAP = {
|
|
7
7
|
"onrender": "https://x-api-js.onrender.com",
|
8
8
|
"deepseek": "https://api.deepseek.com",
|
9
9
|
"openai": "https://api.openai.com/v1",
|
10
|
+
"cohere": "https://api.cohere.com/v1",
|
11
|
+
"claude": "https://api.anthropic.com/v1",
|
12
|
+
"grok": "https://api.x.ai/v1",
|
10
13
|
"alibaba": "https://dashscope-intl.aliyuncs.com/compatible-mode/v1",
|
11
14
|
"gemini": "https://generativelanguage.googleapis.com/v1beta",
|
12
15
|
"gemini-openai": "https://generativelanguage.googleapis.com/v1beta/openai"
|
13
16
|
}
|
14
17
|
|
15
18
|
###-------------AI-----------------###
|
19
|
+
|
20
|
+
# GROK AI
|
21
|
+
"""
|
22
|
+
headers = {
|
23
|
+
'accept: application/json',
|
24
|
+
'Authorization': 'Bearer {api_key}',
|
25
|
+
'Content-Type': 'application/json'
|
26
|
+
}
|
27
|
+
grok_response = await clients.post(
|
28
|
+
tool="grok",
|
29
|
+
path="/chat/completions",
|
30
|
+
json={
|
31
|
+
"model": "grok-3",
|
32
|
+
"messages": [
|
33
|
+
{"role": "user", "content": "hello world!"}
|
34
|
+
],
|
35
|
+
"temperature": 0.7
|
36
|
+
}
|
37
|
+
)
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
# COHERE
|
42
|
+
"""
|
43
|
+
headers = {
|
44
|
+
'accept: application/json',
|
45
|
+
'Authorization': 'Bearer {api_key}',
|
46
|
+
'Content-Type': 'application/json'
|
47
|
+
}
|
48
|
+
cohere_response = await clients.post(
|
49
|
+
tool="cohere",
|
50
|
+
path="/chat",
|
51
|
+
json={
|
52
|
+
"chat_history": [],
|
53
|
+
"message": "What year was he born?",
|
54
|
+
"connectors": [{"id": "web-search"}]
|
55
|
+
}
|
56
|
+
)
|
57
|
+
"""
|
58
|
+
|
16
59
|
# ALIBABA
|
17
60
|
"""
|
18
61
|
headers = {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: Ryzenth
|
3
|
-
Version: 2.0.
|
3
|
+
Version: 2.0.8
|
4
4
|
Summary: Ryzenth Python Wrapper For Perfomance
|
5
5
|
Author: TeamKillerX
|
6
6
|
License: MIT
|
@@ -134,12 +134,28 @@ export RYZENTH_API_KEY=your-api-key
|
|
134
134
|
```
|
135
135
|
|
136
136
|
## Web scrapers
|
137
|
-
|
137
|
+
> Without authentication
|
138
|
+
>
|
139
|
+
> Free unlimited
|
140
|
+
- [`itzpire`](https://itzpire.com) - Team Developer
|
141
|
+
- [`x-api-js`](https://x-api-js.onrender.com/docs) - Ryzenth Developer
|
138
142
|
|
139
143
|
## Tool Developer
|
140
144
|
~ Artificial Intelligence
|
141
145
|
- [`OpenAI`](https://platform.openai.com/docs) - OpenAI Docs
|
142
146
|
- [`Gemini AI`](https://ai.google.dev) - Gemini AI Docs
|
147
|
+
- [`Cohere AI`](https://docs.cohere.com/) - Cohere AI Docs
|
148
|
+
- [`Qwen AI`](https://www.alibabacloud.com/help/en/model-studio/use-qwen-by-calling-api) - Alibaba AI Docs
|
149
|
+
- [`Claude AI`](https://docs.anthropic.com/) - Claude AI Docs
|
150
|
+
- [`Grok AI key`](https://docs.x.ai/docs) - Grok AI Docs
|
151
|
+
|
152
|
+
## How to get api key?
|
153
|
+
- [`Ryzenth API key`](https://t.me/RyzenthKeyBot) - Telegram bot
|
154
|
+
- [`Openai API key`](https://platform.openai.com/api-keys) - Website official
|
155
|
+
- [`Cohere API key`](https://dashboard.cohere.com/api-keys) - Website official
|
156
|
+
- [`Alibaba API key`](https://bailian.console.alibabacloud.com/?tab=playground#/api-key) - Website official
|
157
|
+
- [`Claude API key`](https://console.anthropic.com/settings/keys) - Website official
|
158
|
+
- [`Grok API key`](https://console.x.ai/team/default/api-keys) - Website official
|
143
159
|
|
144
160
|
## Credits
|
145
161
|
|
@@ -1,11 +1,11 @@
|
|
1
1
|
Ryzenth/__init__.py,sha256=tUSSKb2xEQGDZFg1g-9PsSuWAPvuUBG9cAXyIHyBmMg,1066
|
2
|
-
Ryzenth/__version__.py,sha256=
|
2
|
+
Ryzenth/__version__.py,sha256=m9xP6yOfI-M2jibbin3T0a8E0EriRHVjV6ciG13nvnY,223
|
3
3
|
Ryzenth/_asynchisded.py,sha256=5ZjrXZzMSZw3T6kQ3eg-owgH1Y2dmGWJy9AOQqcoFUQ,5051
|
4
4
|
Ryzenth/_base_client.py,sha256=9oVkoYduSILsk38T2_jvT0frsl2B7ISD2YsR4BJ3Rfk,2032
|
5
5
|
Ryzenth/_benchmark.py,sha256=ldXzfxOXzZhMC_yaNLxaBbPrC5BuWzDzlypftK4Eq_U,1143
|
6
|
-
Ryzenth/_client.py,sha256=
|
6
|
+
Ryzenth/_client.py,sha256=iJpNS5zdztzom8GpNUSrbaFnAdpm8lbqzx1ySuxzJ9E,11505
|
7
7
|
Ryzenth/_errors.py,sha256=bOqi0_DElcmRrBqyDim6K248Ys-JQRSOvd32sJGW3aw,1812
|
8
|
-
Ryzenth/_shared.py,sha256=
|
8
|
+
Ryzenth/_shared.py,sha256=_mR8q62I9aQGDSJBwaEvOztbUHPuYLXrxKL1YASiybI,3933
|
9
9
|
Ryzenth/_synchisded.py,sha256=Ns0F4iA4kWUg2j5u0Tyqj2E1mXIMs29IoQZCYW5G1Gw,4922
|
10
10
|
Ryzenth/enums/__init__.py,sha256=5V6-BcLESFrWFhSDQ7IwmSccAITjb82HgpYi7NQeIeU,60
|
11
11
|
Ryzenth/enums/types.py,sha256=FE7d5qdAGRCRqs5HAyiJZPPMcn5MAm7WHuGz5GTQuTo,129
|
@@ -28,8 +28,8 @@ Ryzenth/tests/test_send_downloader.py,sha256=LvS7QSO4XyjG1UXH8pHvXCCMpvAs9_QVMfh
|
|
28
28
|
Ryzenth/tl/__init__.py,sha256=SDoC1aFqHf682PasjkCIWzBdqvOJQ-Wn7ybDOxhHmMo,71
|
29
29
|
Ryzenth/tl/logger_service.py,sha256=23Mdi9obe-aF9SWBwgbRlk3hgQJdK9JYfg1iOsaUAW0,2651
|
30
30
|
Ryzenth/types/__init__.py,sha256=2q3Oy7wCtgHa1cVY1JVN6cJht7uEAva3yFijSiJxYdI,1392
|
31
|
-
ryzenth-2.0.
|
32
|
-
ryzenth-2.0.
|
33
|
-
ryzenth-2.0.
|
34
|
-
ryzenth-2.0.
|
35
|
-
ryzenth-2.0.
|
31
|
+
ryzenth-2.0.8.dist-info/licenses/LICENSE,sha256=C73aiGSgoCAVNzvAHs-TROaf5vV8yCj9nqpGrmfNHHo,1068
|
32
|
+
ryzenth-2.0.8.dist-info/METADATA,sha256=eqnaTb1atsdgMoixCgQDuv_tTn7o7M77sqCJYHgB6yQ,6171
|
33
|
+
ryzenth-2.0.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
34
|
+
ryzenth-2.0.8.dist-info/top_level.txt,sha256=0vIhjOjoQuCxLeZO0of8VCx2jsri-bLHV28nh8wWDnc,8
|
35
|
+
ryzenth-2.0.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|