hltv-async-api 0.2.2__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.
@@ -0,0 +1,115 @@
1
+ Metadata-Version: 2.1
2
+ Name: hltv-async-api
3
+ Version: 0.2.2
4
+ Summary: Hltv-aio An unofficial asynchronous HLTV API Wrapper for Python
5
+ Home-page: https://github.com/akimerslys/aiohltv
6
+ Author: akimerslys
7
+ Author-email: Akim Slys <akimslys2003@gmail.com>
8
+ Project-URL: Homepage, https://github.com/akimerslys/aiohltv
9
+ Project-URL: Issues, https://github.com/akimerslys/aiohltv/issues
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Operating System :: OS Independent
13
+ Requires-Python: >=3.9
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+
17
+ # Hltv-aio An unofficial asynchronous HLTV API Wrapper for Python
18
+
19
+ # Features
20
+
21
+ * New and modern fully async library
22
+
23
+ * Supports proxy usage for rate-limiting and privacy
24
+
25
+ * Automatically changes proxy if access is denied
26
+
27
+
28
+ ---
29
+
30
+ # Installation
31
+
32
+ ```
33
+ pip install hltv-aio
34
+ ```
35
+
36
+ ---
37
+
38
+
39
+ # Simple Usage
40
+
41
+ ```
42
+ from hltv-aio import Hltv
43
+
44
+ hltv = Hltv()
45
+ live_matches = await hltv.get_live_matches()
46
+ ```
47
+
48
+ ---
49
+
50
+ # Proxy Usage
51
+
52
+ **Load Proxies from list**
53
+
54
+ ```
55
+ proxy_list = ['http://120.234.203.171:9002', 'http://110.38.68.38:80']
56
+
57
+ hltv = Hltv(use_proxy=True, proxy_list=proxy_list)
58
+ ```
59
+
60
+ **Load Proxies from file**
61
+
62
+ ```
63
+ hltv = Hltv(use_proxy=True, proxy_path='PATH_TO_PROXY.TXT')
64
+ ```
65
+
66
+
67
+ **Remove bad proxy from file**
68
+
69
+ ```
70
+ hltv = Hltv(use_proxy=True, proxy_path='PATH_TO_PROXY.TXT', remove_proxy=True)
71
+ ```
72
+
73
+ **Add proxy protocol**
74
+
75
+ ```
76
+ proxy_list = ['120.234.203.171:9002', '110.38.68.38:80']
77
+
78
+ hltv = Hltv(use_proxy=True, proxy_list=proxy_list, proxy_protocol='http')
79
+ ```
80
+ ---
81
+ # Examples
82
+
83
+ ****Simple Example****
84
+
85
+ ```
86
+ async def test():
87
+
88
+ hltv = Hltv()
89
+
90
+ print(await hltv.get_event_info(7148, 'pgl-cs2-major-copenhagen-2024'))
91
+
92
+ if __name__ == "__main__":
93
+ asyncio.run(test())
94
+ ```
95
+
96
+
97
+ ****Proxy Parser****
98
+ ```
99
+ async def test():
100
+
101
+ hltv = Hltv(debug=True, use_proxy=True, proxy_path='proxy_test.txt', timeout=1, remove_proxy=True, proxy_protocol='http')
102
+
103
+ print(await hltv.get_event_info(7148, 'pgl-cs2-major-copenhagen-2024'))
104
+
105
+ if __name__ == "__main__":
106
+ asyncio.run(test())
107
+ ```
108
+
109
+
110
+ # Requirements:
111
+
112
+ Python 3.9+
113
+
114
+ License:
115
+ HLTV Async is licensed under the MIT License, allowing for personal and commercial use with minimal restrictions.
@@ -0,0 +1,9 @@
1
+ hltv-async-api/__init__.py,sha256=_CyfTFeGYJPVZgCWoEbjZ_bIzhXCvoIyKxWSkHdlQGE,124
2
+ hltv-async-api/aiohltv.py,sha256=tRz4EZJ534BmdbHXcJlZKX0g2FC3k-fMFj1xDTiUzuU,24378
3
+ src/hltv-async-api/__init__.py,sha256=_CyfTFeGYJPVZgCWoEbjZ_bIzhXCvoIyKxWSkHdlQGE,124
4
+ src/hltv-async-api/aiohltv.py,sha256=tRz4EZJ534BmdbHXcJlZKX0g2FC3k-fMFj1xDTiUzuU,24378
5
+ hltv_async_api-0.2.2.dist-info/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
6
+ hltv_async_api-0.2.2.dist-info/METADATA,sha256=xqGZsj683IIUl6EJkxFLOKj08AatcXg6mN9Ga4xs7v8,2357
7
+ hltv_async_api-0.2.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
8
+ hltv_async_api-0.2.2.dist-info/top_level.txt,sha256=qB_UNtNVhmtlx5Jw2cWbLRYeWQpGSTGBe_uI42A97mc,15
9
+ hltv_async_api-0.2.2.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.43.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ hltv-async-api
@@ -0,0 +1,9 @@
1
+ """
2
+ :autor: akimerslys
3
+ :license: MIT
4
+ """
5
+
6
+ from .aiohltv import Hltv
7
+
8
+ __author__ = 'akimerslys'
9
+ __version__ = '0.2.2'