pboot-aio 4.16.0__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.
- pboot_aio-4.16.0/.gitignore +9 -0
- pboot_aio-4.16.0/CHANGES.md +22 -0
- pboot_aio-4.16.0/LICENSE.md +20 -0
- pboot_aio-4.16.0/PKG-INFO +98 -0
- pboot_aio-4.16.0/README.rst +73 -0
- pboot_aio-4.16.0/pyproject.toml +87 -0
- pboot_aio-4.16.0/src/pboot/__init__.py +10 -0
- pboot_aio-4.16.0/src/pboot/aio/__init__.py +156 -0
- pboot_aio-4.16.0/src/pboot/aio/_backends/__init__.py +0 -0
- pboot_aio-4.16.0/src/pboot/aio/_backends/_asyncio.py +3300 -0
- pboot_aio-4.16.0/src/pboot/aio/_backends/_trio.py +1489 -0
- pboot_aio-4.16.0/src/pboot/aio/_core/__init__.py +0 -0
- pboot_aio-4.16.0/src/pboot/aio/_core/_asyncio_selector_thread.py +167 -0
- pboot_aio-4.16.0/src/pboot/aio/_core/_concurrency_utils.py +156 -0
- pboot_aio-4.16.0/src/pboot/aio/_core/_contextmanagers.py +200 -0
- pboot_aio-4.16.0/src/pboot/aio/_core/_eventloop.py +244 -0
- pboot_aio-4.16.0/src/pboot/aio/_core/_exceptions.py +205 -0
- pboot_aio-4.16.0/src/pboot/aio/_core/_fileio.py +1047 -0
- pboot_aio-4.16.0/src/pboot/aio/_core/_futures.py +191 -0
- pboot_aio-4.16.0/src/pboot/aio/_core/_resources.py +18 -0
- pboot_aio-4.16.0/src/pboot/aio/_core/_signals.py +29 -0
- pboot_aio-4.16.0/src/pboot/aio/_core/_sockets.py +1032 -0
- pboot_aio-4.16.0/src/pboot/aio/_core/_streams.py +52 -0
- pboot_aio-4.16.0/src/pboot/aio/_core/_subprocesses.py +196 -0
- pboot_aio-4.16.0/src/pboot/aio/_core/_synchronization.py +780 -0
- pboot_aio-4.16.0/src/pboot/aio/_core/_tasks.py +464 -0
- pboot_aio-4.16.0/src/pboot/aio/_core/_tempfile.py +623 -0
- pboot_aio-4.16.0/src/pboot/aio/_core/_testing.py +82 -0
- pboot_aio-4.16.0/src/pboot/aio/_core/_typedattr.py +90 -0
- pboot_aio-4.16.0/src/pboot/aio/_lazyimport.py +176 -0
- pboot_aio-4.16.0/src/pboot/aio/abc/__init__.py +63 -0
- pboot_aio-4.16.0/src/pboot/aio/abc/_eventloop.py +443 -0
- pboot_aio-4.16.0/src/pboot/aio/abc/_resources.py +39 -0
- pboot_aio-4.16.0/src/pboot/aio/abc/_sockets.py +401 -0
- pboot_aio-4.16.0/src/pboot/aio/abc/_streams.py +237 -0
- pboot_aio-4.16.0/src/pboot/aio/abc/_subprocesses.py +82 -0
- pboot_aio-4.16.0/src/pboot/aio/abc/_tasks.py +223 -0
- pboot_aio-4.16.0/src/pboot/aio/abc/_testing.py +79 -0
- pboot_aio-4.16.0/src/pboot/aio/from_thread.py +689 -0
- pboot_aio-4.16.0/src/pboot/aio/functools.py +400 -0
- pboot_aio-4.16.0/src/pboot/aio/itertools.py +632 -0
- pboot_aio-4.16.0/src/pboot/aio/lowlevel.py +228 -0
- pboot_aio-4.16.0/src/pboot/aio/py.typed +0 -0
- pboot_aio-4.16.0/src/pboot/aio/pytest_plugin.py +408 -0
- pboot_aio-4.16.0/src/pboot/aio/streams/__init__.py +0 -0
- pboot_aio-4.16.0/src/pboot/aio/streams/buffered.py +212 -0
- pboot_aio-4.16.0/src/pboot/aio/streams/file.py +162 -0
- pboot_aio-4.16.0/src/pboot/aio/streams/memory.py +365 -0
- pboot_aio-4.16.0/src/pboot/aio/streams/stapled.py +160 -0
- pboot_aio-4.16.0/src/pboot/aio/streams/text.py +189 -0
- pboot_aio-4.16.0/src/pboot/aio/streams/tls.py +450 -0
- pboot_aio-4.16.0/src/pboot/aio/to_interpreter.py +246 -0
- pboot_aio-4.16.0/src/pboot/aio/to_process.py +269 -0
- pboot_aio-4.16.0/src/pboot/aio/to_thread.py +80 -0
- pboot_aio-4.16.0/tests/__init__.py +0 -0
- pboot_aio-4.16.0/tests/conftest.py +209 -0
- pboot_aio-4.16.0/tests/streams/__init__.py +0 -0
- pboot_aio-4.16.0/tests/streams/test_buffered.py +183 -0
- pboot_aio-4.16.0/tests/streams/test_file.py +143 -0
- pboot_aio-4.16.0/tests/streams/test_memory.py +548 -0
- pboot_aio-4.16.0/tests/streams/test_stapled.py +241 -0
- pboot_aio-4.16.0/tests/streams/test_text.py +136 -0
- pboot_aio-4.16.0/tests/streams/test_tls.py +664 -0
- pboot_aio-4.16.0/tests/test_all_attributes.py +49 -0
- pboot_aio-4.16.0/tests/test_concurrency_utils.py +143 -0
- pboot_aio-4.16.0/tests/test_contextmanagers.py +256 -0
- pboot_aio-4.16.0/tests/test_debugging.py +162 -0
- pboot_aio-4.16.0/tests/test_eventloop.py +174 -0
- pboot_aio-4.16.0/tests/test_fileio.py +979 -0
- pboot_aio-4.16.0/tests/test_from_thread.py +1088 -0
- pboot_aio-4.16.0/tests/test_functools.py +525 -0
- pboot_aio-4.16.0/tests/test_futures.py +168 -0
- pboot_aio-4.16.0/tests/test_itertools.py +1021 -0
- pboot_aio-4.16.0/tests/test_lazyimport.py +194 -0
- pboot_aio-4.16.0/tests/test_lowlevel.py +149 -0
- pboot_aio-4.16.0/tests/test_pytest_plugin.py +912 -0
- pboot_aio-4.16.0/tests/test_signals.py +63 -0
- pboot_aio-4.16.0/tests/test_sockets.py +3485 -0
- pboot_aio-4.16.0/tests/test_subprocesses.py +495 -0
- pboot_aio-4.16.0/tests/test_synchronization.py +1112 -0
- pboot_aio-4.16.0/tests/test_taskgroups.py +2588 -0
- pboot_aio-4.16.0/tests/test_tempfile.py +321 -0
- pboot_aio-4.16.0/tests/test_to_interpreter.py +51 -0
- pboot_aio-4.16.0/tests/test_to_process.py +175 -0
- pboot_aio-4.16.0/tests/test_to_thread.py +528 -0
- pboot_aio-4.16.0/tests/test_typedattr.py +40 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
## 4.16.0
|
|
2
|
+
|
|
3
|
+
- Fork of AnyIO 4.16.0. The module lives at ``pboot.aio``; every public and
|
|
4
|
+
internal absolute reference was rewritten, including the backend import in
|
|
5
|
+
`_core/_eventloop.py` and the selector-thread imports in
|
|
6
|
+
`_backends/_asyncio.py`.
|
|
7
|
+
- ``typing_extensions`` is replaced by ``pboot.typing`` (the ``pboot-typing``
|
|
8
|
+
distribution), which is byte-identical to typing_extensions 4.16.0.
|
|
9
|
+
- ``exceptiongroup`` is gone: this fork requires Python 3.11 or newer, where
|
|
10
|
+
exception groups are built in.
|
|
11
|
+
- ``idna`` is now an extra (``pboot-aio[idna]``). It is only imported when a
|
|
12
|
+
host name is not pure ASCII, so plain sockets need nothing extra.
|
|
13
|
+
- The pytest plugin registers as ``pboot_aio`` and keeps the upstream fixture
|
|
14
|
+
and marker names (``anyio_backend``, ``anyio_backend_name``, ...).
|
|
15
|
+
|
|
16
|
+
### Test status
|
|
17
|
+
|
|
18
|
+
The upstream suite runs unchanged against this fork: 4342 passed, 409 skipped
|
|
19
|
+
(5 xfailed). Eight tests fail on this machine and fail identically against
|
|
20
|
+
upstream AnyIO here — they all depend on signal delivery
|
|
21
|
+
(`open_signal_receiver`, a child process receiving `SIGTERM`, a child pytest
|
|
22
|
+
receiving `SIGINT`), verified with a side-by-side probe against `anyio` 4.16.0.
|
|
@@ -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.
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: pboot-aio
|
|
3
|
+
Version: 4.16.0
|
|
4
|
+
Summary: The AnyIO 4.16.0 fork that ships with pboot, under the pboot namespace.
|
|
5
|
+
Project-URL: Source, https://gitee.com/pboot-org/pboot-aio
|
|
6
|
+
Project-URL: Homepage, https://gitee.com/pboot-org/pboot
|
|
7
|
+
Maintainer: pboot-org
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE.md
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Framework :: AnyIO
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Classifier: Programming Language :: Python
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
17
|
+
Classifier: Typing :: Typed
|
|
18
|
+
Requires-Python: >=3.11
|
|
19
|
+
Requires-Dist: pboot-typing>=1.1.0
|
|
20
|
+
Provides-Extra: idna
|
|
21
|
+
Requires-Dist: idna>=2.8; extra == 'idna'
|
|
22
|
+
Provides-Extra: trio
|
|
23
|
+
Requires-Dist: trio>=0.32.0; extra == 'trio'
|
|
24
|
+
Description-Content-Type: text/x-rst
|
|
25
|
+
|
|
26
|
+
pboot-aio
|
|
27
|
+
=========
|
|
28
|
+
|
|
29
|
+
The AnyIO 4.16.0 fork that ships with `pboot <https://gitee.com/pboot-org/pboot>`_.
|
|
30
|
+
The API is upstream's, imported from ``pboot.aio`` instead of ``anyio``:
|
|
31
|
+
|
|
32
|
+
.. code-block:: python
|
|
33
|
+
|
|
34
|
+
from pboot.aio import create_task_group, run, sleep
|
|
35
|
+
|
|
36
|
+
This distribution is what ``pboot-kernel`` runs on. It keeps AnyIO's behaviour
|
|
37
|
+
bit for bit; only the package path and the dependency list differ (see
|
|
38
|
+
``CHANGES.md``).
|
|
39
|
+
|
|
40
|
+
AnyIO is an asynchronous networking and concurrency library that works on top of either asyncio_ or
|
|
41
|
+
Trio_. It implements Trio-like `structured concurrency`_ (SC) on top of asyncio and works in harmony
|
|
42
|
+
with the native SC of Trio itself.
|
|
43
|
+
|
|
44
|
+
Applications and libraries written against AnyIO's API will run unmodified on either asyncio_ or
|
|
45
|
+
Trio_. AnyIO can also be adopted into a library or application incrementally – bit by bit, no full
|
|
46
|
+
refactoring necessary. It will blend in with the native libraries of your chosen backend.
|
|
47
|
+
|
|
48
|
+
To find out why you might want to use AnyIO's APIs instead of asyncio's, you can read about it
|
|
49
|
+
`here <https://anyio.readthedocs.io/en/stable/why.html>`_.
|
|
50
|
+
|
|
51
|
+
Documentation
|
|
52
|
+
-------------
|
|
53
|
+
|
|
54
|
+
View full documentation at: https://anyio.readthedocs.io/
|
|
55
|
+
|
|
56
|
+
Features
|
|
57
|
+
--------
|
|
58
|
+
|
|
59
|
+
AnyIO offers the following functionality:
|
|
60
|
+
|
|
61
|
+
* Task groups (nurseries_ in trio terminology)
|
|
62
|
+
* High-level networking (TCP, UDP and UNIX sockets)
|
|
63
|
+
|
|
64
|
+
* `Happy eyeballs`_ algorithm for TCP connections (more robust than that of asyncio on Python
|
|
65
|
+
3.8)
|
|
66
|
+
* async/await style UDP sockets (unlike asyncio where you still have to use Transports and
|
|
67
|
+
Protocols)
|
|
68
|
+
|
|
69
|
+
* A versatile API for byte streams and object streams
|
|
70
|
+
* Inter-task synchronization and communication (locks, conditions, events, semaphores, object
|
|
71
|
+
streams and futures)
|
|
72
|
+
* Worker threads
|
|
73
|
+
* Subprocesses
|
|
74
|
+
* Subinterpreter support for code parallelization (on Python 3.13 and later)
|
|
75
|
+
* Asynchronous file I/O (using worker threads)
|
|
76
|
+
* Signal handling
|
|
77
|
+
* Asynchronous versions of the functools_ and itertools_ modules
|
|
78
|
+
|
|
79
|
+
AnyIO also comes with its own pytest_ plugin which also supports asynchronous fixtures.
|
|
80
|
+
It even works with the popular Hypothesis_ library.
|
|
81
|
+
|
|
82
|
+
.. _asyncio: https://docs.python.org/3/library/asyncio.html
|
|
83
|
+
.. _Trio: https://github.com/python-trio/trio
|
|
84
|
+
.. _structured concurrency: https://en.wikipedia.org/wiki/Structured_concurrency
|
|
85
|
+
.. _nurseries: https://trio.readthedocs.io/en/stable/reference-core.html#nurseries-and-spawning
|
|
86
|
+
.. _Happy eyeballs: https://en.wikipedia.org/wiki/Happy_Eyeballs
|
|
87
|
+
.. _pytest: https://docs.pytest.org/en/latest/
|
|
88
|
+
.. _functools: https://docs.python.org/3/library/functools.html
|
|
89
|
+
.. _itertools: https://docs.python.org/3/library/itertools.html
|
|
90
|
+
.. _Hypothesis: https://hypothesis.works/
|
|
91
|
+
|
|
92
|
+
Security contact information
|
|
93
|
+
----------------------------
|
|
94
|
+
|
|
95
|
+
To report a security vulnerability, please use the `Tidelift security contact`_.
|
|
96
|
+
Tidelift will coordinate the fix and disclosure.
|
|
97
|
+
|
|
98
|
+
.. _Tidelift security contact: https://tidelift.com/security
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
pboot-aio
|
|
2
|
+
=========
|
|
3
|
+
|
|
4
|
+
The AnyIO 4.16.0 fork that ships with `pboot <https://gitee.com/pboot-org/pboot>`_.
|
|
5
|
+
The API is upstream's, imported from ``pboot.aio`` instead of ``anyio``:
|
|
6
|
+
|
|
7
|
+
.. code-block:: python
|
|
8
|
+
|
|
9
|
+
from pboot.aio import create_task_group, run, sleep
|
|
10
|
+
|
|
11
|
+
This distribution is what ``pboot-kernel`` runs on. It keeps AnyIO's behaviour
|
|
12
|
+
bit for bit; only the package path and the dependency list differ (see
|
|
13
|
+
``CHANGES.md``).
|
|
14
|
+
|
|
15
|
+
AnyIO is an asynchronous networking and concurrency library that works on top of either asyncio_ or
|
|
16
|
+
Trio_. It implements Trio-like `structured concurrency`_ (SC) on top of asyncio and works in harmony
|
|
17
|
+
with the native SC of Trio itself.
|
|
18
|
+
|
|
19
|
+
Applications and libraries written against AnyIO's API will run unmodified on either asyncio_ or
|
|
20
|
+
Trio_. AnyIO can also be adopted into a library or application incrementally – bit by bit, no full
|
|
21
|
+
refactoring necessary. It will blend in with the native libraries of your chosen backend.
|
|
22
|
+
|
|
23
|
+
To find out why you might want to use AnyIO's APIs instead of asyncio's, you can read about it
|
|
24
|
+
`here <https://anyio.readthedocs.io/en/stable/why.html>`_.
|
|
25
|
+
|
|
26
|
+
Documentation
|
|
27
|
+
-------------
|
|
28
|
+
|
|
29
|
+
View full documentation at: https://anyio.readthedocs.io/
|
|
30
|
+
|
|
31
|
+
Features
|
|
32
|
+
--------
|
|
33
|
+
|
|
34
|
+
AnyIO offers the following functionality:
|
|
35
|
+
|
|
36
|
+
* Task groups (nurseries_ in trio terminology)
|
|
37
|
+
* High-level networking (TCP, UDP and UNIX sockets)
|
|
38
|
+
|
|
39
|
+
* `Happy eyeballs`_ algorithm for TCP connections (more robust than that of asyncio on Python
|
|
40
|
+
3.8)
|
|
41
|
+
* async/await style UDP sockets (unlike asyncio where you still have to use Transports and
|
|
42
|
+
Protocols)
|
|
43
|
+
|
|
44
|
+
* A versatile API for byte streams and object streams
|
|
45
|
+
* Inter-task synchronization and communication (locks, conditions, events, semaphores, object
|
|
46
|
+
streams and futures)
|
|
47
|
+
* Worker threads
|
|
48
|
+
* Subprocesses
|
|
49
|
+
* Subinterpreter support for code parallelization (on Python 3.13 and later)
|
|
50
|
+
* Asynchronous file I/O (using worker threads)
|
|
51
|
+
* Signal handling
|
|
52
|
+
* Asynchronous versions of the functools_ and itertools_ modules
|
|
53
|
+
|
|
54
|
+
AnyIO also comes with its own pytest_ plugin which also supports asynchronous fixtures.
|
|
55
|
+
It even works with the popular Hypothesis_ library.
|
|
56
|
+
|
|
57
|
+
.. _asyncio: https://docs.python.org/3/library/asyncio.html
|
|
58
|
+
.. _Trio: https://github.com/python-trio/trio
|
|
59
|
+
.. _structured concurrency: https://en.wikipedia.org/wiki/Structured_concurrency
|
|
60
|
+
.. _nurseries: https://trio.readthedocs.io/en/stable/reference-core.html#nurseries-and-spawning
|
|
61
|
+
.. _Happy eyeballs: https://en.wikipedia.org/wiki/Happy_Eyeballs
|
|
62
|
+
.. _pytest: https://docs.pytest.org/en/latest/
|
|
63
|
+
.. _functools: https://docs.python.org/3/library/functools.html
|
|
64
|
+
.. _itertools: https://docs.python.org/3/library/itertools.html
|
|
65
|
+
.. _Hypothesis: https://hypothesis.works/
|
|
66
|
+
|
|
67
|
+
Security contact information
|
|
68
|
+
----------------------------
|
|
69
|
+
|
|
70
|
+
To report a security vulnerability, please use the `Tidelift security contact`_.
|
|
71
|
+
Tidelift will coordinate the fix and disclosure.
|
|
72
|
+
|
|
73
|
+
.. _Tidelift security contact: https://tidelift.com/security
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "pboot-aio"
|
|
3
|
+
version = "4.16.0"
|
|
4
|
+
description = "The AnyIO 4.16.0 fork that ships with pboot, under the pboot namespace."
|
|
5
|
+
readme = "README.rst"
|
|
6
|
+
license = "MIT"
|
|
7
|
+
license-files = ["LICENSE.md"]
|
|
8
|
+
maintainers = [{name = "pboot-org"}]
|
|
9
|
+
classifiers = [
|
|
10
|
+
"Development Status :: 5 - Production/Stable",
|
|
11
|
+
"Framework :: AnyIO",
|
|
12
|
+
"Intended Audience :: Developers",
|
|
13
|
+
"Operating System :: OS Independent",
|
|
14
|
+
"Programming Language :: Python",
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
17
|
+
"Typing :: Typed",
|
|
18
|
+
]
|
|
19
|
+
requires-python = ">=3.11"
|
|
20
|
+
dependencies = [
|
|
21
|
+
"pboot-typing>=1.1.0",
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
[project.optional-dependencies]
|
|
25
|
+
# Only needed to resolve non-ASCII host names (IDNA 2008 / UTS #46).
|
|
26
|
+
idna = ["idna>=2.8"]
|
|
27
|
+
trio = ["trio>=0.32.0"]
|
|
28
|
+
|
|
29
|
+
[project.entry-points.pytest11]
|
|
30
|
+
pboot_aio = "pboot.aio.pytest_plugin"
|
|
31
|
+
|
|
32
|
+
[dependency-groups]
|
|
33
|
+
test = [
|
|
34
|
+
"blockbuster>=1.5.29",
|
|
35
|
+
"hypothesis>=4.18.2",
|
|
36
|
+
"psutil>=5.9",
|
|
37
|
+
"pytest>=9.0",
|
|
38
|
+
"pytest-mock>=3.14",
|
|
39
|
+
"pytest-timeout>=2.4.0",
|
|
40
|
+
"trio>=0.32.0",
|
|
41
|
+
"trustme>=1.0.0",
|
|
42
|
+
"truststore>=0.9.1",
|
|
43
|
+
"uvloop>=0.22.1; platform_python_implementation == 'CPython' and platform_system != 'Windows'",
|
|
44
|
+
]
|
|
45
|
+
|
|
46
|
+
[project.urls]
|
|
47
|
+
Source = "https://gitee.com/pboot-org/pboot-aio"
|
|
48
|
+
Homepage = "https://gitee.com/pboot-org/pboot"
|
|
49
|
+
|
|
50
|
+
[build-system]
|
|
51
|
+
requires = ["hatchling"]
|
|
52
|
+
build-backend = "hatchling.build"
|
|
53
|
+
|
|
54
|
+
[tool.hatch.version]
|
|
55
|
+
path = "src/pboot/aio/__init__.py"
|
|
56
|
+
|
|
57
|
+
[tool.hatch.build.targets.wheel]
|
|
58
|
+
only-include = ["src/pboot/aio"]
|
|
59
|
+
sources = ["src"]
|
|
60
|
+
|
|
61
|
+
[tool.hatch.build.targets.sdist]
|
|
62
|
+
include = ["src", "tests", "README.rst", "CHANGES.md", "LICENSE.md", "pyproject.toml"]
|
|
63
|
+
|
|
64
|
+
[tool.pytest.ini_options]
|
|
65
|
+
testpaths = ["tests"]
|
|
66
|
+
addopts = [
|
|
67
|
+
"-rsfE",
|
|
68
|
+
"--tb=short",
|
|
69
|
+
"--strict-config",
|
|
70
|
+
"--strict-markers",
|
|
71
|
+
"-p", "pboot_aio",
|
|
72
|
+
"-p", "pytest_mock",
|
|
73
|
+
"-p", "timeout",
|
|
74
|
+
"-p", "no:asyncio",
|
|
75
|
+
"-p", "no:trio",
|
|
76
|
+
]
|
|
77
|
+
anyio_mode = "auto"
|
|
78
|
+
timeout = "20"
|
|
79
|
+
xfail_strict = true
|
|
80
|
+
filterwarnings = [
|
|
81
|
+
"error",
|
|
82
|
+
"ignore:unclosed transport <_ProactorSocketTransport.*:ResourceWarning",
|
|
83
|
+
"ignore:Module globals; __loader__ != __spec__.loader:DeprecationWarning:",
|
|
84
|
+
]
|
|
85
|
+
markers = [
|
|
86
|
+
"network: marks tests as requiring Internet access",
|
|
87
|
+
]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"""Namespace shim for source checkouts.
|
|
2
|
+
|
|
3
|
+
The wheel only ships ``pboot/aio``; this file exists so ``import pboot.aio``
|
|
4
|
+
works when ``src`` is on ``sys.path`` without an install. It is excluded from
|
|
5
|
+
the built distribution, so it never shadows the real ``pboot`` package.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
import pkgutil
|
|
9
|
+
|
|
10
|
+
__path__ = pkgutil.extend_path(__path__, __name__)
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
__version__ = "4.16.0"
|
|
4
|
+
|
|
5
|
+
from typing import TYPE_CHECKING
|
|
6
|
+
|
|
7
|
+
from ._lazyimport import (
|
|
8
|
+
fix_package_names,
|
|
9
|
+
install_lazy_importer,
|
|
10
|
+
set_deprecated_aliases,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
if TYPE_CHECKING or not install_lazy_importer():
|
|
14
|
+
from ._core._concurrency_utils import amap as amap
|
|
15
|
+
from ._core._concurrency_utils import as_completed as as_completed
|
|
16
|
+
from ._core._concurrency_utils import gather as gather
|
|
17
|
+
from ._core._contextmanagers import (
|
|
18
|
+
AsyncContextManagerMixin as AsyncContextManagerMixin,
|
|
19
|
+
)
|
|
20
|
+
from ._core._contextmanagers import ContextManagerMixin as ContextManagerMixin
|
|
21
|
+
from ._core._eventloop import current_time as current_time
|
|
22
|
+
from ._core._eventloop import get_all_backends as get_all_backends
|
|
23
|
+
from ._core._eventloop import get_available_backends as get_available_backends
|
|
24
|
+
from ._core._eventloop import get_cancelled_exc_class as get_cancelled_exc_class
|
|
25
|
+
from ._core._eventloop import run as run
|
|
26
|
+
from ._core._eventloop import sleep as sleep
|
|
27
|
+
from ._core._eventloop import sleep_forever as sleep_forever
|
|
28
|
+
from ._core._eventloop import sleep_until as sleep_until
|
|
29
|
+
from ._core._exceptions import BrokenResourceError as BrokenResourceError
|
|
30
|
+
from ._core._exceptions import BrokenWorkerInterpreter as BrokenWorkerInterpreter
|
|
31
|
+
from ._core._exceptions import BrokenWorkerProcess as BrokenWorkerProcess
|
|
32
|
+
from ._core._exceptions import BusyResourceError as BusyResourceError
|
|
33
|
+
from ._core._exceptions import ClosedResourceError as ClosedResourceError
|
|
34
|
+
from ._core._exceptions import ConnectionFailed as ConnectionFailed
|
|
35
|
+
from ._core._exceptions import DelimiterNotFound as DelimiterNotFound
|
|
36
|
+
from ._core._exceptions import EndOfStream as EndOfStream
|
|
37
|
+
from ._core._exceptions import FutureAlreadyFinished as FutureAlreadyFinished
|
|
38
|
+
from ._core._exceptions import FutureCancelled as FutureCancelled
|
|
39
|
+
from ._core._exceptions import FutureFailed as FutureFailed
|
|
40
|
+
from ._core._exceptions import FutureNotFinished as FutureNotFinished
|
|
41
|
+
from ._core._exceptions import IncompleteRead as IncompleteRead
|
|
42
|
+
from ._core._exceptions import NoEventLoopError as NoEventLoopError
|
|
43
|
+
from ._core._exceptions import RunFinishedError as RunFinishedError
|
|
44
|
+
from ._core._exceptions import TaskCancelled as TaskCancelled
|
|
45
|
+
from ._core._exceptions import TaskFailed as TaskFailed
|
|
46
|
+
from ._core._exceptions import TaskNotFinished as TaskNotFinished
|
|
47
|
+
from ._core._exceptions import (
|
|
48
|
+
TypedAttributeLookupError as TypedAttributeLookupError,
|
|
49
|
+
)
|
|
50
|
+
from ._core._exceptions import WouldBlock as WouldBlock
|
|
51
|
+
from ._core._fileio import AsyncFile as AsyncFile
|
|
52
|
+
from ._core._fileio import Path as Path
|
|
53
|
+
from ._core._fileio import open_file as open_file
|
|
54
|
+
from ._core._fileio import wrap_file as wrap_file
|
|
55
|
+
from ._core._futures import Future as Future
|
|
56
|
+
from ._core._resources import aclose_forcefully as aclose_forcefully
|
|
57
|
+
from ._core._signals import open_signal_receiver as open_signal_receiver
|
|
58
|
+
from ._core._sockets import TCPConnectable as TCPConnectable
|
|
59
|
+
from ._core._sockets import UNIXConnectable as UNIXConnectable
|
|
60
|
+
from ._core._sockets import as_connectable as as_connectable
|
|
61
|
+
from ._core._sockets import connect_tcp as connect_tcp
|
|
62
|
+
from ._core._sockets import connect_unix as connect_unix
|
|
63
|
+
from ._core._sockets import (
|
|
64
|
+
create_connected_udp_socket as create_connected_udp_socket,
|
|
65
|
+
)
|
|
66
|
+
from ._core._sockets import (
|
|
67
|
+
create_connected_unix_datagram_socket as create_connected_unix_datagram_socket,
|
|
68
|
+
)
|
|
69
|
+
from ._core._sockets import create_tcp_listener as create_tcp_listener
|
|
70
|
+
from ._core._sockets import create_udp_socket as create_udp_socket
|
|
71
|
+
from ._core._sockets import (
|
|
72
|
+
create_unix_datagram_socket as create_unix_datagram_socket,
|
|
73
|
+
)
|
|
74
|
+
from ._core._sockets import create_unix_listener as create_unix_listener
|
|
75
|
+
from ._core._sockets import getaddrinfo as getaddrinfo
|
|
76
|
+
from ._core._sockets import getnameinfo as getnameinfo
|
|
77
|
+
from ._core._sockets import notify_closing as notify_closing
|
|
78
|
+
from ._core._sockets import wait_readable as wait_readable
|
|
79
|
+
from ._core._sockets import wait_socket_readable as wait_socket_readable
|
|
80
|
+
from ._core._sockets import wait_socket_writable as wait_socket_writable
|
|
81
|
+
from ._core._sockets import wait_writable as wait_writable
|
|
82
|
+
from ._core._streams import (
|
|
83
|
+
create_memory_object_stream as create_memory_object_stream,
|
|
84
|
+
)
|
|
85
|
+
from ._core._subprocesses import open_process as open_process
|
|
86
|
+
from ._core._subprocesses import run_process as run_process
|
|
87
|
+
from ._core._synchronization import CapacityLimiter as CapacityLimiter
|
|
88
|
+
from ._core._synchronization import (
|
|
89
|
+
CapacityLimiterStatistics as CapacityLimiterStatistics,
|
|
90
|
+
)
|
|
91
|
+
from ._core._synchronization import Condition as Condition
|
|
92
|
+
from ._core._synchronization import ConditionStatistics as ConditionStatistics
|
|
93
|
+
from ._core._synchronization import Event as Event
|
|
94
|
+
from ._core._synchronization import EventStatistics as EventStatistics
|
|
95
|
+
from ._core._synchronization import Lock as Lock
|
|
96
|
+
from ._core._synchronization import LockStatistics as LockStatistics
|
|
97
|
+
from ._core._synchronization import ResourceGuard as ResourceGuard
|
|
98
|
+
from ._core._synchronization import Semaphore as Semaphore
|
|
99
|
+
from ._core._synchronization import SemaphoreStatistics as SemaphoreStatistics
|
|
100
|
+
from ._core._tasks import TASK_STATUS_IGNORED as TASK_STATUS_IGNORED
|
|
101
|
+
from ._core._tasks import CancelScope as CancelScope
|
|
102
|
+
from ._core._tasks import TaskHandle as TaskHandle
|
|
103
|
+
from ._core._tasks import create_task_group as create_task_group
|
|
104
|
+
from ._core._tasks import current_effective_deadline as current_effective_deadline
|
|
105
|
+
from ._core._tasks import fail_after as fail_after
|
|
106
|
+
from ._core._tasks import fail_at as fail_at
|
|
107
|
+
from ._core._tasks import move_on_after as move_on_after
|
|
108
|
+
from ._core._tasks import move_on_at as move_on_at
|
|
109
|
+
from ._core._tempfile import NamedTemporaryFile as NamedTemporaryFile
|
|
110
|
+
from ._core._tempfile import SpooledTemporaryFile as SpooledTemporaryFile
|
|
111
|
+
from ._core._tempfile import TemporaryDirectory as TemporaryDirectory
|
|
112
|
+
from ._core._tempfile import TemporaryFile as TemporaryFile
|
|
113
|
+
from ._core._tempfile import gettempdir as gettempdir
|
|
114
|
+
from ._core._tempfile import gettempdirb as gettempdirb
|
|
115
|
+
from ._core._tempfile import mkdtemp as mkdtemp
|
|
116
|
+
from ._core._tempfile import mkstemp as mkstemp
|
|
117
|
+
from ._core._testing import TaskInfo as TaskInfo
|
|
118
|
+
from ._core._testing import get_current_task as get_current_task
|
|
119
|
+
from ._core._testing import get_running_tasks as get_running_tasks
|
|
120
|
+
from ._core._testing import wait_all_tasks_blocked as wait_all_tasks_blocked
|
|
121
|
+
from ._core._typedattr import TypedAttributeProvider as TypedAttributeProvider
|
|
122
|
+
from ._core._typedattr import TypedAttributeSet as TypedAttributeSet
|
|
123
|
+
from ._core._typedattr import typed_attribute as typed_attribute
|
|
124
|
+
|
|
125
|
+
# ruff: isort: off
|
|
126
|
+
from . import (
|
|
127
|
+
abc as abc,
|
|
128
|
+
)
|
|
129
|
+
from . import (
|
|
130
|
+
from_thread as from_thread,
|
|
131
|
+
)
|
|
132
|
+
from . import (
|
|
133
|
+
functools as functools,
|
|
134
|
+
)
|
|
135
|
+
from . import (
|
|
136
|
+
itertools as itertools,
|
|
137
|
+
)
|
|
138
|
+
from . import (
|
|
139
|
+
lowlevel as lowlevel,
|
|
140
|
+
)
|
|
141
|
+
from . import (
|
|
142
|
+
to_interpreter as to_interpreter,
|
|
143
|
+
)
|
|
144
|
+
from . import (
|
|
145
|
+
to_process as to_process,
|
|
146
|
+
)
|
|
147
|
+
from . import (
|
|
148
|
+
to_thread as to_thread,
|
|
149
|
+
)
|
|
150
|
+
|
|
151
|
+
fix_package_names()
|
|
152
|
+
set_deprecated_aliases(
|
|
153
|
+
{
|
|
154
|
+
"BrokenWorkerIntepreter": "pboot.aio.BrokenWorkerInterpreter",
|
|
155
|
+
}
|
|
156
|
+
)
|
|
File without changes
|