quickspirit 2.1.0__py3-none-any.whl → 2.2.0__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.
- quickspirit/__init__.py +12 -12
- quickspirit/http_async_client.py +239 -206
- quickspirit/http_async_downloader.py +58 -33
- quickspirit/http_errors.py +10 -10
- quickspirit/models.py +10 -10
- {quickspirit-2.1.0.dist-info → quickspirit-2.2.0.dist-info}/METADATA +19 -13
- quickspirit-2.2.0.dist-info/RECORD +9 -0
- {quickspirit-2.1.0.dist-info → quickspirit-2.2.0.dist-info}/WHEEL +1 -1
- {quickspirit-2.1.0.dist-info → quickspirit-2.2.0.dist-info/licenses}/LICENSE +674 -674
- quickspirit-2.1.0.dist-info/RECORD +0 -9
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: quickspirit
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Fast, Async Network & File Downloader Client In Python
|
|
5
|
-
Home-page: https://github.com/DroidZed/QuickSpirit-Async
|
|
6
5
|
License: GPL-3.0-or-later
|
|
6
|
+
License-File: LICENSE
|
|
7
7
|
Keywords: api,speed,fast,library,networking
|
|
8
8
|
Author: DroidZed
|
|
9
|
-
Author-email:
|
|
9
|
+
Author-email: DroidZed@noreply.codeberg.org
|
|
10
10
|
Requires-Python: >=3.9
|
|
11
11
|
Classifier: Intended Audience :: Developers
|
|
12
12
|
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
@@ -19,9 +19,11 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.12
|
|
21
21
|
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
22
23
|
Requires-Dist: aiofiles (>=24.1.0)
|
|
23
24
|
Requires-Dist: httpx (>=0.27.0)
|
|
24
|
-
Project-URL:
|
|
25
|
+
Project-URL: Homepage, https://codeberg.org/DroidZed/QuickSpirit-Async
|
|
26
|
+
Project-URL: Repository, https://codeberg.org/DroidZed/QuickSpirit-Async
|
|
25
27
|
Description-Content-Type: text/markdown
|
|
26
28
|
|
|
27
29
|
# Quick Spirit 🐬
|
|
@@ -68,10 +70,10 @@ async def main():
|
|
|
68
70
|
if result.Error:
|
|
69
71
|
raise result.Error
|
|
70
72
|
|
|
71
|
-
|
|
72
73
|
data: dict[str, Any] = loads(result.Data)
|
|
73
74
|
|
|
74
75
|
# do whatever you need now that you have the data...
|
|
76
|
+
print(data)
|
|
75
77
|
|
|
76
78
|
|
|
77
79
|
if __name__ == "__main__":
|
|
@@ -79,14 +81,14 @@ if __name__ == "__main__":
|
|
|
79
81
|
|
|
80
82
|
```
|
|
81
83
|
|
|
82
|
-
A complete example can be found in the [`example`](https://
|
|
84
|
+
A complete example can be found in the [`example`](https://codeberg.org/DroidZed/QuickSpirit-Async/src/branch/main/example/json-anime-api.py) directory.
|
|
83
85
|
|
|
84
86
|
## Testing:
|
|
85
87
|
|
|
86
88
|
Clone with git:
|
|
87
89
|
|
|
88
90
|
```bash
|
|
89
|
-
git clone https://
|
|
91
|
+
git clone https://codeberg.org/DroidZed/QuickSpirit-Async && cd QuickSpirit-Async
|
|
90
92
|
```
|
|
91
93
|
|
|
92
94
|
Create a virtual env and install the dependencies in it:
|
|
@@ -94,20 +96,24 @@ Create a virtual env and install the dependencies in it:
|
|
|
94
96
|
```sh
|
|
95
97
|
python3 -m venv .venv && .venv/Scripts/activate
|
|
96
98
|
|
|
97
|
-
# I built the project using poetry,
|
|
98
|
-
|
|
99
|
+
# I built the project using poetry,
|
|
100
|
+
# so you may want to have that inside of your venv !
|
|
101
|
+
# No need to install it in your global python install
|
|
99
102
|
|
|
103
|
+
pip install poetry
|
|
104
|
+
poetry install --no-root
|
|
100
105
|
```
|
|
101
106
|
|
|
102
107
|
Run the tests with pytest:
|
|
103
108
|
|
|
104
109
|
```sh
|
|
105
|
-
# Here I'm using uv to run the tests, but the command should be the same for other package manager:
|
|
106
110
|
|
|
107
|
-
|
|
111
|
+
# At the root of the project:
|
|
112
|
+
|
|
113
|
+
python -m pytest -vs .
|
|
108
114
|
```
|
|
109
115
|
|
|
110
116
|
## Licensing
|
|
111
117
|
|
|
112
|
-
The project is under the GPT-3.0 License, see the [`License`](https://
|
|
118
|
+
The project is under the GPT-3.0 License, see the [`License`](https://codeberg.org/DroidZed/QuickSpirit-Async/blob/main/LICENSE) file for details.
|
|
113
119
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
quickspirit/__init__.py,sha256=Cnf-1Wy-QBzuk4OjsszSVW5PmbNRzE--uBTrmpLS5GU,289
|
|
2
|
+
quickspirit/http_async_client.py,sha256=EFGaJq-JhCaLSrj42uuFMV3C-Mn6DzuP3ieCwaAyLw8,8002
|
|
3
|
+
quickspirit/http_async_downloader.py,sha256=4HUFmsn1ELLQmLoajkwZO-tFHDXtHNa8NEfxuehR_wI,1749
|
|
4
|
+
quickspirit/http_errors.py,sha256=2vA5IaK9eyScm4IbtII7sK_M12-tNKVxGYi39Ex13CU,262
|
|
5
|
+
quickspirit/models.py,sha256=ITVQ8deSonORrCpSKoov2PKgM3NXJBj5hHJzQ09RtVo,188
|
|
6
|
+
quickspirit-2.2.0.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
7
|
+
quickspirit-2.2.0.dist-info/METADATA,sha256=b72Pm8kWV7d48w50aAapUy9587AVMxVA62It1QaB0_o,3186
|
|
8
|
+
quickspirit-2.2.0.dist-info/WHEEL,sha256=kJCRJT_g0adfAJzTx2GUMmS80rTJIVHRCfG0DQgLq3o,88
|
|
9
|
+
quickspirit-2.2.0.dist-info/RECORD,,
|