chore: 添加虚拟环境到仓库
- 添加 backend_service/venv 虚拟环境 - 包含所有Python依赖包 - 注意:虚拟环境约393MB,包含12655个文件
This commit is contained in:
@@ -0,0 +1 @@
|
||||
pip
|
||||
@@ -0,0 +1,108 @@
|
||||
Metadata-Version: 2.4
|
||||
Name: aioitertools
|
||||
Version: 0.13.0
|
||||
Summary: itertools and builtins for AsyncIO and mixed iterables
|
||||
Author-email: Amethyst Reese <amethyst@n7.gg>
|
||||
Requires-Python: >=3.9
|
||||
Description-Content-Type: text/markdown
|
||||
License-Expression: MIT
|
||||
Classifier: Framework :: AsyncIO
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: Topic :: Software Development :: Libraries
|
||||
License-File: LICENSE
|
||||
Requires-Dist: typing_extensions>=4.0; python_version < '3.10'
|
||||
Project-URL: Changelog, https://aioitertools.omnilib.dev/en/latest/changelog.html
|
||||
Project-URL: Documentation, https://aioitertools.omnilib.dev
|
||||
Project-URL: Github, https://github.com/omnilib/aioitertools
|
||||
|
||||
aioitertools
|
||||
============
|
||||
|
||||
Implementation of itertools, builtins, and more for AsyncIO and mixed-type iterables.
|
||||
|
||||
[](https://aioitertools.omnilib.dev)
|
||||
[](https://pypi.org/project/aioitertools)
|
||||
[](https://aioitertools.omnilib.dev/en/latest/changelog.html)
|
||||
[](https://github.com/omnilib/aioitertools/blob/main/LICENSE)
|
||||
|
||||
|
||||
Install
|
||||
-------
|
||||
|
||||
aioitertools requires Python 3.9 or newer.
|
||||
You can install it from PyPI:
|
||||
|
||||
```sh
|
||||
$ pip install aioitertools
|
||||
```
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
aioitertools shadows the standard library whenever possible to provide
|
||||
asynchronous version of the modules and functions you already know. It's
|
||||
fully compatible with standard iterators and async iterators alike, giving
|
||||
you one unified, familiar interface for interacting with iterable objects:
|
||||
|
||||
```python
|
||||
from aioitertools import iter, next, map, zip
|
||||
|
||||
something = iter(...)
|
||||
first_item = await next(something)
|
||||
|
||||
async for item in iter(something):
|
||||
...
|
||||
|
||||
|
||||
async def fetch(url):
|
||||
response = await aiohttp.request(...)
|
||||
return response.json
|
||||
|
||||
async for value in map(fetch, MANY_URLS):
|
||||
...
|
||||
|
||||
|
||||
async for a, b in zip(something, something_else):
|
||||
...
|
||||
```
|
||||
|
||||
|
||||
aioitertools emulates the entire `itertools` module, offering the same
|
||||
function signatures, but as async generators. All functions support
|
||||
standard iterables and async iterables alike, and can take functions or
|
||||
coroutines:
|
||||
|
||||
```python
|
||||
from aioitertools import chain, islice
|
||||
|
||||
async def generator1(...):
|
||||
yield ...
|
||||
|
||||
async def generator2(...):
|
||||
yield ...
|
||||
|
||||
async for value in chain(generator1(), generator2()):
|
||||
...
|
||||
|
||||
async for value in islice(generator1(), 2, None, 2):
|
||||
...
|
||||
```
|
||||
|
||||
|
||||
See [builtins.py][], [itertools.py][], and [more_itertools.py][] for full
|
||||
documentation of functions and abilities.
|
||||
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
aioitertools is copyright [Amethyst Reese](https://noswap.com), and licensed under
|
||||
the MIT license. I am providing code in this repository to you under an open
|
||||
source license. This is my personal repository; the license you receive to
|
||||
my code is from me and not from my employer. See the `LICENSE` file for details.
|
||||
|
||||
|
||||
[builtins.py]: https://github.com/omnilib/aioitertools/blob/main/aioitertools/builtins.py
|
||||
[itertools.py]: https://github.com/omnilib/aioitertools/blob/main/aioitertools/itertools.py
|
||||
[more_itertools.py]: https://github.com/omnilib/aioitertools/blob/main/aioitertools/more_itertools.py
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
aioitertools-0.13.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
aioitertools-0.13.0.dist-info/METADATA,sha256=kcxgvt7D9fl2Cjd0fcB4MAgVYMfvQsP5qOt1Ymsb4B0,3288
|
||||
aioitertools-0.13.0.dist-info/RECORD,,
|
||||
aioitertools-0.13.0.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
||||
aioitertools-0.13.0.dist-info/licenses/LICENSE,sha256=qwwXHcPvi_MlqEu3fYVUIfJhEzXd9uCIFrKSLE7cD3Y,1071
|
||||
aioitertools/__init__.py,sha256=sQSceATiylie9rl9qDJ0mN5q_j4YqQGDYXiwRl6ZGCI,683
|
||||
aioitertools/__pycache__/__init__.cpython-313.pyc,,
|
||||
aioitertools/__pycache__/__version__.cpython-313.pyc,,
|
||||
aioitertools/__pycache__/asyncio.cpython-313.pyc,,
|
||||
aioitertools/__pycache__/builtins.cpython-313.pyc,,
|
||||
aioitertools/__pycache__/helpers.cpython-313.pyc,,
|
||||
aioitertools/__pycache__/itertools.cpython-313.pyc,,
|
||||
aioitertools/__pycache__/more_itertools.cpython-313.pyc,,
|
||||
aioitertools/__pycache__/types.cpython-313.pyc,,
|
||||
aioitertools/__version__.py,sha256=SfYGCtvECAPS7w5UTySgqts1I8bTt41VKGPRMqPtJdg,157
|
||||
aioitertools/asyncio.py,sha256=2GjhjTIJbour6p8iFELiYHvm5GbAkib7xNYmTf1Dbe8,8347
|
||||
aioitertools/builtins.py,sha256=XZYGrDbVKk7lGov1dm8KbL1Pm98NactVqu7Gor_-_lg,9676
|
||||
aioitertools/helpers.py,sha256=nSkTElrVVDCjkHTOW6DNhA1H8B-DVji1dXfCJXKFmzQ,469
|
||||
aioitertools/itertools.py,sha256=MQuGwM5Q52-ScA4-vXrfA_KoismUAROc4e8y63Dhggw,15385
|
||||
aioitertools/more_itertools.py,sha256=gtnGkXPjpz-qI8ImNmPwt_7FmeZ1VHvK4U34ytdqOmQ,2551
|
||||
aioitertools/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
aioitertools/tests/__init__.py,sha256=4sxPxzq7DeEG6Png85ksvPSIlq2-zMysPFZTIkI6WrY,245
|
||||
aioitertools/tests/__main__.py,sha256=kKQwkF790GstNdWhwDHbIRvNq-nrn4OC9n1FGQP6SbM,190
|
||||
aioitertools/tests/__pycache__/__init__.cpython-313.pyc,,
|
||||
aioitertools/tests/__pycache__/__main__.cpython-313.pyc,,
|
||||
aioitertools/tests/__pycache__/asyncio.cpython-313.pyc,,
|
||||
aioitertools/tests/__pycache__/builtins.cpython-313.pyc,,
|
||||
aioitertools/tests/__pycache__/helpers.cpython-313.pyc,,
|
||||
aioitertools/tests/__pycache__/itertools.cpython-313.pyc,,
|
||||
aioitertools/tests/__pycache__/more_itertools.cpython-313.pyc,,
|
||||
aioitertools/tests/asyncio.py,sha256=vDDVwOwx0JzcN-Ype6K4mor3atrw_jW1jTE4AqUnlpM,7752
|
||||
aioitertools/tests/builtins.py,sha256=2T1y0EPzEXCoCBq4u2xQqSjUG4yGFVg2no1iErIzyMA,10694
|
||||
aioitertools/tests/helpers.py,sha256=3HL3_9g44RzAKWsk9U4MZMp3CGUUhkQUVY4MVb_w3Oo,1457
|
||||
aioitertools/tests/itertools.py,sha256=hVoWvPD7g_0JgiMDSxuW178p0WjnEWL7lmEj1hq6P2E,23023
|
||||
aioitertools/tests/more_itertools.py,sha256=444W0WoCfVZqx-FXls7mcS-Q6N_1YIPjlKn5hMq_GPM,3247
|
||||
aioitertools/types.py,sha256=C6nnz_HuppE6fc0LDbagAjHTH8dDq012B0bfb95ZDKk,1100
|
||||
@@ -0,0 +1,4 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: flit 3.12.0
|
||||
Root-Is-Purelib: true
|
||||
Tag: py3-none-any
|
||||
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2022 Amethyst Reese
|
||||
|
||||
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:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
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.
|
||||
Reference in New Issue
Block a user