Datasets:

License:
fofr commited on
Commit
9494cea
·
verified ·
1 Parent(s): ecd796c

Delete outputs/venv

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. outputs/venv/bin/Activate.ps1 +0 -247
  2. outputs/venv/bin/activate +0 -70
  3. outputs/venv/bin/activate.csh +0 -27
  4. outputs/venv/bin/activate.fish +0 -69
  5. outputs/venv/bin/datasets-cli +0 -8
  6. outputs/venv/bin/f2py +0 -8
  7. outputs/venv/bin/get_gprof +0 -75
  8. outputs/venv/bin/get_objgraph +0 -54
  9. outputs/venv/bin/huggingface-cli +0 -8
  10. outputs/venv/bin/normalizer +0 -8
  11. outputs/venv/bin/numpy-config +0 -8
  12. outputs/venv/bin/pip +0 -8
  13. outputs/venv/bin/pip3 +0 -8
  14. outputs/venv/bin/pip3.12 +0 -8
  15. outputs/venv/bin/python +0 -0
  16. outputs/venv/bin/python3 +0 -0
  17. outputs/venv/bin/python3.12 +0 -0
  18. outputs/venv/bin/tqdm +0 -8
  19. outputs/venv/bin/undill +0 -22
  20. outputs/venv/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/INSTALLER +0 -1
  21. outputs/venv/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/LICENSE +0 -20
  22. outputs/venv/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/METADATA +0 -46
  23. outputs/venv/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/RECORD +0 -43
  24. outputs/venv/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/WHEEL +0 -5
  25. outputs/venv/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/top_level.txt +0 -2
  26. outputs/venv/lib/python3.12/site-packages/__pycache__/six.cpython-312.pyc +0 -0
  27. outputs/venv/lib/python3.12/site-packages/__pycache__/typing_extensions.cpython-312.pyc +0 -0
  28. outputs/venv/lib/python3.12/site-packages/_multiprocess/__init__.py +0 -8
  29. outputs/venv/lib/python3.12/site-packages/_multiprocess/__pycache__/__init__.cpython-312.pyc +0 -0
  30. outputs/venv/lib/python3.12/site-packages/_yaml/__init__.py +0 -33
  31. outputs/venv/lib/python3.12/site-packages/_yaml/__pycache__/__init__.cpython-312.pyc +0 -0
  32. outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs-2.4.2.dist-info/INSTALLER +0 -1
  33. outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs-2.4.2.dist-info/LICENSE +0 -279
  34. outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs-2.4.2.dist-info/METADATA +0 -126
  35. outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs-2.4.2.dist-info/RECORD +0 -18
  36. outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs-2.4.2.dist-info/WHEEL +0 -4
  37. outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs/__init__.py +0 -13
  38. outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs/__pycache__/__init__.cpython-312.pyc +0 -0
  39. outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs/__pycache__/_staggered.cpython-312.pyc +0 -0
  40. outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs/__pycache__/impl.cpython-312.pyc +0 -0
  41. outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs/__pycache__/staggered.cpython-312.pyc +0 -0
  42. outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs/__pycache__/types.cpython-312.pyc +0 -0
  43. outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs/__pycache__/utils.cpython-312.pyc +0 -0
  44. outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs/_staggered.py +0 -101
  45. outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs/impl.py +0 -204
  46. outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs/py.typed +0 -0
  47. outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs/staggered.py +0 -9
  48. outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs/types.py +0 -12
  49. outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs/utils.py +0 -97
  50. outputs/venv/lib/python3.12/site-packages/aiohttp-3.10.8.dist-info/INSTALLER +0 -1
outputs/venv/bin/Activate.ps1 DELETED
@@ -1,247 +0,0 @@
1
- <#
2
- .Synopsis
3
- Activate a Python virtual environment for the current PowerShell session.
4
-
5
- .Description
6
- Pushes the python executable for a virtual environment to the front of the
7
- $Env:PATH environment variable and sets the prompt to signify that you are
8
- in a Python virtual environment. Makes use of the command line switches as
9
- well as the `pyvenv.cfg` file values present in the virtual environment.
10
-
11
- .Parameter VenvDir
12
- Path to the directory that contains the virtual environment to activate. The
13
- default value for this is the parent of the directory that the Activate.ps1
14
- script is located within.
15
-
16
- .Parameter Prompt
17
- The prompt prefix to display when this virtual environment is activated. By
18
- default, this prompt is the name of the virtual environment folder (VenvDir)
19
- surrounded by parentheses and followed by a single space (ie. '(.venv) ').
20
-
21
- .Example
22
- Activate.ps1
23
- Activates the Python virtual environment that contains the Activate.ps1 script.
24
-
25
- .Example
26
- Activate.ps1 -Verbose
27
- Activates the Python virtual environment that contains the Activate.ps1 script,
28
- and shows extra information about the activation as it executes.
29
-
30
- .Example
31
- Activate.ps1 -VenvDir C:\Users\MyUser\Common\.venv
32
- Activates the Python virtual environment located in the specified location.
33
-
34
- .Example
35
- Activate.ps1 -Prompt "MyPython"
36
- Activates the Python virtual environment that contains the Activate.ps1 script,
37
- and prefixes the current prompt with the specified string (surrounded in
38
- parentheses) while the virtual environment is active.
39
-
40
- .Notes
41
- On Windows, it may be required to enable this Activate.ps1 script by setting the
42
- execution policy for the user. You can do this by issuing the following PowerShell
43
- command:
44
-
45
- PS C:\> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
46
-
47
- For more information on Execution Policies:
48
- https://go.microsoft.com/fwlink/?LinkID=135170
49
-
50
- #>
51
- Param(
52
- [Parameter(Mandatory = $false)]
53
- [String]
54
- $VenvDir,
55
- [Parameter(Mandatory = $false)]
56
- [String]
57
- $Prompt
58
- )
59
-
60
- <# Function declarations --------------------------------------------------- #>
61
-
62
- <#
63
- .Synopsis
64
- Remove all shell session elements added by the Activate script, including the
65
- addition of the virtual environment's Python executable from the beginning of
66
- the PATH variable.
67
-
68
- .Parameter NonDestructive
69
- If present, do not remove this function from the global namespace for the
70
- session.
71
-
72
- #>
73
- function global:deactivate ([switch]$NonDestructive) {
74
- # Revert to original values
75
-
76
- # The prior prompt:
77
- if (Test-Path -Path Function:_OLD_VIRTUAL_PROMPT) {
78
- Copy-Item -Path Function:_OLD_VIRTUAL_PROMPT -Destination Function:prompt
79
- Remove-Item -Path Function:_OLD_VIRTUAL_PROMPT
80
- }
81
-
82
- # The prior PYTHONHOME:
83
- if (Test-Path -Path Env:_OLD_VIRTUAL_PYTHONHOME) {
84
- Copy-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME -Destination Env:PYTHONHOME
85
- Remove-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME
86
- }
87
-
88
- # The prior PATH:
89
- if (Test-Path -Path Env:_OLD_VIRTUAL_PATH) {
90
- Copy-Item -Path Env:_OLD_VIRTUAL_PATH -Destination Env:PATH
91
- Remove-Item -Path Env:_OLD_VIRTUAL_PATH
92
- }
93
-
94
- # Just remove the VIRTUAL_ENV altogether:
95
- if (Test-Path -Path Env:VIRTUAL_ENV) {
96
- Remove-Item -Path env:VIRTUAL_ENV
97
- }
98
-
99
- # Just remove VIRTUAL_ENV_PROMPT altogether.
100
- if (Test-Path -Path Env:VIRTUAL_ENV_PROMPT) {
101
- Remove-Item -Path env:VIRTUAL_ENV_PROMPT
102
- }
103
-
104
- # Just remove the _PYTHON_VENV_PROMPT_PREFIX altogether:
105
- if (Get-Variable -Name "_PYTHON_VENV_PROMPT_PREFIX" -ErrorAction SilentlyContinue) {
106
- Remove-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Scope Global -Force
107
- }
108
-
109
- # Leave deactivate function in the global namespace if requested:
110
- if (-not $NonDestructive) {
111
- Remove-Item -Path function:deactivate
112
- }
113
- }
114
-
115
- <#
116
- .Description
117
- Get-PyVenvConfig parses the values from the pyvenv.cfg file located in the
118
- given folder, and returns them in a map.
119
-
120
- For each line in the pyvenv.cfg file, if that line can be parsed into exactly
121
- two strings separated by `=` (with any amount of whitespace surrounding the =)
122
- then it is considered a `key = value` line. The left hand string is the key,
123
- the right hand is the value.
124
-
125
- If the value starts with a `'` or a `"` then the first and last character is
126
- stripped from the value before being captured.
127
-
128
- .Parameter ConfigDir
129
- Path to the directory that contains the `pyvenv.cfg` file.
130
- #>
131
- function Get-PyVenvConfig(
132
- [String]
133
- $ConfigDir
134
- ) {
135
- Write-Verbose "Given ConfigDir=$ConfigDir, obtain values in pyvenv.cfg"
136
-
137
- # Ensure the file exists, and issue a warning if it doesn't (but still allow the function to continue).
138
- $pyvenvConfigPath = Join-Path -Resolve -Path $ConfigDir -ChildPath 'pyvenv.cfg' -ErrorAction Continue
139
-
140
- # An empty map will be returned if no config file is found.
141
- $pyvenvConfig = @{ }
142
-
143
- if ($pyvenvConfigPath) {
144
-
145
- Write-Verbose "File exists, parse `key = value` lines"
146
- $pyvenvConfigContent = Get-Content -Path $pyvenvConfigPath
147
-
148
- $pyvenvConfigContent | ForEach-Object {
149
- $keyval = $PSItem -split "\s*=\s*", 2
150
- if ($keyval[0] -and $keyval[1]) {
151
- $val = $keyval[1]
152
-
153
- # Remove extraneous quotations around a string value.
154
- if ("'""".Contains($val.Substring(0, 1))) {
155
- $val = $val.Substring(1, $val.Length - 2)
156
- }
157
-
158
- $pyvenvConfig[$keyval[0]] = $val
159
- Write-Verbose "Adding Key: '$($keyval[0])'='$val'"
160
- }
161
- }
162
- }
163
- return $pyvenvConfig
164
- }
165
-
166
-
167
- <# Begin Activate script --------------------------------------------------- #>
168
-
169
- # Determine the containing directory of this script
170
- $VenvExecPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
171
- $VenvExecDir = Get-Item -Path $VenvExecPath
172
-
173
- Write-Verbose "Activation script is located in path: '$VenvExecPath'"
174
- Write-Verbose "VenvExecDir Fullname: '$($VenvExecDir.FullName)"
175
- Write-Verbose "VenvExecDir Name: '$($VenvExecDir.Name)"
176
-
177
- # Set values required in priority: CmdLine, ConfigFile, Default
178
- # First, get the location of the virtual environment, it might not be
179
- # VenvExecDir if specified on the command line.
180
- if ($VenvDir) {
181
- Write-Verbose "VenvDir given as parameter, using '$VenvDir' to determine values"
182
- }
183
- else {
184
- Write-Verbose "VenvDir not given as a parameter, using parent directory name as VenvDir."
185
- $VenvDir = $VenvExecDir.Parent.FullName.TrimEnd("\\/")
186
- Write-Verbose "VenvDir=$VenvDir"
187
- }
188
-
189
- # Next, read the `pyvenv.cfg` file to determine any required value such
190
- # as `prompt`.
191
- $pyvenvCfg = Get-PyVenvConfig -ConfigDir $VenvDir
192
-
193
- # Next, set the prompt from the command line, or the config file, or
194
- # just use the name of the virtual environment folder.
195
- if ($Prompt) {
196
- Write-Verbose "Prompt specified as argument, using '$Prompt'"
197
- }
198
- else {
199
- Write-Verbose "Prompt not specified as argument to script, checking pyvenv.cfg value"
200
- if ($pyvenvCfg -and $pyvenvCfg['prompt']) {
201
- Write-Verbose " Setting based on value in pyvenv.cfg='$($pyvenvCfg['prompt'])'"
202
- $Prompt = $pyvenvCfg['prompt'];
203
- }
204
- else {
205
- Write-Verbose " Setting prompt based on parent's directory's name. (Is the directory name passed to venv module when creating the virtual environment)"
206
- Write-Verbose " Got leaf-name of $VenvDir='$(Split-Path -Path $venvDir -Leaf)'"
207
- $Prompt = Split-Path -Path $venvDir -Leaf
208
- }
209
- }
210
-
211
- Write-Verbose "Prompt = '$Prompt'"
212
- Write-Verbose "VenvDir='$VenvDir'"
213
-
214
- # Deactivate any currently active virtual environment, but leave the
215
- # deactivate function in place.
216
- deactivate -nondestructive
217
-
218
- # Now set the environment variable VIRTUAL_ENV, used by many tools to determine
219
- # that there is an activated venv.
220
- $env:VIRTUAL_ENV = $VenvDir
221
-
222
- if (-not $Env:VIRTUAL_ENV_DISABLE_PROMPT) {
223
-
224
- Write-Verbose "Setting prompt to '$Prompt'"
225
-
226
- # Set the prompt to include the env name
227
- # Make sure _OLD_VIRTUAL_PROMPT is global
228
- function global:_OLD_VIRTUAL_PROMPT { "" }
229
- Copy-Item -Path function:prompt -Destination function:_OLD_VIRTUAL_PROMPT
230
- New-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Description "Python virtual environment prompt prefix" -Scope Global -Option ReadOnly -Visibility Public -Value $Prompt
231
-
232
- function global:prompt {
233
- Write-Host -NoNewline -ForegroundColor Green "($_PYTHON_VENV_PROMPT_PREFIX) "
234
- _OLD_VIRTUAL_PROMPT
235
- }
236
- $env:VIRTUAL_ENV_PROMPT = $Prompt
237
- }
238
-
239
- # Clear PYTHONHOME
240
- if (Test-Path -Path Env:PYTHONHOME) {
241
- Copy-Item -Path Env:PYTHONHOME -Destination Env:_OLD_VIRTUAL_PYTHONHOME
242
- Remove-Item -Path Env:PYTHONHOME
243
- }
244
-
245
- # Add the venv to the PATH
246
- Copy-Item -Path Env:PATH -Destination Env:_OLD_VIRTUAL_PATH
247
- $Env:PATH = "$VenvExecDir$([System.IO.Path]::PathSeparator)$Env:PATH"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
outputs/venv/bin/activate DELETED
@@ -1,70 +0,0 @@
1
- # This file must be used with "source bin/activate" *from bash*
2
- # You cannot run it directly
3
-
4
- deactivate () {
5
- # reset old environment variables
6
- if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then
7
- PATH="${_OLD_VIRTUAL_PATH:-}"
8
- export PATH
9
- unset _OLD_VIRTUAL_PATH
10
- fi
11
- if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then
12
- PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}"
13
- export PYTHONHOME
14
- unset _OLD_VIRTUAL_PYTHONHOME
15
- fi
16
-
17
- # Call hash to forget past commands. Without forgetting
18
- # past commands the $PATH changes we made may not be respected
19
- hash -r 2> /dev/null
20
-
21
- if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then
22
- PS1="${_OLD_VIRTUAL_PS1:-}"
23
- export PS1
24
- unset _OLD_VIRTUAL_PS1
25
- fi
26
-
27
- unset VIRTUAL_ENV
28
- unset VIRTUAL_ENV_PROMPT
29
- if [ ! "${1:-}" = "nondestructive" ] ; then
30
- # Self destruct!
31
- unset -f deactivate
32
- fi
33
- }
34
-
35
- # unset irrelevant variables
36
- deactivate nondestructive
37
-
38
- # on Windows, a path can contain colons and backslashes and has to be converted:
39
- if [ "${OSTYPE:-}" = "cygwin" ] || [ "${OSTYPE:-}" = "msys" ] ; then
40
- # transform D:\path\to\venv to /d/path/to/venv on MSYS
41
- # and to /cygdrive/d/path/to/venv on Cygwin
42
- export VIRTUAL_ENV=$(cygpath "/Users/fofr/Dropbox/AI/r8-tests/2024-09-21/venv")
43
- else
44
- # use the path as-is
45
- export VIRTUAL_ENV="/Users/fofr/Dropbox/AI/r8-tests/2024-09-21/venv"
46
- fi
47
-
48
- _OLD_VIRTUAL_PATH="$PATH"
49
- PATH="$VIRTUAL_ENV/bin:$PATH"
50
- export PATH
51
-
52
- # unset PYTHONHOME if set
53
- # this will fail if PYTHONHOME is set to the empty string (which is bad anyway)
54
- # could use `if (set -u; : $PYTHONHOME) ;` in bash
55
- if [ -n "${PYTHONHOME:-}" ] ; then
56
- _OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}"
57
- unset PYTHONHOME
58
- fi
59
-
60
- if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then
61
- _OLD_VIRTUAL_PS1="${PS1:-}"
62
- PS1="(venv) ${PS1:-}"
63
- export PS1
64
- VIRTUAL_ENV_PROMPT="(venv) "
65
- export VIRTUAL_ENV_PROMPT
66
- fi
67
-
68
- # Call hash to forget past commands. Without forgetting
69
- # past commands the $PATH changes we made may not be respected
70
- hash -r 2> /dev/null
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
outputs/venv/bin/activate.csh DELETED
@@ -1,27 +0,0 @@
1
- # This file must be used with "source bin/activate.csh" *from csh*.
2
- # You cannot run it directly.
3
-
4
- # Created by Davide Di Blasi <[email protected]>.
5
- # Ported to Python 3.3 venv by Andrew Svetlov <[email protected]>
6
-
7
- alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; unsetenv VIRTUAL_ENV_PROMPT; test "\!:*" != "nondestructive" && unalias deactivate'
8
-
9
- # Unset irrelevant variables.
10
- deactivate nondestructive
11
-
12
- setenv VIRTUAL_ENV "/Users/fofr/Dropbox/AI/r8-tests/2024-09-21/venv"
13
-
14
- set _OLD_VIRTUAL_PATH="$PATH"
15
- setenv PATH "$VIRTUAL_ENV/bin:$PATH"
16
-
17
-
18
- set _OLD_VIRTUAL_PROMPT="$prompt"
19
-
20
- if (! "$?VIRTUAL_ENV_DISABLE_PROMPT") then
21
- set prompt = "(venv) $prompt"
22
- setenv VIRTUAL_ENV_PROMPT "(venv) "
23
- endif
24
-
25
- alias pydoc python -m pydoc
26
-
27
- rehash
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
outputs/venv/bin/activate.fish DELETED
@@ -1,69 +0,0 @@
1
- # This file must be used with "source <venv>/bin/activate.fish" *from fish*
2
- # (https://fishshell.com/). You cannot run it directly.
3
-
4
- function deactivate -d "Exit virtual environment and return to normal shell environment"
5
- # reset old environment variables
6
- if test -n "$_OLD_VIRTUAL_PATH"
7
- set -gx PATH $_OLD_VIRTUAL_PATH
8
- set -e _OLD_VIRTUAL_PATH
9
- end
10
- if test -n "$_OLD_VIRTUAL_PYTHONHOME"
11
- set -gx PYTHONHOME $_OLD_VIRTUAL_PYTHONHOME
12
- set -e _OLD_VIRTUAL_PYTHONHOME
13
- end
14
-
15
- if test -n "$_OLD_FISH_PROMPT_OVERRIDE"
16
- set -e _OLD_FISH_PROMPT_OVERRIDE
17
- # prevents error when using nested fish instances (Issue #93858)
18
- if functions -q _old_fish_prompt
19
- functions -e fish_prompt
20
- functions -c _old_fish_prompt fish_prompt
21
- functions -e _old_fish_prompt
22
- end
23
- end
24
-
25
- set -e VIRTUAL_ENV
26
- set -e VIRTUAL_ENV_PROMPT
27
- if test "$argv[1]" != "nondestructive"
28
- # Self-destruct!
29
- functions -e deactivate
30
- end
31
- end
32
-
33
- # Unset irrelevant variables.
34
- deactivate nondestructive
35
-
36
- set -gx VIRTUAL_ENV "/Users/fofr/Dropbox/AI/r8-tests/2024-09-21/venv"
37
-
38
- set -gx _OLD_VIRTUAL_PATH $PATH
39
- set -gx PATH "$VIRTUAL_ENV/bin" $PATH
40
-
41
- # Unset PYTHONHOME if set.
42
- if set -q PYTHONHOME
43
- set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME
44
- set -e PYTHONHOME
45
- end
46
-
47
- if test -z "$VIRTUAL_ENV_DISABLE_PROMPT"
48
- # fish uses a function instead of an env var to generate the prompt.
49
-
50
- # Save the current fish_prompt function as the function _old_fish_prompt.
51
- functions -c fish_prompt _old_fish_prompt
52
-
53
- # With the original prompt function renamed, we can override with our own.
54
- function fish_prompt
55
- # Save the return status of the last command.
56
- set -l old_status $status
57
-
58
- # Output the venv prompt; color taken from the blue of the Python logo.
59
- printf "%s%s%s" (set_color 4B8BBE) "(venv) " (set_color normal)
60
-
61
- # Restore the return status of the previous command.
62
- echo "exit $old_status" | .
63
- # Output the original/"old" prompt.
64
- _old_fish_prompt
65
- end
66
-
67
- set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV"
68
- set -gx VIRTUAL_ENV_PROMPT "(venv) "
69
- end
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
outputs/venv/bin/datasets-cli DELETED
@@ -1,8 +0,0 @@
1
- #!/Users/fofr/Dropbox/AI/r8-tests/2024-09-21/venv/bin/python3.12
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from datasets.commands.datasets_cli import main
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(main())
 
 
 
 
 
 
 
 
 
outputs/venv/bin/f2py DELETED
@@ -1,8 +0,0 @@
1
- #!/Users/fofr/Dropbox/AI/r8-tests/2024-09-21/venv/bin/python3.12
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from numpy.f2py.f2py2e import main
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(main())
 
 
 
 
 
 
 
 
 
outputs/venv/bin/get_gprof DELETED
@@ -1,75 +0,0 @@
1
- #!/Users/fofr/Dropbox/AI/r8-tests/2024-09-21/venv/bin/python3.12
2
- #
3
- # Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
4
- # Copyright (c) 2008-2016 California Institute of Technology.
5
- # Copyright (c) 2016-2024 The Uncertainty Quantification Foundation.
6
- # License: 3-clause BSD. The full license text is available at:
7
- # - https://github.com/uqfoundation/dill/blob/master/LICENSE
8
- '''
9
- build profile graph for the given instance
10
-
11
- running:
12
- $ get_gprof <args> <instance>
13
-
14
- executes:
15
- gprof2dot -f pstats <args> <type>.prof | dot -Tpng -o <type>.call.png
16
-
17
- where:
18
- <args> are arguments for gprof2dot, such as "-n 5 -e 5"
19
- <instance> is code to create the instance to profile
20
- <type> is the class of the instance (i.e. type(instance))
21
-
22
- For example:
23
- $ get_gprof -n 5 -e 1 "import numpy; numpy.array([1,2])"
24
-
25
- will create 'ndarray.call.png' with the profile graph for numpy.array([1,2]),
26
- where '-n 5' eliminates nodes below 5% threshold, similarly '-e 1' eliminates
27
- edges below 1% threshold
28
- '''
29
-
30
- if __name__ == "__main__":
31
- import sys
32
- if len(sys.argv) < 2:
33
- print ("Please provide an object instance (e.g. 'import math; math.pi')")
34
- sys.exit()
35
- # grab args for gprof2dot
36
- args = sys.argv[1:-1]
37
- args = ' '.join(args)
38
- # last arg builds the object
39
- obj = sys.argv[-1]
40
- obj = obj.split(';')
41
- # multi-line prep for generating an instance
42
- for line in obj[:-1]:
43
- exec(line)
44
- # one-line generation of an instance
45
- try:
46
- obj = eval(obj[-1])
47
- except Exception:
48
- print ("Error processing object instance")
49
- sys.exit()
50
-
51
- # get object 'name'
52
- objtype = type(obj)
53
- name = getattr(objtype, '__name__', getattr(objtype, '__class__', objtype))
54
-
55
- # profile dumping an object
56
- import dill
57
- import os
58
- import cProfile
59
- #name = os.path.splitext(os.path.basename(__file__))[0]
60
- cProfile.run("dill.dumps(obj)", filename="%s.prof" % name)
61
- msg = "gprof2dot -f pstats %s %s.prof | dot -Tpng -o %s.call.png" % (args, name, name)
62
- try:
63
- res = os.system(msg)
64
- except Exception:
65
- print ("Please verify install of 'gprof2dot' to view profile graphs")
66
- if res:
67
- print ("Please verify install of 'gprof2dot' to view profile graphs")
68
-
69
- # get stats
70
- f_prof = "%s.prof" % name
71
- import pstats
72
- stats = pstats.Stats(f_prof, stream=sys.stdout)
73
- stats.strip_dirs().sort_stats('cumtime')
74
- stats.print_stats(20) #XXX: save to file instead of print top 20?
75
- os.remove(f_prof)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
outputs/venv/bin/get_objgraph DELETED
@@ -1,54 +0,0 @@
1
- #!/Users/fofr/Dropbox/AI/r8-tests/2024-09-21/venv/bin/python3.12
2
- #
3
- # Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
4
- # Copyright (c) 2008-2016 California Institute of Technology.
5
- # Copyright (c) 2016-2024 The Uncertainty Quantification Foundation.
6
- # License: 3-clause BSD. The full license text is available at:
7
- # - https://github.com/uqfoundation/dill/blob/master/LICENSE
8
- """
9
- display the reference paths for objects in ``dill.types`` or a .pkl file
10
-
11
- Notes:
12
- the generated image is useful in showing the pointer references in
13
- objects that are or can be pickled. Any object in ``dill.objects``
14
- listed in ``dill.load_types(picklable=True, unpicklable=True)`` works.
15
-
16
- Examples::
17
-
18
- $ get_objgraph ArrayType
19
- Image generated as ArrayType.png
20
- """
21
-
22
- import dill as pickle
23
- #pickle.debug.trace(True)
24
- #import pickle
25
-
26
- # get all objects for testing
27
- from dill import load_types
28
- load_types(pickleable=True,unpickleable=True)
29
- from dill import objects
30
-
31
- if __name__ == "__main__":
32
- import sys
33
- if len(sys.argv) != 2:
34
- print ("Please provide exactly one file or type name (e.g. 'IntType')")
35
- msg = "\n"
36
- for objtype in list(objects.keys())[:40]:
37
- msg += objtype + ', '
38
- print (msg + "...")
39
- else:
40
- objtype = str(sys.argv[-1])
41
- try:
42
- obj = objects[objtype]
43
- except KeyError:
44
- obj = pickle.load(open(objtype,'rb'))
45
- import os
46
- objtype = os.path.splitext(objtype)[0]
47
- try:
48
- import objgraph
49
- objgraph.show_refs(obj, filename=objtype+'.png')
50
- except ImportError:
51
- print ("Please install 'objgraph' to view object graphs")
52
-
53
-
54
- # EOF
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
outputs/venv/bin/huggingface-cli DELETED
@@ -1,8 +0,0 @@
1
- #!/Users/fofr/Dropbox/AI/r8-tests/2024-09-21/venv/bin/python3.12
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from huggingface_hub.commands.huggingface_cli import main
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(main())
 
 
 
 
 
 
 
 
 
outputs/venv/bin/normalizer DELETED
@@ -1,8 +0,0 @@
1
- #!/Users/fofr/Dropbox/AI/r8-tests/2024-09-21/venv/bin/python3.12
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from charset_normalizer.cli import cli_detect
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(cli_detect())
 
 
 
 
 
 
 
 
 
outputs/venv/bin/numpy-config DELETED
@@ -1,8 +0,0 @@
1
- #!/Users/fofr/Dropbox/AI/r8-tests/2024-09-21/venv/bin/python3.12
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from numpy._configtool import main
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(main())
 
 
 
 
 
 
 
 
 
outputs/venv/bin/pip DELETED
@@ -1,8 +0,0 @@
1
- #!/Users/fofr/Dropbox/AI/r8-tests/2024-09-21/venv/bin/python3.12
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from pip._internal.cli.main import main
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(main())
 
 
 
 
 
 
 
 
 
outputs/venv/bin/pip3 DELETED
@@ -1,8 +0,0 @@
1
- #!/Users/fofr/Dropbox/AI/r8-tests/2024-09-21/venv/bin/python3.12
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from pip._internal.cli.main import main
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(main())
 
 
 
 
 
 
 
 
 
outputs/venv/bin/pip3.12 DELETED
@@ -1,8 +0,0 @@
1
- #!/Users/fofr/Dropbox/AI/r8-tests/2024-09-21/venv/bin/python3.12
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from pip._internal.cli.main import main
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(main())
 
 
 
 
 
 
 
 
 
outputs/venv/bin/python DELETED
Binary file (52.6 kB)
 
outputs/venv/bin/python3 DELETED
Binary file (52.6 kB)
 
outputs/venv/bin/python3.12 DELETED
Binary file (52.6 kB)
 
outputs/venv/bin/tqdm DELETED
@@ -1,8 +0,0 @@
1
- #!/Users/fofr/Dropbox/AI/r8-tests/2024-09-21/venv/bin/python3.12
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from tqdm.cli import main
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(main())
 
 
 
 
 
 
 
 
 
outputs/venv/bin/undill DELETED
@@ -1,22 +0,0 @@
1
- #!/Users/fofr/Dropbox/AI/r8-tests/2024-09-21/venv/bin/python3.12
2
- #
3
- # Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
4
- # Copyright (c) 2008-2016 California Institute of Technology.
5
- # Copyright (c) 2016-2024 The Uncertainty Quantification Foundation.
6
- # License: 3-clause BSD. The full license text is available at:
7
- # - https://github.com/uqfoundation/dill/blob/master/LICENSE
8
- """
9
- unpickle the contents of a pickled object file
10
-
11
- Examples::
12
-
13
- $ undill hello.pkl
14
- ['hello', 'world']
15
- """
16
-
17
- if __name__ == '__main__':
18
- import sys
19
- import dill
20
- for file in sys.argv[1:]:
21
- print (dill.load(open(file,'rb')))
22
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
outputs/venv/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/INSTALLER DELETED
@@ -1 +0,0 @@
1
- pip
 
 
outputs/venv/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/LICENSE DELETED
@@ -1,20 +0,0 @@
1
- Copyright (c) 2017-2021 Ingy döt Net
2
- Copyright (c) 2006-2016 Kirill Simonov
3
-
4
- Permission is hereby granted, free of charge, to any person obtaining a copy of
5
- this software and associated documentation files (the "Software"), to deal in
6
- the Software without restriction, including without limitation the rights to
7
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
8
- of the Software, and to permit persons to whom the Software is furnished to do
9
- so, subject to the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be included in all
12
- copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- SOFTWARE.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
outputs/venv/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/METADATA DELETED
@@ -1,46 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: PyYAML
3
- Version: 6.0.2
4
- Summary: YAML parser and emitter for Python
5
- Home-page: https://pyyaml.org/
6
- Download-URL: https://pypi.org/project/PyYAML/
7
- Author: Kirill Simonov
8
- Author-email: [email protected]
9
- License: MIT
10
- Project-URL: Bug Tracker, https://github.com/yaml/pyyaml/issues
11
- Project-URL: CI, https://github.com/yaml/pyyaml/actions
12
- Project-URL: Documentation, https://pyyaml.org/wiki/PyYAMLDocumentation
13
- Project-URL: Mailing lists, http://lists.sourceforge.net/lists/listinfo/yaml-core
14
- Project-URL: Source Code, https://github.com/yaml/pyyaml
15
- Platform: Any
16
- Classifier: Development Status :: 5 - Production/Stable
17
- Classifier: Intended Audience :: Developers
18
- Classifier: License :: OSI Approved :: MIT License
19
- Classifier: Operating System :: OS Independent
20
- Classifier: Programming Language :: Cython
21
- Classifier: Programming Language :: Python
22
- Classifier: Programming Language :: Python :: 3
23
- Classifier: Programming Language :: Python :: 3.8
24
- Classifier: Programming Language :: Python :: 3.9
25
- Classifier: Programming Language :: Python :: 3.10
26
- Classifier: Programming Language :: Python :: 3.11
27
- Classifier: Programming Language :: Python :: 3.12
28
- Classifier: Programming Language :: Python :: 3.13
29
- Classifier: Programming Language :: Python :: Implementation :: CPython
30
- Classifier: Programming Language :: Python :: Implementation :: PyPy
31
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
32
- Classifier: Topic :: Text Processing :: Markup
33
- Requires-Python: >=3.8
34
- License-File: LICENSE
35
-
36
- YAML is a data serialization format designed for human readability
37
- and interaction with scripting languages. PyYAML is a YAML parser
38
- and emitter for Python.
39
-
40
- PyYAML features a complete YAML 1.1 parser, Unicode support, pickle
41
- support, capable extension API, and sensible error messages. PyYAML
42
- supports standard YAML tags and provides Python-specific tags that
43
- allow to represent an arbitrary Python object.
44
-
45
- PyYAML is applicable for a broad range of tasks from complex
46
- configuration files to object serialization and persistence.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
outputs/venv/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/RECORD DELETED
@@ -1,43 +0,0 @@
1
- PyYAML-6.0.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
2
- PyYAML-6.0.2.dist-info/LICENSE,sha256=jTko-dxEkP1jVwfLiOsmvXZBAqcoKVQwfT5RZ6V36KQ,1101
3
- PyYAML-6.0.2.dist-info/METADATA,sha256=9-odFB5seu4pGPcEv7E8iyxNF51_uKnaNGjLAhz2lto,2060
4
- PyYAML-6.0.2.dist-info/RECORD,,
5
- PyYAML-6.0.2.dist-info/WHEEL,sha256=h9jBNgvnuEaix45NgESHvfNcOPGGNEywrbP9Un7hZlk,110
6
- PyYAML-6.0.2.dist-info/top_level.txt,sha256=rpj0IVMTisAjh_1vG3Ccf9v5jpCQwAz6cD1IVU5ZdhQ,11
7
- _yaml/__init__.py,sha256=04Ae_5osxahpJHa3XBZUAf4wi6XX32gR8D6X6p64GEA,1402
8
- _yaml/__pycache__/__init__.cpython-312.pyc,,
9
- yaml/__init__.py,sha256=N35S01HMesFTe0aRRMWkPj0Pa8IEbHpE9FK7cr5Bdtw,12311
10
- yaml/__pycache__/__init__.cpython-312.pyc,,
11
- yaml/__pycache__/composer.cpython-312.pyc,,
12
- yaml/__pycache__/constructor.cpython-312.pyc,,
13
- yaml/__pycache__/cyaml.cpython-312.pyc,,
14
- yaml/__pycache__/dumper.cpython-312.pyc,,
15
- yaml/__pycache__/emitter.cpython-312.pyc,,
16
- yaml/__pycache__/error.cpython-312.pyc,,
17
- yaml/__pycache__/events.cpython-312.pyc,,
18
- yaml/__pycache__/loader.cpython-312.pyc,,
19
- yaml/__pycache__/nodes.cpython-312.pyc,,
20
- yaml/__pycache__/parser.cpython-312.pyc,,
21
- yaml/__pycache__/reader.cpython-312.pyc,,
22
- yaml/__pycache__/representer.cpython-312.pyc,,
23
- yaml/__pycache__/resolver.cpython-312.pyc,,
24
- yaml/__pycache__/scanner.cpython-312.pyc,,
25
- yaml/__pycache__/serializer.cpython-312.pyc,,
26
- yaml/__pycache__/tokens.cpython-312.pyc,,
27
- yaml/_yaml.cpython-312-darwin.so,sha256=kJhYpZpKSMBUaR-esOCOg7Ao1QLyNGl3tVdptwNUd6Y,375656
28
- yaml/composer.py,sha256=_Ko30Wr6eDWUeUpauUGT3Lcg9QPBnOPVlTnIMRGJ9FM,4883
29
- yaml/constructor.py,sha256=kNgkfaeLUkwQYY_Q6Ff1Tz2XVw_pG1xVE9Ak7z-viLA,28639
30
- yaml/cyaml.py,sha256=6ZrAG9fAYvdVe2FK_w0hmXoG7ZYsoYUwapG8CiC72H0,3851
31
- yaml/dumper.py,sha256=PLctZlYwZLp7XmeUdwRuv4nYOZ2UBnDIUy8-lKfLF-o,2837
32
- yaml/emitter.py,sha256=jghtaU7eFwg31bG0B7RZea_29Adi9CKmXq_QjgQpCkQ,43006
33
- yaml/error.py,sha256=Ah9z-toHJUbE9j-M8YpxgSRM5CgLCcwVzJgLLRF2Fxo,2533
34
- yaml/events.py,sha256=50_TksgQiE4up-lKo_V-nBy-tAIxkIPQxY5qDhKCeHw,2445
35
- yaml/loader.py,sha256=UVa-zIqmkFSCIYq_PgSGm4NSJttHY2Rf_zQ4_b1fHN0,2061
36
- yaml/nodes.py,sha256=gPKNj8pKCdh2d4gr3gIYINnPOaOxGhJAUiYhGRnPE84,1440
37
- yaml/parser.py,sha256=ilWp5vvgoHFGzvOZDItFoGjD6D42nhlZrZyjAwa0oJo,25495
38
- yaml/reader.py,sha256=0dmzirOiDG4Xo41RnuQS7K9rkY3xjHiVasfDMNTqCNw,6794
39
- yaml/representer.py,sha256=IuWP-cAW9sHKEnS0gCqSa894k1Bg4cgTxaDwIcbRQ-Y,14190
40
- yaml/resolver.py,sha256=9L-VYfm4mWHxUD1Vg4X7rjDRK_7VZd6b92wzq7Y2IKY,9004
41
- yaml/scanner.py,sha256=YEM3iLZSaQwXcQRg2l2R4MdT0zGP2F9eHkKGKnHyWQY,51279
42
- yaml/serializer.py,sha256=ChuFgmhU01hj4xgI8GaKv6vfM2Bujwa9i7d2FAHj7cA,4165
43
- yaml/tokens.py,sha256=lTQIzSVw8Mg9wv459-TjiOQe6wVziqaRlqX2_89rp54,2573
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
outputs/venv/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/WHEEL DELETED
@@ -1,5 +0,0 @@
1
- Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.44.0)
3
- Root-Is-Purelib: false
4
- Tag: cp312-cp312-macosx_11_0_arm64
5
-
 
 
 
 
 
 
outputs/venv/lib/python3.12/site-packages/PyYAML-6.0.2.dist-info/top_level.txt DELETED
@@ -1,2 +0,0 @@
1
- _yaml
2
- yaml
 
 
 
outputs/venv/lib/python3.12/site-packages/__pycache__/six.cpython-312.pyc DELETED
Binary file (41.2 kB)
 
outputs/venv/lib/python3.12/site-packages/__pycache__/typing_extensions.cpython-312.pyc DELETED
Binary file (139 kB)
 
outputs/venv/lib/python3.12/site-packages/_multiprocess/__init__.py DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env python
2
- #
3
- # Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
4
- # Copyright (c) 2022-2024 The Uncertainty Quantification Foundation.
5
- # License: 3-clause BSD. The full license text is available at:
6
- # - https://github.com/uqfoundation/multiprocess/blob/master/LICENSE
7
-
8
- from _multiprocessing import *
 
 
 
 
 
 
 
 
 
outputs/venv/lib/python3.12/site-packages/_multiprocess/__pycache__/__init__.cpython-312.pyc DELETED
Binary file (239 Bytes)
 
outputs/venv/lib/python3.12/site-packages/_yaml/__init__.py DELETED
@@ -1,33 +0,0 @@
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__ = ''
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
outputs/venv/lib/python3.12/site-packages/_yaml/__pycache__/__init__.cpython-312.pyc DELETED
Binary file (873 Bytes)
 
outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs-2.4.2.dist-info/INSTALLER DELETED
@@ -1 +0,0 @@
1
- pip
 
 
outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs-2.4.2.dist-info/LICENSE DELETED
@@ -1,279 +0,0 @@
1
- A. HISTORY OF THE SOFTWARE
2
- ==========================
3
-
4
- Python was created in the early 1990s by Guido van Rossum at Stichting
5
- Mathematisch Centrum (CWI, see https://www.cwi.nl) in the Netherlands
6
- as a successor of a language called ABC. Guido remains Python's
7
- principal author, although it includes many contributions from others.
8
-
9
- In 1995, Guido continued his work on Python at the Corporation for
10
- National Research Initiatives (CNRI, see https://www.cnri.reston.va.us)
11
- in Reston, Virginia where he released several versions of the
12
- software.
13
-
14
- In May 2000, Guido and the Python core development team moved to
15
- BeOpen.com to form the BeOpen PythonLabs team. In October of the same
16
- year, the PythonLabs team moved to Digital Creations, which became
17
- Zope Corporation. In 2001, the Python Software Foundation (PSF, see
18
- https://www.python.org/psf/) was formed, a non-profit organization
19
- created specifically to own Python-related Intellectual Property.
20
- Zope Corporation was a sponsoring member of the PSF.
21
-
22
- All Python releases are Open Source (see https://opensource.org for
23
- the Open Source Definition). Historically, most, but not all, Python
24
- releases have also been GPL-compatible; the table below summarizes
25
- the various releases.
26
-
27
- Release Derived Year Owner GPL-
28
- from compatible? (1)
29
-
30
- 0.9.0 thru 1.2 1991-1995 CWI yes
31
- 1.3 thru 1.5.2 1.2 1995-1999 CNRI yes
32
- 1.6 1.5.2 2000 CNRI no
33
- 2.0 1.6 2000 BeOpen.com no
34
- 1.6.1 1.6 2001 CNRI yes (2)
35
- 2.1 2.0+1.6.1 2001 PSF no
36
- 2.0.1 2.0+1.6.1 2001 PSF yes
37
- 2.1.1 2.1+2.0.1 2001 PSF yes
38
- 2.1.2 2.1.1 2002 PSF yes
39
- 2.1.3 2.1.2 2002 PSF yes
40
- 2.2 and above 2.1.1 2001-now PSF yes
41
-
42
- Footnotes:
43
-
44
- (1) GPL-compatible doesn't mean that we're distributing Python under
45
- the GPL. All Python licenses, unlike the GPL, let you distribute
46
- a modified version without making your changes open source. The
47
- GPL-compatible licenses make it possible to combine Python with
48
- other software that is released under the GPL; the others don't.
49
-
50
- (2) According to Richard Stallman, 1.6.1 is not GPL-compatible,
51
- because its license has a choice of law clause. According to
52
- CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1
53
- is "not incompatible" with the GPL.
54
-
55
- Thanks to the many outside volunteers who have worked under Guido's
56
- direction to make these releases possible.
57
-
58
-
59
- B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON
60
- ===============================================================
61
-
62
- Python software and documentation are licensed under the
63
- Python Software Foundation License Version 2.
64
-
65
- Starting with Python 3.8.6, examples, recipes, and other code in
66
- the documentation are dual licensed under the PSF License Version 2
67
- and the Zero-Clause BSD license.
68
-
69
- Some software incorporated into Python is under different licenses.
70
- The licenses are listed with code falling under that license.
71
-
72
-
73
- PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
74
- --------------------------------------------
75
-
76
- 1. This LICENSE AGREEMENT is between the Python Software Foundation
77
- ("PSF"), and the Individual or Organization ("Licensee") accessing and
78
- otherwise using this software ("Python") in source or binary form and
79
- its associated documentation.
80
-
81
- 2. Subject to the terms and conditions of this License Agreement, PSF hereby
82
- grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
83
- analyze, test, perform and/or display publicly, prepare derivative works,
84
- distribute, and otherwise use Python alone or in any derivative version,
85
- provided, however, that PSF's License Agreement and PSF's notice of copyright,
86
- i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
87
- 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Python Software Foundation;
88
- All Rights Reserved" are retained in Python alone or in any derivative version
89
- prepared by Licensee.
90
-
91
- 3. In the event Licensee prepares a derivative work that is based on
92
- or incorporates Python or any part thereof, and wants to make
93
- the derivative work available to others as provided herein, then
94
- Licensee hereby agrees to include in any such work a brief summary of
95
- the changes made to Python.
96
-
97
- 4. PSF is making Python available to Licensee on an "AS IS"
98
- basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
99
- IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
100
- DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
101
- FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
102
- INFRINGE ANY THIRD PARTY RIGHTS.
103
-
104
- 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
105
- FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
106
- A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
107
- OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
108
-
109
- 6. This License Agreement will automatically terminate upon a material
110
- breach of its terms and conditions.
111
-
112
- 7. Nothing in this License Agreement shall be deemed to create any
113
- relationship of agency, partnership, or joint venture between PSF and
114
- Licensee. This License Agreement does not grant permission to use PSF
115
- trademarks or trade name in a trademark sense to endorse or promote
116
- products or services of Licensee, or any third party.
117
-
118
- 8. By copying, installing or otherwise using Python, Licensee
119
- agrees to be bound by the terms and conditions of this License
120
- Agreement.
121
-
122
-
123
- BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0
124
- -------------------------------------------
125
-
126
- BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1
127
-
128
- 1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an
129
- office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the
130
- Individual or Organization ("Licensee") accessing and otherwise using
131
- this software in source or binary form and its associated
132
- documentation ("the Software").
133
-
134
- 2. Subject to the terms and conditions of this BeOpen Python License
135
- Agreement, BeOpen hereby grants Licensee a non-exclusive,
136
- royalty-free, world-wide license to reproduce, analyze, test, perform
137
- and/or display publicly, prepare derivative works, distribute, and
138
- otherwise use the Software alone or in any derivative version,
139
- provided, however, that the BeOpen Python License is retained in the
140
- Software, alone or in any derivative version prepared by Licensee.
141
-
142
- 3. BeOpen is making the Software available to Licensee on an "AS IS"
143
- basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
144
- IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND
145
- DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
146
- FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT
147
- INFRINGE ANY THIRD PARTY RIGHTS.
148
-
149
- 4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE
150
- SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS
151
- AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY
152
- DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
153
-
154
- 5. This License Agreement will automatically terminate upon a material
155
- breach of its terms and conditions.
156
-
157
- 6. This License Agreement shall be governed by and interpreted in all
158
- respects by the law of the State of California, excluding conflict of
159
- law provisions. Nothing in this License Agreement shall be deemed to
160
- create any relationship of agency, partnership, or joint venture
161
- between BeOpen and Licensee. This License Agreement does not grant
162
- permission to use BeOpen trademarks or trade names in a trademark
163
- sense to endorse or promote products or services of Licensee, or any
164
- third party. As an exception, the "BeOpen Python" logos available at
165
- http://www.pythonlabs.com/logos.html may be used according to the
166
- permissions granted on that web page.
167
-
168
- 7. By copying, installing or otherwise using the software, Licensee
169
- agrees to be bound by the terms and conditions of this License
170
- Agreement.
171
-
172
-
173
- CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1
174
- ---------------------------------------
175
-
176
- 1. This LICENSE AGREEMENT is between the Corporation for National
177
- Research Initiatives, having an office at 1895 Preston White Drive,
178
- Reston, VA 20191 ("CNRI"), and the Individual or Organization
179
- ("Licensee") accessing and otherwise using Python 1.6.1 software in
180
- source or binary form and its associated documentation.
181
-
182
- 2. Subject to the terms and conditions of this License Agreement, CNRI
183
- hereby grants Licensee a nonexclusive, royalty-free, world-wide
184
- license to reproduce, analyze, test, perform and/or display publicly,
185
- prepare derivative works, distribute, and otherwise use Python 1.6.1
186
- alone or in any derivative version, provided, however, that CNRI's
187
- License Agreement and CNRI's notice of copyright, i.e., "Copyright (c)
188
- 1995-2001 Corporation for National Research Initiatives; All Rights
189
- Reserved" are retained in Python 1.6.1 alone or in any derivative
190
- version prepared by Licensee. Alternately, in lieu of CNRI's License
191
- Agreement, Licensee may substitute the following text (omitting the
192
- quotes): "Python 1.6.1 is made available subject to the terms and
193
- conditions in CNRI's License Agreement. This Agreement together with
194
- Python 1.6.1 may be located on the internet using the following
195
- unique, persistent identifier (known as a handle): 1895.22/1013. This
196
- Agreement may also be obtained from a proxy server on the internet
197
- using the following URL: http://hdl.handle.net/1895.22/1013".
198
-
199
- 3. In the event Licensee prepares a derivative work that is based on
200
- or incorporates Python 1.6.1 or any part thereof, and wants to make
201
- the derivative work available to others as provided herein, then
202
- Licensee hereby agrees to include in any such work a brief summary of
203
- the changes made to Python 1.6.1.
204
-
205
- 4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS"
206
- basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
207
- IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND
208
- DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
209
- FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT
210
- INFRINGE ANY THIRD PARTY RIGHTS.
211
-
212
- 5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
213
- 1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
214
- A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1,
215
- OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
216
-
217
- 6. This License Agreement will automatically terminate upon a material
218
- breach of its terms and conditions.
219
-
220
- 7. This License Agreement shall be governed by the federal
221
- intellectual property law of the United States, including without
222
- limitation the federal copyright law, and, to the extent such
223
- U.S. federal law does not apply, by the law of the Commonwealth of
224
- Virginia, excluding Virginia's conflict of law provisions.
225
- Notwithstanding the foregoing, with regard to derivative works based
226
- on Python 1.6.1 that incorporate non-separable material that was
227
- previously distributed under the GNU General Public License (GPL), the
228
- law of the Commonwealth of Virginia shall govern this License
229
- Agreement only as to issues arising under or with respect to
230
- Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this
231
- License Agreement shall be deemed to create any relationship of
232
- agency, partnership, or joint venture between CNRI and Licensee. This
233
- License Agreement does not grant permission to use CNRI trademarks or
234
- trade name in a trademark sense to endorse or promote products or
235
- services of Licensee, or any third party.
236
-
237
- 8. By clicking on the "ACCEPT" button where indicated, or by copying,
238
- installing or otherwise using Python 1.6.1, Licensee agrees to be
239
- bound by the terms and conditions of this License Agreement.
240
-
241
- ACCEPT
242
-
243
-
244
- CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2
245
- --------------------------------------------------
246
-
247
- Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam,
248
- The Netherlands. All rights reserved.
249
-
250
- Permission to use, copy, modify, and distribute this software and its
251
- documentation for any purpose and without fee is hereby granted,
252
- provided that the above copyright notice appear in all copies and that
253
- both that copyright notice and this permission notice appear in
254
- supporting documentation, and that the name of Stichting Mathematisch
255
- Centrum or CWI not be used in advertising or publicity pertaining to
256
- distribution of the software without specific, written prior
257
- permission.
258
-
259
- STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
260
- THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
261
- FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
262
- FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
263
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
264
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
265
- OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
266
-
267
- ZERO-CLAUSE BSD LICENSE FOR CODE IN THE PYTHON DOCUMENTATION
268
- ----------------------------------------------------------------------
269
-
270
- Permission to use, copy, modify, and/or distribute this software for any
271
- purpose with or without fee is hereby granted.
272
-
273
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
274
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
275
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
276
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
277
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
278
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
279
- PERFORMANCE OF THIS SOFTWARE.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs-2.4.2.dist-info/METADATA DELETED
@@ -1,126 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: aiohappyeyeballs
3
- Version: 2.4.2
4
- Summary: Happy Eyeballs for asyncio
5
- Home-page: https://github.com/aio-libs/aiohappyeyeballs
6
- License: Python-2.0.1
7
- Author: J. Nick Koston
8
- Author-email: [email protected]
9
- Requires-Python: >=3.8
10
- Classifier: Development Status :: 5 - Production/Stable
11
- Classifier: Intended Audience :: Developers
12
- Classifier: License :: OSI Approved :: Python Software Foundation License
13
- Classifier: License :: Other/Proprietary License
14
- Classifier: Natural Language :: English
15
- Classifier: Operating System :: OS Independent
16
- Classifier: Programming Language :: Python :: 3
17
- Classifier: Programming Language :: Python :: 3.8
18
- Classifier: Programming Language :: Python :: 3.9
19
- Classifier: Programming Language :: Python :: 3.10
20
- Classifier: Programming Language :: Python :: 3.11
21
- Classifier: Programming Language :: Python :: 3.12
22
- Classifier: Programming Language :: Python :: 3.13
23
- Classifier: Topic :: Software Development :: Libraries
24
- Project-URL: Bug Tracker, https://github.com/aio-libs/aiohappyeyeballs/issues
25
- Project-URL: Changelog, https://github.com/aio-libs/aiohappyeyeballs/blob/main/CHANGELOG.md
26
- Project-URL: Documentation, https://aiohappyeyeballs.readthedocs.io
27
- Project-URL: Repository, https://github.com/aio-libs/aiohappyeyeballs
28
- Description-Content-Type: text/markdown
29
-
30
- # aiohappyeyeballs
31
-
32
- <p align="center">
33
- <a href="https://github.com/aio-libs/aiohappyeyeballs/actions/workflows/ci.yml?query=branch%3Amain">
34
- <img src="https://img.shields.io/github/actions/workflow/status/aio-libs/aiohappyeyeballs/ci-cd.yml?branch=main&label=CI&logo=github&style=flat-square" alt="CI Status" >
35
- </a>
36
- <a href="https://aiohappyeyeballs.readthedocs.io">
37
- <img src="https://img.shields.io/readthedocs/aiohappyeyeballs.svg?logo=read-the-docs&logoColor=fff&style=flat-square" alt="Documentation Status">
38
- </a>
39
- <a href="https://codecov.io/gh/aio-libs/aiohappyeyeballs">
40
- <img src="https://img.shields.io/codecov/c/github/aio-libs/aiohappyeyeballs.svg?logo=codecov&logoColor=fff&style=flat-square" alt="Test coverage percentage">
41
- </a>
42
- </p>
43
- <p align="center">
44
- <a href="https://python-poetry.org/">
45
- <img src="https://img.shields.io/badge/packaging-poetry-299bd7?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAASCAYAAABrXO8xAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJJSURBVHgBfZLPa1NBEMe/s7tNXoxW1KJQKaUHkXhQvHgW6UHQQ09CBS/6V3hKc/AP8CqCrUcpmop3Cx48eDB4yEECjVQrlZb80CRN8t6OM/teagVxYZi38+Yz853dJbzoMV3MM8cJUcLMSUKIE8AzQ2PieZzFxEJOHMOgMQQ+dUgSAckNXhapU/NMhDSWLs1B24A8sO1xrN4NECkcAC9ASkiIJc6k5TRiUDPhnyMMdhKc+Zx19l6SgyeW76BEONY9exVQMzKExGKwwPsCzza7KGSSWRWEQhyEaDXp6ZHEr416ygbiKYOd7TEWvvcQIeusHYMJGhTwF9y7sGnSwaWyFAiyoxzqW0PM/RjghPxF2pWReAowTEXnDh0xgcLs8l2YQmOrj3N7ByiqEoH0cARs4u78WgAVkoEDIDoOi3AkcLOHU60RIg5wC4ZuTC7FaHKQm8Hq1fQuSOBvX/sodmNJSB5geaF5CPIkUeecdMxieoRO5jz9bheL6/tXjrwCyX/UYBUcjCaWHljx1xiX6z9xEjkYAzbGVnB8pvLmyXm9ep+W8CmsSHQQY77Zx1zboxAV0w7ybMhQmfqdmmw3nEp1I0Z+FGO6M8LZdoyZnuzzBdjISicKRnpxzI9fPb+0oYXsNdyi+d3h9bm9MWYHFtPeIZfLwzmFDKy1ai3p+PDls1Llz4yyFpferxjnyjJDSEy9CaCx5m2cJPerq6Xm34eTrZt3PqxYO1XOwDYZrFlH1fWnpU38Y9HRze3lj0vOujZcXKuuXm3jP+s3KbZVra7y2EAAAAAASUVORK5CYII=" alt="Poetry">
46
- </a>
47
- <a href="https://github.com/ambv/black">
48
- <img src="https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square" alt="black">
49
- </a>
50
- <a href="https://github.com/pre-commit/pre-commit">
51
- <img src="https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white&style=flat-square" alt="pre-commit">
52
- </a>
53
- </p>
54
- <p align="center">
55
- <a href="https://pypi.org/project/aiohappyeyeballs/">
56
- <img src="https://img.shields.io/pypi/v/aiohappyeyeballs.svg?logo=python&logoColor=fff&style=flat-square" alt="PyPI Version">
57
- </a>
58
- <img src="https://img.shields.io/pypi/pyversions/aiohappyeyeballs.svg?style=flat-square&logo=python&amp;logoColor=fff" alt="Supported Python versions">
59
- <img src="https://img.shields.io/pypi/l/aiohappyeyeballs.svg?style=flat-square" alt="License">
60
- </p>
61
-
62
- ---
63
-
64
- **Documentation**: <a href="https://aiohappyeyeballs.readthedocs.io" target="_blank">https://aiohappyeyeballs.readthedocs.io </a>
65
-
66
- **Source Code**: <a href="https://github.com/aio-libs/aiohappyeyeballs" target="_blank">https://github.com/aio-libs/aiohappyeyeballs </a>
67
-
68
- ---
69
-
70
- [Happy Eyeballs](https://en.wikipedia.org/wiki/Happy_Eyeballs)
71
- ([RFC 8305](https://www.rfc-editor.org/rfc/rfc8305.html))
72
-
73
- ## Use case
74
-
75
- This library exists to allow connecting with
76
- [Happy Eyeballs](https://en.wikipedia.org/wiki/Happy_Eyeballs)
77
- ([RFC 8305](https://www.rfc-editor.org/rfc/rfc8305.html))
78
- when you
79
- already have a list of addrinfo and not a DNS name.
80
-
81
- The stdlib version of `loop.create_connection()`
82
- will only work when you pass in an unresolved name which
83
- is not a good fit when using DNS caching or resolving
84
- names via another method such as `zeroconf`.
85
-
86
- ## Installation
87
-
88
- Install this via pip (or your favourite package manager):
89
-
90
- `pip install aiohappyeyeballs`
91
-
92
- ## License
93
-
94
- [aiohappyeyeballs is licensed under the same terms as cpython itself.](https://github.com/python/cpython/blob/main/LICENSE)
95
-
96
- ## Example usage
97
-
98
- ```python
99
-
100
- addr_infos = await loop.getaddrinfo("example.org", 80)
101
-
102
- socket = await start_connection(addr_infos)
103
- socket = await start_connection(addr_infos, local_addr_infos=local_addr_infos, happy_eyeballs_delay=0.2)
104
-
105
- transport, protocol = await loop.create_connection(
106
- MyProtocol, sock=socket, ...)
107
-
108
- # Remove the first address for each family from addr_info
109
- pop_addr_infos_interleave(addr_info, 1)
110
-
111
- # Remove all matching address from addr_info
112
- remove_addr_infos(addr_info, "dead::beef::")
113
-
114
- # Convert a local_addr to local_addr_infos
115
- local_addr_infos = addr_to_addr_infos(("127.0.0.1",0))
116
- ```
117
-
118
- ## Credits
119
-
120
- This package contains code from cpython and is licensed under the same terms as cpython itself.
121
-
122
- This package was created with
123
- [Copier](https://copier.readthedocs.io/) and the
124
- [browniebroke/pypackage-template](https://github.com/browniebroke/pypackage-template)
125
- project template.
126
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs-2.4.2.dist-info/RECORD DELETED
@@ -1,18 +0,0 @@
1
- aiohappyeyeballs-2.4.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
2
- aiohappyeyeballs-2.4.2.dist-info/LICENSE,sha256=Oy-B_iHRgcSZxZolbI4ZaEVdZonSaaqFNzv7avQdo78,13936
3
- aiohappyeyeballs-2.4.2.dist-info/METADATA,sha256=_ziodLe_RgvRdvRSJPZXCJ_yX5J6Phw8-mCHS4Mf__k,6038
4
- aiohappyeyeballs-2.4.2.dist-info/RECORD,,
5
- aiohappyeyeballs-2.4.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
6
- aiohappyeyeballs/__init__.py,sha256=Mh38VpQBOrri17V9BbQZlMA4wiAWECVXWRThzRStbaM,317
7
- aiohappyeyeballs/__pycache__/__init__.cpython-312.pyc,,
8
- aiohappyeyeballs/__pycache__/_staggered.cpython-312.pyc,,
9
- aiohappyeyeballs/__pycache__/impl.cpython-312.pyc,,
10
- aiohappyeyeballs/__pycache__/staggered.cpython-312.pyc,,
11
- aiohappyeyeballs/__pycache__/types.cpython-312.pyc,,
12
- aiohappyeyeballs/__pycache__/utils.cpython-312.pyc,,
13
- aiohappyeyeballs/_staggered.py,sha256=IJaJ7byBVtgVwVzbcRluzXy4co3v3KdRDBIDXj6YVHE,3691
14
- aiohappyeyeballs/impl.py,sha256=f0gsqRwZI4EaBifuNnYuggQkubFOK7PO_jnvmZAdJyU,7252
15
- aiohappyeyeballs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
- aiohappyeyeballs/staggered.py,sha256=jS92EwfrnDQKSK1gU5K_QCnA-m7jz1bf5e2PaI-OKVk,249
17
- aiohappyeyeballs/types.py,sha256=iYPiBTl5J7YEjnIqEOVUTRPzz2DwqSHBRhvbAlM0zv0,234
18
- aiohappyeyeballs/utils.py,sha256=W_Oaf1iP8wYRHo6B95eYx-ZxbjpxyWwYgTdkhWqGF5c,3026
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs-2.4.2.dist-info/WHEEL DELETED
@@ -1,4 +0,0 @@
1
- Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.0
3
- Root-Is-Purelib: true
4
- Tag: py3-none-any
 
 
 
 
 
outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs/__init__.py DELETED
@@ -1,13 +0,0 @@
1
- __version__ = "2.4.2"
2
-
3
- from .impl import start_connection
4
- from .types import AddrInfoType
5
- from .utils import addr_to_addr_infos, pop_addr_infos_interleave, remove_addr_infos
6
-
7
- __all__ = (
8
- "start_connection",
9
- "AddrInfoType",
10
- "remove_addr_infos",
11
- "pop_addr_infos_interleave",
12
- "addr_to_addr_infos",
13
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs/__pycache__/__init__.cpython-312.pyc DELETED
Binary file (485 Bytes)
 
outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs/__pycache__/_staggered.cpython-312.pyc DELETED
Binary file (4.9 kB)
 
outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs/__pycache__/impl.cpython-312.pyc DELETED
Binary file (8.01 kB)
 
outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs/__pycache__/staggered.cpython-312.pyc DELETED
Binary file (428 Bytes)
 
outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs/__pycache__/types.cpython-312.pyc DELETED
Binary file (511 Bytes)
 
outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs/__pycache__/utils.cpython-312.pyc DELETED
Binary file (3.7 kB)
 
outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs/_staggered.py DELETED
@@ -1,101 +0,0 @@
1
- import asyncio
2
- import contextlib
3
- from typing import Awaitable, Callable, Iterable, List, Optional, Tuple, TypeVar
4
-
5
-
6
- class _Done(Exception):
7
- pass
8
-
9
-
10
- _T = TypeVar("_T")
11
-
12
-
13
- async def staggered_race(
14
- coro_fns: Iterable[Callable[[], Awaitable[_T]]], delay: Optional[float]
15
- ) -> Tuple[Optional[_T], Optional[int], List[Optional[BaseException]]]:
16
- """
17
- Run coroutines with staggered start times and take the first to finish.
18
-
19
- This method takes an iterable of coroutine functions. The first one is
20
- started immediately. From then on, whenever the immediately preceding one
21
- fails (raises an exception), or when *delay* seconds has passed, the next
22
- coroutine is started. This continues until one of the coroutines complete
23
- successfully, in which case all others are cancelled, or until all
24
- coroutines fail.
25
-
26
- The coroutines provided should be well-behaved in the following way:
27
-
28
- * They should only ``return`` if completed successfully.
29
-
30
- * They should always raise an exception if they did not complete
31
- successfully. In particular, if they handle cancellation, they should
32
- probably reraise, like this::
33
-
34
- try:
35
- # do work
36
- except asyncio.CancelledError:
37
- # undo partially completed work
38
- raise
39
-
40
- Args:
41
- coro_fns: an iterable of coroutine functions, i.e. callables that
42
- return a coroutine object when called. Use ``functools.partial`` or
43
- lambdas to pass arguments.
44
-
45
- delay: amount of time, in seconds, between starting coroutines. If
46
- ``None``, the coroutines will run sequentially.
47
-
48
- Returns:
49
- tuple *(winner_result, winner_index, exceptions)* where
50
-
51
- - *winner_result*: the result of the winning coroutine, or ``None``
52
- if no coroutines won.
53
-
54
- - *winner_index*: the index of the winning coroutine in
55
- ``coro_fns``, or ``None`` if no coroutines won. If the winning
56
- coroutine may return None on success, *winner_index* can be used
57
- to definitively determine whether any coroutine won.
58
-
59
- - *exceptions*: list of exceptions returned by the coroutines.
60
- ``len(exceptions)`` is equal to the number of coroutines actually
61
- started, and the order is the same as in ``coro_fns``. The winning
62
- coroutine's entry is ``None``.
63
-
64
- """
65
- # TODO: when we have aiter() and anext(), allow async iterables in coro_fns.
66
- winner_result = None
67
- winner_index = None
68
- exceptions: List[Optional[BaseException]] = []
69
-
70
- async def run_one_coro(
71
- this_index: int,
72
- coro_fn: Callable[[], Awaitable[_T]],
73
- this_failed: asyncio.Event,
74
- ) -> None:
75
- try:
76
- result = await coro_fn()
77
- except (SystemExit, KeyboardInterrupt):
78
- raise
79
- except BaseException as e:
80
- exceptions[this_index] = e
81
- this_failed.set() # Kickstart the next coroutine
82
- else:
83
- # Store winner's results
84
- nonlocal winner_index, winner_result
85
- assert winner_index is None # noqa: S101
86
- winner_index = this_index
87
- winner_result = result
88
- raise _Done
89
-
90
- try:
91
- async with asyncio.TaskGroup() as tg:
92
- for this_index, coro_fn in enumerate(coro_fns):
93
- this_failed = asyncio.Event()
94
- exceptions.append(None)
95
- tg.create_task(run_one_coro(this_index, coro_fn, this_failed))
96
- with contextlib.suppress(TimeoutError):
97
- await asyncio.wait_for(this_failed.wait(), delay)
98
- except* _Done:
99
- pass
100
-
101
- return winner_result, winner_index, exceptions
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs/impl.py DELETED
@@ -1,204 +0,0 @@
1
- """Base implementation."""
2
-
3
- import asyncio
4
- import collections
5
- import functools
6
- import itertools
7
- import socket
8
- import sys
9
- from typing import List, Optional, Sequence
10
-
11
- from . import staggered
12
- from .types import AddrInfoType
13
-
14
- if sys.version_info < (3, 8, 2): # noqa: UP036
15
- # asyncio.staggered is broken in Python 3.8.0 and 3.8.1
16
- # so it must be patched:
17
- # https://github.com/aio-libs/aiohttp/issues/8556
18
- # https://bugs.python.org/issue39129
19
- # https://github.com/python/cpython/pull/17693
20
- import asyncio.futures
21
-
22
- asyncio.futures.TimeoutError = asyncio.TimeoutError # type: ignore[attr-defined]
23
-
24
-
25
- async def start_connection(
26
- addr_infos: Sequence[AddrInfoType],
27
- *,
28
- local_addr_infos: Optional[Sequence[AddrInfoType]] = None,
29
- happy_eyeballs_delay: Optional[float] = None,
30
- interleave: Optional[int] = None,
31
- loop: Optional[asyncio.AbstractEventLoop] = None,
32
- ) -> socket.socket:
33
- """
34
- Connect to a TCP server.
35
-
36
- Create a socket connection to a specified destination. The
37
- destination is specified as a list of AddrInfoType tuples as
38
- returned from getaddrinfo().
39
-
40
- The arguments are, in order:
41
-
42
- * ``family``: the address family, e.g. ``socket.AF_INET`` or
43
- ``socket.AF_INET6``.
44
- * ``type``: the socket type, e.g. ``socket.SOCK_STREAM`` or
45
- ``socket.SOCK_DGRAM``.
46
- * ``proto``: the protocol, e.g. ``socket.IPPROTO_TCP`` or
47
- ``socket.IPPROTO_UDP``.
48
- * ``canonname``: the canonical name of the address, e.g.
49
- ``"www.python.org"``.
50
- * ``sockaddr``: the socket address
51
-
52
- This method is a coroutine which will try to establish the connection
53
- in the background. When successful, the coroutine returns a
54
- socket.
55
-
56
- The expected use case is to use this method in conjunction with
57
- loop.create_connection() to establish a connection to a server::
58
-
59
- socket = await start_connection(addr_infos)
60
- transport, protocol = await loop.create_connection(
61
- MyProtocol, sock=socket, ...)
62
- """
63
- if not (current_loop := loop):
64
- current_loop = asyncio.get_running_loop()
65
-
66
- single_addr_info = len(addr_infos) == 1
67
-
68
- if happy_eyeballs_delay is not None and interleave is None:
69
- # If using happy eyeballs, default to interleave addresses by family
70
- interleave = 1
71
-
72
- if interleave and not single_addr_info:
73
- addr_infos = _interleave_addrinfos(addr_infos, interleave)
74
-
75
- sock: Optional[socket.socket] = None
76
- exceptions: List[List[OSError]] = []
77
- if happy_eyeballs_delay is None or single_addr_info:
78
- # not using happy eyeballs
79
- for addrinfo in addr_infos:
80
- try:
81
- sock = await _connect_sock(
82
- current_loop, exceptions, addrinfo, local_addr_infos
83
- )
84
- break
85
- except OSError:
86
- continue
87
- else: # using happy eyeballs
88
- sock, _, _ = await staggered.staggered_race(
89
- (
90
- functools.partial(
91
- _connect_sock, current_loop, exceptions, addrinfo, local_addr_infos
92
- )
93
- for addrinfo in addr_infos
94
- ),
95
- happy_eyeballs_delay,
96
- )
97
-
98
- if sock is None:
99
- all_exceptions = [exc for sub in exceptions for exc in sub]
100
- try:
101
- first_exception = all_exceptions[0]
102
- if len(all_exceptions) == 1:
103
- raise first_exception
104
- else:
105
- # If they all have the same str(), raise one.
106
- model = str(first_exception)
107
- if all(str(exc) == model for exc in all_exceptions):
108
- raise first_exception
109
- # Raise a combined exception so the user can see all
110
- # the various error messages.
111
- msg = "Multiple exceptions: {}".format(
112
- ", ".join(str(exc) for exc in all_exceptions)
113
- )
114
- # If the errno is the same for all exceptions, raise
115
- # an OSError with that errno.
116
- first_errno = first_exception.errno
117
- if all(
118
- isinstance(exc, OSError) and exc.errno == first_errno
119
- for exc in all_exceptions
120
- ):
121
- raise OSError(first_errno, msg)
122
- raise OSError(msg)
123
- finally:
124
- all_exceptions = None # type: ignore[assignment]
125
- exceptions = None # type: ignore[assignment]
126
-
127
- return sock
128
-
129
-
130
- async def _connect_sock(
131
- loop: asyncio.AbstractEventLoop,
132
- exceptions: List[List[OSError]],
133
- addr_info: AddrInfoType,
134
- local_addr_infos: Optional[Sequence[AddrInfoType]] = None,
135
- ) -> socket.socket:
136
- """Create, bind and connect one socket."""
137
- my_exceptions: list[OSError] = []
138
- exceptions.append(my_exceptions)
139
- family, type_, proto, _, address = addr_info
140
- sock = None
141
- try:
142
- sock = socket.socket(family=family, type=type_, proto=proto)
143
- sock.setblocking(False)
144
- if local_addr_infos is not None:
145
- for lfamily, _, _, _, laddr in local_addr_infos:
146
- # skip local addresses of different family
147
- if lfamily != family:
148
- continue
149
- try:
150
- sock.bind(laddr)
151
- break
152
- except OSError as exc:
153
- msg = (
154
- f"error while attempting to bind on "
155
- f"address {laddr!r}: "
156
- f"{exc.strerror.lower()}"
157
- )
158
- exc = OSError(exc.errno, msg)
159
- my_exceptions.append(exc)
160
- else: # all bind attempts failed
161
- if my_exceptions:
162
- raise my_exceptions.pop()
163
- else:
164
- raise OSError(f"no matching local address with {family=} found")
165
- await loop.sock_connect(sock, address)
166
- return sock
167
- except OSError as exc:
168
- my_exceptions.append(exc)
169
- if sock is not None:
170
- sock.close()
171
- raise
172
- except:
173
- if sock is not None:
174
- sock.close()
175
- raise
176
- finally:
177
- exceptions = my_exceptions = None # type: ignore[assignment]
178
-
179
-
180
- def _interleave_addrinfos(
181
- addrinfos: Sequence[AddrInfoType], first_address_family_count: int = 1
182
- ) -> List[AddrInfoType]:
183
- """Interleave list of addrinfo tuples by family."""
184
- # Group addresses by family
185
- addrinfos_by_family: collections.OrderedDict[int, List[AddrInfoType]] = (
186
- collections.OrderedDict()
187
- )
188
- for addr in addrinfos:
189
- family = addr[0]
190
- if family not in addrinfos_by_family:
191
- addrinfos_by_family[family] = []
192
- addrinfos_by_family[family].append(addr)
193
- addrinfos_lists = list(addrinfos_by_family.values())
194
-
195
- reordered: List[AddrInfoType] = []
196
- if first_address_family_count > 1:
197
- reordered.extend(addrinfos_lists[0][: first_address_family_count - 1])
198
- del addrinfos_lists[0][: first_address_family_count - 1]
199
- reordered.extend(
200
- a
201
- for a in itertools.chain.from_iterable(itertools.zip_longest(*addrinfos_lists))
202
- if a is not None
203
- )
204
- return reordered
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs/py.typed DELETED
File without changes
outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs/staggered.py DELETED
@@ -1,9 +0,0 @@
1
- import sys
2
-
3
- if sys.version_info > (3, 11):
4
- # https://github.com/python/cpython/issues/124639#issuecomment-2378129834
5
- from ._staggered import staggered_race
6
- else:
7
- from asyncio.staggered import staggered_race
8
-
9
- __all__ = ["staggered_race"]
 
 
 
 
 
 
 
 
 
 
outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs/types.py DELETED
@@ -1,12 +0,0 @@
1
- """Types for aiohappyeyeballs."""
2
-
3
- import socket
4
- from typing import Tuple, Union
5
-
6
- AddrInfoType = Tuple[
7
- Union[int, socket.AddressFamily],
8
- Union[int, socket.SocketKind],
9
- int,
10
- str,
11
- Tuple, # type: ignore[type-arg]
12
- ]
 
 
 
 
 
 
 
 
 
 
 
 
 
outputs/venv/lib/python3.12/site-packages/aiohappyeyeballs/utils.py DELETED
@@ -1,97 +0,0 @@
1
- """Utility functions for aiohappyeyeballs."""
2
-
3
- import ipaddress
4
- import socket
5
- from typing import Dict, List, Optional, Tuple, Union
6
-
7
- from .types import AddrInfoType
8
-
9
-
10
- def addr_to_addr_infos(
11
- addr: Optional[
12
- Union[Tuple[str, int, int, int], Tuple[str, int, int], Tuple[str, int]]
13
- ]
14
- ) -> Optional[List[AddrInfoType]]:
15
- """Convert an address tuple to a list of addr_info tuples."""
16
- if addr is None:
17
- return None
18
- host = addr[0]
19
- port = addr[1]
20
- is_ipv6 = ":" in host
21
- if is_ipv6:
22
- flowinfo = 0
23
- scopeid = 0
24
- addr_len = len(addr)
25
- if addr_len >= 4:
26
- scopeid = addr[3] # type: ignore[misc]
27
- if addr_len >= 3:
28
- flowinfo = addr[2] # type: ignore[misc]
29
- addr = (host, port, flowinfo, scopeid)
30
- family = socket.AF_INET6
31
- else:
32
- addr = (host, port)
33
- family = socket.AF_INET
34
- return [(family, socket.SOCK_STREAM, socket.IPPROTO_TCP, "", addr)]
35
-
36
-
37
- def pop_addr_infos_interleave(
38
- addr_infos: List[AddrInfoType], interleave: Optional[int] = None
39
- ) -> None:
40
- """
41
- Pop addr_info from the list of addr_infos by family up to interleave times.
42
-
43
- The interleave parameter is used to know how many addr_infos for
44
- each family should be popped of the top of the list.
45
- """
46
- seen: Dict[int, int] = {}
47
- if interleave is None:
48
- interleave = 1
49
- to_remove: List[AddrInfoType] = []
50
- for addr_info in addr_infos:
51
- family = addr_info[0]
52
- if family not in seen:
53
- seen[family] = 0
54
- if seen[family] < interleave:
55
- to_remove.append(addr_info)
56
- seen[family] += 1
57
- for addr_info in to_remove:
58
- addr_infos.remove(addr_info)
59
-
60
-
61
- def _addr_tuple_to_ip_address(
62
- addr: Union[Tuple[str, int], Tuple[str, int, int, int]]
63
- ) -> Union[
64
- Tuple[ipaddress.IPv4Address, int], Tuple[ipaddress.IPv6Address, int, int, int]
65
- ]:
66
- """Convert an address tuple to an IPv4Address."""
67
- return (ipaddress.ip_address(addr[0]), *addr[1:])
68
-
69
-
70
- def remove_addr_infos(
71
- addr_infos: List[AddrInfoType],
72
- addr: Union[Tuple[str, int], Tuple[str, int, int, int]],
73
- ) -> None:
74
- """
75
- Remove an address from the list of addr_infos.
76
-
77
- The addr value is typically the return value of
78
- sock.getpeername().
79
- """
80
- bad_addrs_infos: List[AddrInfoType] = []
81
- for addr_info in addr_infos:
82
- if addr_info[-1] == addr:
83
- bad_addrs_infos.append(addr_info)
84
- if bad_addrs_infos:
85
- for bad_addr_info in bad_addrs_infos:
86
- addr_infos.remove(bad_addr_info)
87
- return
88
- # Slow path in case addr is formatted differently
89
- match_addr = _addr_tuple_to_ip_address(addr)
90
- for addr_info in addr_infos:
91
- if match_addr == _addr_tuple_to_ip_address(addr_info[-1]):
92
- bad_addrs_infos.append(addr_info)
93
- if bad_addrs_infos:
94
- for bad_addr_info in bad_addrs_infos:
95
- addr_infos.remove(bad_addr_info)
96
- return
97
- raise ValueError(f"Address {addr} not found in addr_infos")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
outputs/venv/lib/python3.12/site-packages/aiohttp-3.10.8.dist-info/INSTALLER DELETED
@@ -1 +0,0 @@
1
- pip