Ryzenth 2.0.7__tar.gz → 2.0.8__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 (40) hide show
  1. {ryzenth-2.0.7 → ryzenth-2.0.8}/PKG-INFO +18 -2
  2. {ryzenth-2.0.7 → ryzenth-2.0.8}/README.md +17 -1
  3. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/__version__.py +1 -1
  4. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/_client.py +7 -0
  5. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/_shared.py +43 -0
  6. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth.egg-info/PKG-INFO +18 -2
  7. {ryzenth-2.0.7 → ryzenth-2.0.8}/LICENSE +0 -0
  8. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/__init__.py +0 -0
  9. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/_asynchisded.py +0 -0
  10. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/_base_client.py +0 -0
  11. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/_benchmark.py +0 -0
  12. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/_errors.py +0 -0
  13. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/_synchisded.py +0 -0
  14. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/enums/__init__.py +0 -0
  15. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/enums/types.py +0 -0
  16. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/helper/__init__.py +0 -0
  17. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/helper/_decorators.py +0 -0
  18. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/helper/_federation.py +0 -0
  19. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/helper/_fonts.py +0 -0
  20. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/helper/_images.py +0 -0
  21. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/helper/_moderator.py +0 -0
  22. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/helper/_openai.py +0 -0
  23. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/helper/_ryzenth.py +0 -0
  24. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/helper/_thinking.py +0 -0
  25. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/pyoraddons/__init__.py +0 -0
  26. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/tests/__init__.py +0 -0
  27. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/tests/test_deepseek.py +0 -0
  28. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/tests/test_moderator.py +0 -0
  29. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/tests/test_ryzenthapiclient.py +0 -0
  30. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/tests/test_send.py +0 -0
  31. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/tests/test_send_downloader.py +0 -0
  32. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/tl/__init__.py +0 -0
  33. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/tl/logger_service.py +0 -0
  34. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth/types/__init__.py +0 -0
  35. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth.egg-info/SOURCES.txt +0 -0
  36. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth.egg-info/dependency_links.txt +0 -0
  37. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth.egg-info/requires.txt +0 -0
  38. {ryzenth-2.0.7 → ryzenth-2.0.8}/Ryzenth.egg-info/top_level.txt +0 -0
  39. {ryzenth-2.0.7 → ryzenth-2.0.8}/setup.cfg +0 -0
  40. {ryzenth-2.0.7 → ryzenth-2.0.8}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Ryzenth
3
- Version: 2.0.7
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
- * [`itzpire`](https://itzpire.com) - Team Developer
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
 
@@ -82,12 +82,28 @@ export RYZENTH_API_KEY=your-api-key
82
82
  ```
83
83
 
84
84
  ## Web scrapers
85
- * [`itzpire`](https://itzpire.com) - Team Developer
85
+ > Without authentication
86
+ >
87
+ > Free unlimited
88
+ - [`itzpire`](https://itzpire.com) - Team Developer
89
+ - [`x-api-js`](https://x-api-js.onrender.com/docs) - Ryzenth Developer
86
90
 
87
91
  ## Tool Developer
88
92
  ~ Artificial Intelligence
89
93
  - [`OpenAI`](https://platform.openai.com/docs) - OpenAI Docs
90
94
  - [`Gemini AI`](https://ai.google.dev) - Gemini AI Docs
95
+ - [`Cohere AI`](https://docs.cohere.com/) - Cohere AI Docs
96
+ - [`Qwen AI`](https://www.alibabacloud.com/help/en/model-studio/use-qwen-by-calling-api) - Alibaba AI Docs
97
+ - [`Claude AI`](https://docs.anthropic.com/) - Claude AI Docs
98
+ - [`Grok AI key`](https://docs.x.ai/docs) - Grok AI Docs
99
+
100
+ ## How to get api key?
101
+ - [`Ryzenth API key`](https://t.me/RyzenthKeyBot) - Telegram bot
102
+ - [`Openai API key`](https://platform.openai.com/api-keys) - Website official
103
+ - [`Cohere API key`](https://dashboard.cohere.com/api-keys) - Website official
104
+ - [`Alibaba API key`](https://bailian.console.alibabacloud.com/?tab=playground#/api-key) - Website official
105
+ - [`Claude API key`](https://console.anthropic.com/settings/keys) - Website official
106
+ - [`Grok API key`](https://console.x.ai/team/default/api-keys) - Website official
91
107
 
92
108
  ## Credits
93
109
 
@@ -4,7 +4,7 @@ import platform
4
4
  def get_user_agent() -> str:
5
5
  return f"Ryzenth/Python-{platform.python_version()}"
6
6
 
7
- __version__ = "2.0.7"
7
+ __version__ = "2.0.8"
8
8
  __author__ = "TeamKillerX"
9
9
  __title__ = "Ryzenth"
10
10
  __description__ = "Ryzenth Python API Wrapper"
@@ -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:
@@ -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.7
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
- * [`itzpire`](https://itzpire.com) - Team Developer
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
 
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