Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .venv/lib/python3.11/site-packages/anyio-4.8.0.dist-info/INSTALLER +1 -0
- .venv/lib/python3.11/site-packages/anyio-4.8.0.dist-info/LICENSE +20 -0
- .venv/lib/python3.11/site-packages/anyio-4.8.0.dist-info/METADATA +104 -0
- .venv/lib/python3.11/site-packages/anyio-4.8.0.dist-info/RECORD +86 -0
- .venv/lib/python3.11/site-packages/anyio-4.8.0.dist-info/WHEEL +5 -0
- .venv/lib/python3.11/site-packages/anyio-4.8.0.dist-info/entry_points.txt +2 -0
- .venv/lib/python3.11/site-packages/anyio-4.8.0.dist-info/top_level.txt +1 -0
- .venv/lib/python3.11/site-packages/attrs/__init__.py +69 -0
- .venv/lib/python3.11/site-packages/attrs/__init__.pyi +263 -0
- .venv/lib/python3.11/site-packages/attrs/__pycache__/converters.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/attrs/__pycache__/exceptions.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/attrs/__pycache__/filters.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/attrs/__pycache__/setters.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/attrs/converters.py +3 -0
- .venv/lib/python3.11/site-packages/attrs/exceptions.py +3 -0
- .venv/lib/python3.11/site-packages/attrs/filters.py +3 -0
- .venv/lib/python3.11/site-packages/attrs/py.typed +0 -0
- .venv/lib/python3.11/site-packages/attrs/setters.py +3 -0
- .venv/lib/python3.11/site-packages/attrs/validators.py +3 -0
- .venv/lib/python3.11/site-packages/colorful-0.5.6.dist-info/INSTALLER +1 -0
- .venv/lib/python3.11/site-packages/colorful-0.5.6.dist-info/LICENSE +21 -0
- .venv/lib/python3.11/site-packages/colorful-0.5.6.dist-info/METADATA +447 -0
- .venv/lib/python3.11/site-packages/colorful-0.5.6.dist-info/RECORD +22 -0
- .venv/lib/python3.11/site-packages/colorful-0.5.6.dist-info/WHEEL +6 -0
- .venv/lib/python3.11/site-packages/colorful-0.5.6.dist-info/top_level.txt +1 -0
- .venv/lib/python3.11/site-packages/grpc/__pycache__/__init__.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/grpc/__pycache__/_auth.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/grpc/__pycache__/_common.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/grpc/__pycache__/_compression.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/grpc/__pycache__/_grpcio_metadata.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/grpc/__pycache__/_interceptor.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/grpc/__pycache__/_observability.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/grpc/__pycache__/_plugin_wrapping.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/grpc/__pycache__/_runtime_protos.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/grpc/__pycache__/_server.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/grpc/__pycache__/_simple_stubs.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/grpc/__pycache__/_typing.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/grpc/__pycache__/_utilities.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/grpc/_cython/__init__.py +13 -0
- .venv/lib/python3.11/site-packages/grpc/_cython/__pycache__/__init__.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/grpc/_cython/_credentials/roots.pem +0 -0
- .venv/lib/python3.11/site-packages/grpc/_cython/_cygrpc/__init__.py +13 -0
- .venv/lib/python3.11/site-packages/grpc/_cython/_cygrpc/__pycache__/__init__.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/grpc/aio/__init__.py +95 -0
- .venv/lib/python3.11/site-packages/grpc/aio/__pycache__/__init__.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/grpc/aio/__pycache__/_base_call.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/grpc/aio/__pycache__/_base_channel.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/grpc/aio/__pycache__/_base_server.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/grpc/aio/__pycache__/_call.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/grpc/aio/__pycache__/_channel.cpython-311.pyc +0 -0
.venv/lib/python3.11/site-packages/anyio-4.8.0.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
.venv/lib/python3.11/site-packages/anyio-4.8.0.dist-info/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The MIT License (MIT)
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2018 Alex Grönholm
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
| 6 |
+
this software and associated documentation files (the "Software"), to deal in
|
| 7 |
+
the Software without restriction, including without limitation the rights to
|
| 8 |
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
| 9 |
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
| 10 |
+
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, FITNESS
|
| 17 |
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
| 18 |
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
| 19 |
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 20 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
.venv/lib/python3.11/site-packages/anyio-4.8.0.dist-info/METADATA
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.1
|
| 2 |
+
Name: anyio
|
| 3 |
+
Version: 4.8.0
|
| 4 |
+
Summary: High level compatibility layer for multiple asynchronous event loop implementations
|
| 5 |
+
Author-email: Alex Grönholm <alex.gronholm@nextday.fi>
|
| 6 |
+
License: MIT
|
| 7 |
+
Project-URL: Documentation, https://anyio.readthedocs.io/en/latest/
|
| 8 |
+
Project-URL: Changelog, https://anyio.readthedocs.io/en/stable/versionhistory.html
|
| 9 |
+
Project-URL: Source code, https://github.com/agronholm/anyio
|
| 10 |
+
Project-URL: Issue tracker, https://github.com/agronholm/anyio/issues
|
| 11 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 12 |
+
Classifier: Intended Audience :: Developers
|
| 13 |
+
Classifier: License :: OSI Approved :: MIT License
|
| 14 |
+
Classifier: Framework :: AnyIO
|
| 15 |
+
Classifier: Typing :: Typed
|
| 16 |
+
Classifier: Programming Language :: Python
|
| 17 |
+
Classifier: Programming Language :: Python :: 3
|
| 18 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 19 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 20 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 21 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 22 |
+
Classifier: Programming Language :: Python :: 3.13
|
| 23 |
+
Requires-Python: >=3.9
|
| 24 |
+
Description-Content-Type: text/x-rst
|
| 25 |
+
License-File: LICENSE
|
| 26 |
+
Requires-Dist: exceptiongroup>=1.0.2; python_version < "3.11"
|
| 27 |
+
Requires-Dist: idna>=2.8
|
| 28 |
+
Requires-Dist: sniffio>=1.1
|
| 29 |
+
Requires-Dist: typing_extensions>=4.5; python_version < "3.13"
|
| 30 |
+
Provides-Extra: trio
|
| 31 |
+
Requires-Dist: trio>=0.26.1; extra == "trio"
|
| 32 |
+
Provides-Extra: test
|
| 33 |
+
Requires-Dist: anyio[trio]; extra == "test"
|
| 34 |
+
Requires-Dist: coverage[toml]>=7; extra == "test"
|
| 35 |
+
Requires-Dist: exceptiongroup>=1.2.0; extra == "test"
|
| 36 |
+
Requires-Dist: hypothesis>=4.0; extra == "test"
|
| 37 |
+
Requires-Dist: psutil>=5.9; extra == "test"
|
| 38 |
+
Requires-Dist: pytest>=7.0; extra == "test"
|
| 39 |
+
Requires-Dist: trustme; extra == "test"
|
| 40 |
+
Requires-Dist: truststore>=0.9.1; python_version >= "3.10" and extra == "test"
|
| 41 |
+
Requires-Dist: uvloop>=0.21; (platform_python_implementation == "CPython" and platform_system != "Windows" and python_version < "3.14") and extra == "test"
|
| 42 |
+
Provides-Extra: doc
|
| 43 |
+
Requires-Dist: packaging; extra == "doc"
|
| 44 |
+
Requires-Dist: Sphinx~=7.4; extra == "doc"
|
| 45 |
+
Requires-Dist: sphinx_rtd_theme; extra == "doc"
|
| 46 |
+
Requires-Dist: sphinx-autodoc-typehints>=1.2.0; extra == "doc"
|
| 47 |
+
|
| 48 |
+
.. image:: https://github.com/agronholm/anyio/actions/workflows/test.yml/badge.svg
|
| 49 |
+
:target: https://github.com/agronholm/anyio/actions/workflows/test.yml
|
| 50 |
+
:alt: Build Status
|
| 51 |
+
.. image:: https://coveralls.io/repos/github/agronholm/anyio/badge.svg?branch=master
|
| 52 |
+
:target: https://coveralls.io/github/agronholm/anyio?branch=master
|
| 53 |
+
:alt: Code Coverage
|
| 54 |
+
.. image:: https://readthedocs.org/projects/anyio/badge/?version=latest
|
| 55 |
+
:target: https://anyio.readthedocs.io/en/latest/?badge=latest
|
| 56 |
+
:alt: Documentation
|
| 57 |
+
.. image:: https://badges.gitter.im/gitterHQ/gitter.svg
|
| 58 |
+
:target: https://gitter.im/python-trio/AnyIO
|
| 59 |
+
:alt: Gitter chat
|
| 60 |
+
|
| 61 |
+
AnyIO is an asynchronous networking and concurrency library that works on top of either asyncio_ or
|
| 62 |
+
trio_. It implements trio-like `structured concurrency`_ (SC) on top of asyncio and works in harmony
|
| 63 |
+
with the native SC of trio itself.
|
| 64 |
+
|
| 65 |
+
Applications and libraries written against AnyIO's API will run unmodified on either asyncio_ or
|
| 66 |
+
trio_. AnyIO can also be adopted into a library or application incrementally – bit by bit, no full
|
| 67 |
+
refactoring necessary. It will blend in with the native libraries of your chosen backend.
|
| 68 |
+
|
| 69 |
+
Documentation
|
| 70 |
+
-------------
|
| 71 |
+
|
| 72 |
+
View full documentation at: https://anyio.readthedocs.io/
|
| 73 |
+
|
| 74 |
+
Features
|
| 75 |
+
--------
|
| 76 |
+
|
| 77 |
+
AnyIO offers the following functionality:
|
| 78 |
+
|
| 79 |
+
* Task groups (nurseries_ in trio terminology)
|
| 80 |
+
* High-level networking (TCP, UDP and UNIX sockets)
|
| 81 |
+
|
| 82 |
+
* `Happy eyeballs`_ algorithm for TCP connections (more robust than that of asyncio on Python
|
| 83 |
+
3.8)
|
| 84 |
+
* async/await style UDP sockets (unlike asyncio where you still have to use Transports and
|
| 85 |
+
Protocols)
|
| 86 |
+
|
| 87 |
+
* A versatile API for byte streams and object streams
|
| 88 |
+
* Inter-task synchronization and communication (locks, conditions, events, semaphores, object
|
| 89 |
+
streams)
|
| 90 |
+
* Worker threads
|
| 91 |
+
* Subprocesses
|
| 92 |
+
* Asynchronous file I/O (using worker threads)
|
| 93 |
+
* Signal handling
|
| 94 |
+
|
| 95 |
+
AnyIO also comes with its own pytest_ plugin which also supports asynchronous fixtures.
|
| 96 |
+
It even works with the popular Hypothesis_ library.
|
| 97 |
+
|
| 98 |
+
.. _asyncio: https://docs.python.org/3/library/asyncio.html
|
| 99 |
+
.. _trio: https://github.com/python-trio/trio
|
| 100 |
+
.. _structured concurrency: https://en.wikipedia.org/wiki/Structured_concurrency
|
| 101 |
+
.. _nurseries: https://trio.readthedocs.io/en/stable/reference-core.html#nurseries-and-spawning
|
| 102 |
+
.. _Happy eyeballs: https://en.wikipedia.org/wiki/Happy_Eyeballs
|
| 103 |
+
.. _pytest: https://docs.pytest.org/en/latest/
|
| 104 |
+
.. _Hypothesis: https://hypothesis.works/
|
.venv/lib/python3.11/site-packages/anyio-4.8.0.dist-info/RECORD
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
anyio-4.8.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 2 |
+
anyio-4.8.0.dist-info/LICENSE,sha256=U2GsncWPLvX9LpsJxoKXwX8ElQkJu8gCO9uC6s8iwrA,1081
|
| 3 |
+
anyio-4.8.0.dist-info/METADATA,sha256=WjTz5zz2NgMStBtw4xDh8CDvf6YXgAOrA0nboFQkXEg,4630
|
| 4 |
+
anyio-4.8.0.dist-info/RECORD,,
|
| 5 |
+
anyio-4.8.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
| 6 |
+
anyio-4.8.0.dist-info/entry_points.txt,sha256=_d6Yu6uiaZmNe0CydowirE9Cmg7zUL2g08tQpoS3Qvc,39
|
| 7 |
+
anyio-4.8.0.dist-info/top_level.txt,sha256=QglSMiWX8_5dpoVAEIHdEYzvqFMdSYWmCj6tYw2ITkQ,6
|
| 8 |
+
anyio/__init__.py,sha256=mVsWuQ6wxcPT9QUAxhz1Rg2u53PskaBJw4TXVXk63ZQ,4513
|
| 9 |
+
anyio/__pycache__/__init__.cpython-311.pyc,,
|
| 10 |
+
anyio/__pycache__/from_thread.cpython-311.pyc,,
|
| 11 |
+
anyio/__pycache__/lowlevel.cpython-311.pyc,,
|
| 12 |
+
anyio/__pycache__/pytest_plugin.cpython-311.pyc,,
|
| 13 |
+
anyio/__pycache__/to_interpreter.cpython-311.pyc,,
|
| 14 |
+
anyio/__pycache__/to_process.cpython-311.pyc,,
|
| 15 |
+
anyio/__pycache__/to_thread.cpython-311.pyc,,
|
| 16 |
+
anyio/_backends/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 17 |
+
anyio/_backends/__pycache__/__init__.cpython-311.pyc,,
|
| 18 |
+
anyio/_backends/__pycache__/_asyncio.cpython-311.pyc,,
|
| 19 |
+
anyio/_backends/__pycache__/_trio.cpython-311.pyc,,
|
| 20 |
+
anyio/_backends/_asyncio.py,sha256=_6BDFDrEPI1aRPFDSPsUzyPGm-dnRgBPfEOdeCH1Ixg,92951
|
| 21 |
+
anyio/_backends/_trio.py,sha256=7PNO_GPq8Dmo1kQmmE2z57dhnv4TUoinsEHt_PJg3oE,40405
|
| 22 |
+
anyio/_core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 23 |
+
anyio/_core/__pycache__/__init__.cpython-311.pyc,,
|
| 24 |
+
anyio/_core/__pycache__/_asyncio_selector_thread.cpython-311.pyc,,
|
| 25 |
+
anyio/_core/__pycache__/_eventloop.cpython-311.pyc,,
|
| 26 |
+
anyio/_core/__pycache__/_exceptions.cpython-311.pyc,,
|
| 27 |
+
anyio/_core/__pycache__/_fileio.cpython-311.pyc,,
|
| 28 |
+
anyio/_core/__pycache__/_resources.cpython-311.pyc,,
|
| 29 |
+
anyio/_core/__pycache__/_signals.cpython-311.pyc,,
|
| 30 |
+
anyio/_core/__pycache__/_sockets.cpython-311.pyc,,
|
| 31 |
+
anyio/_core/__pycache__/_streams.cpython-311.pyc,,
|
| 32 |
+
anyio/_core/__pycache__/_subprocesses.cpython-311.pyc,,
|
| 33 |
+
anyio/_core/__pycache__/_synchronization.cpython-311.pyc,,
|
| 34 |
+
anyio/_core/__pycache__/_tasks.cpython-311.pyc,,
|
| 35 |
+
anyio/_core/__pycache__/_testing.cpython-311.pyc,,
|
| 36 |
+
anyio/_core/__pycache__/_typedattr.cpython-311.pyc,,
|
| 37 |
+
anyio/_core/_asyncio_selector_thread.py,sha256=53RhMHpFAexW0dQz2Rn8iy8zt931NXyEJITyILWVV_A,5626
|
| 38 |
+
anyio/_core/_eventloop.py,sha256=t_tAwBFPjF8jrZGjlJ6bbYy6KA3bjsbZxV9mvh9t1i0,4695
|
| 39 |
+
anyio/_core/_exceptions.py,sha256=RlPRlwastdmfDPoskdXNO6SI8_l3fclA2wtW6cokU9I,3503
|
| 40 |
+
anyio/_core/_fileio.py,sha256=r6QJmwn90vU0CyCDAWgGhCwc8cT26ofosaHl7Jo3LJU,22853
|
| 41 |
+
anyio/_core/_resources.py,sha256=NbmU5O5UX3xEyACnkmYX28Fmwdl-f-ny0tHym26e0w0,435
|
| 42 |
+
anyio/_core/_signals.py,sha256=vulT1M1xdLYtAR-eY5TamIgaf1WTlOwOrMGwswlTTr8,905
|
| 43 |
+
anyio/_core/_sockets.py,sha256=vQ5GnSDLHjEhHhV2yvsdiPs5wmPxxb1kRsv3RM5lbQk,26951
|
| 44 |
+
anyio/_core/_streams.py,sha256=OnaKgoDD-FcMSwLvkoAUGP51sG2ZdRvMpxt9q2w1gYA,1804
|
| 45 |
+
anyio/_core/_subprocesses.py,sha256=WquR6sHrnaZofaeqnL8U4Yv___msVW_WqivleLHK4zI,7760
|
| 46 |
+
anyio/_core/_synchronization.py,sha256=DwUh8Tl6cG_UMVC_GyzPoC_U9BpfDfjMl9SINSxcZN4,20320
|
| 47 |
+
anyio/_core/_tasks.py,sha256=f3CuWwo06cCZ6jaOv-JHFKWkgpgf2cvaF25Oh4augMA,4757
|
| 48 |
+
anyio/_core/_testing.py,sha256=YUGwA5cgFFbUTv4WFd7cv_BSVr4ryTtPp8owQA3JdWE,2118
|
| 49 |
+
anyio/_core/_typedattr.py,sha256=P4ozZikn3-DbpoYcvyghS_FOYAgbmUxeoU8-L_07pZM,2508
|
| 50 |
+
anyio/abc/__init__.py,sha256=c2OQbTCS_fQowviMXanLPh8m29ccwkXmpDr7uyNZYOo,2652
|
| 51 |
+
anyio/abc/__pycache__/__init__.cpython-311.pyc,,
|
| 52 |
+
anyio/abc/__pycache__/_eventloop.cpython-311.pyc,,
|
| 53 |
+
anyio/abc/__pycache__/_resources.cpython-311.pyc,,
|
| 54 |
+
anyio/abc/__pycache__/_sockets.cpython-311.pyc,,
|
| 55 |
+
anyio/abc/__pycache__/_streams.cpython-311.pyc,,
|
| 56 |
+
anyio/abc/__pycache__/_subprocesses.cpython-311.pyc,,
|
| 57 |
+
anyio/abc/__pycache__/_tasks.cpython-311.pyc,,
|
| 58 |
+
anyio/abc/__pycache__/_testing.cpython-311.pyc,,
|
| 59 |
+
anyio/abc/_eventloop.py,sha256=Wd_3C3hLm0ex5z_eHHWGqvLle2OKCSexJSZVnwQNGV4,9658
|
| 60 |
+
anyio/abc/_resources.py,sha256=DrYvkNN1hH6Uvv5_5uKySvDsnknGVDe8FCKfko0VtN8,783
|
| 61 |
+
anyio/abc/_sockets.py,sha256=KhWtJxan8jpBXKwPaFeQzI4iRXdFaOIn0HXtDZnaO7U,6262
|
| 62 |
+
anyio/abc/_streams.py,sha256=GzST5Q2zQmxVzdrAqtbSyHNxkPlIC9AzeZJg_YyPAXw,6598
|
| 63 |
+
anyio/abc/_subprocesses.py,sha256=cumAPJTktOQtw63IqG0lDpyZqu_l1EElvQHMiwJgL08,2067
|
| 64 |
+
anyio/abc/_tasks.py,sha256=yJWbMwowvqjlAX4oJ3l9Is1w-zwynr2lX1Z02AWJqsY,3080
|
| 65 |
+
anyio/abc/_testing.py,sha256=tBJUzkSfOXJw23fe8qSJ03kJlShOYjjaEyFB6k6MYT8,1821
|
| 66 |
+
anyio/from_thread.py,sha256=dbi5TUH45_Sg_jZ8Vv1NJWVohe0WeQ_OaCvXIKveAGg,17478
|
| 67 |
+
anyio/lowlevel.py,sha256=nkgmW--SdxGVp0cmLUYazjkigveRm5HY7-gW8Bpp9oY,4169
|
| 68 |
+
anyio/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 69 |
+
anyio/pytest_plugin.py,sha256=vjGhGRHD31OyMgJRFQrMvExhx3Ea8KbyDqYKmiSDdXA,6712
|
| 70 |
+
anyio/streams/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 71 |
+
anyio/streams/__pycache__/__init__.cpython-311.pyc,,
|
| 72 |
+
anyio/streams/__pycache__/buffered.cpython-311.pyc,,
|
| 73 |
+
anyio/streams/__pycache__/file.cpython-311.pyc,,
|
| 74 |
+
anyio/streams/__pycache__/memory.cpython-311.pyc,,
|
| 75 |
+
anyio/streams/__pycache__/stapled.cpython-311.pyc,,
|
| 76 |
+
anyio/streams/__pycache__/text.cpython-311.pyc,,
|
| 77 |
+
anyio/streams/__pycache__/tls.cpython-311.pyc,,
|
| 78 |
+
anyio/streams/buffered.py,sha256=UCldKC168YuLvT7n3HtNPnQ2iWAMSTYQWbZvzLwMwkM,4500
|
| 79 |
+
anyio/streams/file.py,sha256=6uoTNb5KbMoj-6gS3_xrrL8uZN8Q4iIvOS1WtGyFfKw,4383
|
| 80 |
+
anyio/streams/memory.py,sha256=j8AyOExK4-UPaon_Xbhwax25Vqs0DwFg3ZXc-EIiHjY,10550
|
| 81 |
+
anyio/streams/stapled.py,sha256=U09pCrmOw9kkNhe6tKopsm1QIMT1lFTFvtb-A7SIe4k,4302
|
| 82 |
+
anyio/streams/text.py,sha256=6x8w8xlfCZKTUWQoJiMPoMhSSJFUBRKgoBNSBtbd9yg,5094
|
| 83 |
+
anyio/streams/tls.py,sha256=m3AE2LVSpoRHSIwSoSCupiOVL54EvOFoY3CcwTxcZfg,12742
|
| 84 |
+
anyio/to_interpreter.py,sha256=QhTFaSdyUjxpuN_wBJWPWyh8N6kKV4qhkn71Op84AEc,6624
|
| 85 |
+
anyio/to_process.py,sha256=ZvruelRM-HNmqDaql4sdNODg2QD_uSlwSCxnV4OhsfQ,9595
|
| 86 |
+
anyio/to_thread.py,sha256=WM2JQ2MbVsd5D5CM08bQiTwzZIvpsGjfH1Fy247KoDQ,2396
|
.venv/lib/python3.11/site-packages/anyio-4.8.0.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: setuptools (75.6.0)
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py3-none-any
|
| 5 |
+
|
.venv/lib/python3.11/site-packages/anyio-4.8.0.dist-info/entry_points.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[pytest11]
|
| 2 |
+
anyio = anyio.pytest_plugin
|
.venv/lib/python3.11/site-packages/anyio-4.8.0.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
anyio
|
.venv/lib/python3.11/site-packages/attrs/__init__.py
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SPDX-License-Identifier: MIT
|
| 2 |
+
|
| 3 |
+
from attr import (
|
| 4 |
+
NOTHING,
|
| 5 |
+
Attribute,
|
| 6 |
+
AttrsInstance,
|
| 7 |
+
Converter,
|
| 8 |
+
Factory,
|
| 9 |
+
NothingType,
|
| 10 |
+
_make_getattr,
|
| 11 |
+
assoc,
|
| 12 |
+
cmp_using,
|
| 13 |
+
define,
|
| 14 |
+
evolve,
|
| 15 |
+
field,
|
| 16 |
+
fields,
|
| 17 |
+
fields_dict,
|
| 18 |
+
frozen,
|
| 19 |
+
has,
|
| 20 |
+
make_class,
|
| 21 |
+
mutable,
|
| 22 |
+
resolve_types,
|
| 23 |
+
validate,
|
| 24 |
+
)
|
| 25 |
+
from attr._next_gen import asdict, astuple
|
| 26 |
+
|
| 27 |
+
from . import converters, exceptions, filters, setters, validators
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
__all__ = [
|
| 31 |
+
"NOTHING",
|
| 32 |
+
"Attribute",
|
| 33 |
+
"AttrsInstance",
|
| 34 |
+
"Converter",
|
| 35 |
+
"Factory",
|
| 36 |
+
"NothingType",
|
| 37 |
+
"__author__",
|
| 38 |
+
"__copyright__",
|
| 39 |
+
"__description__",
|
| 40 |
+
"__doc__",
|
| 41 |
+
"__email__",
|
| 42 |
+
"__license__",
|
| 43 |
+
"__title__",
|
| 44 |
+
"__url__",
|
| 45 |
+
"__version__",
|
| 46 |
+
"__version_info__",
|
| 47 |
+
"asdict",
|
| 48 |
+
"assoc",
|
| 49 |
+
"astuple",
|
| 50 |
+
"cmp_using",
|
| 51 |
+
"converters",
|
| 52 |
+
"define",
|
| 53 |
+
"evolve",
|
| 54 |
+
"exceptions",
|
| 55 |
+
"field",
|
| 56 |
+
"fields",
|
| 57 |
+
"fields_dict",
|
| 58 |
+
"filters",
|
| 59 |
+
"frozen",
|
| 60 |
+
"has",
|
| 61 |
+
"make_class",
|
| 62 |
+
"mutable",
|
| 63 |
+
"resolve_types",
|
| 64 |
+
"setters",
|
| 65 |
+
"validate",
|
| 66 |
+
"validators",
|
| 67 |
+
]
|
| 68 |
+
|
| 69 |
+
__getattr__ = _make_getattr(__name__)
|
.venv/lib/python3.11/site-packages/attrs/__init__.pyi
ADDED
|
@@ -0,0 +1,263 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
|
| 3 |
+
from typing import (
|
| 4 |
+
Any,
|
| 5 |
+
Callable,
|
| 6 |
+
Mapping,
|
| 7 |
+
Sequence,
|
| 8 |
+
overload,
|
| 9 |
+
TypeVar,
|
| 10 |
+
)
|
| 11 |
+
|
| 12 |
+
# Because we need to type our own stuff, we have to make everything from
|
| 13 |
+
# attr explicitly public too.
|
| 14 |
+
from attr import __author__ as __author__
|
| 15 |
+
from attr import __copyright__ as __copyright__
|
| 16 |
+
from attr import __description__ as __description__
|
| 17 |
+
from attr import __email__ as __email__
|
| 18 |
+
from attr import __license__ as __license__
|
| 19 |
+
from attr import __title__ as __title__
|
| 20 |
+
from attr import __url__ as __url__
|
| 21 |
+
from attr import __version__ as __version__
|
| 22 |
+
from attr import __version_info__ as __version_info__
|
| 23 |
+
from attr import assoc as assoc
|
| 24 |
+
from attr import Attribute as Attribute
|
| 25 |
+
from attr import AttrsInstance as AttrsInstance
|
| 26 |
+
from attr import cmp_using as cmp_using
|
| 27 |
+
from attr import converters as converters
|
| 28 |
+
from attr import Converter as Converter
|
| 29 |
+
from attr import evolve as evolve
|
| 30 |
+
from attr import exceptions as exceptions
|
| 31 |
+
from attr import Factory as Factory
|
| 32 |
+
from attr import fields as fields
|
| 33 |
+
from attr import fields_dict as fields_dict
|
| 34 |
+
from attr import filters as filters
|
| 35 |
+
from attr import has as has
|
| 36 |
+
from attr import make_class as make_class
|
| 37 |
+
from attr import NOTHING as NOTHING
|
| 38 |
+
from attr import resolve_types as resolve_types
|
| 39 |
+
from attr import setters as setters
|
| 40 |
+
from attr import validate as validate
|
| 41 |
+
from attr import validators as validators
|
| 42 |
+
from attr import attrib, asdict as asdict, astuple as astuple
|
| 43 |
+
from attr import NothingType as NothingType
|
| 44 |
+
|
| 45 |
+
if sys.version_info >= (3, 11):
|
| 46 |
+
from typing import dataclass_transform
|
| 47 |
+
else:
|
| 48 |
+
from typing_extensions import dataclass_transform
|
| 49 |
+
|
| 50 |
+
_T = TypeVar("_T")
|
| 51 |
+
_C = TypeVar("_C", bound=type)
|
| 52 |
+
|
| 53 |
+
_EqOrderType = bool | Callable[[Any], Any]
|
| 54 |
+
_ValidatorType = Callable[[Any, "Attribute[_T]", _T], Any]
|
| 55 |
+
_CallableConverterType = Callable[[Any], Any]
|
| 56 |
+
_ConverterType = _CallableConverterType | Converter[Any, Any]
|
| 57 |
+
_ReprType = Callable[[Any], str]
|
| 58 |
+
_ReprArgType = bool | _ReprType
|
| 59 |
+
_OnSetAttrType = Callable[[Any, "Attribute[Any]", Any], Any]
|
| 60 |
+
_OnSetAttrArgType = _OnSetAttrType | list[_OnSetAttrType] | setters._NoOpType
|
| 61 |
+
_FieldTransformer = Callable[
|
| 62 |
+
[type, list["Attribute[Any]"]], list["Attribute[Any]"]
|
| 63 |
+
]
|
| 64 |
+
# FIXME: in reality, if multiple validators are passed they must be in a list
|
| 65 |
+
# or tuple, but those are invariant and so would prevent subtypes of
|
| 66 |
+
# _ValidatorType from working when passed in a list or tuple.
|
| 67 |
+
_ValidatorArgType = _ValidatorType[_T] | Sequence[_ValidatorType[_T]]
|
| 68 |
+
|
| 69 |
+
@overload
|
| 70 |
+
def field(
|
| 71 |
+
*,
|
| 72 |
+
default: None = ...,
|
| 73 |
+
validator: None = ...,
|
| 74 |
+
repr: _ReprArgType = ...,
|
| 75 |
+
hash: bool | None = ...,
|
| 76 |
+
init: bool = ...,
|
| 77 |
+
metadata: Mapping[Any, Any] | None = ...,
|
| 78 |
+
converter: None = ...,
|
| 79 |
+
factory: None = ...,
|
| 80 |
+
kw_only: bool = ...,
|
| 81 |
+
eq: bool | None = ...,
|
| 82 |
+
order: bool | None = ...,
|
| 83 |
+
on_setattr: _OnSetAttrArgType | None = ...,
|
| 84 |
+
alias: str | None = ...,
|
| 85 |
+
type: type | None = ...,
|
| 86 |
+
) -> Any: ...
|
| 87 |
+
|
| 88 |
+
# This form catches an explicit None or no default and infers the type from the
|
| 89 |
+
# other arguments.
|
| 90 |
+
@overload
|
| 91 |
+
def field(
|
| 92 |
+
*,
|
| 93 |
+
default: None = ...,
|
| 94 |
+
validator: _ValidatorArgType[_T] | None = ...,
|
| 95 |
+
repr: _ReprArgType = ...,
|
| 96 |
+
hash: bool | None = ...,
|
| 97 |
+
init: bool = ...,
|
| 98 |
+
metadata: Mapping[Any, Any] | None = ...,
|
| 99 |
+
converter: _ConverterType
|
| 100 |
+
| list[_ConverterType]
|
| 101 |
+
| tuple[_ConverterType]
|
| 102 |
+
| None = ...,
|
| 103 |
+
factory: Callable[[], _T] | None = ...,
|
| 104 |
+
kw_only: bool = ...,
|
| 105 |
+
eq: _EqOrderType | None = ...,
|
| 106 |
+
order: _EqOrderType | None = ...,
|
| 107 |
+
on_setattr: _OnSetAttrArgType | None = ...,
|
| 108 |
+
alias: str | None = ...,
|
| 109 |
+
type: type | None = ...,
|
| 110 |
+
) -> _T: ...
|
| 111 |
+
|
| 112 |
+
# This form catches an explicit default argument.
|
| 113 |
+
@overload
|
| 114 |
+
def field(
|
| 115 |
+
*,
|
| 116 |
+
default: _T,
|
| 117 |
+
validator: _ValidatorArgType[_T] | None = ...,
|
| 118 |
+
repr: _ReprArgType = ...,
|
| 119 |
+
hash: bool | None = ...,
|
| 120 |
+
init: bool = ...,
|
| 121 |
+
metadata: Mapping[Any, Any] | None = ...,
|
| 122 |
+
converter: _ConverterType
|
| 123 |
+
| list[_ConverterType]
|
| 124 |
+
| tuple[_ConverterType]
|
| 125 |
+
| None = ...,
|
| 126 |
+
factory: Callable[[], _T] | None = ...,
|
| 127 |
+
kw_only: bool = ...,
|
| 128 |
+
eq: _EqOrderType | None = ...,
|
| 129 |
+
order: _EqOrderType | None = ...,
|
| 130 |
+
on_setattr: _OnSetAttrArgType | None = ...,
|
| 131 |
+
alias: str | None = ...,
|
| 132 |
+
type: type | None = ...,
|
| 133 |
+
) -> _T: ...
|
| 134 |
+
|
| 135 |
+
# This form covers type=non-Type: e.g. forward references (str), Any
|
| 136 |
+
@overload
|
| 137 |
+
def field(
|
| 138 |
+
*,
|
| 139 |
+
default: _T | None = ...,
|
| 140 |
+
validator: _ValidatorArgType[_T] | None = ...,
|
| 141 |
+
repr: _ReprArgType = ...,
|
| 142 |
+
hash: bool | None = ...,
|
| 143 |
+
init: bool = ...,
|
| 144 |
+
metadata: Mapping[Any, Any] | None = ...,
|
| 145 |
+
converter: _ConverterType
|
| 146 |
+
| list[_ConverterType]
|
| 147 |
+
| tuple[_ConverterType]
|
| 148 |
+
| None = ...,
|
| 149 |
+
factory: Callable[[], _T] | None = ...,
|
| 150 |
+
kw_only: bool = ...,
|
| 151 |
+
eq: _EqOrderType | None = ...,
|
| 152 |
+
order: _EqOrderType | None = ...,
|
| 153 |
+
on_setattr: _OnSetAttrArgType | None = ...,
|
| 154 |
+
alias: str | None = ...,
|
| 155 |
+
type: type | None = ...,
|
| 156 |
+
) -> Any: ...
|
| 157 |
+
@overload
|
| 158 |
+
@dataclass_transform(field_specifiers=(attrib, field))
|
| 159 |
+
def define(
|
| 160 |
+
maybe_cls: _C,
|
| 161 |
+
*,
|
| 162 |
+
these: dict[str, Any] | None = ...,
|
| 163 |
+
repr: bool = ...,
|
| 164 |
+
unsafe_hash: bool | None = ...,
|
| 165 |
+
hash: bool | None = ...,
|
| 166 |
+
init: bool = ...,
|
| 167 |
+
slots: bool = ...,
|
| 168 |
+
frozen: bool = ...,
|
| 169 |
+
weakref_slot: bool = ...,
|
| 170 |
+
str: bool = ...,
|
| 171 |
+
auto_attribs: bool = ...,
|
| 172 |
+
kw_only: bool = ...,
|
| 173 |
+
cache_hash: bool = ...,
|
| 174 |
+
auto_exc: bool = ...,
|
| 175 |
+
eq: bool | None = ...,
|
| 176 |
+
order: bool | None = ...,
|
| 177 |
+
auto_detect: bool = ...,
|
| 178 |
+
getstate_setstate: bool | None = ...,
|
| 179 |
+
on_setattr: _OnSetAttrArgType | None = ...,
|
| 180 |
+
field_transformer: _FieldTransformer | None = ...,
|
| 181 |
+
match_args: bool = ...,
|
| 182 |
+
) -> _C: ...
|
| 183 |
+
@overload
|
| 184 |
+
@dataclass_transform(field_specifiers=(attrib, field))
|
| 185 |
+
def define(
|
| 186 |
+
maybe_cls: None = ...,
|
| 187 |
+
*,
|
| 188 |
+
these: dict[str, Any] | None = ...,
|
| 189 |
+
repr: bool = ...,
|
| 190 |
+
unsafe_hash: bool | None = ...,
|
| 191 |
+
hash: bool | None = ...,
|
| 192 |
+
init: bool = ...,
|
| 193 |
+
slots: bool = ...,
|
| 194 |
+
frozen: bool = ...,
|
| 195 |
+
weakref_slot: bool = ...,
|
| 196 |
+
str: bool = ...,
|
| 197 |
+
auto_attribs: bool = ...,
|
| 198 |
+
kw_only: bool = ...,
|
| 199 |
+
cache_hash: bool = ...,
|
| 200 |
+
auto_exc: bool = ...,
|
| 201 |
+
eq: bool | None = ...,
|
| 202 |
+
order: bool | None = ...,
|
| 203 |
+
auto_detect: bool = ...,
|
| 204 |
+
getstate_setstate: bool | None = ...,
|
| 205 |
+
on_setattr: _OnSetAttrArgType | None = ...,
|
| 206 |
+
field_transformer: _FieldTransformer | None = ...,
|
| 207 |
+
match_args: bool = ...,
|
| 208 |
+
) -> Callable[[_C], _C]: ...
|
| 209 |
+
|
| 210 |
+
mutable = define
|
| 211 |
+
|
| 212 |
+
@overload
|
| 213 |
+
@dataclass_transform(frozen_default=True, field_specifiers=(attrib, field))
|
| 214 |
+
def frozen(
|
| 215 |
+
maybe_cls: _C,
|
| 216 |
+
*,
|
| 217 |
+
these: dict[str, Any] | None = ...,
|
| 218 |
+
repr: bool = ...,
|
| 219 |
+
unsafe_hash: bool | None = ...,
|
| 220 |
+
hash: bool | None = ...,
|
| 221 |
+
init: bool = ...,
|
| 222 |
+
slots: bool = ...,
|
| 223 |
+
frozen: bool = ...,
|
| 224 |
+
weakref_slot: bool = ...,
|
| 225 |
+
str: bool = ...,
|
| 226 |
+
auto_attribs: bool = ...,
|
| 227 |
+
kw_only: bool = ...,
|
| 228 |
+
cache_hash: bool = ...,
|
| 229 |
+
auto_exc: bool = ...,
|
| 230 |
+
eq: bool | None = ...,
|
| 231 |
+
order: bool | None = ...,
|
| 232 |
+
auto_detect: bool = ...,
|
| 233 |
+
getstate_setstate: bool | None = ...,
|
| 234 |
+
on_setattr: _OnSetAttrArgType | None = ...,
|
| 235 |
+
field_transformer: _FieldTransformer | None = ...,
|
| 236 |
+
match_args: bool = ...,
|
| 237 |
+
) -> _C: ...
|
| 238 |
+
@overload
|
| 239 |
+
@dataclass_transform(frozen_default=True, field_specifiers=(attrib, field))
|
| 240 |
+
def frozen(
|
| 241 |
+
maybe_cls: None = ...,
|
| 242 |
+
*,
|
| 243 |
+
these: dict[str, Any] | None = ...,
|
| 244 |
+
repr: bool = ...,
|
| 245 |
+
unsafe_hash: bool | None = ...,
|
| 246 |
+
hash: bool | None = ...,
|
| 247 |
+
init: bool = ...,
|
| 248 |
+
slots: bool = ...,
|
| 249 |
+
frozen: bool = ...,
|
| 250 |
+
weakref_slot: bool = ...,
|
| 251 |
+
str: bool = ...,
|
| 252 |
+
auto_attribs: bool = ...,
|
| 253 |
+
kw_only: bool = ...,
|
| 254 |
+
cache_hash: bool = ...,
|
| 255 |
+
auto_exc: bool = ...,
|
| 256 |
+
eq: bool | None = ...,
|
| 257 |
+
order: bool | None = ...,
|
| 258 |
+
auto_detect: bool = ...,
|
| 259 |
+
getstate_setstate: bool | None = ...,
|
| 260 |
+
on_setattr: _OnSetAttrArgType | None = ...,
|
| 261 |
+
field_transformer: _FieldTransformer | None = ...,
|
| 262 |
+
match_args: bool = ...,
|
| 263 |
+
) -> Callable[[_C], _C]: ...
|
.venv/lib/python3.11/site-packages/attrs/__pycache__/converters.cpython-311.pyc
ADDED
|
Binary file (222 Bytes). View file
|
|
|
.venv/lib/python3.11/site-packages/attrs/__pycache__/exceptions.cpython-311.pyc
ADDED
|
Binary file (222 Bytes). View file
|
|
|
.venv/lib/python3.11/site-packages/attrs/__pycache__/filters.cpython-311.pyc
ADDED
|
Binary file (216 Bytes). View file
|
|
|
.venv/lib/python3.11/site-packages/attrs/__pycache__/setters.cpython-311.pyc
ADDED
|
Binary file (216 Bytes). View file
|
|
|
.venv/lib/python3.11/site-packages/attrs/converters.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SPDX-License-Identifier: MIT
|
| 2 |
+
|
| 3 |
+
from attr.converters import * # noqa: F403
|
.venv/lib/python3.11/site-packages/attrs/exceptions.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SPDX-License-Identifier: MIT
|
| 2 |
+
|
| 3 |
+
from attr.exceptions import * # noqa: F403
|
.venv/lib/python3.11/site-packages/attrs/filters.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SPDX-License-Identifier: MIT
|
| 2 |
+
|
| 3 |
+
from attr.filters import * # noqa: F403
|
.venv/lib/python3.11/site-packages/attrs/py.typed
ADDED
|
File without changes
|
.venv/lib/python3.11/site-packages/attrs/setters.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SPDX-License-Identifier: MIT
|
| 2 |
+
|
| 3 |
+
from attr.setters import * # noqa: F403
|
.venv/lib/python3.11/site-packages/attrs/validators.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SPDX-License-Identifier: MIT
|
| 2 |
+
|
| 3 |
+
from attr.validators import * # noqa: F403
|
.venv/lib/python3.11/site-packages/colorful-0.5.6.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
.venv/lib/python3.11/site-packages/colorful-0.5.6.dist-info/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The MIT License (MIT)
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2017 Timo Furrer
|
| 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.
|
.venv/lib/python3.11/site-packages/colorful-0.5.6.dist-info/METADATA
ADDED
|
@@ -0,0 +1,447 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.1
|
| 2 |
+
Name: colorful
|
| 3 |
+
Version: 0.5.6
|
| 4 |
+
Summary: Terminal string styling done right, in Python.
|
| 5 |
+
Home-page: http://github.com/timofurrer/colorful
|
| 6 |
+
Author: Timo Furrer
|
| 7 |
+
Author-email: tuxtimo@gmail.com
|
| 8 |
+
Maintainer: Timo Furrer
|
| 9 |
+
Maintainer-email: tuxtimo@gmail.com
|
| 10 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 11 |
+
Classifier: Environment :: Console
|
| 12 |
+
Classifier: License :: OSI Approved :: MIT License
|
| 13 |
+
Classifier: Operating System :: POSIX
|
| 14 |
+
Classifier: Operating System :: POSIX :: Linux
|
| 15 |
+
Classifier: Operating System :: MacOS :: MacOS X
|
| 16 |
+
Classifier: Operating System :: Microsoft :: Windows
|
| 17 |
+
Classifier: Programming Language :: Python
|
| 18 |
+
Classifier: Programming Language :: Python :: 3
|
| 19 |
+
Classifier: Programming Language :: Python :: 3.4
|
| 20 |
+
Classifier: Programming Language :: Python :: 3.5
|
| 21 |
+
Classifier: Programming Language :: Python :: 3.6
|
| 22 |
+
Classifier: Programming Language :: Python :: 3.7
|
| 23 |
+
Classifier: Programming Language :: Python :: 3.8
|
| 24 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 25 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 26 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 27 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 28 |
+
Classifier: Programming Language :: Python :: Implementation
|
| 29 |
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
| 30 |
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
| 31 |
+
Description-Content-Type: text/markdown
|
| 32 |
+
License-File: LICENSE
|
| 33 |
+
Requires-Dist: colorama ; platform_system == "Windows"
|
| 34 |
+
|
| 35 |
+
# colorful
|
| 36 |
+
|
| 37 |
+
[](https://github.com/timofurrer/colorful/actions)
|
| 38 |
+
[](https://codecov.io/github/timofurrer/colorful?branch=master)
|
| 39 |
+
[](https://badge.fury.io/py/colorful)
|
| 40 |
+
[](https://pypi.python.org/pypi/colorful)
|
| 41 |
+
[](https://pypi.python.org/pypi/colorful)
|
| 42 |
+
|
| 43 |
+
Terminal string styling done right, in Python :tada:
|
| 44 |
+
|
| 45 |
+
## Here's a tease
|
| 46 |
+
|
| 47 |
+

|
| 48 |
+
|
| 49 |
+
```python
|
| 50 |
+
import colorful as cf
|
| 51 |
+
|
| 52 |
+
# create a colored string using clever method translation
|
| 53 |
+
print(cf.bold_white('Hello World'))
|
| 54 |
+
# create a colored string using `str.format()`
|
| 55 |
+
print('{c.bold}{c.lightCoral_on_white}Hello World{c.reset}'.format(c=cf))
|
| 56 |
+
|
| 57 |
+
# nest colors
|
| 58 |
+
print(cf.red('red {0} red'.format(cf.white('white'))))
|
| 59 |
+
print(cf.red('red' + cf.white(' white ', nested=True) + 'red'))
|
| 60 |
+
|
| 61 |
+
# combine styles with strings
|
| 62 |
+
print(cf.bold & cf.red | 'Hello World')
|
| 63 |
+
|
| 64 |
+
# use true colors
|
| 65 |
+
cf.use_true_colors()
|
| 66 |
+
|
| 67 |
+
# extend default color palette
|
| 68 |
+
cf.update_palette({'mint': '#c5e8c8'})
|
| 69 |
+
print(cf.mint_on_snow('Wow, this is actually mint'))
|
| 70 |
+
|
| 71 |
+
# choose a predefined style
|
| 72 |
+
cf.use_style('solarized')
|
| 73 |
+
# print the official solarized colors
|
| 74 |
+
print(cf.yellow('yellow'), cf.orange('orange'),
|
| 75 |
+
cf.red('red'), cf.magenta('magenta'),
|
| 76 |
+
cf.violet('violet'), cf.blue('blue'),
|
| 77 |
+
cf.cyan('cyan'), cf.green('green'))
|
| 78 |
+
|
| 79 |
+
# directly print with colors
|
| 80 |
+
cf.print('{c.bold_blue}Hello World{c.reset}')
|
| 81 |
+
|
| 82 |
+
# choose specific color mode for one block
|
| 83 |
+
with cf.with_8_ansi_colors() as c:
|
| 84 |
+
print(c.bold_green('colorful is awesome!'))
|
| 85 |
+
|
| 86 |
+
# create and choose your own color palette
|
| 87 |
+
MY_COMPANY_PALETTE = {
|
| 88 |
+
'companyOrange': '#f4b942',
|
| 89 |
+
'companyBaige': '#e8dcc5'
|
| 90 |
+
}
|
| 91 |
+
with cf.with_palette(MY_COMPANY_PALETTE) as c:
|
| 92 |
+
print(c.companyOrange_on_companyBaige('Thanks for choosing our product!'))
|
| 93 |
+
|
| 94 |
+
# use f-string (only Python >= 3.6)
|
| 95 |
+
print(f'{cf.bold}Hello World')
|
| 96 |
+
|
| 97 |
+
# support for chinese
|
| 98 |
+
print(cf.red('你好'))
|
| 99 |
+
```
|
| 100 |
+
|
| 101 |
+
## Key Features
|
| 102 |
+
|
| 103 |
+
* expressive and consistent API ([docs](#style-a-string))
|
| 104 |
+
* support for different color modes (8 ANSI, 256 ANSI, true colors) ([docs](#color-modes))
|
| 105 |
+
* support for predefined awesome styles (solarized, ...) ([docs](#styles))
|
| 106 |
+
* support for custom color palettes ([docs](#color-palette))
|
| 107 |
+
* support nesting styles ([docs](#nesting-styles))
|
| 108 |
+
* support for different platforms (using colorama on Windows)
|
| 109 |
+
* context managers for clean color mode, color palette or style switch ([docs](#temporarily-change-colorful-settings))
|
| 110 |
+
* support `len()` on colored strings ([docs](#correctly-support-the-len-protocol))
|
| 111 |
+
* support color names from [X11 rgb.txt](https://en.wikipedia.org/wiki/X11_color_names) ([docs](#1-style-a-string-with-a-method-call-colorfulmodifiers_fgcolor_on_bgcolorstr-nestedfalse))
|
| 112 |
+
* no dependencies
|
| 113 |
+
|
| 114 |
+
## Usage
|
| 115 |
+
|
| 116 |
+
**colorful** supports all major Python versions: *3.5*, *3.6* and *3.7*, *3.8*, *3.9*, *3.10*, *3.11*, *3.12*. <br>
|
| 117 |
+
We recommend to use the latest version released on [PyPI](https://pypi.python.org/pypi/colorful):
|
| 118 |
+
|
| 119 |
+
```bash
|
| 120 |
+
pip install colorful
|
| 121 |
+
```
|
| 122 |
+
|
| 123 |
+
**colorful** does not require any special setup in order to be used:
|
| 124 |
+
|
| 125 |
+
```python
|
| 126 |
+
import colorful as cf
|
| 127 |
+
|
| 128 |
+
print(cf.italic_coral_on_beige('Hello World'))
|
| 129 |
+
print(cf.italic & cf.coral_on_beige | 'Hello World')
|
| 130 |
+
print('{c.italic_coral_on_beige}Hello World{c.reset}'.format(c=cf))
|
| 131 |
+
```
|
| 132 |
+
|
| 133 |
+
Note: the entire documentation assumes `colorful` to be imported as `cf`.
|
| 134 |
+
|
| 135 |
+
See the [Style a string](https://github.com/timofurrer/colorful#style-a-string) section for more information!
|
| 136 |
+
|
| 137 |
+
### Color modes
|
| 138 |
+
|
| 139 |
+
These days terminals not only support the ancient 8 ANSI colors but often they support up to 16 Million colors with *[true color](https://en.wikipedia.org/wiki/Color_depth#True_color_.2824-bit.29)*. And if they don't support *true color* they might support the *[256 ANSI color palette](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors)* at least.
|
| 140 |
+
|
| 141 |
+
**colorful** supports the following color modes:
|
| 142 |
+
|
| 143 |
+
* no colors / disable (``cf.NO_COLORS``)
|
| 144 |
+
* 8 colors -> 8 ANSI colors (``cf.ANSI_8_COLORS``)
|
| 145 |
+
* 256 colors -> 256 ANSI color palette (8bit ``cf.ANSI_256_COLORS``)
|
| 146 |
+
* 16'777'215 colors -> true color (24bit, ``cf.TRUE_COLORS``)
|
| 147 |
+
|
| 148 |
+
By default *colorful* tries to auto detect the best supported color mode by your terminal. Consult [`cf.terminal`](https://github.com/timofurrer/colorful/blob/master/colorful/terminal.py) for more details.
|
| 149 |
+
|
| 150 |
+
However, sometimes it makes sense to specify what color mode should be used.<br>
|
| 151 |
+
**colorful** provides multiple ways to do so:
|
| 152 |
+
|
| 153 |
+
#### (1) specify color mode globally via Python API
|
| 154 |
+
|
| 155 |
+
```python
|
| 156 |
+
cf.disable()
|
| 157 |
+
cf.use_8_ansi_colors()
|
| 158 |
+
cf.use_256_ansi_colors()
|
| 159 |
+
cf.use_true_colors()
|
| 160 |
+
```
|
| 161 |
+
|
| 162 |
+
If you change the color mode during runtime it takes affect immediately and globally.
|
| 163 |
+
|
| 164 |
+
#### (2) enforce color mode globally via environment variable
|
| 165 |
+
|
| 166 |
+
```bash
|
| 167 |
+
COLORFUL_DISABLE=1 python eggs.py # this process will not use ANY coloring
|
| 168 |
+
COLORFUL_FORCE_8_COLORS=1 python eggs.py # this process will use 8 ANSI colors by default
|
| 169 |
+
COLORFUL_FORCE_256_COLORS=1 python eggs.py # this process will use 256 ANSI colors by default
|
| 170 |
+
COLORFUL_FORCE_TRUE_COLORS=1 python eggs.py # this process will use true colors by default
|
| 171 |
+
```
|
| 172 |
+
|
| 173 |
+
#### (3) specify color mode locally via Python API (contextmanager)
|
| 174 |
+
|
| 175 |
+
```python
|
| 176 |
+
with cf.with_8_ansi_colors() as c:
|
| 177 |
+
print(c.italic_coral_on_beige('Hello world'))
|
| 178 |
+
|
| 179 |
+
with cf.with_256_ansi_colors() as c:
|
| 180 |
+
print(c.italic_coral_on_beige('Hello world'))
|
| 181 |
+
|
| 182 |
+
with cf.with_true_colors() as c:
|
| 183 |
+
print(c.italic_coral_on_beige('Hello world'))
|
| 184 |
+
```
|
| 185 |
+
|
| 186 |
+
### Color palette
|
| 187 |
+
|
| 188 |
+
**colorful**'s Python API is based on *color names* like in `cf.bold_white_on_black('Hello')`. During runtime these *color names* are translated into proper [ANSI escape code](https://en.wikipedia.org/wiki/ANSI_escape_code) sequences supported by the *color mode* in use. However, all *color names* are registered in a **color palette** which is basically a mapping between the *color names* and it's corresponding RGB value. Very much like this:
|
| 189 |
+
|
| 190 |
+
```python
|
| 191 |
+
color_palette_example = {
|
| 192 |
+
'black': '#000000',
|
| 193 |
+
'white': '#FFFFFF',
|
| 194 |
+
}
|
| 195 |
+
```
|
| 196 |
+
|
| 197 |
+
*Note: Depending on the color mode which is used the RGB value will be reduced to fit in the value domain of the color mode.*
|
| 198 |
+
|
| 199 |
+
The default color palette is the [X11 rgb.txt](https://en.wikipedia.org/wiki/X11_color_names) palette - it's shipped with *colorful*, thus, you don't have to provide your own.
|
| 200 |
+
*colorful* ships with a second built-in [color palette called *colornames*](https://codepen.io/meodai/full/VMpNdQ/).
|
| 201 |
+
Those colors are from the curated list of the [color-names](https://github.com/meodai/color-names) repository.
|
| 202 |
+
You can use those via the `cf.setup()` method, like this:
|
| 203 |
+
|
| 204 |
+
|
| 205 |
+
```python
|
| 206 |
+
cf.setup(colorpalette=cf.COLORNAMES_COLORS)
|
| 207 |
+
```
|
| 208 |
+
|
| 209 |
+
If you wish to have another color palette from a file as your default color palette you can set the `COLORFUL_DEFAULT_COLOR_PALETTE` environment variable to this file:
|
| 210 |
+
|
| 211 |
+
```bash
|
| 212 |
+
COLORFUL_DEFAULT_COLOR_PALETTE=/usr/share/X11/rgb.txt python spam.py
|
| 213 |
+
```
|
| 214 |
+
|
| 215 |
+
The file either has to be a txt file like the X11 rgb.txt or a JSON file:
|
| 216 |
+
|
| 217 |
+
```json
|
| 218 |
+
[
|
| 219 |
+
{"name": "18th Century Green", "hex":"#a59344"},
|
| 220 |
+
{"name": "1975 Earth Red", "hex":"#7a463a"}
|
| 221 |
+
]
|
| 222 |
+
```
|
| 223 |
+
|
| 224 |
+
#### Custom color palette
|
| 225 |
+
**colorful** supports to update or replace the default color palette with custom colors. The colors have to be specified as RGB hex or channel values:
|
| 226 |
+
|
| 227 |
+
```python
|
| 228 |
+
# corporate identity colors
|
| 229 |
+
ci_colors = {
|
| 230 |
+
'mint': '#c5e8c8', # RGB hex value
|
| 231 |
+
'darkRed': '#c11b55', # RGB hex value
|
| 232 |
+
'lightBlue': (15, 138, 191) # RGB channel triplet
|
| 233 |
+
}
|
| 234 |
+
|
| 235 |
+
# replace the default palette with my custom one
|
| 236 |
+
cf.use_palette(ci_colors)
|
| 237 |
+
# update the default palette with my custom one
|
| 238 |
+
cf.update_palette(ci_colors)
|
| 239 |
+
|
| 240 |
+
# we can use these colors
|
| 241 |
+
print(cf.italic_mint_on_darkRed('My company'))
|
| 242 |
+
```
|
| 243 |
+
|
| 244 |
+
### Styles
|
| 245 |
+
|
| 246 |
+
**colorful** supports some famous color palettes using what's called *styles* in colorful:
|
| 247 |
+
|
| 248 |
+
```python
|
| 249 |
+
cf.use_style('solarized')
|
| 250 |
+
|
| 251 |
+
# print the official solarized colors
|
| 252 |
+
print(cf.yellow('yellow'), cf.orange('orange'),
|
| 253 |
+
cf.red('red'), cf.magenta('magenta'),
|
| 254 |
+
cf.violet('violet'), cf.blue('blue'),
|
| 255 |
+
cf.cyan('cyan'), cf.green('green'))
|
| 256 |
+
```
|
| 257 |
+
|
| 258 |
+
The following styles are already supported:
|
| 259 |
+
|
| 260 |
+
<details open>
|
| 261 |
+
<summary>solarized - <a href="http://ethanschoonover.com/solarized">Website</a></summary>
|
| 262 |
+
<br>
|
| 263 |
+
<img src="https://github.com/timofurrer/colorful/blob/master/examples/solarized_base_colors.png" alt="solarized colors">
|
| 264 |
+
</details>
|
| 265 |
+
<details open>
|
| 266 |
+
<summary>monokai</summary>
|
| 267 |
+
<br>
|
| 268 |
+
<img src="https://github.com/timofurrer/colorful/blob/master/examples/monokai_base_colors.png" alt="monokai colors">
|
| 269 |
+
</details>
|
| 270 |
+
<br>
|
| 271 |
+
|
| 272 |
+
*Note: if you know some awesome color palettes which could be a new style in colorful, please contribute it!*
|
| 273 |
+
|
| 274 |
+
### Style a string
|
| 275 |
+
|
| 276 |
+
**colorful** provides multiple ways to use style a string. Most useful and expressive is probably the *method syntax* where you specify the modifiers and colors in the method name itself and pass the string as argument to this method. However, you can use all the following methods to achive similars things:
|
| 277 |
+
|
| 278 |
+
#### (1) Style a string with a method call `cf.[<modifiers...>]_[<fgColor>]_[on_<bgColor>](str, nested=False)`
|
| 279 |
+
|
| 280 |
+
```python
|
| 281 |
+
print(cf.red('I am red'))
|
| 282 |
+
print(cf.italic_yellow('I am italic and yellow'))
|
| 283 |
+
print(cf.black_on_white('I am black on white'))
|
| 284 |
+
```
|
| 285 |
+
|
| 286 |
+
The method syntax can be one of:
|
| 287 |
+
|
| 288 |
+
* `cf.<modifier>`
|
| 289 |
+
* `cf.<modifier1>_<modifier2>`
|
| 290 |
+
* `cf.<fg_color>`
|
| 291 |
+
* `cf.on_<bg_color>`
|
| 292 |
+
* `cf.<modifiers>_<fg_color>`
|
| 293 |
+
* `cf.<modifiers>_<bg_color>`
|
| 294 |
+
* `cf.<fg_colors>_on_<bg_color>`
|
| 295 |
+
* `cf.<modifiers>_<fg_color>_on_<bg_color>`
|
| 296 |
+
|
| 297 |
+
*Note that multiple `<modifier>`s can be specified at once.*
|
| 298 |
+
|
| 299 |
+
Available modifiers are:
|
| 300 |
+
|
| 301 |
+
* reset (explicitely reset all styles before the passed argument)
|
| 302 |
+
* bold
|
| 303 |
+
* dimmed (not widely supported)
|
| 304 |
+
* italic
|
| 305 |
+
* underlined
|
| 306 |
+
* blinkslow
|
| 307 |
+
* blinkrapid
|
| 308 |
+
* inversed (not widely supported)
|
| 309 |
+
* concealed (not widely supported)
|
| 310 |
+
* struckthrough
|
| 311 |
+
|
| 312 |
+
The available colors depend on the [color palette](#color-palette) you are using. By default all [X11 rgb.txt colors](https://en.wikipedia.org/wiki/X11_color_names) are available.
|
| 313 |
+
|
| 314 |
+
The type of the return value of such a *style method* is `colorful.ColorfulString`. It correctly supports all `str()` methods including [`len()`](#correctly-support-the-len-protocol).
|
| 315 |
+
|
| 316 |
+
As you can see from the syntax in the section name, **colorful** supports nesting styles. See [Nesting styles](#nesting-styles).
|
| 317 |
+
|
| 318 |
+
#### (2) Style a string with `&` and `|`
|
| 319 |
+
|
| 320 |
+
**colorful** implements the `__or__` and `__and__` protocol to combine styles and pipe strings into them:
|
| 321 |
+
|
| 322 |
+
```python
|
| 323 |
+
print(cf.bold & cf.red | 'Hello World')
|
| 324 |
+
print(cf.bold_red_on_black | 'Hello World')
|
| 325 |
+
print(cf.bold | cf.red_on_black('Hello World')
|
| 326 |
+
```
|
| 327 |
+
|
| 328 |
+
*Note: the piping `|` has the same effect as doing a method call to the style.<br>
|
| 329 |
+
So you could do `(cf.bold & cf.red)('Hello World')`*
|
| 330 |
+
|
| 331 |
+
#### (3) Style a string with `cf.format(string, *args, **kwargs)`
|
| 332 |
+
|
| 333 |
+
```python
|
| 334 |
+
print(cf.format('{c.red}I am {what}{c.close_fg_color}', what='red'))
|
| 335 |
+
# alternatively to ``c.close_fg_color`` you can reset every style with ``c.reset``
|
| 336 |
+
print(cf.format('{c.red}I am red{c.reset}'))
|
| 337 |
+
|
| 338 |
+
print(cf.format('{c.italic_yellow}I am italic and yellow{c.no_italic}{c.close_fg_color}'))
|
| 339 |
+
print(cf.format('{c.black_on_white}I am black on white{c.close_fg_color}{c.close_bg_color}'))
|
| 340 |
+
```
|
| 341 |
+
|
| 342 |
+
**colorful** will replace the `{c.<style>}` with the correspnding style. It's **not** necessary to pass a colorful object for `c` to `format()` - colorful will handle that. Every other format argument (`{<name>}`) has to be pass to the `cf.format()` call as *args* or *kwarg*.
|
| 343 |
+
|
| 344 |
+
Note: The same syntax, modifiers and colors for the style in `{c.<style>}` can be used as for [(1) Style a string with a method call](#1-style-a-string-with-a-method-call).
|
| 345 |
+
|
| 346 |
+
#### (4) Style and print a string with `cf.print(*strings, sep=' ', end='\n', file=sys.stdout, flush=False)`
|
| 347 |
+
|
| 348 |
+
```python
|
| 349 |
+
cf.print('{c.italic_yellow}I am italic and yellow{c.no_italic}{c.close_fg_color}')
|
| 350 |
+
cf.print('{c.red}I am red{c.reset}', end='', file=open('log.txt', 'a+'))
|
| 351 |
+
```
|
| 352 |
+
|
| 353 |
+
The `cf.print()` method accepts the same arguments as the Python 3.X [built-in print()](https://docs.python.org/3/library/functions.html#print) function.
|
| 354 |
+
|
| 355 |
+
#### (5) Style a string with [`str.format()`](https://docs.python.org/3.6/library/stdtypes.html#str.format)
|
| 356 |
+
|
| 357 |
+
```python
|
| 358 |
+
print('{c.red}I am red{c.close_fg_color}'.format(c=cf))
|
| 359 |
+
# alternatively to ``c.close_fg_color`` you can reset every style with ``c.reset``
|
| 360 |
+
print('{c.red}I am red{c.reset}'.format(c=cf))
|
| 361 |
+
|
| 362 |
+
print('{c.italic_yellow}I am italic and yellow{c.no_italic}{c.close_fg_color}'.format(
|
| 363 |
+
c=cf))
|
| 364 |
+
print('{c.black_on_white}I am black on white{c.close_fg_color}{c.close_bg_color}'.format(
|
| 365 |
+
c=cf))
|
| 366 |
+
```
|
| 367 |
+
|
| 368 |
+
Note: The same syntax, modifiers and colors for the style in `{c.<style>}` can be used as for [(1) Style a string with a method call](#1-style-a-string-with-a-method-call).
|
| 369 |
+
|
| 370 |
+
#### Nesting styles
|
| 371 |
+
|
| 372 |
+
**colorful** supports to nest styles with it's [method call syntax](#1-style-a-string-with-a-method-call) when setting the parameter `nested` to `True`.
|
| 373 |
+
If you are using `str.format()` like in the first example below you don't even need the `nested=True` flag!
|
| 374 |
+
|
| 375 |
+
The following examples show the behavior:
|
| 376 |
+
|
| 377 |
+
```python
|
| 378 |
+
print(cf.red('red {0} red'.format(cf.white('white'))))
|
| 379 |
+
print(cf.red('red' + cf.white(' white ', nested=True) + 'red'))
|
| 380 |
+
|
| 381 |
+
# if using ``nested=True`` but you don't actually nest
|
| 382 |
+
# it's absolutely fine and will work as expected.
|
| 383 |
+
print(cf.red('red', nested=True) + ' default color')
|
| 384 |
+
```
|
| 385 |
+
|
| 386 |
+
#### Correctly support the [`len()` protocol](https://docs.python.org/3/library/functions.html#len)
|
| 387 |
+
|
| 388 |
+
**colorful** correctly supports the `len()` protocol (`__len__`) on the styled strings. As mentioned above, when you style a string a `colorful.ColorfulString` object is returned. This object returns the length (when calling `len()`) as it would be for the *unstyled string* to integrate styled strings seemlessly into your application.
|
| 389 |
+
|
| 390 |
+
```python
|
| 391 |
+
>>> s = 'Hello World'
|
| 392 |
+
>>> len(s)
|
| 393 |
+
11
|
| 394 |
+
>>> len(cf.yellow(s))
|
| 395 |
+
11
|
| 396 |
+
>>> assert len(s) == len(cf.yellow(s))
|
| 397 |
+
```
|
| 398 |
+
|
| 399 |
+
### Temporarily change colorful settings
|
| 400 |
+
|
| 401 |
+
**colorful** provides a hand full of convenient context managers to change the colorful settings temporarily:
|
| 402 |
+
|
| 403 |
+
#### (1) change color mode
|
| 404 |
+
|
| 405 |
+
Use 8 ANSI colors:
|
| 406 |
+
|
| 407 |
+
```python
|
| 408 |
+
with cf.with_8_ansi_colors() as c:
|
| 409 |
+
print(c.red('I am red'))
|
| 410 |
+
```
|
| 411 |
+
|
| 412 |
+
Use 256 ANSI colors:
|
| 413 |
+
|
| 414 |
+
```python
|
| 415 |
+
with cf.with_256_ansi_colors() as c:
|
| 416 |
+
print(c.red('I am red'))
|
| 417 |
+
```
|
| 418 |
+
|
| 419 |
+
Use true colors:
|
| 420 |
+
|
| 421 |
+
```python
|
| 422 |
+
with cf.with_true_colors() as c:
|
| 423 |
+
print(c.red('I am red'))
|
| 424 |
+
```
|
| 425 |
+
|
| 426 |
+
#### (2) change color palette
|
| 427 |
+
|
| 428 |
+
```python
|
| 429 |
+
# replace the entire color palette
|
| 430 |
+
with cf.with_palette(my_palette) as c:
|
| 431 |
+
print(c.customRed('I am custom red'))
|
| 432 |
+
|
| 433 |
+
# update the color palette
|
| 434 |
+
with cf.with_updated_palette(my_palette) as c:
|
| 435 |
+
print(c.customRed('I am custom red'))
|
| 436 |
+
```
|
| 437 |
+
|
| 438 |
+
#### (3) change style
|
| 439 |
+
|
| 440 |
+
```python
|
| 441 |
+
with cf.with_style('solarized') as c:
|
| 442 |
+
print(c.red('I am solarized red'))
|
| 443 |
+
```
|
| 444 |
+
|
| 445 |
+
***
|
| 446 |
+
|
| 447 |
+
*<p align="center">This project is published under [MIT](LICENSE).<br>A [Timo Furrer](https://tuxtimo.me) project.<br>- :tada: -</p>*
|
.venv/lib/python3.11/site-packages/colorful-0.5.6.dist-info/RECORD
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
colorful-0.5.6.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 2 |
+
colorful-0.5.6.dist-info/LICENSE,sha256=7xRmgVkS4O_Zu2_4JwoI74fCUDmWFzPRYVbh9U3Mfuo,1078
|
| 3 |
+
colorful-0.5.6.dist-info/METADATA,sha256=qsqEukstmSygrz3dxrTvuJG-hYmRBpsD6AZ9B8oPvjA,16697
|
| 4 |
+
colorful-0.5.6.dist-info/RECORD,,
|
| 5 |
+
colorful-0.5.6.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
|
| 6 |
+
colorful-0.5.6.dist-info/top_level.txt,sha256=ZFH7WyWeT2Z4PRtSkDjStdcPwxaLFHZqT-F49X7T48Y,9
|
| 7 |
+
colorful/__init__.py,sha256=ERMiDbdhOhO_oExk0kzH4kijsCs1AXl9PKq-G_1sMOQ,3825
|
| 8 |
+
colorful/__pycache__/__init__.cpython-311.pyc,,
|
| 9 |
+
colorful/__pycache__/ansi.cpython-311.pyc,,
|
| 10 |
+
colorful/__pycache__/colors.cpython-311.pyc,,
|
| 11 |
+
colorful/__pycache__/core.cpython-311.pyc,,
|
| 12 |
+
colorful/__pycache__/styles.cpython-311.pyc,,
|
| 13 |
+
colorful/__pycache__/terminal.cpython-311.pyc,,
|
| 14 |
+
colorful/__pycache__/utils.cpython-311.pyc,,
|
| 15 |
+
colorful/ansi.py,sha256=rSQRXEvrXU2wSDTpTdumFaY2kPdqQncdszTY7q1i1BY,2135
|
| 16 |
+
colorful/colors.py,sha256=VfyluZyHS7wmTN71PU5PJmUeNhI-KJSgp5QtAc2iMqQ,2521
|
| 17 |
+
colorful/core.py,sha256=Ar6ZJQGrYdmFTCRqhFkYYxA-0dFjoo5nVtZUiWrgkqU,19649
|
| 18 |
+
colorful/data/colornames.json,sha256=6NOYEK98Tn39S75DbvaQl4FnGfZEJtVWhmVUx9K6HjM,694864
|
| 19 |
+
colorful/data/rgb.txt,sha256=LIq1rMnrBy9MyIaWg0GIEA0F5Qr10UJVAdmTcAqqMWQ,17394
|
| 20 |
+
colorful/styles.py,sha256=5F0dKVCoR8wxe2zjMZAb0lBmvA0zyX1RZSTZUsDRiEM,1095
|
| 21 |
+
colorful/terminal.py,sha256=8zxwIbswY0ceAmrLQDYByHvej6mqWfnfmFDFQtbWXy4,2038
|
| 22 |
+
colorful/utils.py,sha256=m2IHyoyJ6ybgkljIbPD_nF7hRW-QJcD3dTC6LH6alFQ,976
|
.venv/lib/python3.11/site-packages/colorful-0.5.6.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: bdist_wheel (0.42.0)
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py2-none-any
|
| 5 |
+
Tag: py3-none-any
|
| 6 |
+
|
.venv/lib/python3.11/site-packages/colorful-0.5.6.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
colorful
|
.venv/lib/python3.11/site-packages/grpc/__pycache__/__init__.cpython-311.pyc
ADDED
|
Binary file (94.7 kB). View file
|
|
|
.venv/lib/python3.11/site-packages/grpc/__pycache__/_auth.cpython-311.pyc
ADDED
|
Binary file (3.39 kB). View file
|
|
|
.venv/lib/python3.11/site-packages/grpc/__pycache__/_common.cpython-311.pyc
ADDED
|
Binary file (8.78 kB). View file
|
|
|
.venv/lib/python3.11/site-packages/grpc/__pycache__/_compression.cpython-311.pyc
ADDED
|
Binary file (2.04 kB). View file
|
|
|
.venv/lib/python3.11/site-packages/grpc/__pycache__/_grpcio_metadata.cpython-311.pyc
ADDED
|
Binary file (206 Bytes). View file
|
|
|
.venv/lib/python3.11/site-packages/grpc/__pycache__/_interceptor.cpython-311.pyc
ADDED
|
Binary file (33.4 kB). View file
|
|
|
.venv/lib/python3.11/site-packages/grpc/__pycache__/_observability.cpython-311.pyc
ADDED
|
Binary file (13.7 kB). View file
|
|
|
.venv/lib/python3.11/site-packages/grpc/__pycache__/_plugin_wrapping.cpython-311.pyc
ADDED
|
Binary file (6.4 kB). View file
|
|
|
.venv/lib/python3.11/site-packages/grpc/__pycache__/_runtime_protos.cpython-311.pyc
ADDED
|
Binary file (6.34 kB). View file
|
|
|
.venv/lib/python3.11/site-packages/grpc/__pycache__/_server.cpython-311.pyc
ADDED
|
Binary file (69.2 kB). View file
|
|
|
.venv/lib/python3.11/site-packages/grpc/__pycache__/_simple_stubs.cpython-311.pyc
ADDED
|
Binary file (26.8 kB). View file
|
|
|
.venv/lib/python3.11/site-packages/grpc/__pycache__/_typing.cpython-311.pyc
ADDED
|
Binary file (2.6 kB). View file
|
|
|
.venv/lib/python3.11/site-packages/grpc/__pycache__/_utilities.cpython-311.pyc
ADDED
|
Binary file (12.3 kB). View file
|
|
|
.venv/lib/python3.11/site-packages/grpc/_cython/__init__.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2015 gRPC authors.
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
.venv/lib/python3.11/site-packages/grpc/_cython/__pycache__/__init__.cpython-311.pyc
ADDED
|
Binary file (185 Bytes). View file
|
|
|
.venv/lib/python3.11/site-packages/grpc/_cython/_credentials/roots.pem
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
.venv/lib/python3.11/site-packages/grpc/_cython/_cygrpc/__init__.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2015 gRPC authors.
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
.venv/lib/python3.11/site-packages/grpc/_cython/_cygrpc/__pycache__/__init__.cpython-311.pyc
ADDED
|
Binary file (193 Bytes). View file
|
|
|
.venv/lib/python3.11/site-packages/grpc/aio/__init__.py
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2019 gRPC authors.
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
| 14 |
+
"""gRPC's Asynchronous Python API.
|
| 15 |
+
|
| 16 |
+
gRPC Async API objects may only be used on the thread on which they were
|
| 17 |
+
created. AsyncIO doesn't provide thread safety for most of its APIs.
|
| 18 |
+
"""
|
| 19 |
+
|
| 20 |
+
from typing import Any, Optional, Sequence, Tuple
|
| 21 |
+
|
| 22 |
+
import grpc
|
| 23 |
+
from grpc._cython.cygrpc import AbortError
|
| 24 |
+
from grpc._cython.cygrpc import BaseError
|
| 25 |
+
from grpc._cython.cygrpc import EOF
|
| 26 |
+
from grpc._cython.cygrpc import InternalError
|
| 27 |
+
from grpc._cython.cygrpc import UsageError
|
| 28 |
+
from grpc._cython.cygrpc import init_grpc_aio
|
| 29 |
+
from grpc._cython.cygrpc import shutdown_grpc_aio
|
| 30 |
+
|
| 31 |
+
from ._base_call import Call
|
| 32 |
+
from ._base_call import RpcContext
|
| 33 |
+
from ._base_call import StreamStreamCall
|
| 34 |
+
from ._base_call import StreamUnaryCall
|
| 35 |
+
from ._base_call import UnaryStreamCall
|
| 36 |
+
from ._base_call import UnaryUnaryCall
|
| 37 |
+
from ._base_channel import Channel
|
| 38 |
+
from ._base_channel import StreamStreamMultiCallable
|
| 39 |
+
from ._base_channel import StreamUnaryMultiCallable
|
| 40 |
+
from ._base_channel import UnaryStreamMultiCallable
|
| 41 |
+
from ._base_channel import UnaryUnaryMultiCallable
|
| 42 |
+
from ._base_server import Server
|
| 43 |
+
from ._base_server import ServicerContext
|
| 44 |
+
from ._call import AioRpcError
|
| 45 |
+
from ._channel import insecure_channel
|
| 46 |
+
from ._channel import secure_channel
|
| 47 |
+
from ._interceptor import ClientCallDetails
|
| 48 |
+
from ._interceptor import ClientInterceptor
|
| 49 |
+
from ._interceptor import InterceptedUnaryUnaryCall
|
| 50 |
+
from ._interceptor import ServerInterceptor
|
| 51 |
+
from ._interceptor import StreamStreamClientInterceptor
|
| 52 |
+
from ._interceptor import StreamUnaryClientInterceptor
|
| 53 |
+
from ._interceptor import UnaryStreamClientInterceptor
|
| 54 |
+
from ._interceptor import UnaryUnaryClientInterceptor
|
| 55 |
+
from ._metadata import Metadata
|
| 56 |
+
from ._server import server
|
| 57 |
+
from ._typing import ChannelArgumentType
|
| 58 |
+
|
| 59 |
+
################################### __all__ #################################
|
| 60 |
+
|
| 61 |
+
__all__ = (
|
| 62 |
+
"init_grpc_aio",
|
| 63 |
+
"shutdown_grpc_aio",
|
| 64 |
+
"AioRpcError",
|
| 65 |
+
"RpcContext",
|
| 66 |
+
"Call",
|
| 67 |
+
"UnaryUnaryCall",
|
| 68 |
+
"UnaryStreamCall",
|
| 69 |
+
"StreamUnaryCall",
|
| 70 |
+
"StreamStreamCall",
|
| 71 |
+
"Channel",
|
| 72 |
+
"UnaryUnaryMultiCallable",
|
| 73 |
+
"UnaryStreamMultiCallable",
|
| 74 |
+
"StreamUnaryMultiCallable",
|
| 75 |
+
"StreamStreamMultiCallable",
|
| 76 |
+
"ClientCallDetails",
|
| 77 |
+
"ClientInterceptor",
|
| 78 |
+
"UnaryStreamClientInterceptor",
|
| 79 |
+
"UnaryUnaryClientInterceptor",
|
| 80 |
+
"StreamUnaryClientInterceptor",
|
| 81 |
+
"StreamStreamClientInterceptor",
|
| 82 |
+
"InterceptedUnaryUnaryCall",
|
| 83 |
+
"ServerInterceptor",
|
| 84 |
+
"insecure_channel",
|
| 85 |
+
"server",
|
| 86 |
+
"Server",
|
| 87 |
+
"ServicerContext",
|
| 88 |
+
"EOF",
|
| 89 |
+
"secure_channel",
|
| 90 |
+
"AbortError",
|
| 91 |
+
"BaseError",
|
| 92 |
+
"UsageError",
|
| 93 |
+
"InternalError",
|
| 94 |
+
"Metadata",
|
| 95 |
+
)
|
.venv/lib/python3.11/site-packages/grpc/aio/__pycache__/__init__.cpython-311.pyc
ADDED
|
Binary file (2.7 kB). View file
|
|
|
.venv/lib/python3.11/site-packages/grpc/aio/__pycache__/_base_call.cpython-311.pyc
ADDED
|
Binary file (9.89 kB). View file
|
|
|
.venv/lib/python3.11/site-packages/grpc/aio/__pycache__/_base_channel.cpython-311.pyc
ADDED
|
Binary file (16.5 kB). View file
|
|
|
.venv/lib/python3.11/site-packages/grpc/aio/__pycache__/_base_server.cpython-311.pyc
ADDED
|
Binary file (16.4 kB). View file
|
|
|
.venv/lib/python3.11/site-packages/grpc/aio/__pycache__/_call.cpython-311.pyc
ADDED
|
Binary file (37.6 kB). View file
|
|
|
.venv/lib/python3.11/site-packages/grpc/aio/__pycache__/_channel.cpython-311.pyc
ADDED
|
Binary file (22.8 kB). View file
|
|
|