reyclient 1.0.14__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.
@@ -0,0 +1,10 @@
1
+ # Python-generated files
2
+ __pycache__/
3
+ *.py[oc]
4
+ build/
5
+ dist/
6
+ wheels/
7
+ *.egg-info
8
+
9
+ # Virtual environments
10
+ .venv
@@ -0,0 +1 @@
1
+ 3.13
@@ -0,0 +1,7 @@
1
+ Copyright 2025 ReyXBo
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,32 @@
1
+ Metadata-Version: 2.4
2
+ Name: reyclient
3
+ Version: 1.0.14
4
+ Summary: API request client method set.
5
+ Project-URL: Homepage, https://www.reyxbo.com
6
+ Project-URL: Repository, https://github.com/reyxbo/reyclient-py.git
7
+ Author-email: Rey <reyxbo@163.com>
8
+ License: Copyright 2025 ReyXBo
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15
+ License-File: LICENSE
16
+ Keywords: API,client,request,rey,reyxbo
17
+ Requires-Python: >=3.12
18
+ Requires-Dist: alibabacloud-dypnsapi20170525
19
+ Requires-Dist: alibabacloud-tea-openapi>=0.4.3
20
+ Requires-Dist: reydb
21
+ Requires-Dist: reykit
22
+ Description-Content-Type: text/markdown
23
+
24
+ # reyclient
25
+
26
+ > API request client method set.
27
+
28
+ ## Install
29
+
30
+ ```
31
+ pip install reyclient
32
+ ```
@@ -0,0 +1,9 @@
1
+ # reyclient
2
+
3
+ > API request client method set.
4
+
5
+ ## Install
6
+
7
+ ```
8
+ pip install reyclient
9
+ ```
@@ -0,0 +1,25 @@
1
+ [project]
2
+ name = "reyclient"
3
+ version = "1.0.14"
4
+ description = "API request client method set."
5
+ readme = "README.md"
6
+ requires-python = ">=3.12"
7
+ license = {file = "LICENSE"}
8
+ keywords = ["rey", "reyxbo", "client", "request", "API"]
9
+ authors = [
10
+ {name = "Rey", email = "reyxbo@163.com"}
11
+ ]
12
+ dependencies = [
13
+ "alibabacloud_dypnsapi20170525",
14
+ "alibabacloud_tea_openapi>=0.4.3",
15
+ "reydb",
16
+ "reykit"
17
+ ]
18
+
19
+ [project.urls]
20
+ Homepage = "https://www.reyxbo.com"
21
+ Repository = "https://github.com/reyxbo/reyclient-py.git"
22
+
23
+ [build-system]
24
+ requires = ["hatchling"]
25
+ build-backend = "hatchling.build"
@@ -0,0 +1,16 @@
1
+ # !/usr/bin/env python
2
+ # -*- coding: utf-8 -*-
3
+
4
+ """
5
+ @Time : 2023-02-19
6
+ @Author : Rey
7
+ @Contact : reyxbo@163.com
8
+ @Explain : API request client method set.
9
+
10
+ Modules
11
+ -------
12
+ rali : Ali website methods.
13
+ rbaidu : Baidu website methods.
14
+ rall : All methods.
15
+ rbase : Base methods.
16
+ """
@@ -0,0 +1,13 @@
1
+ # !/usr/bin/env python
2
+ # -*- coding: utf-8 -*-
3
+
4
+ """
5
+ @Time : 2026-03-13
6
+ @Author : Rey
7
+ @Contact : reyxbo@163.com
8
+ @Explain : Ali website methods.
9
+ """
10
+
11
+ from .rbase import *
12
+ from .rqwen import *
13
+ from .rverify import *
@@ -0,0 +1,55 @@
1
+ # !/usr/bin/env python
2
+ # -*- coding: utf-8 -*-
3
+
4
+ """
5
+ @Time : 2026-03-13
6
+ @Author : Rey
7
+ @Contact : reyxbo@163.com
8
+ @Explain : Ali website base methods.
9
+ """
10
+
11
+ from alibabacloud_dypnsapi20170525.client import Client as AliClient
12
+ from alibabacloud_tea_openapi.models import Config as AliConfig
13
+ from alibabacloud_credentials.models import Config as AliCredentialConfig
14
+ from alibabacloud_credentials.client import Client as AliCredentialClient
15
+
16
+ from ..rbase import ClientBase
17
+
18
+ __all__ = (
19
+ 'ClientAli',
20
+ 'create_client_ali'
21
+ )
22
+
23
+ class ClientAli(ClientBase):
24
+ """
25
+ Request Ali API fetch type.
26
+ """
27
+
28
+ def create_client_ali(key_id: str, key_secret: str) -> AliClient:
29
+ """
30
+ Create Ali API client.
31
+
32
+ Parameters
33
+ ----------
34
+ key_id : Authorization key ID.
35
+ key_secret: Authorization key secret.
36
+
37
+ Returns
38
+ -------
39
+ Ali API client.
40
+ """
41
+
42
+ # Create.
43
+ credential_config = AliCredentialConfig(
44
+ type='access_key',
45
+ access_key_id=key_id,
46
+ access_key_secret=key_secret
47
+ )
48
+ credential_client = AliCredentialClient(credential_config)
49
+ config = AliConfig(
50
+ credential=credential_client,
51
+ endpoint='dypnsapi.aliyuncs.com'
52
+ )
53
+ client = AliClient(config)
54
+
55
+ return client