hltv-async-api 0.2.3__tar.gz → 0.2.5__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.
- {hltv-async-api-0.2.3/hltv_async_api.egg-info → hltv_async_api-0.2.5}/PKG-INFO +11 -5
- {hltv-async-api-0.2.3 → hltv_async_api-0.2.5}/README.md +9 -3
- {hltv-async-api-0.2.3/hltv-async-api → hltv_async_api-0.2.5/hltv_async_api}/__init__.py +1 -1
- {hltv-async-api-0.2.3/hltv-async-api → hltv_async_api-0.2.5/hltv_async_api}/aiohltv.py +2 -2
- {hltv-async-api-0.2.3 → hltv_async_api-0.2.5/hltv_async_api.egg-info}/PKG-INFO +11 -5
- {hltv-async-api-0.2.3 → hltv_async_api-0.2.5}/hltv_async_api.egg-info/SOURCES.txt +2 -2
- hltv_async_api-0.2.5/hltv_async_api.egg-info/top_level.txt +1 -0
- {hltv-async-api-0.2.3 → hltv_async_api-0.2.5}/pyproject.toml +2 -2
- {hltv-async-api-0.2.3 → hltv_async_api-0.2.5}/setup.py +3 -3
- hltv-async-api-0.2.3/hltv_async_api.egg-info/top_level.txt +0 -1
- {hltv-async-api-0.2.3 → hltv_async_api-0.2.5}/LICENSE +0 -0
- {hltv-async-api-0.2.3 → hltv_async_api-0.2.5}/hltv_async_api.egg-info/dependency_links.txt +0 -0
- {hltv-async-api-0.2.3 → hltv_async_api-0.2.5}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name:
|
|
3
|
-
Version: 0.2.
|
|
2
|
+
Name: hltv_async_api
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: Hltv-aio An unofficial asynchronous HLTV API Wrapper for Python
|
|
5
5
|
Home-page: https://github.com/akimerslys/aiohltv
|
|
6
6
|
Author: akimerslys
|
|
@@ -14,7 +14,7 @@ Requires-Python: >=3.9
|
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
15
|
License-File: LICENSE
|
|
16
16
|
|
|
17
|
-
#
|
|
17
|
+
# hltv-async-api an unofficial asynchronous HLTV API Wrapper for Python
|
|
18
18
|
|
|
19
19
|
# Features
|
|
20
20
|
|
|
@@ -30,7 +30,7 @@ License-File: LICENSE
|
|
|
30
30
|
# Installation
|
|
31
31
|
|
|
32
32
|
```
|
|
33
|
-
pip install
|
|
33
|
+
pip install hltv_async_api
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
---
|
|
@@ -39,7 +39,7 @@ pip install hltv-aio
|
|
|
39
39
|
# Simple Usage
|
|
40
40
|
|
|
41
41
|
```
|
|
42
|
-
from
|
|
42
|
+
from hltv_async_api import Hltv
|
|
43
43
|
|
|
44
44
|
hltv = Hltv()
|
|
45
45
|
live_matches = await hltv.get_live_matches()
|
|
@@ -83,6 +83,9 @@ hltv = Hltv(use_proxy=True, proxy_list=proxy_list, proxy_protocol='http')
|
|
|
83
83
|
****Simple Example****
|
|
84
84
|
|
|
85
85
|
```
|
|
86
|
+
from hltv_async_api import Hltv
|
|
87
|
+
|
|
88
|
+
|
|
86
89
|
async def test():
|
|
87
90
|
|
|
88
91
|
hltv = Hltv()
|
|
@@ -96,6 +99,9 @@ if __name__ == "__main__":
|
|
|
96
99
|
|
|
97
100
|
****Proxy Parser****
|
|
98
101
|
```
|
|
102
|
+
from hltv_async_api import Hltv
|
|
103
|
+
|
|
104
|
+
|
|
99
105
|
async def test():
|
|
100
106
|
|
|
101
107
|
hltv = Hltv(debug=True, use_proxy=True, proxy_path='proxy_test.txt', timeout=1, remove_proxy=True, proxy_protocol='http')
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# hltv-async-api an unofficial asynchronous HLTV API Wrapper for Python
|
|
2
2
|
|
|
3
3
|
# Features
|
|
4
4
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
# Installation
|
|
15
15
|
|
|
16
16
|
```
|
|
17
|
-
pip install
|
|
17
|
+
pip install hltv_async_api
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
---
|
|
@@ -23,7 +23,7 @@ pip install hltv-aio
|
|
|
23
23
|
# Simple Usage
|
|
24
24
|
|
|
25
25
|
```
|
|
26
|
-
from
|
|
26
|
+
from hltv_async_api import Hltv
|
|
27
27
|
|
|
28
28
|
hltv = Hltv()
|
|
29
29
|
live_matches = await hltv.get_live_matches()
|
|
@@ -67,6 +67,9 @@ hltv = Hltv(use_proxy=True, proxy_list=proxy_list, proxy_protocol='http')
|
|
|
67
67
|
****Simple Example****
|
|
68
68
|
|
|
69
69
|
```
|
|
70
|
+
from hltv_async_api import Hltv
|
|
71
|
+
|
|
72
|
+
|
|
70
73
|
async def test():
|
|
71
74
|
|
|
72
75
|
hltv = Hltv()
|
|
@@ -80,6 +83,9 @@ if __name__ == "__main__":
|
|
|
80
83
|
|
|
81
84
|
****Proxy Parser****
|
|
82
85
|
```
|
|
86
|
+
from hltv_async_api import Hltv
|
|
87
|
+
|
|
88
|
+
|
|
83
89
|
async def test():
|
|
84
90
|
|
|
85
91
|
hltv = Hltv(debug=True, use_proxy=True, proxy_path='proxy_test.txt', timeout=1, remove_proxy=True, proxy_protocol='http')
|
|
@@ -145,12 +145,12 @@ class Hltv:
|
|
|
145
145
|
self.logger.info(f"Fetching {url}, code: {response.status}")
|
|
146
146
|
if response.status == 403 or response.status == 404:
|
|
147
147
|
self.logger.debug("Got 403 forbitten")
|
|
148
|
-
return False, self.parse_error_handler(proxy, delay)
|
|
148
|
+
return False, await self.parse_error_handler(proxy, delay)
|
|
149
149
|
|
|
150
150
|
# checking for challenge page.
|
|
151
151
|
result = await response.text()
|
|
152
152
|
if await self.cloudflare_check(result):
|
|
153
|
-
return False, self.parse_error_handler(proxy, delay)
|
|
153
|
+
return False, await self.parse_error_handler(proxy, delay)
|
|
154
154
|
|
|
155
155
|
return True, result
|
|
156
156
|
except (ClientProxyConnectionError, ClientResponseError, ClientOSError,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name:
|
|
3
|
-
Version: 0.2.
|
|
2
|
+
Name: hltv_async_api
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: Hltv-aio An unofficial asynchronous HLTV API Wrapper for Python
|
|
5
5
|
Home-page: https://github.com/akimerslys/aiohltv
|
|
6
6
|
Author: akimerslys
|
|
@@ -14,7 +14,7 @@ Requires-Python: >=3.9
|
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
15
|
License-File: LICENSE
|
|
16
16
|
|
|
17
|
-
#
|
|
17
|
+
# hltv-async-api an unofficial asynchronous HLTV API Wrapper for Python
|
|
18
18
|
|
|
19
19
|
# Features
|
|
20
20
|
|
|
@@ -30,7 +30,7 @@ License-File: LICENSE
|
|
|
30
30
|
# Installation
|
|
31
31
|
|
|
32
32
|
```
|
|
33
|
-
pip install
|
|
33
|
+
pip install hltv_async_api
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
---
|
|
@@ -39,7 +39,7 @@ pip install hltv-aio
|
|
|
39
39
|
# Simple Usage
|
|
40
40
|
|
|
41
41
|
```
|
|
42
|
-
from
|
|
42
|
+
from hltv_async_api import Hltv
|
|
43
43
|
|
|
44
44
|
hltv = Hltv()
|
|
45
45
|
live_matches = await hltv.get_live_matches()
|
|
@@ -83,6 +83,9 @@ hltv = Hltv(use_proxy=True, proxy_list=proxy_list, proxy_protocol='http')
|
|
|
83
83
|
****Simple Example****
|
|
84
84
|
|
|
85
85
|
```
|
|
86
|
+
from hltv_async_api import Hltv
|
|
87
|
+
|
|
88
|
+
|
|
86
89
|
async def test():
|
|
87
90
|
|
|
88
91
|
hltv = Hltv()
|
|
@@ -96,6 +99,9 @@ if __name__ == "__main__":
|
|
|
96
99
|
|
|
97
100
|
****Proxy Parser****
|
|
98
101
|
```
|
|
102
|
+
from hltv_async_api import Hltv
|
|
103
|
+
|
|
104
|
+
|
|
99
105
|
async def test():
|
|
100
106
|
|
|
101
107
|
hltv = Hltv(debug=True, use_proxy=True, proxy_path='proxy_test.txt', timeout=1, remove_proxy=True, proxy_protocol='http')
|
|
@@ -2,8 +2,8 @@ LICENSE
|
|
|
2
2
|
README.md
|
|
3
3
|
pyproject.toml
|
|
4
4
|
setup.py
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
hltv_async_api/__init__.py
|
|
6
|
+
hltv_async_api/aiohltv.py
|
|
7
7
|
hltv_async_api.egg-info/PKG-INFO
|
|
8
8
|
hltv_async_api.egg-info/SOURCES.txt
|
|
9
9
|
hltv_async_api.egg-info/dependency_links.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
hltv_async_api
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
from setuptools import setup, find_packages
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
|
-
name='
|
|
5
|
-
version='0.2.
|
|
4
|
+
name='hltv_async_api',
|
|
5
|
+
version='0.2.5',
|
|
6
6
|
author='akimerslys',
|
|
7
7
|
author_email='akimslys2003@gmail.com',
|
|
8
8
|
description='Hltv-aio: An unofficial asynchronous HLTV API Wrapper for Python',
|
|
9
9
|
long_description=open('README.md').read(),
|
|
10
10
|
long_description_content_type='text/markdown',
|
|
11
11
|
url='https://github.com/akimerslys/aiohltv',
|
|
12
|
-
packages=
|
|
12
|
+
packages=find_packages(),
|
|
13
13
|
|
|
14
14
|
install_requires=[
|
|
15
15
|
'aiohttp==3.9.3',
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
hltv-async-api
|
|
File without changes
|
|
File without changes
|
|
File without changes
|