backup 04_physworld 2026-11-08 10:11:26 (part 8)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +14 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_avif.cpython-311-x86_64-linux-gnu.so +0 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_avif.pyi +3 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_binary.py +115 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_deprecate.py +74 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imaging.cpython-311-x86_64-linux-gnu.so +3 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imaging.pyi +31 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imagingcms.cpython-311-x86_64-linux-gnu.so +3 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imagingcms.pyi +143 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imagingft.cpython-311-x86_64-linux-gnu.so +3 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imagingft.pyi +70 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imagingmath.cpython-311-x86_64-linux-gnu.so +3 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imagingmath.pyi +3 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imagingmorph.cpython-311-x86_64-linux-gnu.so +0 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imagingmorph.pyi +3 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imagingtk.cpython-311-x86_64-linux-gnu.so +0 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imagingtk.pyi +3 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_tkinter_finder.py +20 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_typing.py +46 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_util.py +29 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_version.py +4 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_webp.cpython-311-x86_64-linux-gnu.so +3 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_webp.pyi +3 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/features.py +347 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/py.typed +0 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/report.py +5 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/README.txt +2 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/__pycache__/typing_extensions.cpython-311.pyc +3 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/_distutils_hack/__init__.py +239 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/_distutils_hack/__pycache__/__init__.cpython-311.pyc +0 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/_distutils_hack/__pycache__/override.cpython-311.pyc +0 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/_distutils_hack/override.py +1 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/_yaml/__init__.py +33 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/_yaml/__pycache__/__init__.cpython-311.pyc +0 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio-4.15.1.dist-info/INSTALLER +1 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio-4.15.1.dist-info/METADATA +108 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio-4.15.1.dist-info/RECORD +100 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio-4.15.1.dist-info/WHEEL +5 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio-4.15.1.dist-info/entry_points.txt +2 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio-4.15.1.dist-info/licenses/LICENSE +20 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio-4.15.1.dist-info/top_level.txt +1 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio/__init__.py +154 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio/__pycache__/__init__.cpython-311.pyc +0 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio/__pycache__/_lazyimport.cpython-311.pyc +0 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio/__pycache__/from_thread.cpython-311.pyc +0 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio/__pycache__/functools.cpython-311.pyc +0 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio/__pycache__/itertools.cpython-311.pyc +0 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio/__pycache__/lowlevel.cpython-311.pyc +0 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio/__pycache__/pytest_plugin.cpython-311.pyc +0 -0
- physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio/__pycache__/to_interpreter.cpython-311.pyc +0 -0
.gitattributes
CHANGED
|
@@ -3469,3 +3469,17 @@ physworld_p1_20261018/envs/p1/lib/python3.11/lib2to3/tests/data/__pycache__/infi
|
|
| 3469 |
physworld_p1_20261018/envs/p1/lib/python3.11/pydoc_data/__pycache__/topics.cpython-311.pyc filter=lfs diff=lfs merge=lfs -text
|
| 3470 |
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/__pycache__/Image.cpython-311.pyc filter=lfs diff=lfs merge=lfs -text
|
| 3471 |
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/__pycache__/TiffImagePlugin.cpython-311.pyc filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3469 |
physworld_p1_20261018/envs/p1/lib/python3.11/pydoc_data/__pycache__/topics.cpython-311.pyc filter=lfs diff=lfs merge=lfs -text
|
| 3470 |
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/__pycache__/Image.cpython-311.pyc filter=lfs diff=lfs merge=lfs -text
|
| 3471 |
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/__pycache__/TiffImagePlugin.cpython-311.pyc filter=lfs diff=lfs merge=lfs -text
|
| 3472 |
+
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imaging.cpython-311-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
|
| 3473 |
+
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imagingcms.cpython-311-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
|
| 3474 |
+
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imagingft.cpython-311-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
|
| 3475 |
+
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imagingmath.cpython-311-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
|
| 3476 |
+
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_webp.cpython-311-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
|
| 3477 |
+
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/__pycache__/typing_extensions.cpython-311.pyc filter=lfs diff=lfs merge=lfs -text
|
| 3478 |
+
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio/_backends/__pycache__/_asyncio.cpython-311.pyc filter=lfs diff=lfs merge=lfs -text
|
| 3479 |
+
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/click/__pycache__/core.cpython-311.pyc filter=lfs diff=lfs merge=lfs -text
|
| 3480 |
+
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/eglRenderer.cpython-311-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
|
| 3481 |
+
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/filelock/__pycache__/_api.cpython-311.pyc filter=lfs diff=lfs merge=lfs -text
|
| 3482 |
+
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/fsspec/__pycache__/spec.cpython-311.pyc filter=lfs diff=lfs merge=lfs -text
|
| 3483 |
+
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/hf_xet/hf_xet.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 3484 |
+
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/huggingface_hub/__pycache__/_sandbox.cpython-311.pyc filter=lfs diff=lfs merge=lfs -text
|
| 3485 |
+
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/huggingface_hub/__pycache__/hf_api.cpython-311.pyc filter=lfs diff=lfs merge=lfs -text
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_avif.cpython-311-x86_64-linux-gnu.so
ADDED
|
Binary file (97.9 kB). View file
|
|
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_avif.pyi
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
def __getattr__(name: str) -> Any: ...
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_binary.py
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# The Python Imaging Library.
|
| 3 |
+
# $Id$
|
| 4 |
+
#
|
| 5 |
+
# Binary input/output support routines.
|
| 6 |
+
#
|
| 7 |
+
# Copyright (c) 1997-2003 by Secret Labs AB
|
| 8 |
+
# Copyright (c) 1995-2003 by Fredrik Lundh
|
| 9 |
+
# Copyright (c) 2012 by Brian Crowell
|
| 10 |
+
#
|
| 11 |
+
# See the README file for information on usage and redistribution.
|
| 12 |
+
#
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
"""Binary input/output support routines."""
|
| 16 |
+
|
| 17 |
+
from __future__ import annotations
|
| 18 |
+
|
| 19 |
+
__lazy_modules__ = {"struct"}
|
| 20 |
+
|
| 21 |
+
from struct import unpack_from
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
def i8(c: bytes) -> int:
|
| 25 |
+
return c[0]
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
def o8(i: int) -> bytes:
|
| 29 |
+
return (i & 255).to_bytes()
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
# Input, le = little endian, be = big endian
|
| 33 |
+
def i16le(c: bytes, o: int = 0) -> int:
|
| 34 |
+
"""
|
| 35 |
+
Converts a 2-bytes (16 bits) string to an unsigned integer.
|
| 36 |
+
|
| 37 |
+
:param c: string containing bytes to convert
|
| 38 |
+
:param o: offset of bytes to convert in string
|
| 39 |
+
"""
|
| 40 |
+
return unpack_from("<H", c, o)[0]
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
def si16le(c: bytes, o: int = 0) -> int:
|
| 44 |
+
"""
|
| 45 |
+
Converts a 2-bytes (16 bits) string to a signed integer.
|
| 46 |
+
|
| 47 |
+
:param c: string containing bytes to convert
|
| 48 |
+
:param o: offset of bytes to convert in string
|
| 49 |
+
"""
|
| 50 |
+
return unpack_from("<h", c, o)[0]
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
def si16be(c: bytes, o: int = 0) -> int:
|
| 54 |
+
"""
|
| 55 |
+
Converts a 2-bytes (16 bits) string to a signed integer, big endian.
|
| 56 |
+
|
| 57 |
+
:param c: string containing bytes to convert
|
| 58 |
+
:param o: offset of bytes to convert in string
|
| 59 |
+
"""
|
| 60 |
+
return unpack_from(">h", c, o)[0]
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
def i32le(c: bytes, o: int = 0) -> int:
|
| 64 |
+
"""
|
| 65 |
+
Converts a 4-bytes (32 bits) string to an unsigned integer.
|
| 66 |
+
|
| 67 |
+
:param c: string containing bytes to convert
|
| 68 |
+
:param o: offset of bytes to convert in string
|
| 69 |
+
"""
|
| 70 |
+
return unpack_from("<I", c, o)[0]
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
def si32le(c: bytes, o: int = 0) -> int:
|
| 74 |
+
"""
|
| 75 |
+
Converts a 4-bytes (32 bits) string to a signed integer.
|
| 76 |
+
|
| 77 |
+
:param c: string containing bytes to convert
|
| 78 |
+
:param o: offset of bytes to convert in string
|
| 79 |
+
"""
|
| 80 |
+
return unpack_from("<i", c, o)[0]
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
def si32be(c: bytes, o: int = 0) -> int:
|
| 84 |
+
"""
|
| 85 |
+
Converts a 4-bytes (32 bits) string to a signed integer, big endian.
|
| 86 |
+
|
| 87 |
+
:param c: string containing bytes to convert
|
| 88 |
+
:param o: offset of bytes to convert in string
|
| 89 |
+
"""
|
| 90 |
+
return unpack_from(">i", c, o)[0]
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
def i16be(c: bytes, o: int = 0) -> int:
|
| 94 |
+
return unpack_from(">H", c, o)[0]
|
| 95 |
+
|
| 96 |
+
|
| 97 |
+
def i32be(c: bytes, o: int = 0) -> int:
|
| 98 |
+
return unpack_from(">I", c, o)[0]
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
# Output, le = little endian, be = big endian
|
| 102 |
+
def o16le(i: int) -> bytes:
|
| 103 |
+
return i.to_bytes(2, "little")
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
def o32le(i: int) -> bytes:
|
| 107 |
+
return i.to_bytes(4, "little")
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
def o16be(i: int) -> bytes:
|
| 111 |
+
return i.to_bytes(2, "big")
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
def o32be(i: int) -> bytes:
|
| 115 |
+
return i.to_bytes(4, "big")
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_deprecate.py
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
__lazy_modules__ = {"warnings"}
|
| 4 |
+
|
| 5 |
+
import warnings
|
| 6 |
+
|
| 7 |
+
from . import __version__
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
def deprecate(
|
| 11 |
+
deprecated: str,
|
| 12 |
+
when: int | None,
|
| 13 |
+
replacement: str | None = None,
|
| 14 |
+
*,
|
| 15 |
+
action: str | None = None,
|
| 16 |
+
plural: bool = False,
|
| 17 |
+
stacklevel: int = 3,
|
| 18 |
+
) -> None:
|
| 19 |
+
"""
|
| 20 |
+
Deprecations helper.
|
| 21 |
+
|
| 22 |
+
:param deprecated: Name of thing to be deprecated.
|
| 23 |
+
:param when: Pillow major version to be removed in.
|
| 24 |
+
:param replacement: Name of replacement.
|
| 25 |
+
:param action: Instead of "replacement", give a custom call to action
|
| 26 |
+
e.g. "Upgrade to new thing".
|
| 27 |
+
:param plural: if the deprecated thing is plural, needing "are" instead of "is".
|
| 28 |
+
|
| 29 |
+
Usually of the form:
|
| 30 |
+
|
| 31 |
+
"[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).
|
| 32 |
+
Use [replacement] instead."
|
| 33 |
+
|
| 34 |
+
You can leave out the replacement sentence:
|
| 35 |
+
|
| 36 |
+
"[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd)"
|
| 37 |
+
|
| 38 |
+
Or with another call to action:
|
| 39 |
+
|
| 40 |
+
"[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).
|
| 41 |
+
[action]."
|
| 42 |
+
"""
|
| 43 |
+
|
| 44 |
+
is_ = "are" if plural else "is"
|
| 45 |
+
|
| 46 |
+
if when is None:
|
| 47 |
+
removed = "a future version"
|
| 48 |
+
elif when <= int(__version__.split(".")[0]):
|
| 49 |
+
msg = f"{deprecated} {is_} deprecated and should be removed."
|
| 50 |
+
raise RuntimeError(msg)
|
| 51 |
+
elif when == 14:
|
| 52 |
+
removed = "Pillow 14 (2027-10-15)"
|
| 53 |
+
elif when == 15:
|
| 54 |
+
removed = "Pillow 15 (2028-10-15)"
|
| 55 |
+
else:
|
| 56 |
+
msg = f"Unknown removal version: {when}. Update {__name__}?"
|
| 57 |
+
raise ValueError(msg)
|
| 58 |
+
|
| 59 |
+
if replacement and action:
|
| 60 |
+
msg = "Use only one of 'replacement' and 'action'"
|
| 61 |
+
raise ValueError(msg)
|
| 62 |
+
|
| 63 |
+
if replacement:
|
| 64 |
+
action = f". Use {replacement} instead."
|
| 65 |
+
elif action:
|
| 66 |
+
action = f". {action.rstrip('.')}."
|
| 67 |
+
else:
|
| 68 |
+
action = ""
|
| 69 |
+
|
| 70 |
+
warnings.warn(
|
| 71 |
+
f"{deprecated} {is_} deprecated and will be removed in {removed}{action}",
|
| 72 |
+
DeprecationWarning,
|
| 73 |
+
stacklevel=stacklevel,
|
| 74 |
+
)
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imaging.cpython-311-x86_64-linux-gnu.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7aefe0e37d27e2d1446bd74003f307245e70099f8610258acff1a18e8778b2f6
|
| 3 |
+
size 3461569
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imaging.pyi
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
class ImagingCore:
|
| 4 |
+
def __getitem__(self, index: int) -> float | tuple[int, ...] | None: ...
|
| 5 |
+
def __getattr__(self, name: str) -> Any: ...
|
| 6 |
+
|
| 7 |
+
class ImagingFont:
|
| 8 |
+
def __getattr__(self, name: str) -> Any: ...
|
| 9 |
+
|
| 10 |
+
class ImagingDraw:
|
| 11 |
+
def __getattr__(self, name: str) -> Any: ...
|
| 12 |
+
|
| 13 |
+
class PixelAccess:
|
| 14 |
+
def __getitem__(self, xy: tuple[int, int]) -> float | tuple[int, ...]: ...
|
| 15 |
+
def __setitem__(
|
| 16 |
+
self, xy: tuple[int, int], color: float | tuple[int, ...]
|
| 17 |
+
) -> None: ...
|
| 18 |
+
|
| 19 |
+
class ImagingDecoder:
|
| 20 |
+
def __getattr__(self, name: str) -> Any: ...
|
| 21 |
+
|
| 22 |
+
class ImagingEncoder:
|
| 23 |
+
def __getattr__(self, name: str) -> Any: ...
|
| 24 |
+
|
| 25 |
+
class _Outline:
|
| 26 |
+
def close(self) -> None: ...
|
| 27 |
+
def __getattr__(self, name: str) -> Any: ...
|
| 28 |
+
|
| 29 |
+
def font(image: ImagingCore, glyphdata: bytes) -> ImagingFont: ...
|
| 30 |
+
def outline() -> _Outline: ...
|
| 31 |
+
def __getattr__(name: str) -> Any: ...
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imagingcms.cpython-311-x86_64-linux-gnu.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2b0baa6a6a7a8ef3e49270fd4509b69a559dd671160cc15b84b0c83e3dde9b23
|
| 3 |
+
size 163729
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imagingcms.pyi
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import datetime
|
| 2 |
+
import sys
|
| 3 |
+
from typing import Literal, SupportsFloat, TypeAlias, TypedDict
|
| 4 |
+
|
| 5 |
+
from ._typing import CapsuleType
|
| 6 |
+
|
| 7 |
+
littlecms_version: str | None
|
| 8 |
+
|
| 9 |
+
_Tuple3f: TypeAlias = tuple[float, float, float]
|
| 10 |
+
_Tuple2x3f: TypeAlias = tuple[_Tuple3f, _Tuple3f]
|
| 11 |
+
_Tuple3x3f: TypeAlias = tuple[_Tuple3f, _Tuple3f, _Tuple3f]
|
| 12 |
+
|
| 13 |
+
class _IccMeasurementCondition(TypedDict):
|
| 14 |
+
observer: int
|
| 15 |
+
backing: _Tuple3f
|
| 16 |
+
geo: str
|
| 17 |
+
flare: float
|
| 18 |
+
illuminant_type: str
|
| 19 |
+
|
| 20 |
+
class _IccViewingCondition(TypedDict):
|
| 21 |
+
illuminant: _Tuple3f
|
| 22 |
+
surround: _Tuple3f
|
| 23 |
+
illuminant_type: str
|
| 24 |
+
|
| 25 |
+
class CmsProfile:
|
| 26 |
+
@property
|
| 27 |
+
def rendering_intent(self) -> int: ...
|
| 28 |
+
@property
|
| 29 |
+
def creation_date(self) -> datetime.datetime | None: ...
|
| 30 |
+
@property
|
| 31 |
+
def copyright(self) -> str | None: ...
|
| 32 |
+
@property
|
| 33 |
+
def target(self) -> str | None: ...
|
| 34 |
+
@property
|
| 35 |
+
def manufacturer(self) -> str | None: ...
|
| 36 |
+
@property
|
| 37 |
+
def model(self) -> str | None: ...
|
| 38 |
+
@property
|
| 39 |
+
def profile_description(self) -> str | None: ...
|
| 40 |
+
@property
|
| 41 |
+
def screening_description(self) -> str | None: ...
|
| 42 |
+
@property
|
| 43 |
+
def viewing_condition(self) -> str | None: ...
|
| 44 |
+
@property
|
| 45 |
+
def version(self) -> float: ...
|
| 46 |
+
@property
|
| 47 |
+
def icc_version(self) -> int: ...
|
| 48 |
+
@property
|
| 49 |
+
def attributes(self) -> int: ...
|
| 50 |
+
@property
|
| 51 |
+
def header_flags(self) -> int: ...
|
| 52 |
+
@property
|
| 53 |
+
def header_manufacturer(self) -> str: ...
|
| 54 |
+
@property
|
| 55 |
+
def header_model(self) -> str: ...
|
| 56 |
+
@property
|
| 57 |
+
def device_class(self) -> str: ...
|
| 58 |
+
@property
|
| 59 |
+
def connection_space(self) -> str: ...
|
| 60 |
+
@property
|
| 61 |
+
def xcolor_space(self) -> str: ...
|
| 62 |
+
@property
|
| 63 |
+
def profile_id(self) -> bytes: ...
|
| 64 |
+
@property
|
| 65 |
+
def is_matrix_shaper(self) -> bool: ...
|
| 66 |
+
@property
|
| 67 |
+
def technology(self) -> str | None: ...
|
| 68 |
+
@property
|
| 69 |
+
def colorimetric_intent(self) -> str | None: ...
|
| 70 |
+
@property
|
| 71 |
+
def perceptual_rendering_intent_gamut(self) -> str | None: ...
|
| 72 |
+
@property
|
| 73 |
+
def saturation_rendering_intent_gamut(self) -> str | None: ...
|
| 74 |
+
@property
|
| 75 |
+
def red_colorant(self) -> _Tuple2x3f | None: ...
|
| 76 |
+
@property
|
| 77 |
+
def green_colorant(self) -> _Tuple2x3f | None: ...
|
| 78 |
+
@property
|
| 79 |
+
def blue_colorant(self) -> _Tuple2x3f | None: ...
|
| 80 |
+
@property
|
| 81 |
+
def red_primary(self) -> _Tuple2x3f | None: ...
|
| 82 |
+
@property
|
| 83 |
+
def green_primary(self) -> _Tuple2x3f | None: ...
|
| 84 |
+
@property
|
| 85 |
+
def blue_primary(self) -> _Tuple2x3f | None: ...
|
| 86 |
+
@property
|
| 87 |
+
def media_white_point_temperature(self) -> float | None: ...
|
| 88 |
+
@property
|
| 89 |
+
def media_white_point(self) -> _Tuple2x3f | None: ...
|
| 90 |
+
@property
|
| 91 |
+
def media_black_point(self) -> _Tuple2x3f | None: ...
|
| 92 |
+
@property
|
| 93 |
+
def luminance(self) -> _Tuple2x3f | None: ...
|
| 94 |
+
@property
|
| 95 |
+
def chromatic_adaptation(self) -> tuple[_Tuple3x3f, _Tuple3x3f] | None: ...
|
| 96 |
+
@property
|
| 97 |
+
def chromaticity(self) -> _Tuple3x3f | None: ...
|
| 98 |
+
@property
|
| 99 |
+
def colorant_table(self) -> list[str] | None: ...
|
| 100 |
+
@property
|
| 101 |
+
def colorant_table_out(self) -> list[str] | None: ...
|
| 102 |
+
@property
|
| 103 |
+
def intent_supported(self) -> dict[int, tuple[bool, bool, bool]] | None: ...
|
| 104 |
+
@property
|
| 105 |
+
def clut(self) -> dict[int, tuple[bool, bool, bool]] | None: ...
|
| 106 |
+
@property
|
| 107 |
+
def icc_measurement_condition(self) -> _IccMeasurementCondition | None: ...
|
| 108 |
+
@property
|
| 109 |
+
def icc_viewing_condition(self) -> _IccViewingCondition | None: ...
|
| 110 |
+
def is_intent_supported(self, intent: int, direction: int, /) -> int: ...
|
| 111 |
+
|
| 112 |
+
class CmsTransform:
|
| 113 |
+
def apply(self, id_in: CapsuleType, id_out: CapsuleType) -> int: ...
|
| 114 |
+
|
| 115 |
+
def profile_open(profile: str, /) -> CmsProfile: ...
|
| 116 |
+
def profile_frombytes(profile: bytes, /) -> CmsProfile: ...
|
| 117 |
+
def profile_tobytes(profile: CmsProfile, /) -> bytes: ...
|
| 118 |
+
def buildTransform(
|
| 119 |
+
input_profile: CmsProfile,
|
| 120 |
+
output_profile: CmsProfile,
|
| 121 |
+
in_mode: str,
|
| 122 |
+
out_mode: str,
|
| 123 |
+
rendering_intent: int = 0,
|
| 124 |
+
cms_flags: int = 0,
|
| 125 |
+
/,
|
| 126 |
+
) -> CmsTransform: ...
|
| 127 |
+
def buildProofTransform(
|
| 128 |
+
input_profile: CmsProfile,
|
| 129 |
+
output_profile: CmsProfile,
|
| 130 |
+
proof_profile: CmsProfile,
|
| 131 |
+
in_mode: str,
|
| 132 |
+
out_mode: str,
|
| 133 |
+
rendering_intent: int = 0,
|
| 134 |
+
proof_intent: int = 0,
|
| 135 |
+
cms_flags: int = 0,
|
| 136 |
+
/,
|
| 137 |
+
) -> CmsTransform: ...
|
| 138 |
+
def createProfile(
|
| 139 |
+
color_space: Literal["LAB", "XYZ", "sRGB"], color_temp: SupportsFloat = 0.0, /
|
| 140 |
+
) -> CmsProfile: ...
|
| 141 |
+
|
| 142 |
+
if sys.platform == "win32":
|
| 143 |
+
def get_display_profile_win32(handle: int = 0, is_dc: int = 0, /) -> str | None: ...
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imagingft.cpython-311-x86_64-linux-gnu.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:104f1199ccb1a6e501edcfa229f7209cc970a781bf00a9fb78d95264cd38c64f
|
| 3 |
+
size 345281
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imagingft.pyi
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from collections.abc import Callable
|
| 2 |
+
from typing import Any
|
| 3 |
+
|
| 4 |
+
from . import ImageFont, _imaging
|
| 5 |
+
|
| 6 |
+
class Font:
|
| 7 |
+
@property
|
| 8 |
+
def family(self) -> str | None: ...
|
| 9 |
+
@property
|
| 10 |
+
def style(self) -> str | None: ...
|
| 11 |
+
@property
|
| 12 |
+
def ascent(self) -> int: ...
|
| 13 |
+
@property
|
| 14 |
+
def descent(self) -> int: ...
|
| 15 |
+
@property
|
| 16 |
+
def height(self) -> int: ...
|
| 17 |
+
@property
|
| 18 |
+
def x_ppem(self) -> int: ...
|
| 19 |
+
@property
|
| 20 |
+
def y_ppem(self) -> int: ...
|
| 21 |
+
@property
|
| 22 |
+
def glyphs(self) -> int: ...
|
| 23 |
+
def render(
|
| 24 |
+
self,
|
| 25 |
+
string: str | bytes,
|
| 26 |
+
fill: Callable[[int, int], _imaging.ImagingCore],
|
| 27 |
+
mode: str,
|
| 28 |
+
dir: str | None,
|
| 29 |
+
features: list[str] | None,
|
| 30 |
+
lang: str | None,
|
| 31 |
+
stroke_width: float,
|
| 32 |
+
stroke_filled: bool,
|
| 33 |
+
anchor: str | None,
|
| 34 |
+
foreground_ink_long: int,
|
| 35 |
+
start: tuple[float, float],
|
| 36 |
+
/,
|
| 37 |
+
) -> tuple[_imaging.ImagingCore, tuple[int, int]]: ...
|
| 38 |
+
def getsize(
|
| 39 |
+
self,
|
| 40 |
+
string: str | bytes | bytearray,
|
| 41 |
+
mode: str,
|
| 42 |
+
dir: str | None,
|
| 43 |
+
features: list[str] | None,
|
| 44 |
+
lang: str | None,
|
| 45 |
+
anchor: str | None,
|
| 46 |
+
/,
|
| 47 |
+
) -> tuple[tuple[int, int], tuple[int, int]]: ...
|
| 48 |
+
def getlength(
|
| 49 |
+
self,
|
| 50 |
+
string: str | bytes,
|
| 51 |
+
mode: str,
|
| 52 |
+
dir: str | None,
|
| 53 |
+
features: list[str] | None,
|
| 54 |
+
lang: str | None,
|
| 55 |
+
/,
|
| 56 |
+
) -> float: ...
|
| 57 |
+
def getvarnames(self) -> list[bytes]: ...
|
| 58 |
+
def getvaraxes(self) -> list[ImageFont.Axis]: ...
|
| 59 |
+
def setvarname(self, instance_index: int, /) -> None: ...
|
| 60 |
+
def setvaraxes(self, axes: list[float], /) -> None: ...
|
| 61 |
+
|
| 62 |
+
def getfont(
|
| 63 |
+
filename: str | bytes,
|
| 64 |
+
size: float,
|
| 65 |
+
index: int,
|
| 66 |
+
encoding: str,
|
| 67 |
+
font_bytes: bytes,
|
| 68 |
+
layout_engine: int,
|
| 69 |
+
) -> Font: ...
|
| 70 |
+
def __getattr__(name: str) -> Any: ...
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imagingmath.cpython-311-x86_64-linux-gnu.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:96ae71e30d176fbf291607d873add7628b7de4a58f57358489a9036b5ff20e11
|
| 3 |
+
size 137496
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imagingmath.pyi
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
def __getattr__(name: str) -> Any: ...
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imagingmorph.cpython-311-x86_64-linux-gnu.so
ADDED
|
Binary file (38.2 kB). View file
|
|
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imagingmorph.pyi
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
def __getattr__(name: str) -> Any: ...
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imagingtk.cpython-311-x86_64-linux-gnu.so
ADDED
|
Binary file (46.1 kB). View file
|
|
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_imagingtk.pyi
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
def __getattr__(name: str) -> Any: ...
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_tkinter_finder.py
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Find compiled module linking to Tcl / Tk libraries"""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
import sys
|
| 6 |
+
import tkinter
|
| 7 |
+
|
| 8 |
+
tk = getattr(tkinter, "_tkinter")
|
| 9 |
+
|
| 10 |
+
try:
|
| 11 |
+
if hasattr(sys, "pypy_find_executable"):
|
| 12 |
+
TKINTER_LIB = tk.tklib_cffi.__file__
|
| 13 |
+
else:
|
| 14 |
+
TKINTER_LIB = tk.__file__
|
| 15 |
+
except AttributeError:
|
| 16 |
+
# _tkinter may be compiled directly into Python, in which case __file__ is
|
| 17 |
+
# not available. load_tkinter_funcs will check the binary first in any case.
|
| 18 |
+
TKINTER_LIB = None
|
| 19 |
+
|
| 20 |
+
tk_version = str(tkinter.TkVersion)
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_typing.py
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
__lazy_modules__ = {"numbers", "types"}
|
| 4 |
+
|
| 5 |
+
import os
|
| 6 |
+
import sys
|
| 7 |
+
from collections.abc import Sequence
|
| 8 |
+
from numbers import _IntegralLike as IntegralLike
|
| 9 |
+
from typing import Any, Protocol, TypeVar
|
| 10 |
+
|
| 11 |
+
TYPE_CHECKING = False
|
| 12 |
+
if TYPE_CHECKING:
|
| 13 |
+
try:
|
| 14 |
+
import numpy.typing as npt
|
| 15 |
+
|
| 16 |
+
NumpyArray = npt.NDArray[Any]
|
| 17 |
+
except ImportError:
|
| 18 |
+
pass
|
| 19 |
+
|
| 20 |
+
if sys.version_info >= (3, 13):
|
| 21 |
+
from types import CapsuleType
|
| 22 |
+
else:
|
| 23 |
+
CapsuleType = object
|
| 24 |
+
|
| 25 |
+
if sys.version_info >= (3, 12):
|
| 26 |
+
from collections.abc import Buffer
|
| 27 |
+
else:
|
| 28 |
+
Buffer = Any
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
_Ink = float | tuple[int, ...] | str
|
| 32 |
+
|
| 33 |
+
Coords = Sequence[float] | Sequence[Sequence[float]]
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
_T_co = TypeVar("_T_co", covariant=True)
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
class SupportsRead(Protocol[_T_co]):
|
| 40 |
+
def read(self, length: int = ..., /) -> _T_co: ...
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
StrOrBytesPath = str | bytes | os.PathLike[str] | os.PathLike[bytes]
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
__all__ = ["Buffer", "IntegralLike", "StrOrBytesPath", "SupportsRead"]
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_util.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import os
|
| 4 |
+
|
| 5 |
+
TYPE_CHECKING = False
|
| 6 |
+
if TYPE_CHECKING:
|
| 7 |
+
from typing import Any, NoReturn, TypeGuard
|
| 8 |
+
|
| 9 |
+
from ._typing import StrOrBytesPath
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
def is_path(f: Any) -> TypeGuard[StrOrBytesPath]:
|
| 13 |
+
return isinstance(f, (bytes, str, os.PathLike))
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
class DeferredError:
|
| 17 |
+
def __init__(self, ex: BaseException):
|
| 18 |
+
self.ex = ex
|
| 19 |
+
|
| 20 |
+
def __getattr__(self, elt: str) -> NoReturn:
|
| 21 |
+
raise self.ex
|
| 22 |
+
|
| 23 |
+
@staticmethod
|
| 24 |
+
def new(ex: BaseException) -> Any:
|
| 25 |
+
"""
|
| 26 |
+
Creates an object that raises the wrapped exception ``ex`` when used,
|
| 27 |
+
and casts it to :py:obj:`~typing.Any` type.
|
| 28 |
+
"""
|
| 29 |
+
return DeferredError(ex)
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_version.py
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Master version for Pillow
|
| 2 |
+
from __future__ import annotations
|
| 3 |
+
|
| 4 |
+
__version__ = "13.0.0"
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_webp.cpython-311-x86_64-linux-gnu.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f66802dd349cabf0ba85c58a246fe3e1afcf36ca407e200a0271f47737592b97
|
| 3 |
+
size 110617
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/_webp.pyi
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
def __getattr__(name: str) -> Any: ...
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/features.py
ADDED
|
@@ -0,0 +1,347 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
__lazy_modules__ = {"collections", "warnings"}
|
| 4 |
+
|
| 5 |
+
import collections
|
| 6 |
+
import os
|
| 7 |
+
import sys
|
| 8 |
+
import warnings
|
| 9 |
+
|
| 10 |
+
import PIL
|
| 11 |
+
|
| 12 |
+
from . import Image
|
| 13 |
+
|
| 14 |
+
TYPE_CHECKING = False
|
| 15 |
+
if TYPE_CHECKING:
|
| 16 |
+
from typing import IO
|
| 17 |
+
modules = {
|
| 18 |
+
"pil": ("PIL._imaging", "PILLOW_VERSION"),
|
| 19 |
+
"tkinter": ("PIL._tkinter_finder", "tk_version"),
|
| 20 |
+
"freetype2": ("PIL._imagingft", "freetype2_version"),
|
| 21 |
+
"littlecms2": ("PIL._imagingcms", "littlecms_version"),
|
| 22 |
+
"webp": ("PIL._webp", "webpdecoder_version"),
|
| 23 |
+
"avif": ("PIL._avif", "libavif_version"),
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
def check_module(feature: str) -> bool:
|
| 28 |
+
"""
|
| 29 |
+
Checks if a module is available.
|
| 30 |
+
|
| 31 |
+
:param feature: The module to check for.
|
| 32 |
+
:returns: ``True`` if available, ``False`` otherwise.
|
| 33 |
+
:raises ValueError: If the module is not defined in this version of Pillow.
|
| 34 |
+
"""
|
| 35 |
+
if feature not in modules:
|
| 36 |
+
msg = f"Unknown module {feature}"
|
| 37 |
+
raise ValueError(msg)
|
| 38 |
+
|
| 39 |
+
module, ver = modules[feature]
|
| 40 |
+
|
| 41 |
+
try:
|
| 42 |
+
__import__(module)
|
| 43 |
+
return True
|
| 44 |
+
except ModuleNotFoundError:
|
| 45 |
+
return False
|
| 46 |
+
except ImportError as ex:
|
| 47 |
+
warnings.warn(str(ex))
|
| 48 |
+
return False
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
def version_module(feature: str) -> str | None:
|
| 52 |
+
"""
|
| 53 |
+
:param feature: The module to check for.
|
| 54 |
+
:returns:
|
| 55 |
+
The loaded version number as a string, or ``None`` if unknown or not available.
|
| 56 |
+
:raises ValueError: If the module is not defined in this version of Pillow.
|
| 57 |
+
"""
|
| 58 |
+
if not check_module(feature):
|
| 59 |
+
return None
|
| 60 |
+
|
| 61 |
+
module, ver = modules[feature]
|
| 62 |
+
|
| 63 |
+
return getattr(__import__(module, fromlist=[ver]), ver)
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
def get_supported_modules() -> list[str]:
|
| 67 |
+
"""
|
| 68 |
+
:returns: A list of all supported modules.
|
| 69 |
+
"""
|
| 70 |
+
return [f for f in modules if check_module(f)]
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
codecs = {
|
| 74 |
+
"jpg": ("jpeg", "jpeglib"),
|
| 75 |
+
"jpg_2000": ("jpeg2k", "jp2klib"),
|
| 76 |
+
"zlib": ("zip", "zlib"),
|
| 77 |
+
"libtiff": ("libtiff", "libtiff"),
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
def check_codec(feature: str) -> bool:
|
| 82 |
+
"""
|
| 83 |
+
Checks if a codec is available.
|
| 84 |
+
|
| 85 |
+
:param feature: The codec to check for.
|
| 86 |
+
:returns: ``True`` if available, ``False`` otherwise.
|
| 87 |
+
:raises ValueError: If the codec is not defined in this version of Pillow.
|
| 88 |
+
"""
|
| 89 |
+
if feature not in codecs:
|
| 90 |
+
msg = f"Unknown codec {feature}"
|
| 91 |
+
raise ValueError(msg)
|
| 92 |
+
|
| 93 |
+
codec, lib = codecs[feature]
|
| 94 |
+
|
| 95 |
+
return f"{codec}_encoder" in dir(Image.core)
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
def version_codec(feature: str) -> str | None:
|
| 99 |
+
"""
|
| 100 |
+
:param feature: The codec to check for.
|
| 101 |
+
:returns:
|
| 102 |
+
The version number as a string, or ``None`` if not available.
|
| 103 |
+
Checked at compile time for ``jpg``, run-time otherwise.
|
| 104 |
+
:raises ValueError: If the codec is not defined in this version of Pillow.
|
| 105 |
+
"""
|
| 106 |
+
if not check_codec(feature):
|
| 107 |
+
return None
|
| 108 |
+
|
| 109 |
+
codec, lib = codecs[feature]
|
| 110 |
+
|
| 111 |
+
version = getattr(Image.core, f"{lib}_version")
|
| 112 |
+
|
| 113 |
+
if feature == "libtiff":
|
| 114 |
+
return version.split("\n")[0].split("Version ")[1]
|
| 115 |
+
|
| 116 |
+
return version
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
def get_supported_codecs() -> list[str]:
|
| 120 |
+
"""
|
| 121 |
+
:returns: A list of all supported codecs.
|
| 122 |
+
"""
|
| 123 |
+
return [f for f in codecs if check_codec(f)]
|
| 124 |
+
|
| 125 |
+
|
| 126 |
+
features: dict[str, tuple[str, str, str | None]] = {
|
| 127 |
+
"raqm": ("PIL._imagingft", "HAVE_RAQM", "raqm_version"),
|
| 128 |
+
"fribidi": ("PIL._imagingft", "HAVE_FRIBIDI", "fribidi_version"),
|
| 129 |
+
"harfbuzz": ("PIL._imagingft", "HAVE_HARFBUZZ", "harfbuzz_version"),
|
| 130 |
+
"libjpeg_turbo": ("PIL._imaging", "HAVE_LIBJPEGTURBO", "libjpeg_turbo_version"),
|
| 131 |
+
"mozjpeg": ("PIL._imaging", "HAVE_MOZJPEG", "libjpeg_turbo_version"),
|
| 132 |
+
"zlib_ng": ("PIL._imaging", "HAVE_ZLIBNG", "zlib_ng_version"),
|
| 133 |
+
"libimagequant": ("PIL._imaging", "HAVE_LIBIMAGEQUANT", "imagequant_version"),
|
| 134 |
+
"xcb": ("PIL._imaging", "HAVE_XCB", None),
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
|
| 138 |
+
def check_feature(feature: str) -> bool | None:
|
| 139 |
+
"""
|
| 140 |
+
Checks if a feature is available.
|
| 141 |
+
|
| 142 |
+
:param feature: The feature to check for.
|
| 143 |
+
:returns: ``True`` if available, ``False`` if unavailable, ``None`` if unknown.
|
| 144 |
+
:raises ValueError: If the feature is not defined in this version of Pillow.
|
| 145 |
+
"""
|
| 146 |
+
if feature not in features:
|
| 147 |
+
msg = f"Unknown feature {feature}"
|
| 148 |
+
raise ValueError(msg)
|
| 149 |
+
|
| 150 |
+
module, flag, ver = features[feature]
|
| 151 |
+
|
| 152 |
+
try:
|
| 153 |
+
imported_module = __import__(module, fromlist=["PIL"])
|
| 154 |
+
return getattr(imported_module, flag)
|
| 155 |
+
except ModuleNotFoundError:
|
| 156 |
+
return None
|
| 157 |
+
except ImportError as ex:
|
| 158 |
+
warnings.warn(str(ex))
|
| 159 |
+
return None
|
| 160 |
+
|
| 161 |
+
|
| 162 |
+
def version_feature(feature: str) -> str | None:
|
| 163 |
+
"""
|
| 164 |
+
:param feature: The feature to check for.
|
| 165 |
+
:returns: The version number as a string, or ``None`` if not available.
|
| 166 |
+
:raises ValueError: If the feature is not defined in this version of Pillow.
|
| 167 |
+
"""
|
| 168 |
+
if not check_feature(feature):
|
| 169 |
+
return None
|
| 170 |
+
|
| 171 |
+
module, flag, ver = features[feature]
|
| 172 |
+
|
| 173 |
+
if ver is None:
|
| 174 |
+
return None
|
| 175 |
+
|
| 176 |
+
return getattr(__import__(module, fromlist=[ver]), ver)
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
def get_supported_features() -> list[str]:
|
| 180 |
+
"""
|
| 181 |
+
:returns: A list of all supported features.
|
| 182 |
+
"""
|
| 183 |
+
return [f for f in features if check_feature(f)]
|
| 184 |
+
|
| 185 |
+
|
| 186 |
+
def check(feature: str) -> bool | None:
|
| 187 |
+
"""
|
| 188 |
+
:param feature: A module, codec, or feature name.
|
| 189 |
+
:returns:
|
| 190 |
+
``True`` if the module, codec, or feature is available,
|
| 191 |
+
``False`` or ``None`` otherwise.
|
| 192 |
+
"""
|
| 193 |
+
|
| 194 |
+
if feature in modules:
|
| 195 |
+
return check_module(feature)
|
| 196 |
+
if feature in codecs:
|
| 197 |
+
return check_codec(feature)
|
| 198 |
+
if feature in features:
|
| 199 |
+
return check_feature(feature)
|
| 200 |
+
warnings.warn(f"Unknown feature '{feature}'.", stacklevel=2)
|
| 201 |
+
return False
|
| 202 |
+
|
| 203 |
+
|
| 204 |
+
def version(feature: str) -> str | None:
|
| 205 |
+
"""
|
| 206 |
+
:param feature:
|
| 207 |
+
The module, codec, or feature to check for.
|
| 208 |
+
:returns:
|
| 209 |
+
The version number as a string, or ``None`` if unknown or not available.
|
| 210 |
+
"""
|
| 211 |
+
if feature in modules:
|
| 212 |
+
return version_module(feature)
|
| 213 |
+
if feature in codecs:
|
| 214 |
+
return version_codec(feature)
|
| 215 |
+
if feature in features:
|
| 216 |
+
return version_feature(feature)
|
| 217 |
+
return None
|
| 218 |
+
|
| 219 |
+
|
| 220 |
+
def get_supported() -> list[str]:
|
| 221 |
+
"""
|
| 222 |
+
:returns: A list of all supported modules, features, and codecs.
|
| 223 |
+
"""
|
| 224 |
+
|
| 225 |
+
ret = get_supported_modules()
|
| 226 |
+
ret.extend(get_supported_features())
|
| 227 |
+
ret.extend(get_supported_codecs())
|
| 228 |
+
return ret
|
| 229 |
+
|
| 230 |
+
|
| 231 |
+
def pilinfo(out: IO[str] | None = None, supported_formats: bool = True) -> None:
|
| 232 |
+
"""
|
| 233 |
+
Prints information about this installation of Pillow.
|
| 234 |
+
This function can be called with ``python3 -m PIL``.
|
| 235 |
+
It can also be called with ``python3 -m PIL.report`` or ``python3 -m PIL --report``
|
| 236 |
+
to have "supported_formats" set to ``False``, omitting the list of all supported
|
| 237 |
+
image file formats.
|
| 238 |
+
|
| 239 |
+
:param out:
|
| 240 |
+
The output stream to print to. Defaults to ``sys.stdout`` if ``None``.
|
| 241 |
+
:param supported_formats:
|
| 242 |
+
If ``True``, a list of all supported image file formats will be printed.
|
| 243 |
+
"""
|
| 244 |
+
|
| 245 |
+
if out is None:
|
| 246 |
+
out = sys.stdout
|
| 247 |
+
|
| 248 |
+
Image.init()
|
| 249 |
+
|
| 250 |
+
print("-" * 68, file=out)
|
| 251 |
+
print(f"Pillow {PIL.__version__}", file=out)
|
| 252 |
+
py_version_lines = sys.version.splitlines()
|
| 253 |
+
print(f"Python {py_version_lines[0].strip()}", file=out)
|
| 254 |
+
for py_version in py_version_lines[1:]:
|
| 255 |
+
print(f" {py_version.strip()}", file=out)
|
| 256 |
+
print("-" * 68, file=out)
|
| 257 |
+
print(f"Python executable is {sys.executable or 'unknown'}", file=out)
|
| 258 |
+
if sys.prefix != sys.base_prefix:
|
| 259 |
+
print(f"Environment Python files loaded from {sys.prefix}", file=out)
|
| 260 |
+
print(f"System Python files loaded from {sys.base_prefix}", file=out)
|
| 261 |
+
print("-" * 68, file=out)
|
| 262 |
+
print(
|
| 263 |
+
f"Python Pillow modules loaded from {os.path.dirname(Image.__file__)}",
|
| 264 |
+
file=out,
|
| 265 |
+
)
|
| 266 |
+
print(
|
| 267 |
+
f"Binary Pillow modules loaded from {os.path.dirname(Image.core.__file__)}",
|
| 268 |
+
file=out,
|
| 269 |
+
)
|
| 270 |
+
print("-" * 68, file=out)
|
| 271 |
+
|
| 272 |
+
for name, feature in [
|
| 273 |
+
("pil", "PIL CORE"),
|
| 274 |
+
("tkinter", "TKINTER"),
|
| 275 |
+
("freetype2", "FREETYPE2"),
|
| 276 |
+
("littlecms2", "LITTLECMS2"),
|
| 277 |
+
("webp", "WEBP"),
|
| 278 |
+
("avif", "AVIF"),
|
| 279 |
+
("jpg", "JPEG"),
|
| 280 |
+
("jpg_2000", "OPENJPEG (JPEG2000)"),
|
| 281 |
+
("zlib", "ZLIB (PNG/ZIP)"),
|
| 282 |
+
("libtiff", "LIBTIFF"),
|
| 283 |
+
("raqm", "RAQM (Bidirectional Text)"),
|
| 284 |
+
("libimagequant", "LIBIMAGEQUANT (Quantization method)"),
|
| 285 |
+
("xcb", "XCB (X protocol)"),
|
| 286 |
+
]:
|
| 287 |
+
if check(name):
|
| 288 |
+
v: str | None = None
|
| 289 |
+
if name == "jpg":
|
| 290 |
+
libjpeg_turbo_version = version_feature("libjpeg_turbo")
|
| 291 |
+
if libjpeg_turbo_version is not None:
|
| 292 |
+
v = "mozjpeg" if check_feature("mozjpeg") else "libjpeg-turbo"
|
| 293 |
+
v += " " + libjpeg_turbo_version
|
| 294 |
+
if v is None:
|
| 295 |
+
v = version(name)
|
| 296 |
+
if v is not None:
|
| 297 |
+
version_static = name in ("pil", "jpg")
|
| 298 |
+
if name == "littlecms2":
|
| 299 |
+
# this check is also in src/_imagingcms.c:setup_module()
|
| 300 |
+
version_static = tuple(int(x) for x in v.split(".")) < (2, 7)
|
| 301 |
+
t = "compiled for" if version_static else "loaded"
|
| 302 |
+
if name == "zlib":
|
| 303 |
+
zlib_ng_version = version_feature("zlib_ng")
|
| 304 |
+
if zlib_ng_version is not None:
|
| 305 |
+
v += ", compiled for zlib-ng " + zlib_ng_version
|
| 306 |
+
elif name == "raqm":
|
| 307 |
+
for f in ("fribidi", "harfbuzz"):
|
| 308 |
+
v2 = version_feature(f)
|
| 309 |
+
if v2 is not None:
|
| 310 |
+
v += f", {f} {v2}"
|
| 311 |
+
print("---", feature, "support ok,", t, v, file=out)
|
| 312 |
+
else:
|
| 313 |
+
print("---", feature, "support ok", file=out)
|
| 314 |
+
else:
|
| 315 |
+
print("***", feature, "support not installed", file=out)
|
| 316 |
+
print("-" * 68, file=out)
|
| 317 |
+
|
| 318 |
+
if supported_formats:
|
| 319 |
+
extensions = collections.defaultdict(list)
|
| 320 |
+
for ext, i in Image.EXTENSION.items():
|
| 321 |
+
extensions[i].append(ext)
|
| 322 |
+
|
| 323 |
+
for i in sorted(Image.ID):
|
| 324 |
+
line = f"{i}"
|
| 325 |
+
if i in Image.MIME:
|
| 326 |
+
line = f"{line} {Image.MIME[i]}"
|
| 327 |
+
print(line, file=out)
|
| 328 |
+
|
| 329 |
+
if i in extensions:
|
| 330 |
+
print(
|
| 331 |
+
"Extensions: {}".format(", ".join(sorted(extensions[i]))), file=out
|
| 332 |
+
)
|
| 333 |
+
|
| 334 |
+
features = []
|
| 335 |
+
if i in Image.OPEN:
|
| 336 |
+
features.append("open")
|
| 337 |
+
if i in Image.SAVE:
|
| 338 |
+
features.append("save")
|
| 339 |
+
if i in Image.SAVE_ALL:
|
| 340 |
+
features.append("save_all")
|
| 341 |
+
if i in Image.DECODERS:
|
| 342 |
+
features.append("decode")
|
| 343 |
+
if i in Image.ENCODERS:
|
| 344 |
+
features.append("encode")
|
| 345 |
+
|
| 346 |
+
print("Features: {}".format(", ".join(features)), file=out)
|
| 347 |
+
print("-" * 68, file=out)
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/py.typed
ADDED
|
File without changes
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/PIL/report.py
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
from .features import pilinfo
|
| 4 |
+
|
| 5 |
+
pilinfo(supported_formats=False)
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/README.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
This directory exists so that 3rd party packages can be installed
|
| 2 |
+
here. Read the source for site.py for more details.
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/__pycache__/typing_extensions.cpython-311.pyc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:45ff332424e3b3d99eee35d8a6627fb999028e9d9481657beb626fe79e6aeb0c
|
| 3 |
+
size 182737
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/_distutils_hack/__init__.py
ADDED
|
@@ -0,0 +1,239 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# don't import any costly modules
|
| 2 |
+
import os
|
| 3 |
+
import sys
|
| 4 |
+
|
| 5 |
+
report_url = (
|
| 6 |
+
"https://github.com/pypa/setuptools/issues/new?template=distutils-deprecation.yml"
|
| 7 |
+
)
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
def warn_distutils_present():
|
| 11 |
+
if 'distutils' not in sys.modules:
|
| 12 |
+
return
|
| 13 |
+
import warnings
|
| 14 |
+
|
| 15 |
+
warnings.warn(
|
| 16 |
+
"Distutils was imported before Setuptools, but importing Setuptools "
|
| 17 |
+
"also replaces the `distutils` module in `sys.modules`. This may lead "
|
| 18 |
+
"to undesirable behaviors or errors. To avoid these issues, avoid "
|
| 19 |
+
"using distutils directly, ensure that setuptools is installed in the "
|
| 20 |
+
"traditional way (e.g. not an editable install), and/or make sure "
|
| 21 |
+
"that setuptools is always imported before distutils."
|
| 22 |
+
)
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
def clear_distutils():
|
| 26 |
+
if 'distutils' not in sys.modules:
|
| 27 |
+
return
|
| 28 |
+
import warnings
|
| 29 |
+
|
| 30 |
+
warnings.warn(
|
| 31 |
+
"Setuptools is replacing distutils. Support for replacing "
|
| 32 |
+
"an already imported distutils is deprecated. In the future, "
|
| 33 |
+
"this condition will fail. "
|
| 34 |
+
f"Register concerns at {report_url}"
|
| 35 |
+
)
|
| 36 |
+
mods = [
|
| 37 |
+
name
|
| 38 |
+
for name in sys.modules
|
| 39 |
+
if name == "distutils" or name.startswith("distutils.")
|
| 40 |
+
]
|
| 41 |
+
for name in mods:
|
| 42 |
+
del sys.modules[name]
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
def enabled():
|
| 46 |
+
"""
|
| 47 |
+
Allow selection of distutils by environment variable.
|
| 48 |
+
"""
|
| 49 |
+
which = os.environ.get('SETUPTOOLS_USE_DISTUTILS', 'local')
|
| 50 |
+
if which == 'stdlib':
|
| 51 |
+
import warnings
|
| 52 |
+
|
| 53 |
+
warnings.warn(
|
| 54 |
+
"Reliance on distutils from stdlib is deprecated. Users "
|
| 55 |
+
"must rely on setuptools to provide the distutils module. "
|
| 56 |
+
"Avoid importing distutils or import setuptools first, "
|
| 57 |
+
"and avoid setting SETUPTOOLS_USE_DISTUTILS=stdlib. "
|
| 58 |
+
f"Register concerns at {report_url}"
|
| 59 |
+
)
|
| 60 |
+
return which == 'local'
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
def ensure_local_distutils():
|
| 64 |
+
import importlib
|
| 65 |
+
|
| 66 |
+
clear_distutils()
|
| 67 |
+
|
| 68 |
+
# With the DistutilsMetaFinder in place,
|
| 69 |
+
# perform an import to cause distutils to be
|
| 70 |
+
# loaded from setuptools._distutils. Ref #2906.
|
| 71 |
+
with shim():
|
| 72 |
+
importlib.import_module('distutils')
|
| 73 |
+
|
| 74 |
+
# check that submodules load as expected
|
| 75 |
+
core = importlib.import_module('distutils.core')
|
| 76 |
+
assert '_distutils' in core.__file__, core.__file__
|
| 77 |
+
assert 'setuptools._distutils.log' not in sys.modules
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
def do_override():
|
| 81 |
+
"""
|
| 82 |
+
Ensure that the local copy of distutils is preferred over stdlib.
|
| 83 |
+
|
| 84 |
+
See https://github.com/pypa/setuptools/issues/417#issuecomment-392298401
|
| 85 |
+
for more motivation.
|
| 86 |
+
"""
|
| 87 |
+
if enabled():
|
| 88 |
+
warn_distutils_present()
|
| 89 |
+
ensure_local_distutils()
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
class _TrivialRe:
|
| 93 |
+
def __init__(self, *patterns) -> None:
|
| 94 |
+
self._patterns = patterns
|
| 95 |
+
|
| 96 |
+
def match(self, string):
|
| 97 |
+
return all(pat in string for pat in self._patterns)
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
class DistutilsMetaFinder:
|
| 101 |
+
def find_spec(self, fullname, path, target=None):
|
| 102 |
+
# optimization: only consider top level modules and those
|
| 103 |
+
# found in the CPython test suite.
|
| 104 |
+
if path is not None and not fullname.startswith('test.'):
|
| 105 |
+
return None
|
| 106 |
+
|
| 107 |
+
method_name = 'spec_for_{fullname}'.format(**locals())
|
| 108 |
+
method = getattr(self, method_name, lambda: None)
|
| 109 |
+
return method()
|
| 110 |
+
|
| 111 |
+
def spec_for_distutils(self):
|
| 112 |
+
if self.is_cpython():
|
| 113 |
+
return None
|
| 114 |
+
|
| 115 |
+
import importlib
|
| 116 |
+
import importlib.abc
|
| 117 |
+
import importlib.util
|
| 118 |
+
|
| 119 |
+
try:
|
| 120 |
+
mod = importlib.import_module('setuptools._distutils')
|
| 121 |
+
except Exception: # noqa: BLE001 # intentional broad fallback
|
| 122 |
+
# There are a couple of cases where setuptools._distutils
|
| 123 |
+
# may not be present:
|
| 124 |
+
# - An older Setuptools without a local distutils is
|
| 125 |
+
# taking precedence. Ref #2957.
|
| 126 |
+
# - Path manipulation during sitecustomize removes
|
| 127 |
+
# setuptools from the path but only after the hook
|
| 128 |
+
# has been loaded. Ref #2980.
|
| 129 |
+
# In either case, fall back to stdlib behavior.
|
| 130 |
+
return None
|
| 131 |
+
|
| 132 |
+
class DistutilsLoader(importlib.abc.Loader):
|
| 133 |
+
def create_module(self, spec):
|
| 134 |
+
mod.__name__ = 'distutils'
|
| 135 |
+
return mod
|
| 136 |
+
|
| 137 |
+
def exec_module(self, module):
|
| 138 |
+
pass
|
| 139 |
+
|
| 140 |
+
return importlib.util.spec_from_loader(
|
| 141 |
+
'distutils', DistutilsLoader(), origin=mod.__file__
|
| 142 |
+
)
|
| 143 |
+
|
| 144 |
+
@staticmethod
|
| 145 |
+
def is_cpython():
|
| 146 |
+
"""
|
| 147 |
+
Suppress supplying distutils for CPython (build and tests).
|
| 148 |
+
Ref #2965 and #3007.
|
| 149 |
+
"""
|
| 150 |
+
return os.path.isfile('pybuilddir.txt')
|
| 151 |
+
|
| 152 |
+
def spec_for_pip(self):
|
| 153 |
+
"""
|
| 154 |
+
Ensure stdlib distutils when running under pip.
|
| 155 |
+
See pypa/pip#8761 for rationale.
|
| 156 |
+
"""
|
| 157 |
+
if sys.version_info >= (3, 12) or self.pip_imported_during_build():
|
| 158 |
+
return
|
| 159 |
+
clear_distutils()
|
| 160 |
+
self.spec_for_distutils = lambda: None
|
| 161 |
+
|
| 162 |
+
@classmethod
|
| 163 |
+
def pip_imported_during_build(cls):
|
| 164 |
+
"""
|
| 165 |
+
Detect if pip is being imported in a build script. Ref #2355.
|
| 166 |
+
"""
|
| 167 |
+
import traceback
|
| 168 |
+
|
| 169 |
+
return any(
|
| 170 |
+
cls.frame_file_is_setup(frame) for frame, line in traceback.walk_stack(None)
|
| 171 |
+
)
|
| 172 |
+
|
| 173 |
+
@staticmethod
|
| 174 |
+
def frame_file_is_setup(frame):
|
| 175 |
+
"""
|
| 176 |
+
Return True if the indicated frame suggests a setup.py file.
|
| 177 |
+
"""
|
| 178 |
+
# some frames may not have __file__ (#2940)
|
| 179 |
+
return frame.f_globals.get('__file__', '').endswith('setup.py')
|
| 180 |
+
|
| 181 |
+
def spec_for_sensitive_tests(self):
|
| 182 |
+
"""
|
| 183 |
+
Ensure stdlib distutils when running select tests under CPython.
|
| 184 |
+
|
| 185 |
+
python/cpython#91169
|
| 186 |
+
"""
|
| 187 |
+
clear_distutils()
|
| 188 |
+
self.spec_for_distutils = lambda: None
|
| 189 |
+
|
| 190 |
+
sensitive_tests = (
|
| 191 |
+
[
|
| 192 |
+
'test.test_distutils',
|
| 193 |
+
'test.test_peg_generator',
|
| 194 |
+
'test.test_importlib',
|
| 195 |
+
]
|
| 196 |
+
if sys.version_info < (3, 10)
|
| 197 |
+
else [
|
| 198 |
+
'test.test_distutils',
|
| 199 |
+
]
|
| 200 |
+
)
|
| 201 |
+
|
| 202 |
+
|
| 203 |
+
for name in DistutilsMetaFinder.sensitive_tests:
|
| 204 |
+
setattr(
|
| 205 |
+
DistutilsMetaFinder,
|
| 206 |
+
f'spec_for_{name}',
|
| 207 |
+
DistutilsMetaFinder.spec_for_sensitive_tests,
|
| 208 |
+
)
|
| 209 |
+
|
| 210 |
+
|
| 211 |
+
DISTUTILS_FINDER = DistutilsMetaFinder()
|
| 212 |
+
|
| 213 |
+
|
| 214 |
+
def add_shim():
|
| 215 |
+
DISTUTILS_FINDER in sys.meta_path or insert_shim()
|
| 216 |
+
|
| 217 |
+
|
| 218 |
+
class shim:
|
| 219 |
+
def __enter__(self) -> None:
|
| 220 |
+
insert_shim()
|
| 221 |
+
|
| 222 |
+
def __exit__(self, exc: object, value: object, tb: object) -> None:
|
| 223 |
+
_remove_shim()
|
| 224 |
+
|
| 225 |
+
|
| 226 |
+
def insert_shim():
|
| 227 |
+
sys.meta_path.insert(0, DISTUTILS_FINDER)
|
| 228 |
+
|
| 229 |
+
|
| 230 |
+
def _remove_shim():
|
| 231 |
+
try:
|
| 232 |
+
sys.meta_path.remove(DISTUTILS_FINDER)
|
| 233 |
+
except ValueError:
|
| 234 |
+
pass
|
| 235 |
+
|
| 236 |
+
|
| 237 |
+
if sys.version_info < (3, 12):
|
| 238 |
+
# DistutilsMetaFinder can only be disabled in Python < 3.12 (PEP 632)
|
| 239 |
+
remove_shim = _remove_shim
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/_distutils_hack/__pycache__/__init__.cpython-311.pyc
ADDED
|
Binary file (12 kB). View file
|
|
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/_distutils_hack/__pycache__/override.cpython-311.pyc
ADDED
|
Binary file (287 Bytes). View file
|
|
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/_distutils_hack/override.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
__import__('_distutils_hack').do_override()
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/_yaml/__init__.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This is a stub package designed to roughly emulate the _yaml
|
| 2 |
+
# extension module, which previously existed as a standalone module
|
| 3 |
+
# and has been moved into the `yaml` package namespace.
|
| 4 |
+
# It does not perfectly mimic its old counterpart, but should get
|
| 5 |
+
# close enough for anyone who's relying on it even when they shouldn't.
|
| 6 |
+
import yaml
|
| 7 |
+
|
| 8 |
+
# in some circumstances, the yaml module we imoprted may be from a different version, so we need
|
| 9 |
+
# to tread carefully when poking at it here (it may not have the attributes we expect)
|
| 10 |
+
if not getattr(yaml, '__with_libyaml__', False):
|
| 11 |
+
from sys import version_info
|
| 12 |
+
|
| 13 |
+
exc = ModuleNotFoundError if version_info >= (3, 6) else ImportError
|
| 14 |
+
raise exc("No module named '_yaml'")
|
| 15 |
+
else:
|
| 16 |
+
from yaml._yaml import *
|
| 17 |
+
import warnings
|
| 18 |
+
warnings.warn(
|
| 19 |
+
'The _yaml extension module is now located at yaml._yaml'
|
| 20 |
+
' and its location is subject to change. To use the'
|
| 21 |
+
' LibYAML-based parser and emitter, import from `yaml`:'
|
| 22 |
+
' `from yaml import CLoader as Loader, CDumper as Dumper`.',
|
| 23 |
+
DeprecationWarning
|
| 24 |
+
)
|
| 25 |
+
del warnings
|
| 26 |
+
# Don't `del yaml` here because yaml is actually an existing
|
| 27 |
+
# namespace member of _yaml.
|
| 28 |
+
|
| 29 |
+
__name__ = '_yaml'
|
| 30 |
+
# If the module is top-level (i.e. not a part of any specific package)
|
| 31 |
+
# then the attribute should be set to ''.
|
| 32 |
+
# https://docs.python.org/3.8/library/types.html
|
| 33 |
+
__package__ = ''
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/_yaml/__pycache__/__init__.cpython-311.pyc
ADDED
|
Binary file (994 Bytes). View file
|
|
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio-4.15.1.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio-4.15.1.dist-info/METADATA
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.4
|
| 2 |
+
Name: anyio
|
| 3 |
+
Version: 4.15.1
|
| 4 |
+
Summary: High-level concurrency and networking framework on top of asyncio or Trio
|
| 5 |
+
Author-email: Alex Grönholm <alex.gronholm@nextday.fi>
|
| 6 |
+
License-Expression: 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: Framework :: AnyIO
|
| 14 |
+
Classifier: Typing :: Typed
|
| 15 |
+
Classifier: Programming Language :: Python
|
| 16 |
+
Classifier: Programming Language :: Python :: 3
|
| 17 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 18 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 19 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 20 |
+
Classifier: Programming Language :: Python :: 3.13
|
| 21 |
+
Classifier: Programming Language :: Python :: 3.14
|
| 22 |
+
Classifier: Programming Language :: Python :: 3.15
|
| 23 |
+
Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
|
| 24 |
+
Requires-Python: >=3.10
|
| 25 |
+
Description-Content-Type: text/x-rst
|
| 26 |
+
License-File: LICENSE
|
| 27 |
+
Requires-Dist: exceptiongroup>=1.0.2; python_version < "3.11"
|
| 28 |
+
Requires-Dist: idna>=2.8
|
| 29 |
+
Requires-Dist: typing_extensions>=4.16.0; python_version < "3.15"
|
| 30 |
+
Provides-Extra: trio
|
| 31 |
+
Requires-Dist: trio>=0.32.0; extra == "trio"
|
| 32 |
+
Dynamic: license-file
|
| 33 |
+
|
| 34 |
+
.. image:: https://github.com/agronholm/anyio/actions/workflows/test.yml/badge.svg
|
| 35 |
+
:target: https://github.com/agronholm/anyio/actions/workflows/test.yml
|
| 36 |
+
:alt: Build Status
|
| 37 |
+
.. image:: https://coveralls.io/repos/github/agronholm/anyio/badge.svg?branch=master
|
| 38 |
+
:target: https://coveralls.io/github/agronholm/anyio?branch=master
|
| 39 |
+
:alt: Code Coverage
|
| 40 |
+
.. image:: https://readthedocs.org/projects/anyio/badge/?version=latest
|
| 41 |
+
:target: https://anyio.readthedocs.io/en/latest/?badge=latest
|
| 42 |
+
:alt: Documentation
|
| 43 |
+
.. image:: https://badges.gitter.im/gitterHQ/gitter.svg
|
| 44 |
+
:target: https://gitter.im/python-trio/AnyIO
|
| 45 |
+
:alt: Gitter chat
|
| 46 |
+
.. image:: https://tidelift.com/badges/package/pypi/anyio
|
| 47 |
+
:target: https://tidelift.com/subscription/pkg/pypi-anyio
|
| 48 |
+
:alt: Tidelift
|
| 49 |
+
|
| 50 |
+
AnyIO is an asynchronous networking and concurrency library that works on top of either asyncio_ or
|
| 51 |
+
Trio_. It implements Trio-like `structured concurrency`_ (SC) on top of asyncio and works in harmony
|
| 52 |
+
with the native SC of Trio itself.
|
| 53 |
+
|
| 54 |
+
Applications and libraries written against AnyIO's API will run unmodified on either asyncio_ or
|
| 55 |
+
Trio_. AnyIO can also be adopted into a library or application incrementally – bit by bit, no full
|
| 56 |
+
refactoring necessary. It will blend in with the native libraries of your chosen backend.
|
| 57 |
+
|
| 58 |
+
To find out why you might want to use AnyIO's APIs instead of asyncio's, you can read about it
|
| 59 |
+
`here <https://anyio.readthedocs.io/en/stable/why.html>`_.
|
| 60 |
+
|
| 61 |
+
Documentation
|
| 62 |
+
-------------
|
| 63 |
+
|
| 64 |
+
View full documentation at: https://anyio.readthedocs.io/
|
| 65 |
+
|
| 66 |
+
Features
|
| 67 |
+
--------
|
| 68 |
+
|
| 69 |
+
AnyIO offers the following functionality:
|
| 70 |
+
|
| 71 |
+
* Task groups (nurseries_ in trio terminology)
|
| 72 |
+
* High-level networking (TCP, UDP and UNIX sockets)
|
| 73 |
+
|
| 74 |
+
* `Happy eyeballs`_ algorithm for TCP connections (more robust than that of asyncio on Python
|
| 75 |
+
3.8)
|
| 76 |
+
* async/await style UDP sockets (unlike asyncio where you still have to use Transports and
|
| 77 |
+
Protocols)
|
| 78 |
+
|
| 79 |
+
* A versatile API for byte streams and object streams
|
| 80 |
+
* Inter-task synchronization and communication (locks, conditions, events, semaphores, object
|
| 81 |
+
streams and futures)
|
| 82 |
+
* Worker threads
|
| 83 |
+
* Subprocesses
|
| 84 |
+
* Subinterpreter support for code parallelization (on Python 3.13 and later)
|
| 85 |
+
* Asynchronous file I/O (using worker threads)
|
| 86 |
+
* Signal handling
|
| 87 |
+
* Asynchronous versions of the functools_ and itertools_ modules
|
| 88 |
+
|
| 89 |
+
AnyIO also comes with its own pytest_ plugin which also supports asynchronous fixtures.
|
| 90 |
+
It even works with the popular Hypothesis_ library.
|
| 91 |
+
|
| 92 |
+
.. _asyncio: https://docs.python.org/3/library/asyncio.html
|
| 93 |
+
.. _Trio: https://github.com/python-trio/trio
|
| 94 |
+
.. _structured concurrency: https://en.wikipedia.org/wiki/Structured_concurrency
|
| 95 |
+
.. _nurseries: https://trio.readthedocs.io/en/stable/reference-core.html#nurseries-and-spawning
|
| 96 |
+
.. _Happy eyeballs: https://en.wikipedia.org/wiki/Happy_Eyeballs
|
| 97 |
+
.. _pytest: https://docs.pytest.org/en/latest/
|
| 98 |
+
.. _functools: https://docs.python.org/3/library/functools.html
|
| 99 |
+
.. _itertools: https://docs.python.org/3/library/itertools.html
|
| 100 |
+
.. _Hypothesis: https://hypothesis.works/
|
| 101 |
+
|
| 102 |
+
Security contact information
|
| 103 |
+
----------------------------
|
| 104 |
+
|
| 105 |
+
To report a security vulnerability, please use the `Tidelift security contact`_.
|
| 106 |
+
Tidelift will coordinate the fix and disclosure.
|
| 107 |
+
|
| 108 |
+
.. _Tidelift security contact: https://tidelift.com/security
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio-4.15.1.dist-info/RECORD
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
anyio-4.15.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 2 |
+
anyio-4.15.1.dist-info/METADATA,sha256=BDrstXGvcYnopsUo9djjJUXxss36r3YdUebVtn6jyoE,4733
|
| 3 |
+
anyio-4.15.1.dist-info/RECORD,,
|
| 4 |
+
anyio-4.15.1.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
| 5 |
+
anyio-4.15.1.dist-info/entry_points.txt,sha256=_d6Yu6uiaZmNe0CydowirE9Cmg7zUL2g08tQpoS3Qvc,39
|
| 6 |
+
anyio-4.15.1.dist-info/licenses/LICENSE,sha256=U2GsncWPLvX9LpsJxoKXwX8ElQkJu8gCO9uC6s8iwrA,1081
|
| 7 |
+
anyio-4.15.1.dist-info/top_level.txt,sha256=QglSMiWX8_5dpoVAEIHdEYzvqFMdSYWmCj6tYw2ITkQ,6
|
| 8 |
+
anyio/__init__.py,sha256=OfroYRjIUw_JFj0Zwh1JAaajMQg4VqtoAt0XoOHDRwE,7602
|
| 9 |
+
anyio/__pycache__/__init__.cpython-311.pyc,,
|
| 10 |
+
anyio/__pycache__/_lazyimport.cpython-311.pyc,,
|
| 11 |
+
anyio/__pycache__/from_thread.cpython-311.pyc,,
|
| 12 |
+
anyio/__pycache__/functools.cpython-311.pyc,,
|
| 13 |
+
anyio/__pycache__/itertools.cpython-311.pyc,,
|
| 14 |
+
anyio/__pycache__/lowlevel.cpython-311.pyc,,
|
| 15 |
+
anyio/__pycache__/pytest_plugin.cpython-311.pyc,,
|
| 16 |
+
anyio/__pycache__/to_interpreter.cpython-311.pyc,,
|
| 17 |
+
anyio/__pycache__/to_process.cpython-311.pyc,,
|
| 18 |
+
anyio/__pycache__/to_thread.cpython-311.pyc,,
|
| 19 |
+
anyio/_backends/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 20 |
+
anyio/_backends/__pycache__/__init__.cpython-311.pyc,,
|
| 21 |
+
anyio/_backends/__pycache__/_asyncio.cpython-311.pyc,,
|
| 22 |
+
anyio/_backends/__pycache__/_trio.cpython-311.pyc,,
|
| 23 |
+
anyio/_backends/_asyncio.py,sha256=Vqy7O1ymmEpxTiPzehSuBCVTziGALNV-BbsIRaKXsg4,107767
|
| 24 |
+
anyio/_backends/_trio.py,sha256=Gs8XzX0IeBvje8IEZtJmpNylKCUAChKv7I_YZi3wlmg,45715
|
| 25 |
+
anyio/_core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 26 |
+
anyio/_core/__pycache__/__init__.cpython-311.pyc,,
|
| 27 |
+
anyio/_core/__pycache__/_asyncio_selector_thread.cpython-311.pyc,,
|
| 28 |
+
anyio/_core/__pycache__/_concurrency_utils.cpython-311.pyc,,
|
| 29 |
+
anyio/_core/__pycache__/_contextmanagers.cpython-311.pyc,,
|
| 30 |
+
anyio/_core/__pycache__/_eventloop.cpython-311.pyc,,
|
| 31 |
+
anyio/_core/__pycache__/_exceptions.cpython-311.pyc,,
|
| 32 |
+
anyio/_core/__pycache__/_fileio.cpython-311.pyc,,
|
| 33 |
+
anyio/_core/__pycache__/_futures.cpython-311.pyc,,
|
| 34 |
+
anyio/_core/__pycache__/_resources.cpython-311.pyc,,
|
| 35 |
+
anyio/_core/__pycache__/_signals.cpython-311.pyc,,
|
| 36 |
+
anyio/_core/__pycache__/_sockets.cpython-311.pyc,,
|
| 37 |
+
anyio/_core/__pycache__/_streams.cpython-311.pyc,,
|
| 38 |
+
anyio/_core/__pycache__/_subprocesses.cpython-311.pyc,,
|
| 39 |
+
anyio/_core/__pycache__/_synchronization.cpython-311.pyc,,
|
| 40 |
+
anyio/_core/__pycache__/_tasks.cpython-311.pyc,,
|
| 41 |
+
anyio/_core/__pycache__/_tempfile.cpython-311.pyc,,
|
| 42 |
+
anyio/_core/__pycache__/_testing.cpython-311.pyc,,
|
| 43 |
+
anyio/_core/__pycache__/_typedattr.cpython-311.pyc,,
|
| 44 |
+
anyio/_core/_asyncio_selector_thread.py,sha256=2PdxFM3cs02Kp6BSppbvmRT7q7asreTW5FgBxEsflBo,5626
|
| 45 |
+
anyio/_core/_concurrency_utils.py,sha256=kvRXMrnDqgQTBkZc-f279-lBnZM4YbSToXqhnAUCfSc,4522
|
| 46 |
+
anyio/_core/_contextmanagers.py,sha256=YInBCabiEeS-UaP_Jdxa1CaFC71ETPW8HZTHIM8Rsc8,7215
|
| 47 |
+
anyio/_core/_eventloop.py,sha256=ByZUeJD9alMfcyTseRo5IzTO0IltEul_Gyq9iqSjqDk,6658
|
| 48 |
+
anyio/_core/_exceptions.py,sha256=B4ZhLkBQT4tI6vShv4-GJui492IJsoIDTw1FQJEkmAI,5618
|
| 49 |
+
anyio/_core/_fileio.py,sha256=q--ft9h5Y_FRLzhAnoYrXf3tOuZ8ZyIN2A9mCfMbZRc,34163
|
| 50 |
+
anyio/_core/_futures.py,sha256=YQq5uhnCnKQMQD62tOLfzEm7dUXY3GQorJdH6ghfgIQ,6177
|
| 51 |
+
anyio/_core/_resources.py,sha256=Ld5duCe9NwgPfI7EIOh3CMIBYQ7rq6ZQEa7CFS0u9Ec,450
|
| 52 |
+
anyio/_core/_signals.py,sha256=mjTBB2hTKNPRlU0IhnijeQedpWOGERDiMjSlJQsFrug,1016
|
| 53 |
+
anyio/_core/_sockets.py,sha256=C8b-3w5H9n0Fo4g7X8WJvk0m6CGh6NVAAFtieBGHK3g,35289
|
| 54 |
+
anyio/_core/_streams.py,sha256=FczFwIgDpnkK0bODWJXMpsUJYdvAD04kaUaGzJU8DK0,1806
|
| 55 |
+
anyio/_core/_subprocesses.py,sha256=TMBuGNILz-47w5t9vayJ1GpCpDT6LxsMohJDFCewIRc,7938
|
| 56 |
+
anyio/_core/_synchronization.py,sha256=ggsd74QPd846faA2HQeT07ONQ5HQ1S78gy8mvB3qCrw,21658
|
| 57 |
+
anyio/_core/_tasks.py,sha256=J2dhM_Jq3Grsfg_enNWpRz2SxfM15uLt-pEfvoQq3uA,15391
|
| 58 |
+
anyio/_core/_tempfile.py,sha256=IgoBCFaPhrFvsF9KHcCcrnCRn-UqMfw0WRdSDWgxAiI,19726
|
| 59 |
+
anyio/_core/_testing.py,sha256=ZRucLh5kqhiFWAJMMbd8yZ6uIvz0rq3WwL72ldosxAU,2340
|
| 60 |
+
anyio/_core/_typedattr.py,sha256=gt9Dzn-IL0QW14aHPDD8PAtq95FYKNNupHyf37xZGPQ,2607
|
| 61 |
+
anyio/_lazyimport.py,sha256=LCjnYanIfYE9G-Dv_EsqNLDuVRppNicWZjCTfS9-sJU,6082
|
| 62 |
+
anyio/abc/__init__.py,sha256=XIVvCI2c6oyaOcqXe94k2rzU5_s7-ZNnlxGTk34H4T0,3050
|
| 63 |
+
anyio/abc/__pycache__/__init__.cpython-311.pyc,,
|
| 64 |
+
anyio/abc/__pycache__/_eventloop.cpython-311.pyc,,
|
| 65 |
+
anyio/abc/__pycache__/_resources.cpython-311.pyc,,
|
| 66 |
+
anyio/abc/__pycache__/_sockets.cpython-311.pyc,,
|
| 67 |
+
anyio/abc/__pycache__/_streams.cpython-311.pyc,,
|
| 68 |
+
anyio/abc/__pycache__/_subprocesses.cpython-311.pyc,,
|
| 69 |
+
anyio/abc/__pycache__/_tasks.cpython-311.pyc,,
|
| 70 |
+
anyio/abc/__pycache__/_testing.cpython-311.pyc,,
|
| 71 |
+
anyio/abc/_eventloop.py,sha256=0-UwgB351rkocCt8m3fjTmcNx2Fxn52nUoujG5DzMvU,11127
|
| 72 |
+
anyio/abc/_resources.py,sha256=hrb0LXUgHSp3i8G6W8JJchdzKXgg1m0T-L7udXmv2y0,900
|
| 73 |
+
anyio/abc/_sockets.py,sha256=jQWnPX7iDIDyvyvVkbuFhjezw4oI2WggzbW6Vl2-eqs,13162
|
| 74 |
+
anyio/abc/_streams.py,sha256=IMeOPPutFXRbyeAutxV1HJe7FUQZYp2qKrJJpP1DCv0,7620
|
| 75 |
+
anyio/abc/_subprocesses.py,sha256=CDqU1p0HuBS0pXUzBW_hbfhihTJRM67n__7qZmoPU84,2123
|
| 76 |
+
anyio/abc/_tasks.py,sha256=HBPpT72aOy0bwMAxBCKmnXsR328wCYRjYm3iaVw2fQo,7070
|
| 77 |
+
anyio/abc/_testing.py,sha256=A9Y8RAClIPn1A0aNHBN8YoaRy_MKOpbFGEbTHAXgB6U,2145
|
| 78 |
+
anyio/from_thread.py,sha256=iZZbfcNySi4wAcx1_cxAQE4J0YZC88qRMIYqQ6SF9sc,19415
|
| 79 |
+
anyio/functools.py,sha256=T4JS8IXq-x1S0Lbo2owF8l9fza2KypO147QLeyz4cjs,11797
|
| 80 |
+
anyio/itertools.py,sha256=TS7_UCa2Y3cggtaLlWHbjOyf6QhPfQUdPduNW-ddXTE,16255
|
| 81 |
+
anyio/lowlevel.py,sha256=QyWkvfetbCH0mHkqv1yxGwOaiZ7fyxhpZkHWOXPV5JU,6280
|
| 82 |
+
anyio/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 83 |
+
anyio/pytest_plugin.py,sha256=oLXyOstvRZW3VVbqIODhZsPt4jSz2UGh44YeG2nJXx0,14516
|
| 84 |
+
anyio/streams/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 85 |
+
anyio/streams/__pycache__/__init__.cpython-311.pyc,,
|
| 86 |
+
anyio/streams/__pycache__/buffered.cpython-311.pyc,,
|
| 87 |
+
anyio/streams/__pycache__/file.cpython-311.pyc,,
|
| 88 |
+
anyio/streams/__pycache__/memory.cpython-311.pyc,,
|
| 89 |
+
anyio/streams/__pycache__/stapled.cpython-311.pyc,,
|
| 90 |
+
anyio/streams/__pycache__/text.cpython-311.pyc,,
|
| 91 |
+
anyio/streams/__pycache__/tls.cpython-311.pyc,,
|
| 92 |
+
anyio/streams/buffered.py,sha256=u7hCD8SNrYHcutG6K5wEiy1F88-pizgjvEFM22Kq2Cw,6746
|
| 93 |
+
anyio/streams/file.py,sha256=6jujI2m-QJITqqKFamrupX_DNsU7y2Fz3omLZxOLuY0,4524
|
| 94 |
+
anyio/streams/memory.py,sha256=rpxNzDMag9PCOynBqN64KyuAfAPB41vFyRP-Npo-lE0,10793
|
| 95 |
+
anyio/streams/stapled.py,sha256=UJ2Rgt0NUmM1VovRNOoZoic960lcbDjb3vhfZg3b_Z0,4845
|
| 96 |
+
anyio/streams/text.py,sha256=BcVAGJw1VRvtIqnv-o0Rb0pwH7p8vwlvl21xHq522ag,5765
|
| 97 |
+
anyio/streams/tls.py,sha256=fqLmxvULFO9rvxGyJ33VPrOIN7E3eiU1q90BkmKigQ8,15818
|
| 98 |
+
anyio/to_interpreter.py,sha256=ATnoT6kei9wDmQZtXTA3SsY4CK7XKr8Ta4_x5i6pbTw,7100
|
| 99 |
+
anyio/to_process.py,sha256=p6n8j0nreJUl1DEkR_9PL6KRoKtNqFxORTn8qZBvn94,9850
|
| 100 |
+
anyio/to_thread.py,sha256=8MPVrrQq8ttGvV21cSd68rMto5bhxJ0-i9CupXag5Gs,2750
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio-4.15.1.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: setuptools (84.0.0)
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py3-none-any
|
| 5 |
+
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio-4.15.1.dist-info/entry_points.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[pytest11]
|
| 2 |
+
anyio = anyio.pytest_plugin
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio-4.15.1.dist-info/licenses/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.
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio-4.15.1.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
anyio
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio/__init__.py
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
from typing import TYPE_CHECKING
|
| 4 |
+
|
| 5 |
+
from ._lazyimport import (
|
| 6 |
+
fix_package_names,
|
| 7 |
+
install_lazy_importer,
|
| 8 |
+
set_deprecated_aliases,
|
| 9 |
+
)
|
| 10 |
+
|
| 11 |
+
if TYPE_CHECKING or not install_lazy_importer():
|
| 12 |
+
from ._core._concurrency_utils import amap as amap
|
| 13 |
+
from ._core._concurrency_utils import as_completed as as_completed
|
| 14 |
+
from ._core._concurrency_utils import gather as gather
|
| 15 |
+
from ._core._contextmanagers import (
|
| 16 |
+
AsyncContextManagerMixin as AsyncContextManagerMixin,
|
| 17 |
+
)
|
| 18 |
+
from ._core._contextmanagers import ContextManagerMixin as ContextManagerMixin
|
| 19 |
+
from ._core._eventloop import current_time as current_time
|
| 20 |
+
from ._core._eventloop import get_all_backends as get_all_backends
|
| 21 |
+
from ._core._eventloop import get_available_backends as get_available_backends
|
| 22 |
+
from ._core._eventloop import get_cancelled_exc_class as get_cancelled_exc_class
|
| 23 |
+
from ._core._eventloop import run as run
|
| 24 |
+
from ._core._eventloop import sleep as sleep
|
| 25 |
+
from ._core._eventloop import sleep_forever as sleep_forever
|
| 26 |
+
from ._core._eventloop import sleep_until as sleep_until
|
| 27 |
+
from ._core._exceptions import BrokenResourceError as BrokenResourceError
|
| 28 |
+
from ._core._exceptions import BrokenWorkerInterpreter as BrokenWorkerInterpreter
|
| 29 |
+
from ._core._exceptions import BrokenWorkerProcess as BrokenWorkerProcess
|
| 30 |
+
from ._core._exceptions import BusyResourceError as BusyResourceError
|
| 31 |
+
from ._core._exceptions import ClosedResourceError as ClosedResourceError
|
| 32 |
+
from ._core._exceptions import ConnectionFailed as ConnectionFailed
|
| 33 |
+
from ._core._exceptions import DelimiterNotFound as DelimiterNotFound
|
| 34 |
+
from ._core._exceptions import EndOfStream as EndOfStream
|
| 35 |
+
from ._core._exceptions import FutureAlreadyFinished as FutureAlreadyFinished
|
| 36 |
+
from ._core._exceptions import FutureCancelled as FutureCancelled
|
| 37 |
+
from ._core._exceptions import FutureFailed as FutureFailed
|
| 38 |
+
from ._core._exceptions import FutureNotFinished as FutureNotFinished
|
| 39 |
+
from ._core._exceptions import IncompleteRead as IncompleteRead
|
| 40 |
+
from ._core._exceptions import NoEventLoopError as NoEventLoopError
|
| 41 |
+
from ._core._exceptions import RunFinishedError as RunFinishedError
|
| 42 |
+
from ._core._exceptions import TaskCancelled as TaskCancelled
|
| 43 |
+
from ._core._exceptions import TaskFailed as TaskFailed
|
| 44 |
+
from ._core._exceptions import TaskNotFinished as TaskNotFinished
|
| 45 |
+
from ._core._exceptions import (
|
| 46 |
+
TypedAttributeLookupError as TypedAttributeLookupError,
|
| 47 |
+
)
|
| 48 |
+
from ._core._exceptions import WouldBlock as WouldBlock
|
| 49 |
+
from ._core._fileio import AsyncFile as AsyncFile
|
| 50 |
+
from ._core._fileio import Path as Path
|
| 51 |
+
from ._core._fileio import open_file as open_file
|
| 52 |
+
from ._core._fileio import wrap_file as wrap_file
|
| 53 |
+
from ._core._futures import Future as Future
|
| 54 |
+
from ._core._resources import aclose_forcefully as aclose_forcefully
|
| 55 |
+
from ._core._signals import open_signal_receiver as open_signal_receiver
|
| 56 |
+
from ._core._sockets import TCPConnectable as TCPConnectable
|
| 57 |
+
from ._core._sockets import UNIXConnectable as UNIXConnectable
|
| 58 |
+
from ._core._sockets import as_connectable as as_connectable
|
| 59 |
+
from ._core._sockets import connect_tcp as connect_tcp
|
| 60 |
+
from ._core._sockets import connect_unix as connect_unix
|
| 61 |
+
from ._core._sockets import (
|
| 62 |
+
create_connected_udp_socket as create_connected_udp_socket,
|
| 63 |
+
)
|
| 64 |
+
from ._core._sockets import (
|
| 65 |
+
create_connected_unix_datagram_socket as create_connected_unix_datagram_socket,
|
| 66 |
+
)
|
| 67 |
+
from ._core._sockets import create_tcp_listener as create_tcp_listener
|
| 68 |
+
from ._core._sockets import create_udp_socket as create_udp_socket
|
| 69 |
+
from ._core._sockets import (
|
| 70 |
+
create_unix_datagram_socket as create_unix_datagram_socket,
|
| 71 |
+
)
|
| 72 |
+
from ._core._sockets import create_unix_listener as create_unix_listener
|
| 73 |
+
from ._core._sockets import getaddrinfo as getaddrinfo
|
| 74 |
+
from ._core._sockets import getnameinfo as getnameinfo
|
| 75 |
+
from ._core._sockets import notify_closing as notify_closing
|
| 76 |
+
from ._core._sockets import wait_readable as wait_readable
|
| 77 |
+
from ._core._sockets import wait_socket_readable as wait_socket_readable
|
| 78 |
+
from ._core._sockets import wait_socket_writable as wait_socket_writable
|
| 79 |
+
from ._core._sockets import wait_writable as wait_writable
|
| 80 |
+
from ._core._streams import (
|
| 81 |
+
create_memory_object_stream as create_memory_object_stream,
|
| 82 |
+
)
|
| 83 |
+
from ._core._subprocesses import open_process as open_process
|
| 84 |
+
from ._core._subprocesses import run_process as run_process
|
| 85 |
+
from ._core._synchronization import CapacityLimiter as CapacityLimiter
|
| 86 |
+
from ._core._synchronization import (
|
| 87 |
+
CapacityLimiterStatistics as CapacityLimiterStatistics,
|
| 88 |
+
)
|
| 89 |
+
from ._core._synchronization import Condition as Condition
|
| 90 |
+
from ._core._synchronization import ConditionStatistics as ConditionStatistics
|
| 91 |
+
from ._core._synchronization import Event as Event
|
| 92 |
+
from ._core._synchronization import EventStatistics as EventStatistics
|
| 93 |
+
from ._core._synchronization import Lock as Lock
|
| 94 |
+
from ._core._synchronization import LockStatistics as LockStatistics
|
| 95 |
+
from ._core._synchronization import ResourceGuard as ResourceGuard
|
| 96 |
+
from ._core._synchronization import Semaphore as Semaphore
|
| 97 |
+
from ._core._synchronization import SemaphoreStatistics as SemaphoreStatistics
|
| 98 |
+
from ._core._tasks import TASK_STATUS_IGNORED as TASK_STATUS_IGNORED
|
| 99 |
+
from ._core._tasks import CancelScope as CancelScope
|
| 100 |
+
from ._core._tasks import TaskHandle as TaskHandle
|
| 101 |
+
from ._core._tasks import create_task_group as create_task_group
|
| 102 |
+
from ._core._tasks import current_effective_deadline as current_effective_deadline
|
| 103 |
+
from ._core._tasks import fail_after as fail_after
|
| 104 |
+
from ._core._tasks import fail_at as fail_at
|
| 105 |
+
from ._core._tasks import move_on_after as move_on_after
|
| 106 |
+
from ._core._tasks import move_on_at as move_on_at
|
| 107 |
+
from ._core._tempfile import NamedTemporaryFile as NamedTemporaryFile
|
| 108 |
+
from ._core._tempfile import SpooledTemporaryFile as SpooledTemporaryFile
|
| 109 |
+
from ._core._tempfile import TemporaryDirectory as TemporaryDirectory
|
| 110 |
+
from ._core._tempfile import TemporaryFile as TemporaryFile
|
| 111 |
+
from ._core._tempfile import gettempdir as gettempdir
|
| 112 |
+
from ._core._tempfile import gettempdirb as gettempdirb
|
| 113 |
+
from ._core._tempfile import mkdtemp as mkdtemp
|
| 114 |
+
from ._core._tempfile import mkstemp as mkstemp
|
| 115 |
+
from ._core._testing import TaskInfo as TaskInfo
|
| 116 |
+
from ._core._testing import get_current_task as get_current_task
|
| 117 |
+
from ._core._testing import get_running_tasks as get_running_tasks
|
| 118 |
+
from ._core._testing import wait_all_tasks_blocked as wait_all_tasks_blocked
|
| 119 |
+
from ._core._typedattr import TypedAttributeProvider as TypedAttributeProvider
|
| 120 |
+
from ._core._typedattr import TypedAttributeSet as TypedAttributeSet
|
| 121 |
+
from ._core._typedattr import typed_attribute as typed_attribute
|
| 122 |
+
|
| 123 |
+
# ruff: isort: off
|
| 124 |
+
from . import (
|
| 125 |
+
abc as abc,
|
| 126 |
+
)
|
| 127 |
+
from . import (
|
| 128 |
+
from_thread as from_thread,
|
| 129 |
+
)
|
| 130 |
+
from . import (
|
| 131 |
+
functools as functools,
|
| 132 |
+
)
|
| 133 |
+
from . import (
|
| 134 |
+
itertools as itertools,
|
| 135 |
+
)
|
| 136 |
+
from . import (
|
| 137 |
+
lowlevel as lowlevel,
|
| 138 |
+
)
|
| 139 |
+
from . import (
|
| 140 |
+
to_interpreter as to_interpreter,
|
| 141 |
+
)
|
| 142 |
+
from . import (
|
| 143 |
+
to_process as to_process,
|
| 144 |
+
)
|
| 145 |
+
from . import (
|
| 146 |
+
to_thread as to_thread,
|
| 147 |
+
)
|
| 148 |
+
|
| 149 |
+
fix_package_names()
|
| 150 |
+
set_deprecated_aliases(
|
| 151 |
+
{
|
| 152 |
+
"BrokenWorkerIntepreter": "anyio.BrokenWorkerInterpreter",
|
| 153 |
+
}
|
| 154 |
+
)
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio/__pycache__/__init__.cpython-311.pyc
ADDED
|
Binary file (6.81 kB). View file
|
|
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio/__pycache__/_lazyimport.cpython-311.pyc
ADDED
|
Binary file (9.19 kB). View file
|
|
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio/__pycache__/from_thread.cpython-311.pyc
ADDED
|
Binary file (28.3 kB). View file
|
|
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio/__pycache__/functools.cpython-311.pyc
ADDED
|
Binary file (17.7 kB). View file
|
|
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio/__pycache__/itertools.cpython-311.pyc
ADDED
|
Binary file (27.4 kB). View file
|
|
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio/__pycache__/lowlevel.cpython-311.pyc
ADDED
|
Binary file (9.98 kB). View file
|
|
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio/__pycache__/pytest_plugin.cpython-311.pyc
ADDED
|
Binary file (20.4 kB). View file
|
|
|
physworld_p1_20261018/envs/p1/lib/python3.11/site-packages/anyio/__pycache__/to_interpreter.cpython-311.pyc
ADDED
|
Binary file (11.5 kB). View file
|
|
|