ddapi 0.7.0__tar.gz → 0.7.2__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.
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2024 ByFox
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2024 ByFox
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,49 +1,62 @@
1
- Metadata-Version: 2.1
2
- Name: ddapi
3
- Version: 0.7.0
4
- Summary: DDnet api
5
- Home-page: https://github.com/ByFox213/ddapi
6
- Author: ByFox
7
- Project-URL: Github, https://github.com/ByFox213/ddapi
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: License :: OSI Approved :: MIT License
10
- Classifier: Operating System :: OS Independent
11
- Requires-Python: >=3.8
12
- Description-Content-Type: text/markdown
13
- License-File: LICENSE
14
-
15
- ddapi is an api from the ddnet and qwik website
16
- ## Installation
17
-
18
- ```bash
19
- pip install ddapi
20
- ```
21
- or
22
- ```bash
23
- pip install git+https://github.com/ByFox213/ddapi
24
- ```
25
-
26
- ## Usage/Examples
27
-
28
- DDnet
29
- ```python
30
- import asyncio
31
- from ddapi import DDnetApi, DDPlayer
32
-
33
-
34
- async def main():
35
- obj = DDnetApi()
36
- nickname = "Cor"
37
- user: DDPlayer = await obj.player(nickname)
38
- if user is None:
39
- return "Player not found"
40
- print(f"{user.player}: {user.points.points}")
41
- # Cor: 31473
42
- await obj.close() # Closing client Not necessary
43
- assert isinstance(user, DDPlayer)
44
-
45
-
46
- asyncio.run(main())
47
- ```
48
- tested on python 3.11
49
- [other examples](https://github.com/ByFox213/ddapi/tree/main/example)
1
+ Metadata-Version: 2.2
2
+ Name: ddapi
3
+ Version: 0.7.2
4
+ Summary: DDnet api
5
+ Home-page: https://github.com/ByFox213/ddapi
6
+ Author: ByFox
7
+ Project-URL: Github, https://github.com/ByFox213/ddapi
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.8
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Dynamic: author
15
+ Dynamic: classifier
16
+ Dynamic: description
17
+ Dynamic: description-content-type
18
+ Dynamic: home-page
19
+ Dynamic: project-url
20
+ Dynamic: requires-python
21
+ Dynamic: summary
22
+
23
+ ddapi is an api from the ddnet and qwik website
24
+ ## Installation
25
+
26
+ ```bash
27
+ pip install ddapi
28
+ ```
29
+ or
30
+ ```bash
31
+ pip install git+https://github.com/ByFox213/ddapi
32
+ ```
33
+
34
+ ## Usage/Examples
35
+
36
+ DDnet
37
+ ```python
38
+ import asyncio
39
+ from ddapi import DDnetApi, DDPlayer
40
+
41
+
42
+ async def main():
43
+ obj = DDnetApi()
44
+ nickname = "Cor"
45
+ user: DDPlayer = await obj.player(nickname)
46
+ if user is None:
47
+ return "Player not found"
48
+ print(f"{user.player}: {user.points.points}")
49
+ # Cor: 31473
50
+ await obj.close() # Closing client Not necessary
51
+ assert isinstance(user, DDPlayer)
52
+
53
+
54
+ asyncio.run(main())
55
+ ```
56
+ Tested on Python
57
+ | 3.9 | 3.10 | 3.11 | 3.12 |
58
+ |-----|------|------|------|
59
+ | ? | ? | ✅ | ? |
60
+
61
+
62
+ [other examples](https://github.com/ByFox213/ddapi/tree/main/example)
@@ -1,35 +1,40 @@
1
- ddapi is an api from the ddnet and qwik website
2
- ## Installation
3
-
4
- ```bash
5
- pip install ddapi
6
- ```
7
- or
8
- ```bash
9
- pip install git+https://github.com/ByFox213/ddapi
10
- ```
11
-
12
- ## Usage/Examples
13
-
14
- DDnet
15
- ```python
16
- import asyncio
17
- from ddapi import DDnetApi, DDPlayer
18
-
19
-
20
- async def main():
21
- obj = DDnetApi()
22
- nickname = "Cor"
23
- user: DDPlayer = await obj.player(nickname)
24
- if user is None:
25
- return "Player not found"
26
- print(f"{user.player}: {user.points.points}")
27
- # Cor: 31473
28
- await obj.close() # Closing client Not necessary
29
- assert isinstance(user, DDPlayer)
30
-
31
-
32
- asyncio.run(main())
33
- ```
34
- tested on python 3.11
35
- [other examples](https://github.com/ByFox213/ddapi/tree/main/example)
1
+ ddapi is an api from the ddnet and qwik website
2
+ ## Installation
3
+
4
+ ```bash
5
+ pip install ddapi
6
+ ```
7
+ or
8
+ ```bash
9
+ pip install git+https://github.com/ByFox213/ddapi
10
+ ```
11
+
12
+ ## Usage/Examples
13
+
14
+ DDnet
15
+ ```python
16
+ import asyncio
17
+ from ddapi import DDnetApi, DDPlayer
18
+
19
+
20
+ async def main():
21
+ obj = DDnetApi()
22
+ nickname = "Cor"
23
+ user: DDPlayer = await obj.player(nickname)
24
+ if user is None:
25
+ return "Player not found"
26
+ print(f"{user.player}: {user.points.points}")
27
+ # Cor: 31473
28
+ await obj.close() # Closing client Not necessary
29
+ assert isinstance(user, DDPlayer)
30
+
31
+
32
+ asyncio.run(main())
33
+ ```
34
+ Tested on Python
35
+ | 3.9 | 3.10 | 3.11 | 3.12 |
36
+ |-----|------|------|------|
37
+ | ? | ? | ✅ | ? |
38
+
39
+
40
+ [other examples](https://github.com/ByFox213/ddapi/tree/main/example)
@@ -1,7 +1,7 @@
1
- """the module is made for the convenience of users to download and use"""
2
- from .main import DDnetApi, DDstats
3
- from .dataclass import *
4
-
5
- __version__ = "0.6.0"
6
- __author__ = 'ByFox'
7
- __LICENSE__ = "MIT"
1
+ """the module is made for the convenience of users to download and use"""
2
+ from .main import DDnetApi, DDstats, Status
3
+ from .dataclass import *
4
+
5
+ __version__ = "0.6.0"
6
+ __author__ = 'ByFox'
7
+ __LICENSE__ = "MIT"