sidsenthilkumar commited on
Commit
f31c320
·
verified ·
1 Parent(s): b0c2370

Remove venv and raw source files

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .venv/.gitignore +0 -1
  2. .venv/.lock +0 -0
  3. .venv/CACHEDIR.TAG +0 -1
  4. .venv/bin/activate +0 -130
  5. .venv/bin/activate.bat +0 -71
  6. .venv/bin/activate.csh +0 -76
  7. .venv/bin/activate.fish +0 -127
  8. .venv/bin/activate.nu +0 -104
  9. .venv/bin/activate.ps1 +0 -82
  10. .venv/bin/activate_this.py +0 -59
  11. .venv/bin/deactivate.bat +0 -39
  12. .venv/bin/f2py +0 -10
  13. .venv/bin/numpy-config +0 -10
  14. .venv/bin/pydoc.bat +0 -22
  15. .venv/bin/python +0 -3
  16. .venv/bin/python3 +0 -3
  17. .venv/bin/python3.11 +0 -3
  18. .venv/bin/tqdm +0 -10
  19. .venv/lib/python3.11/site-packages/_virtualenv.pth +0 -3
  20. .venv/lib/python3.11/site-packages/_virtualenv.py +0 -121
  21. .venv/lib/python3.11/site-packages/dateutil/__init__.py +0 -24
  22. .venv/lib/python3.11/site-packages/dateutil/_common.py +0 -43
  23. .venv/lib/python3.11/site-packages/dateutil/_version.py +0 -4
  24. .venv/lib/python3.11/site-packages/dateutil/easter.py +0 -89
  25. .venv/lib/python3.11/site-packages/dateutil/parser/__init__.py +0 -61
  26. .venv/lib/python3.11/site-packages/dateutil/parser/_parser.py +0 -1613
  27. .venv/lib/python3.11/site-packages/dateutil/parser/isoparser.py +0 -416
  28. .venv/lib/python3.11/site-packages/dateutil/relativedelta.py +0 -599
  29. .venv/lib/python3.11/site-packages/dateutil/rrule.py +0 -1737
  30. .venv/lib/python3.11/site-packages/dateutil/tz/__init__.py +0 -12
  31. .venv/lib/python3.11/site-packages/dateutil/tz/_common.py +0 -419
  32. .venv/lib/python3.11/site-packages/dateutil/tz/_factories.py +0 -80
  33. .venv/lib/python3.11/site-packages/dateutil/tz/tz.py +0 -1849
  34. .venv/lib/python3.11/site-packages/dateutil/tz/win.py +0 -370
  35. .venv/lib/python3.11/site-packages/dateutil/tzwin.py +0 -2
  36. .venv/lib/python3.11/site-packages/dateutil/utils.py +0 -71
  37. .venv/lib/python3.11/site-packages/dateutil/zoneinfo/__init__.py +0 -167
  38. .venv/lib/python3.11/site-packages/dateutil/zoneinfo/dateutil-zoneinfo.tar.gz +0 -3
  39. .venv/lib/python3.11/site-packages/dateutil/zoneinfo/rebuild.py +0 -75
  40. .venv/lib/python3.11/site-packages/numpy-2.4.6.dist-info/INSTALLER +0 -1
  41. .venv/lib/python3.11/site-packages/numpy-2.4.6.dist-info/METADATA +0 -139
  42. .venv/lib/python3.11/site-packages/numpy-2.4.6.dist-info/RECORD +0 -1045
  43. .venv/lib/python3.11/site-packages/numpy-2.4.6.dist-info/REQUESTED +0 -0
  44. .venv/lib/python3.11/site-packages/numpy-2.4.6.dist-info/WHEEL +0 -6
  45. .venv/lib/python3.11/site-packages/numpy-2.4.6.dist-info/entry_points.txt +0 -13
  46. .venv/lib/python3.11/site-packages/numpy-2.4.6.dist-info/licenses/LICENSE.txt +0 -935
  47. .venv/lib/python3.11/site-packages/numpy-2.4.6.dist-info/licenses/numpy/_core/include/numpy/libdivide/LICENSE.txt +0 -21
  48. .venv/lib/python3.11/site-packages/numpy-2.4.6.dist-info/licenses/numpy/_core/src/common/pythoncapi-compat/COPYING +0 -14
  49. .venv/lib/python3.11/site-packages/numpy-2.4.6.dist-info/licenses/numpy/_core/src/highway/LICENSE +0 -371
  50. .venv/lib/python3.11/site-packages/numpy-2.4.6.dist-info/licenses/numpy/_core/src/multiarray/dragon4_LICENSE.txt +0 -27
.venv/.gitignore DELETED
@@ -1 +0,0 @@
1
- *
 
 
.venv/.lock DELETED
File without changes
.venv/CACHEDIR.TAG DELETED
@@ -1 +0,0 @@
1
- Signature: 8a477f597d28d172789f06886806bc55
 
 
.venv/bin/activate DELETED
@@ -1,130 +0,0 @@
1
- # Copyright (c) 2020-202x The virtualenv developers
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining
4
- # a copy of this software and associated documentation files (the
5
- # "Software"), to deal in the Software without restriction, including
6
- # without limitation the rights to use, copy, modify, merge, publish,
7
- # distribute, sublicense, and/or sell copies of the Software, and to
8
- # permit persons to whom the Software is furnished to do so, subject to
9
- # the following conditions:
10
- #
11
- # The above copyright notice and this permission notice shall be
12
- # included in all copies or substantial portions of the Software.
13
- #
14
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
-
22
- # This file must be used with "source bin/activate" *from bash*
23
- # you cannot run it directly
24
-
25
- if ! [ -z "${SCRIPT_PATH+_}" ] ; then
26
- _OLD_SCRIPT_PATH="$SCRIPT_PATH"
27
- fi
28
-
29
- # Get script path (only used if environment is relocatable).
30
- if [ -n "${BASH_VERSION:+x}" ] ; then
31
- SCRIPT_PATH="${BASH_SOURCE[0]}"
32
- if [ "$SCRIPT_PATH" = "$0" ]; then
33
- # Only bash has a reasonably robust check for source'dness.
34
- echo "You must source this script: \$ source $0" >&2
35
- exit 33
36
- fi
37
- elif [ -n "${ZSH_VERSION:+x}" ] ; then
38
- SCRIPT_PATH="${(%):-%x}"
39
- elif [ -n "${KSH_VERSION:+x}" ] ; then
40
- SCRIPT_PATH="${.sh.file}"
41
- fi
42
-
43
- deactivate () {
44
- unset -f pydoc >/dev/null 2>&1 || true
45
-
46
- # reset old environment variables
47
- # ! [ -z ${VAR+_} ] returns true if VAR is declared at all
48
- if ! [ -z "${_OLD_VIRTUAL_PATH:+_}" ] ; then
49
- PATH="$_OLD_VIRTUAL_PATH"
50
- export PATH
51
- unset _OLD_VIRTUAL_PATH
52
- fi
53
- if ! [ -z "${_OLD_VIRTUAL_PYTHONHOME+_}" ] ; then
54
- PYTHONHOME="$_OLD_VIRTUAL_PYTHONHOME"
55
- export PYTHONHOME
56
- unset _OLD_VIRTUAL_PYTHONHOME
57
- fi
58
-
59
- # The hash command must be called to get it to forget past
60
- # commands. Without forgetting past commands the $PATH changes
61
- # we made may not be respected
62
- hash -r 2>/dev/null
63
-
64
- if ! [ -z "${_OLD_VIRTUAL_PS1+_}" ] ; then
65
- PS1="$_OLD_VIRTUAL_PS1"
66
- export PS1
67
- unset _OLD_VIRTUAL_PS1
68
- fi
69
-
70
- unset VIRTUAL_ENV
71
- unset VIRTUAL_ENV_PROMPT
72
- if [ ! "${1-}" = "nondestructive" ] ; then
73
- # Self destruct!
74
- unset -f deactivate
75
- fi
76
- }
77
-
78
- # unset irrelevant variables
79
- deactivate nondestructive
80
-
81
- VIRTUAL_ENV='/home/siddharthkrishnassk/Projects/ufo-consolidated/.venv'
82
- if ([ "$OSTYPE" = "cygwin" ] || [ "$OSTYPE" = "msys" ]) && $(command -v cygpath &> /dev/null) ; then
83
- VIRTUAL_ENV=$(cygpath -u "$VIRTUAL_ENV")
84
- fi
85
- export VIRTUAL_ENV
86
-
87
- # Unset the `SCRIPT_PATH` variable, now that the `VIRTUAL_ENV` variable
88
- # has been set. This is important for relocatable environments.
89
- if ! [ -z "${_OLD_SCRIPT_PATH+_}" ] ; then
90
- SCRIPT_PATH="$_OLD_SCRIPT_PATH"
91
- export SCRIPT_PATH
92
- unset _OLD_SCRIPT_PATH
93
- else
94
- unset SCRIPT_PATH
95
- fi
96
-
97
- _OLD_VIRTUAL_PATH="$PATH"
98
- PATH="$VIRTUAL_ENV/bin:$PATH"
99
- export PATH
100
-
101
- if [ "xufo-consolidated" != x ] ; then
102
- VIRTUAL_ENV_PROMPT="ufo-consolidated"
103
- else
104
- VIRTUAL_ENV_PROMPT=$(basename "$VIRTUAL_ENV")
105
- fi
106
- export VIRTUAL_ENV_PROMPT
107
-
108
- # unset PYTHONHOME if set
109
- if ! [ -z "${PYTHONHOME+_}" ] ; then
110
- _OLD_VIRTUAL_PYTHONHOME="$PYTHONHOME"
111
- unset PYTHONHOME
112
- fi
113
-
114
- if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT-}" ] ; then
115
- _OLD_VIRTUAL_PS1="${PS1-}"
116
- PS1="(${VIRTUAL_ENV_PROMPT}) ${PS1-}"
117
- export PS1
118
- fi
119
-
120
- # Make sure to unalias pydoc if it's already there
121
- alias pydoc 2>/dev/null >/dev/null && unalias pydoc || true
122
-
123
- pydoc () {
124
- python -m pydoc "$@"
125
- }
126
-
127
- # The hash command must be called to get it to forget past
128
- # commands. Without forgetting past commands the $PATH changes
129
- # we made may not be respected
130
- hash -r 2>/dev/null || true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/bin/activate.bat DELETED
@@ -1,71 +0,0 @@
1
- @REM Copyright (c) 2020-202x The virtualenv developers
2
- @REM
3
- @REM Permission is hereby granted, free of charge, to any person obtaining
4
- @REM a copy of this software and associated documentation files (the
5
- @REM "Software"), to deal in the Software without restriction, including
6
- @REM without limitation the rights to use, copy, modify, merge, publish,
7
- @REM distribute, sublicense, and/or sell copies of the Software, and to
8
- @REM permit persons to whom the Software is furnished to do so, subject to
9
- @REM the following conditions:
10
- @REM
11
- @REM The above copyright notice and this permission notice shall be
12
- @REM included in all copies or substantial portions of the Software.
13
- @REM
14
- @REM THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- @REM EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- @REM MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- @REM NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- @REM LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- @REM OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- @REM WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
-
22
- @REM This file is UTF-8 encoded, so we need to update the current code page while executing it
23
- @for /f "tokens=2 delims=:." %%a in ('"%SystemRoot%\System32\chcp.com"') do @set _OLD_CODEPAGE=%%a
24
-
25
- @if defined _OLD_CODEPAGE (
26
- "%SystemRoot%\System32\chcp.com" 65001 > nul
27
- )
28
-
29
- @for %%i in ("/home/siddharthkrishnassk/Projects/ufo-consolidated/.venv") do @set "VIRTUAL_ENV=%%~fi"
30
-
31
- @set "VIRTUAL_ENV_PROMPT=ufo-consolidated"
32
- @if NOT DEFINED VIRTUAL_ENV_PROMPT (
33
- @for %%d in ("%VIRTUAL_ENV%") do @set "VIRTUAL_ENV_PROMPT=%%~nxd"
34
- )
35
-
36
- @if defined _OLD_VIRTUAL_PROMPT (
37
- @set "PROMPT=%_OLD_VIRTUAL_PROMPT%"
38
- ) else (
39
- @if not defined PROMPT (
40
- @set "PROMPT=$P$G"
41
- )
42
- @if not defined VIRTUAL_ENV_DISABLE_PROMPT (
43
- @set "_OLD_VIRTUAL_PROMPT=%PROMPT%"
44
- )
45
- )
46
- @if not defined VIRTUAL_ENV_DISABLE_PROMPT (
47
- @set "PROMPT=(%VIRTUAL_ENV_PROMPT%) %PROMPT%"
48
- )
49
-
50
- @REM Don't use () to avoid problems with them in %PATH%
51
- @if defined _OLD_VIRTUAL_PYTHONHOME @goto ENDIFVHOME
52
- @set "_OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME%"
53
- :ENDIFVHOME
54
-
55
- @set PYTHONHOME=
56
-
57
- @REM if defined _OLD_VIRTUAL_PATH (
58
- @if not defined _OLD_VIRTUAL_PATH @goto ENDIFVPATH1
59
- @set "PATH=%_OLD_VIRTUAL_PATH%"
60
- :ENDIFVPATH1
61
- @REM ) else (
62
- @if defined _OLD_VIRTUAL_PATH @goto ENDIFVPATH2
63
- @set "_OLD_VIRTUAL_PATH=%PATH%"
64
- :ENDIFVPATH2
65
-
66
- @set "PATH=%VIRTUAL_ENV%\bin;%PATH%"
67
-
68
- @if defined _OLD_CODEPAGE (
69
- "%SystemRoot%\System32\chcp.com" %_OLD_CODEPAGE% > nul
70
- @set _OLD_CODEPAGE=
71
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/bin/activate.csh DELETED
@@ -1,76 +0,0 @@
1
- # Copyright (c) 2020-202x The virtualenv developers
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining
4
- # a copy of this software and associated documentation files (the
5
- # "Software"), to deal in the Software without restriction, including
6
- # without limitation the rights to use, copy, modify, merge, publish,
7
- # distribute, sublicense, and/or sell copies of the Software, and to
8
- # permit persons to whom the Software is furnished to do so, subject to
9
- # the following conditions:
10
- #
11
- # The above copyright notice and this permission notice shall be
12
- # included in all copies or substantial portions of the Software.
13
- #
14
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
-
22
- # This file must be used with "source bin/activate.csh" *from csh*.
23
- # You cannot run it directly.
24
- # Created by Davide Di Blasi <davidedb@gmail.com>.
25
-
26
- set newline='\
27
- '
28
-
29
- alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH:q" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT:q" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; unsetenv VIRTUAL_ENV_PROMPT; test "\!:*" != "nondestructive" && unalias deactivate && unalias pydoc'
30
-
31
- # Unset irrelevant variables.
32
- deactivate nondestructive
33
-
34
- setenv VIRTUAL_ENV '/home/siddharthkrishnassk/Projects/ufo-consolidated/.venv'
35
-
36
- set _OLD_VIRTUAL_PATH="$PATH:q"
37
- setenv PATH "$VIRTUAL_ENV:q/bin:$PATH:q"
38
-
39
-
40
-
41
- if ('ufo-consolidated' != "") then
42
- setenv VIRTUAL_ENV_PROMPT 'ufo-consolidated'
43
- else
44
- setenv VIRTUAL_ENV_PROMPT "$VIRTUAL_ENV:t:q"
45
- endif
46
-
47
- if ( $?VIRTUAL_ENV_DISABLE_PROMPT ) then
48
- if ( $VIRTUAL_ENV_DISABLE_PROMPT == "" ) then
49
- set do_prompt = "1"
50
- else
51
- set do_prompt = "0"
52
- endif
53
- else
54
- set do_prompt = "1"
55
- endif
56
-
57
- if ( $do_prompt == "1" ) then
58
- # Could be in a non-interactive environment,
59
- # in which case, $prompt is undefined and we wouldn't
60
- # care about the prompt anyway.
61
- if ( $?prompt ) then
62
- set _OLD_VIRTUAL_PROMPT="$prompt:q"
63
- if ( "$prompt:q" =~ *"$newline:q"* ) then
64
- :
65
- else
66
- set prompt = '('"$VIRTUAL_ENV_PROMPT:q"') '"$prompt:q"
67
- endif
68
- endif
69
- endif
70
-
71
- unset env_name
72
- unset do_prompt
73
-
74
- alias pydoc python -m pydoc
75
-
76
- rehash
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/bin/activate.fish DELETED
@@ -1,127 +0,0 @@
1
- # Copyright (c) 2020-202x The virtualenv developers
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining
4
- # a copy of this software and associated documentation files (the
5
- # "Software"), to deal in the Software without restriction, including
6
- # without limitation the rights to use, copy, modify, merge, publish,
7
- # distribute, sublicense, and/or sell copies of the Software, and to
8
- # permit persons to whom the Software is furnished to do so, subject to
9
- # the following conditions:
10
- #
11
- # The above copyright notice and this permission notice shall be
12
- # included in all copies or substantial portions of the Software.
13
- #
14
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
-
22
- # This file must be used using `source bin/activate.fish` *within a running fish ( http://fishshell.com ) session*.
23
- # Do not run it directly.
24
-
25
- function _bashify_path -d "Converts a fish path to something bash can recognize"
26
- set fishy_path $argv
27
- set bashy_path $fishy_path[1]
28
- for path_part in $fishy_path[2..-1]
29
- set bashy_path "$bashy_path:$path_part"
30
- end
31
- echo $bashy_path
32
- end
33
-
34
- function _fishify_path -d "Converts a bash path to something fish can recognize"
35
- echo $argv | tr ':' '\n'
36
- end
37
-
38
- function deactivate -d 'Exit virtualenv mode and return to the normal environment.'
39
- # reset old environment variables
40
- if test -n "$_OLD_VIRTUAL_PATH"
41
- # https://github.com/fish-shell/fish-shell/issues/436 altered PATH handling
42
- if test (string sub -s 1 -l 1 $FISH_VERSION) -lt 3
43
- set -gx PATH (_fishify_path "$_OLD_VIRTUAL_PATH")
44
- else
45
- set -gx PATH $_OLD_VIRTUAL_PATH
46
- end
47
- set -e _OLD_VIRTUAL_PATH
48
- end
49
-
50
- if test -n "$_OLD_VIRTUAL_PYTHONHOME"
51
- set -gx PYTHONHOME "$_OLD_VIRTUAL_PYTHONHOME"
52
- set -e _OLD_VIRTUAL_PYTHONHOME
53
- end
54
-
55
- if test -n "$_OLD_FISH_PROMPT_OVERRIDE"
56
- and functions -q _old_fish_prompt
57
- # Set an empty local `$fish_function_path` to allow the removal of `fish_prompt` using `functions -e`.
58
- set -l fish_function_path
59
-
60
- # Erase virtualenv's `fish_prompt` and restore the original.
61
- functions -e fish_prompt
62
- functions -c _old_fish_prompt fish_prompt
63
- functions -e _old_fish_prompt
64
- set -e _OLD_FISH_PROMPT_OVERRIDE
65
- end
66
-
67
- set -e VIRTUAL_ENV
68
- set -e VIRTUAL_ENV_PROMPT
69
-
70
- if test "$argv[1]" != 'nondestructive'
71
- # Self-destruct!
72
- functions -e pydoc
73
- functions -e deactivate
74
- functions -e _bashify_path
75
- functions -e _fishify_path
76
- end
77
- end
78
-
79
- # Unset irrelevant variables.
80
- deactivate nondestructive
81
-
82
- set -gx VIRTUAL_ENV '/home/siddharthkrishnassk/Projects/ufo-consolidated/.venv'
83
- if string match -qr 'CYGWIN|MSYS|MINGW' (uname); and command -s cygpath >/dev/null
84
- set -gx VIRTUAL_ENV (cygpath -u "$VIRTUAL_ENV")
85
- end
86
-
87
- # https://github.com/fish-shell/fish-shell/issues/436 altered PATH handling
88
- if test (string sub -s 1 -l 1 $FISH_VERSION) -lt 3
89
- set -gx _OLD_VIRTUAL_PATH (_bashify_path $PATH)
90
- else
91
- set -gx _OLD_VIRTUAL_PATH $PATH
92
- end
93
- set -gx PATH "$VIRTUAL_ENV"'/bin' $PATH
94
-
95
- # Prompt override provided?
96
- # If not, just use the environment name.
97
- if test -n 'ufo-consolidated'
98
- set -gx VIRTUAL_ENV_PROMPT 'ufo-consolidated'
99
- else
100
- set -gx VIRTUAL_ENV_PROMPT (basename "$VIRTUAL_ENV")
101
- end
102
-
103
- # Unset `$PYTHONHOME` if set.
104
- if set -q PYTHONHOME
105
- set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME
106
- set -e PYTHONHOME
107
- end
108
-
109
- function pydoc
110
- python -m pydoc $argv
111
- end
112
-
113
- if test -z "$VIRTUAL_ENV_DISABLE_PROMPT"
114
- # Copy the current `fish_prompt` function as `_old_fish_prompt`.
115
- functions -c fish_prompt _old_fish_prompt
116
-
117
- function fish_prompt
118
- # Run the user's prompt first; it might depend on (pipe)status.
119
- set -l prompt (_old_fish_prompt)
120
-
121
- printf '(%s) ' $VIRTUAL_ENV_PROMPT
122
-
123
- string join -- \n $prompt # handle multi-line prompts
124
- end
125
-
126
- set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV"
127
- end
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/bin/activate.nu DELETED
@@ -1,104 +0,0 @@
1
- # Copyright (c) 2020-202x The virtualenv developers
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining
4
- # a copy of this software and associated documentation files (the
5
- # "Software"), to deal in the Software without restriction, including
6
- # without limitation the rights to use, copy, modify, merge, publish,
7
- # distribute, sublicense, and/or sell copies of the Software, and to
8
- # permit persons to whom the Software is furnished to do so, subject to
9
- # the following conditions:
10
- #
11
- # The above copyright notice and this permission notice shall be
12
- # included in all copies or substantial portions of the Software.
13
- #
14
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
-
22
- # virtualenv activation module:
23
- # - Activate with `overlay use activate.nu`
24
- # - Deactivate with `deactivate`, as usual
25
- #
26
- # To customize the overlay name, call `overlay use activate.nu as foo`, but then `deactivate` won't work -
27
- # you'd need to run `overlay hide foo` manually. Do not activate with `use activate.nu *`; that does not
28
- # create an overlay and deactivation will fail.
29
-
30
- module warning {
31
- export-env {
32
- const file = path self
33
- error make -u {
34
- msg: $"`($file | path basename)` is meant to be used with `overlay use`, not `source`"
35
- }
36
- }
37
-
38
- }
39
-
40
- use warning
41
-
42
- export-env {
43
-
44
- let nu_ver = (version | get version | split row '.' | take 2 | each { into int })
45
- if $nu_ver.0 == 0 and $nu_ver.1 < 106 {
46
- error make {
47
- msg: 'virtualenv Nushell activation requires Nushell 0.106 or greater.'
48
- }
49
- }
50
-
51
- def is-string [x] {
52
- ($x | describe) == 'string'
53
- }
54
-
55
- def has-env [...names] {
56
- $names | each {|n| $n in $env } | all {|i| $i }
57
- }
58
-
59
- def is-env-true [name: string] {
60
- if (has-env $name) {
61
- let val = ($env | get --optional $name)
62
- if ($val | describe) == 'bool' {
63
- $val
64
- } else {
65
- not ($val | is-empty)
66
- }
67
- } else {
68
- false
69
- }
70
- }
71
-
72
- let virtual_env = '/home/siddharthkrishnassk/Projects/ufo-consolidated/.venv'
73
- let bin = 'bin'
74
- let path_name = if (has-env 'Path') { 'Path' } else { 'PATH' }
75
- let venv_path = ([$virtual_env $bin] | path join)
76
- let new_path = ($env | get $path_name | prepend $venv_path)
77
- let virtual_env_prompt = if ('ufo-consolidated' | is-empty) {
78
- ($virtual_env | path basename)
79
- } else {
80
- 'ufo-consolidated'
81
- }
82
- let new_env = { $path_name: $new_path VIRTUAL_ENV: $virtual_env VIRTUAL_ENV_PROMPT: $virtual_env_prompt }
83
- let old_prompt_command = if (has-env 'PROMPT_COMMAND') { $env.PROMPT_COMMAND } else { '' }
84
- let new_env = if (is-env-true 'VIRTUAL_ENV_DISABLE_PROMPT') {
85
- $new_env
86
- } else {
87
- let virtual_prefix = $'(char lparen)($virtual_env_prompt)(char rparen) '
88
- let new_prompt = if (has-env 'PROMPT_COMMAND') {
89
- if ('closure' in ($old_prompt_command | describe)) {
90
- {|| $'($virtual_prefix)(do $old_prompt_command)' }
91
- } else {
92
- {|| $'($virtual_prefix)($old_prompt_command)' }
93
- }
94
- } else {
95
- {|| $'($virtual_prefix)' }
96
- }
97
- $new_env | merge { PROMPT_COMMAND: $new_prompt VIRTUAL_PREFIX: $virtual_prefix }
98
- }
99
- load-env $new_env
100
- }
101
-
102
- export alias pydoc = python -m pydoc
103
- # If deactivate errors "not an active overlay": activate with `overlay use activate.nu` not `use activate.nu *`; for custom names use `overlay hide NAME`
104
- export alias deactivate = overlay hide activate
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/bin/activate.ps1 DELETED
@@ -1,82 +0,0 @@
1
- # Copyright (c) 2020-202x The virtualenv developers
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining
4
- # a copy of this software and associated documentation files (the
5
- # "Software"), to deal in the Software without restriction, including
6
- # without limitation the rights to use, copy, modify, merge, publish,
7
- # distribute, sublicense, and/or sell copies of the Software, and to
8
- # permit persons to whom the Software is furnished to do so, subject to
9
- # the following conditions:
10
- #
11
- # The above copyright notice and this permission notice shall be
12
- # included in all copies or substantial portions of the Software.
13
- #
14
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
-
22
- $script:THIS_PATH = $myinvocation.mycommand.path
23
- $script:BASE_DIR = Split-Path (Resolve-Path "$THIS_PATH/..") -Parent
24
-
25
- function global:deactivate([switch] $NonDestructive) {
26
- if (Test-Path variable:_OLD_VIRTUAL_PATH) {
27
- $env:PATH = $variable:_OLD_VIRTUAL_PATH
28
- Remove-Variable "_OLD_VIRTUAL_PATH" -Scope global
29
- }
30
-
31
- if (Test-Path function:_old_virtual_prompt) {
32
- $function:prompt = $function:_old_virtual_prompt
33
- Remove-Item function:\_old_virtual_prompt
34
- }
35
-
36
- if ($env:VIRTUAL_ENV) {
37
- Remove-Item env:VIRTUAL_ENV -ErrorAction SilentlyContinue
38
- }
39
-
40
- if ($env:VIRTUAL_ENV_PROMPT) {
41
- Remove-Item env:VIRTUAL_ENV_PROMPT -ErrorAction SilentlyContinue
42
- }
43
-
44
- if (!$NonDestructive) {
45
- # Self destruct!
46
- Remove-Item function:deactivate
47
- Remove-Item function:pydoc
48
- }
49
- }
50
-
51
- function global:pydoc {
52
- & python -m pydoc $args
53
- }
54
-
55
- # unset irrelevant variables
56
- deactivate -nondestructive
57
-
58
- $VIRTUAL_ENV = $BASE_DIR
59
- $env:VIRTUAL_ENV = $VIRTUAL_ENV
60
-
61
- if ("ufo-consolidated" -ne "") {
62
- $env:VIRTUAL_ENV_PROMPT = "ufo-consolidated"
63
- }
64
- else {
65
- $env:VIRTUAL_ENV_PROMPT = $( Split-Path $env:VIRTUAL_ENV -Leaf )
66
- }
67
-
68
- New-Variable -Scope global -Name _OLD_VIRTUAL_PATH -Value $env:PATH
69
-
70
- $env:PATH = "$env:VIRTUAL_ENV/bin:" + $env:PATH
71
- if (!$env:VIRTUAL_ENV_DISABLE_PROMPT) {
72
- function global:_old_virtual_prompt {
73
- ""
74
- }
75
- $function:_old_virtual_prompt = $function:prompt
76
-
77
- function global:prompt {
78
- # Add the custom prefix to the existing prompt
79
- $previous_prompt_value = & $function:_old_virtual_prompt
80
- ("(" + $env:VIRTUAL_ENV_PROMPT + ") " + $previous_prompt_value)
81
- }
82
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/bin/activate_this.py DELETED
@@ -1,59 +0,0 @@
1
- # Copyright (c) 2020-202x The virtualenv developers
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining
4
- # a copy of this software and associated documentation files (the
5
- # "Software"), to deal in the Software without restriction, including
6
- # without limitation the rights to use, copy, modify, merge, publish,
7
- # distribute, sublicense, and/or sell copies of the Software, and to
8
- # permit persons to whom the Software is furnished to do so, subject to
9
- # the following conditions:
10
- #
11
- # The above copyright notice and this permission notice shall be
12
- # included in all copies or substantial portions of the Software.
13
- #
14
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
-
22
- """
23
- Activate virtualenv for current interpreter:
24
-
25
- import runpy
26
- runpy.run_path(this_file)
27
-
28
- This can be used when you must use an existing Python interpreter, not the virtualenv bin/python.
29
- """ # noqa: D415
30
-
31
- from __future__ import annotations
32
-
33
- import os
34
- import site
35
- import sys
36
-
37
- try:
38
- abs_file = os.path.abspath(__file__)
39
- except NameError as exc:
40
- msg = "You must use import runpy; runpy.run_path(this_file)"
41
- raise AssertionError(msg) from exc
42
-
43
- bin_dir = os.path.dirname(abs_file)
44
- base = bin_dir[: -len("bin") - 1] # strip away the bin part from the __file__, plus the path separator
45
-
46
- # prepend bin to PATH (this file is inside the bin directory)
47
- os.environ["PATH"] = os.pathsep.join([bin_dir, *os.environ.get("PATH", "").split(os.pathsep)])
48
- os.environ["VIRTUAL_ENV"] = base # virtual env is right above bin directory
49
- os.environ["VIRTUAL_ENV_PROMPT"] = "ufo-consolidated" or os.path.basename(base) # noqa: SIM222
50
-
51
- # add the virtual environments libraries to the host python import mechanism
52
- prev_length = len(sys.path)
53
- for lib in "../lib/python3.11/site-packages".split(os.pathsep):
54
- path = os.path.realpath(os.path.join(bin_dir, lib))
55
- site.addsitedir(path)
56
- sys.path[:] = sys.path[prev_length:] + sys.path[0:prev_length]
57
-
58
- sys.real_prefix = sys.prefix
59
- sys.prefix = base
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/bin/deactivate.bat DELETED
@@ -1,39 +0,0 @@
1
- @REM Copyright (c) 2020-202x The virtualenv developers
2
- @REM
3
- @REM Permission is hereby granted, free of charge, to any person obtaining
4
- @REM a copy of this software and associated documentation files (the
5
- @REM "Software"), to deal in the Software without restriction, including
6
- @REM without limitation the rights to use, copy, modify, merge, publish,
7
- @REM distribute, sublicense, and/or sell copies of the Software, and to
8
- @REM permit persons to whom the Software is furnished to do so, subject to
9
- @REM the following conditions:
10
- @REM
11
- @REM The above copyright notice and this permission notice shall be
12
- @REM included in all copies or substantial portions of the Software.
13
- @REM
14
- @REM THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- @REM EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- @REM MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- @REM NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- @REM LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- @REM OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- @REM WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
-
22
- @set VIRTUAL_ENV=
23
- @set VIRTUAL_ENV_PROMPT=
24
-
25
- @REM Don't use () to avoid problems with them in %PATH%
26
- @if not defined _OLD_VIRTUAL_PROMPT @goto ENDIFVPROMPT
27
- @set "PROMPT=%_OLD_VIRTUAL_PROMPT%"
28
- @set _OLD_VIRTUAL_PROMPT=
29
- :ENDIFVPROMPT
30
-
31
- @if not defined _OLD_VIRTUAL_PYTHONHOME @goto ENDIFVHOME
32
- @set "PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%"
33
- @set _OLD_VIRTUAL_PYTHONHOME=
34
- :ENDIFVHOME
35
-
36
- @if not defined _OLD_VIRTUAL_PATH @goto ENDIFVPATH
37
- @set "PATH=%_OLD_VIRTUAL_PATH%"
38
- @set _OLD_VIRTUAL_PATH=
39
- :ENDIFVPATH
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/bin/f2py DELETED
@@ -1,10 +0,0 @@
1
- #!/home/siddharthkrishnassk/Projects/ufo-consolidated/.venv/bin/python3
2
- # -*- coding: utf-8 -*-
3
- import sys
4
- from numpy.f2py.f2py2e import main
5
- if __name__ == "__main__":
6
- if sys.argv[0].endswith("-script.pyw"):
7
- sys.argv[0] = sys.argv[0][:-11]
8
- elif sys.argv[0].endswith(".exe"):
9
- sys.argv[0] = sys.argv[0][:-4]
10
- sys.exit(main())
 
 
 
 
 
 
 
 
 
 
 
.venv/bin/numpy-config DELETED
@@ -1,10 +0,0 @@
1
- #!/home/siddharthkrishnassk/Projects/ufo-consolidated/.venv/bin/python3
2
- # -*- coding: utf-8 -*-
3
- import sys
4
- from numpy._configtool import main
5
- if __name__ == "__main__":
6
- if sys.argv[0].endswith("-script.pyw"):
7
- sys.argv[0] = sys.argv[0][:-11]
8
- elif sys.argv[0].endswith(".exe"):
9
- sys.argv[0] = sys.argv[0][:-4]
10
- sys.exit(main())
 
 
 
 
 
 
 
 
 
 
 
.venv/bin/pydoc.bat DELETED
@@ -1,22 +0,0 @@
1
- @REM Copyright (c) 2020-202x The virtualenv developers
2
- @REM
3
- @REM Permission is hereby granted, free of charge, to any person obtaining
4
- @REM a copy of this software and associated documentation files (the
5
- @REM "Software"), to deal in the Software without restriction, including
6
- @REM without limitation the rights to use, copy, modify, merge, publish,
7
- @REM distribute, sublicense, and/or sell copies of the Software, and to
8
- @REM permit persons to whom the Software is furnished to do so, subject to
9
- @REM the following conditions:
10
- @REM
11
- @REM The above copyright notice and this permission notice shall be
12
- @REM included in all copies or substantial portions of the Software.
13
- @REM
14
- @REM THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- @REM EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- @REM MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- @REM NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- @REM LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- @REM OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- @REM WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
-
22
- "python.exe" -m pydoc %*
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/bin/python DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1df094281cf84ba5ba4cd4b6daa6420ca325a12a9a5e1821d7cf11a660f50f1d
3
- size 22207656
 
 
 
 
.venv/bin/python3 DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1df094281cf84ba5ba4cd4b6daa6420ca325a12a9a5e1821d7cf11a660f50f1d
3
- size 22207656
 
 
 
 
.venv/bin/python3.11 DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1df094281cf84ba5ba4cd4b6daa6420ca325a12a9a5e1821d7cf11a660f50f1d
3
- size 22207656
 
 
 
 
.venv/bin/tqdm DELETED
@@ -1,10 +0,0 @@
1
- #!/home/siddharthkrishnassk/Projects/ufo-consolidated/.venv/bin/python3
2
- # -*- coding: utf-8 -*-
3
- import sys
4
- from tqdm.cli import main
5
- if __name__ == "__main__":
6
- if sys.argv[0].endswith("-script.pyw"):
7
- sys.argv[0] = sys.argv[0][:-11]
8
- elif sys.argv[0].endswith(".exe"):
9
- sys.argv[0] = sys.argv[0][:-4]
10
- sys.exit(main())
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.11/site-packages/_virtualenv.pth DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:69ac3d8f27e679c81b94ab30b3b56e9cd138219b1ba94a1fa3606d5a76a1433d
3
- size 18
 
 
 
 
.venv/lib/python3.11/site-packages/_virtualenv.py DELETED
@@ -1,121 +0,0 @@
1
- """Patches that are applied at runtime to the virtual environment."""
2
-
3
- import contextlib
4
- import os
5
- import sys
6
-
7
- VIRTUALENV_PATCH_FILE = os.path.abspath(__file__)
8
-
9
-
10
- def patch_dist(dist):
11
- """
12
- Distutils allows user to configure some arguments via a configuration file:
13
- https://docs.python.org/3.11/install/index.html#distutils-configuration-files.
14
-
15
- Some of this arguments though don't make sense in context of the virtual environment files, let's fix them up.
16
- """ # noqa: D205
17
- # we cannot allow some install config as that would get packages installed outside of the virtual environment
18
- old_parse_config_files = dist.Distribution.parse_config_files
19
-
20
- def parse_config_files(self, *args, **kwargs):
21
- result = old_parse_config_files(self, *args, **kwargs)
22
- install = self.get_option_dict("install")
23
-
24
- if "prefix" in install: # the prefix governs where to install the libraries
25
- install["prefix"] = VIRTUALENV_PATCH_FILE, os.path.abspath(sys.prefix)
26
- for base in ("purelib", "platlib", "headers", "scripts", "data"):
27
- key = f"install_{base}"
28
- if key in install: # do not allow global configs to hijack venv paths
29
- install.pop(key, None)
30
- return result
31
-
32
- dist.Distribution.parse_config_files = parse_config_files
33
-
34
-
35
- # Import hook that patches some modules to ignore configuration values that break package installation in case
36
- # of virtual environments.
37
- _DISTUTILS_PATCH = "distutils.dist", "setuptools.dist"
38
- # https://docs.python.org/3/library/importlib.html#setting-up-an-importer
39
-
40
-
41
- class _Finder:
42
- """A meta path finder that allows patching the imported distutils modules."""
43
-
44
- fullname = None
45
-
46
- # lock[0] is threading.Lock(), but initialized lazily to avoid importing threading very early at startup,
47
- # because there are gevent-based applications that need to be first to import threading by themselves.
48
- # See https://github.com/pypa/virtualenv/issues/1895 for details.
49
- lock = [] # noqa: RUF012
50
-
51
- def find_spec(self, fullname, path, target=None): # noqa: ARG002
52
- # Guard against race conditions during file rewrite by checking if _DISTUTILS_PATCH is defined.
53
- # This can happen when the file is being overwritten while it's being imported by another process.
54
- # See https://github.com/pypa/virtualenv/issues/2969 for details.
55
- try:
56
- distutils_patch = _DISTUTILS_PATCH
57
- except NameError:
58
- return None
59
- if fullname in distutils_patch and self.fullname is None:
60
- # initialize lock[0] lazily
61
- if len(self.lock) == 0:
62
- import threading
63
-
64
- lock = threading.Lock()
65
- # there is possibility that two threads T1 and T2 are simultaneously running into find_spec,
66
- # observing .lock as empty, and further going into hereby initialization. However due to the GIL,
67
- # list.append() operation is atomic and this way only one of the threads will "win" to put the lock
68
- # - that every thread will use - into .lock[0].
69
- # https://docs.python.org/3/faq/library.html#what-kinds-of-global-value-mutation-are-thread-safe
70
- self.lock.append(lock)
71
-
72
- from functools import partial
73
- from importlib.util import find_spec
74
-
75
- with self.lock[0]:
76
- self.fullname = fullname
77
- try:
78
- spec = find_spec(fullname, path)
79
- if spec is not None:
80
- # https://www.python.org/dev/peps/pep-0451/#how-loading-will-work
81
- is_new_api = hasattr(spec.loader, "exec_module")
82
- func_name = "exec_module" if is_new_api else "load_module"
83
- old = getattr(spec.loader, func_name)
84
- func = self.exec_module if is_new_api else self.load_module
85
- if old is not func:
86
- try: # noqa: SIM105
87
- setattr(spec.loader, func_name, partial(func, old))
88
- except AttributeError:
89
- pass # C-Extension loaders are r/o such as zipimporter with <3.7
90
- return spec
91
- finally:
92
- self.fullname = None
93
- return None
94
-
95
- @staticmethod
96
- def exec_module(old, module):
97
- old(module)
98
- try:
99
- distutils_patch = _DISTUTILS_PATCH
100
- except NameError:
101
- return
102
- if module.__name__ in distutils_patch:
103
- # patch_dist or its dependencies may not be defined during file rewrite
104
- with contextlib.suppress(NameError):
105
- patch_dist(module)
106
-
107
- @staticmethod
108
- def load_module(old, name):
109
- module = old(name)
110
- try:
111
- distutils_patch = _DISTUTILS_PATCH
112
- except NameError:
113
- return module
114
- if module.__name__ in distutils_patch:
115
- # patch_dist or its dependencies may not be defined during file rewrite
116
- with contextlib.suppress(NameError):
117
- patch_dist(module)
118
- return module
119
-
120
-
121
- sys.meta_path.insert(0, _Finder())
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.11/site-packages/dateutil/__init__.py DELETED
@@ -1,24 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- import sys
3
-
4
- try:
5
- from ._version import version as __version__
6
- except ImportError:
7
- __version__ = 'unknown'
8
-
9
- __all__ = ['easter', 'parser', 'relativedelta', 'rrule', 'tz',
10
- 'utils', 'zoneinfo']
11
-
12
- def __getattr__(name):
13
- import importlib
14
-
15
- if name in __all__:
16
- return importlib.import_module("." + name, __name__)
17
- raise AttributeError(
18
- "module {!r} has not attribute {!r}".format(__name__, name)
19
- )
20
-
21
-
22
- def __dir__():
23
- # __dir__ should include all the lazy-importable modules as well.
24
- return [x for x in globals() if x not in sys.modules] + __all__
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.11/site-packages/dateutil/_common.py DELETED
@@ -1,43 +0,0 @@
1
- """
2
- Common code used in multiple modules.
3
- """
4
-
5
-
6
- class weekday(object):
7
- __slots__ = ["weekday", "n"]
8
-
9
- def __init__(self, weekday, n=None):
10
- self.weekday = weekday
11
- self.n = n
12
-
13
- def __call__(self, n):
14
- if n == self.n:
15
- return self
16
- else:
17
- return self.__class__(self.weekday, n)
18
-
19
- def __eq__(self, other):
20
- try:
21
- if self.weekday != other.weekday or self.n != other.n:
22
- return False
23
- except AttributeError:
24
- return False
25
- return True
26
-
27
- def __hash__(self):
28
- return hash((
29
- self.weekday,
30
- self.n,
31
- ))
32
-
33
- def __ne__(self, other):
34
- return not (self == other)
35
-
36
- def __repr__(self):
37
- s = ("MO", "TU", "WE", "TH", "FR", "SA", "SU")[self.weekday]
38
- if not self.n:
39
- return s
40
- else:
41
- return "%s(%+d)" % (s, self.n)
42
-
43
- # vim:ts=4:sw=4:et
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.11/site-packages/dateutil/_version.py DELETED
@@ -1,4 +0,0 @@
1
- # file generated by setuptools_scm
2
- # don't change, don't track in version control
3
- __version__ = version = '2.9.0.post0'
4
- __version_tuple__ = version_tuple = (2, 9, 0)
 
 
 
 
 
.venv/lib/python3.11/site-packages/dateutil/easter.py DELETED
@@ -1,89 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- """
3
- This module offers a generic Easter computing method for any given year, using
4
- Western, Orthodox or Julian algorithms.
5
- """
6
-
7
- import datetime
8
-
9
- __all__ = ["easter", "EASTER_JULIAN", "EASTER_ORTHODOX", "EASTER_WESTERN"]
10
-
11
- EASTER_JULIAN = 1
12
- EASTER_ORTHODOX = 2
13
- EASTER_WESTERN = 3
14
-
15
-
16
- def easter(year, method=EASTER_WESTERN):
17
- """
18
- This method was ported from the work done by GM Arts,
19
- on top of the algorithm by Claus Tondering, which was
20
- based in part on the algorithm of Ouding (1940), as
21
- quoted in "Explanatory Supplement to the Astronomical
22
- Almanac", P. Kenneth Seidelmann, editor.
23
-
24
- This algorithm implements three different Easter
25
- calculation methods:
26
-
27
- 1. Original calculation in Julian calendar, valid in
28
- dates after 326 AD
29
- 2. Original method, with date converted to Gregorian
30
- calendar, valid in years 1583 to 4099
31
- 3. Revised method, in Gregorian calendar, valid in
32
- years 1583 to 4099 as well
33
-
34
- These methods are represented by the constants:
35
-
36
- * ``EASTER_JULIAN = 1``
37
- * ``EASTER_ORTHODOX = 2``
38
- * ``EASTER_WESTERN = 3``
39
-
40
- The default method is method 3.
41
-
42
- More about the algorithm may be found at:
43
-
44
- `GM Arts: Easter Algorithms <http://www.gmarts.org/index.php?go=415>`_
45
-
46
- and
47
-
48
- `The Calendar FAQ: Easter <https://www.tondering.dk/claus/cal/easter.php>`_
49
-
50
- """
51
-
52
- if not (1 <= method <= 3):
53
- raise ValueError("invalid method")
54
-
55
- # g - Golden year - 1
56
- # c - Century
57
- # h - (23 - Epact) mod 30
58
- # i - Number of days from March 21 to Paschal Full Moon
59
- # j - Weekday for PFM (0=Sunday, etc)
60
- # p - Number of days from March 21 to Sunday on or before PFM
61
- # (-6 to 28 methods 1 & 3, to 56 for method 2)
62
- # e - Extra days to add for method 2 (converting Julian
63
- # date to Gregorian date)
64
-
65
- y = year
66
- g = y % 19
67
- e = 0
68
- if method < 3:
69
- # Old method
70
- i = (19*g + 15) % 30
71
- j = (y + y//4 + i) % 7
72
- if method == 2:
73
- # Extra dates to convert Julian to Gregorian date
74
- e = 10
75
- if y > 1600:
76
- e = e + y//100 - 16 - (y//100 - 16)//4
77
- else:
78
- # New method
79
- c = y//100
80
- h = (c - c//4 - (8*c + 13)//25 + 19*g + 15) % 30
81
- i = h - (h//28)*(1 - (h//28)*(29//(h + 1))*((21 - g)//11))
82
- j = (y + y//4 + i + 2 - c + c//4) % 7
83
-
84
- # p can be from -6 to 56 corresponding to dates 22 March to 23 May
85
- # (later dates apply to method 2, although 23 May never actually occurs)
86
- p = i - j + e
87
- d = 1 + (p + 27 + (p + 6)//40) % 31
88
- m = 3 + (p + 26)//30
89
- return datetime.date(int(y), int(m), int(d))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.11/site-packages/dateutil/parser/__init__.py DELETED
@@ -1,61 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- from ._parser import parse, parser, parserinfo, ParserError
3
- from ._parser import DEFAULTPARSER, DEFAULTTZPARSER
4
- from ._parser import UnknownTimezoneWarning
5
-
6
- from ._parser import __doc__
7
-
8
- from .isoparser import isoparser, isoparse
9
-
10
- __all__ = ['parse', 'parser', 'parserinfo',
11
- 'isoparse', 'isoparser',
12
- 'ParserError',
13
- 'UnknownTimezoneWarning']
14
-
15
-
16
- ###
17
- # Deprecate portions of the private interface so that downstream code that
18
- # is improperly relying on it is given *some* notice.
19
-
20
-
21
- def __deprecated_private_func(f):
22
- from functools import wraps
23
- import warnings
24
-
25
- msg = ('{name} is a private function and may break without warning, '
26
- 'it will be moved and or renamed in future versions.')
27
- msg = msg.format(name=f.__name__)
28
-
29
- @wraps(f)
30
- def deprecated_func(*args, **kwargs):
31
- warnings.warn(msg, DeprecationWarning)
32
- return f(*args, **kwargs)
33
-
34
- return deprecated_func
35
-
36
- def __deprecate_private_class(c):
37
- import warnings
38
-
39
- msg = ('{name} is a private class and may break without warning, '
40
- 'it will be moved and or renamed in future versions.')
41
- msg = msg.format(name=c.__name__)
42
-
43
- class private_class(c):
44
- __doc__ = c.__doc__
45
-
46
- def __init__(self, *args, **kwargs):
47
- warnings.warn(msg, DeprecationWarning)
48
- super(private_class, self).__init__(*args, **kwargs)
49
-
50
- private_class.__name__ = c.__name__
51
-
52
- return private_class
53
-
54
-
55
- from ._parser import _timelex, _resultbase
56
- from ._parser import _tzparser, _parsetz
57
-
58
- _timelex = __deprecate_private_class(_timelex)
59
- _tzparser = __deprecate_private_class(_tzparser)
60
- _resultbase = __deprecate_private_class(_resultbase)
61
- _parsetz = __deprecated_private_func(_parsetz)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.11/site-packages/dateutil/parser/_parser.py DELETED
@@ -1,1613 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- """
3
- This module offers a generic date/time string parser which is able to parse
4
- most known formats to represent a date and/or time.
5
-
6
- This module attempts to be forgiving with regards to unlikely input formats,
7
- returning a datetime object even for dates which are ambiguous. If an element
8
- of a date/time stamp is omitted, the following rules are applied:
9
-
10
- - If AM or PM is left unspecified, a 24-hour clock is assumed, however, an hour
11
- on a 12-hour clock (``0 <= hour <= 12``) *must* be specified if AM or PM is
12
- specified.
13
- - If a time zone is omitted, a timezone-naive datetime is returned.
14
-
15
- If any other elements are missing, they are taken from the
16
- :class:`datetime.datetime` object passed to the parameter ``default``. If this
17
- results in a day number exceeding the valid number of days per month, the
18
- value falls back to the end of the month.
19
-
20
- Additional resources about date/time string formats can be found below:
21
-
22
- - `A summary of the international standard date and time notation
23
- <https://www.cl.cam.ac.uk/~mgk25/iso-time.html>`_
24
- - `W3C Date and Time Formats <https://www.w3.org/TR/NOTE-datetime>`_
25
- - `Time Formats (Planetary Rings Node) <https://pds-rings.seti.org:443/tools/time_formats.html>`_
26
- - `CPAN ParseDate module
27
- <https://metacpan.org/pod/release/MUIR/Time-modules-2013.0912/lib/Time/ParseDate.pm>`_
28
- - `Java SimpleDateFormat Class
29
- <https://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html>`_
30
- """
31
- from __future__ import unicode_literals
32
-
33
- import datetime
34
- import re
35
- import string
36
- import time
37
- import warnings
38
-
39
- from calendar import monthrange
40
- from io import StringIO
41
-
42
- import six
43
- from six import integer_types, text_type
44
-
45
- from decimal import Decimal
46
-
47
- from warnings import warn
48
-
49
- from .. import relativedelta
50
- from .. import tz
51
-
52
- __all__ = ["parse", "parserinfo", "ParserError"]
53
-
54
-
55
- # TODO: pandas.core.tools.datetimes imports this explicitly. Might be worth
56
- # making public and/or figuring out if there is something we can
57
- # take off their plate.
58
- class _timelex(object):
59
- # Fractional seconds are sometimes split by a comma
60
- _split_decimal = re.compile("([.,])")
61
-
62
- def __init__(self, instream):
63
- if isinstance(instream, (bytes, bytearray)):
64
- instream = instream.decode()
65
-
66
- if isinstance(instream, text_type):
67
- instream = StringIO(instream)
68
- elif getattr(instream, 'read', None) is None:
69
- raise TypeError('Parser must be a string or character stream, not '
70
- '{itype}'.format(itype=instream.__class__.__name__))
71
-
72
- self.instream = instream
73
- self.charstack = []
74
- self.tokenstack = []
75
- self.eof = False
76
-
77
- def get_token(self):
78
- """
79
- This function breaks the time string into lexical units (tokens), which
80
- can be parsed by the parser. Lexical units are demarcated by changes in
81
- the character set, so any continuous string of letters is considered
82
- one unit, any continuous string of numbers is considered one unit.
83
-
84
- The main complication arises from the fact that dots ('.') can be used
85
- both as separators (e.g. "Sep.20.2009") or decimal points (e.g.
86
- "4:30:21.447"). As such, it is necessary to read the full context of
87
- any dot-separated strings before breaking it into tokens; as such, this
88
- function maintains a "token stack", for when the ambiguous context
89
- demands that multiple tokens be parsed at once.
90
- """
91
- if self.tokenstack:
92
- return self.tokenstack.pop(0)
93
-
94
- seenletters = False
95
- token = None
96
- state = None
97
-
98
- while not self.eof:
99
- # We only realize that we've reached the end of a token when we
100
- # find a character that's not part of the current token - since
101
- # that character may be part of the next token, it's stored in the
102
- # charstack.
103
- if self.charstack:
104
- nextchar = self.charstack.pop(0)
105
- else:
106
- nextchar = self.instream.read(1)
107
- while nextchar == '\x00':
108
- nextchar = self.instream.read(1)
109
-
110
- if not nextchar:
111
- self.eof = True
112
- break
113
- elif not state:
114
- # First character of the token - determines if we're starting
115
- # to parse a word, a number or something else.
116
- token = nextchar
117
- if self.isword(nextchar):
118
- state = 'a'
119
- elif self.isnum(nextchar):
120
- state = '0'
121
- elif self.isspace(nextchar):
122
- token = ' '
123
- break # emit token
124
- else:
125
- break # emit token
126
- elif state == 'a':
127
- # If we've already started reading a word, we keep reading
128
- # letters until we find something that's not part of a word.
129
- seenletters = True
130
- if self.isword(nextchar):
131
- token += nextchar
132
- elif nextchar == '.':
133
- token += nextchar
134
- state = 'a.'
135
- else:
136
- self.charstack.append(nextchar)
137
- break # emit token
138
- elif state == '0':
139
- # If we've already started reading a number, we keep reading
140
- # numbers until we find something that doesn't fit.
141
- if self.isnum(nextchar):
142
- token += nextchar
143
- elif nextchar == '.' or (nextchar == ',' and len(token) >= 2):
144
- token += nextchar
145
- state = '0.'
146
- else:
147
- self.charstack.append(nextchar)
148
- break # emit token
149
- elif state == 'a.':
150
- # If we've seen some letters and a dot separator, continue
151
- # parsing, and the tokens will be broken up later.
152
- seenletters = True
153
- if nextchar == '.' or self.isword(nextchar):
154
- token += nextchar
155
- elif self.isnum(nextchar) and token[-1] == '.':
156
- token += nextchar
157
- state = '0.'
158
- else:
159
- self.charstack.append(nextchar)
160
- break # emit token
161
- elif state == '0.':
162
- # If we've seen at least one dot separator, keep going, we'll
163
- # break up the tokens later.
164
- if nextchar == '.' or self.isnum(nextchar):
165
- token += nextchar
166
- elif self.isword(nextchar) and token[-1] == '.':
167
- token += nextchar
168
- state = 'a.'
169
- else:
170
- self.charstack.append(nextchar)
171
- break # emit token
172
-
173
- if (state in ('a.', '0.') and (seenletters or token.count('.') > 1 or
174
- token[-1] in '.,')):
175
- l = self._split_decimal.split(token)
176
- token = l[0]
177
- for tok in l[1:]:
178
- if tok:
179
- self.tokenstack.append(tok)
180
-
181
- if state == '0.' and token.count('.') == 0:
182
- token = token.replace(',', '.')
183
-
184
- return token
185
-
186
- def __iter__(self):
187
- return self
188
-
189
- def __next__(self):
190
- token = self.get_token()
191
- if token is None:
192
- raise StopIteration
193
-
194
- return token
195
-
196
- def next(self):
197
- return self.__next__() # Python 2.x support
198
-
199
- @classmethod
200
- def split(cls, s):
201
- return list(cls(s))
202
-
203
- @classmethod
204
- def isword(cls, nextchar):
205
- """ Whether or not the next character is part of a word """
206
- return nextchar.isalpha()
207
-
208
- @classmethod
209
- def isnum(cls, nextchar):
210
- """ Whether the next character is part of a number """
211
- return nextchar.isdigit()
212
-
213
- @classmethod
214
- def isspace(cls, nextchar):
215
- """ Whether the next character is whitespace """
216
- return nextchar.isspace()
217
-
218
-
219
- class _resultbase(object):
220
-
221
- def __init__(self):
222
- for attr in self.__slots__:
223
- setattr(self, attr, None)
224
-
225
- def _repr(self, classname):
226
- l = []
227
- for attr in self.__slots__:
228
- value = getattr(self, attr)
229
- if value is not None:
230
- l.append("%s=%s" % (attr, repr(value)))
231
- return "%s(%s)" % (classname, ", ".join(l))
232
-
233
- def __len__(self):
234
- return (sum(getattr(self, attr) is not None
235
- for attr in self.__slots__))
236
-
237
- def __repr__(self):
238
- return self._repr(self.__class__.__name__)
239
-
240
-
241
- class parserinfo(object):
242
- """
243
- Class which handles what inputs are accepted. Subclass this to customize
244
- the language and acceptable values for each parameter.
245
-
246
- :param dayfirst:
247
- Whether to interpret the first value in an ambiguous 3-integer date
248
- (e.g. 01/05/09) as the day (``True``) or month (``False``). If
249
- ``yearfirst`` is set to ``True``, this distinguishes between YDM
250
- and YMD. Default is ``False``.
251
-
252
- :param yearfirst:
253
- Whether to interpret the first value in an ambiguous 3-integer date
254
- (e.g. 01/05/09) as the year. If ``True``, the first number is taken
255
- to be the year, otherwise the last number is taken to be the year.
256
- Default is ``False``.
257
- """
258
-
259
- # m from a.m/p.m, t from ISO T separator
260
- JUMP = [" ", ".", ",", ";", "-", "/", "'",
261
- "at", "on", "and", "ad", "m", "t", "of",
262
- "st", "nd", "rd", "th"]
263
-
264
- WEEKDAYS = [("Mon", "Monday"),
265
- ("Tue", "Tuesday"), # TODO: "Tues"
266
- ("Wed", "Wednesday"),
267
- ("Thu", "Thursday"), # TODO: "Thurs"
268
- ("Fri", "Friday"),
269
- ("Sat", "Saturday"),
270
- ("Sun", "Sunday")]
271
- MONTHS = [("Jan", "January"),
272
- ("Feb", "February"), # TODO: "Febr"
273
- ("Mar", "March"),
274
- ("Apr", "April"),
275
- ("May", "May"),
276
- ("Jun", "June"),
277
- ("Jul", "July"),
278
- ("Aug", "August"),
279
- ("Sep", "Sept", "September"),
280
- ("Oct", "October"),
281
- ("Nov", "November"),
282
- ("Dec", "December")]
283
- HMS = [("h", "hour", "hours"),
284
- ("m", "minute", "minutes"),
285
- ("s", "second", "seconds")]
286
- AMPM = [("am", "a"),
287
- ("pm", "p")]
288
- UTCZONE = ["UTC", "GMT", "Z", "z"]
289
- PERTAIN = ["of"]
290
- TZOFFSET = {}
291
- # TODO: ERA = ["AD", "BC", "CE", "BCE", "Stardate",
292
- # "Anno Domini", "Year of Our Lord"]
293
-
294
- def __init__(self, dayfirst=False, yearfirst=False):
295
- self._jump = self._convert(self.JUMP)
296
- self._weekdays = self._convert(self.WEEKDAYS)
297
- self._months = self._convert(self.MONTHS)
298
- self._hms = self._convert(self.HMS)
299
- self._ampm = self._convert(self.AMPM)
300
- self._utczone = self._convert(self.UTCZONE)
301
- self._pertain = self._convert(self.PERTAIN)
302
-
303
- self.dayfirst = dayfirst
304
- self.yearfirst = yearfirst
305
-
306
- self._year = time.localtime().tm_year
307
- self._century = self._year // 100 * 100
308
-
309
- def _convert(self, lst):
310
- dct = {}
311
- for i, v in enumerate(lst):
312
- if isinstance(v, tuple):
313
- for v in v:
314
- dct[v.lower()] = i
315
- else:
316
- dct[v.lower()] = i
317
- return dct
318
-
319
- def jump(self, name):
320
- return name.lower() in self._jump
321
-
322
- def weekday(self, name):
323
- try:
324
- return self._weekdays[name.lower()]
325
- except KeyError:
326
- pass
327
- return None
328
-
329
- def month(self, name):
330
- try:
331
- return self._months[name.lower()] + 1
332
- except KeyError:
333
- pass
334
- return None
335
-
336
- def hms(self, name):
337
- try:
338
- return self._hms[name.lower()]
339
- except KeyError:
340
- return None
341
-
342
- def ampm(self, name):
343
- try:
344
- return self._ampm[name.lower()]
345
- except KeyError:
346
- return None
347
-
348
- def pertain(self, name):
349
- return name.lower() in self._pertain
350
-
351
- def utczone(self, name):
352
- return name.lower() in self._utczone
353
-
354
- def tzoffset(self, name):
355
- if name in self._utczone:
356
- return 0
357
-
358
- return self.TZOFFSET.get(name)
359
-
360
- def convertyear(self, year, century_specified=False):
361
- """
362
- Converts two-digit years to year within [-50, 49]
363
- range of self._year (current local time)
364
- """
365
-
366
- # Function contract is that the year is always positive
367
- assert year >= 0
368
-
369
- if year < 100 and not century_specified:
370
- # assume current century to start
371
- year += self._century
372
-
373
- if year >= self._year + 50: # if too far in future
374
- year -= 100
375
- elif year < self._year - 50: # if too far in past
376
- year += 100
377
-
378
- return year
379
-
380
- def validate(self, res):
381
- # move to info
382
- if res.year is not None:
383
- res.year = self.convertyear(res.year, res.century_specified)
384
-
385
- if ((res.tzoffset == 0 and not res.tzname) or
386
- (res.tzname == 'Z' or res.tzname == 'z')):
387
- res.tzname = "UTC"
388
- res.tzoffset = 0
389
- elif res.tzoffset != 0 and res.tzname and self.utczone(res.tzname):
390
- res.tzoffset = 0
391
- return True
392
-
393
-
394
- class _ymd(list):
395
- def __init__(self, *args, **kwargs):
396
- super(self.__class__, self).__init__(*args, **kwargs)
397
- self.century_specified = False
398
- self.dstridx = None
399
- self.mstridx = None
400
- self.ystridx = None
401
-
402
- @property
403
- def has_year(self):
404
- return self.ystridx is not None
405
-
406
- @property
407
- def has_month(self):
408
- return self.mstridx is not None
409
-
410
- @property
411
- def has_day(self):
412
- return self.dstridx is not None
413
-
414
- def could_be_day(self, value):
415
- if self.has_day:
416
- return False
417
- elif not self.has_month:
418
- return 1 <= value <= 31
419
- elif not self.has_year:
420
- # Be permissive, assume leap year
421
- month = self[self.mstridx]
422
- return 1 <= value <= monthrange(2000, month)[1]
423
- else:
424
- month = self[self.mstridx]
425
- year = self[self.ystridx]
426
- return 1 <= value <= monthrange(year, month)[1]
427
-
428
- def append(self, val, label=None):
429
- if hasattr(val, '__len__'):
430
- if val.isdigit() and len(val) > 2:
431
- self.century_specified = True
432
- if label not in [None, 'Y']: # pragma: no cover
433
- raise ValueError(label)
434
- label = 'Y'
435
- elif val > 100:
436
- self.century_specified = True
437
- if label not in [None, 'Y']: # pragma: no cover
438
- raise ValueError(label)
439
- label = 'Y'
440
-
441
- super(self.__class__, self).append(int(val))
442
-
443
- if label == 'M':
444
- if self.has_month:
445
- raise ValueError('Month is already set')
446
- self.mstridx = len(self) - 1
447
- elif label == 'D':
448
- if self.has_day:
449
- raise ValueError('Day is already set')
450
- self.dstridx = len(self) - 1
451
- elif label == 'Y':
452
- if self.has_year:
453
- raise ValueError('Year is already set')
454
- self.ystridx = len(self) - 1
455
-
456
- def _resolve_from_stridxs(self, strids):
457
- """
458
- Try to resolve the identities of year/month/day elements using
459
- ystridx, mstridx, and dstridx, if enough of these are specified.
460
- """
461
- if len(self) == 3 and len(strids) == 2:
462
- # we can back out the remaining stridx value
463
- missing = [x for x in range(3) if x not in strids.values()]
464
- key = [x for x in ['y', 'm', 'd'] if x not in strids]
465
- assert len(missing) == len(key) == 1
466
- key = key[0]
467
- val = missing[0]
468
- strids[key] = val
469
-
470
- assert len(self) == len(strids) # otherwise this should not be called
471
- out = {key: self[strids[key]] for key in strids}
472
- return (out.get('y'), out.get('m'), out.get('d'))
473
-
474
- def resolve_ymd(self, yearfirst, dayfirst):
475
- len_ymd = len(self)
476
- year, month, day = (None, None, None)
477
-
478
- strids = (('y', self.ystridx),
479
- ('m', self.mstridx),
480
- ('d', self.dstridx))
481
-
482
- strids = {key: val for key, val in strids if val is not None}
483
- if (len(self) == len(strids) > 0 or
484
- (len(self) == 3 and len(strids) == 2)):
485
- return self._resolve_from_stridxs(strids)
486
-
487
- mstridx = self.mstridx
488
-
489
- if len_ymd > 3:
490
- raise ValueError("More than three YMD values")
491
- elif len_ymd == 1 or (mstridx is not None and len_ymd == 2):
492
- # One member, or two members with a month string
493
- if mstridx is not None:
494
- month = self[mstridx]
495
- # since mstridx is 0 or 1, self[mstridx-1] always
496
- # looks up the other element
497
- other = self[mstridx - 1]
498
- else:
499
- other = self[0]
500
-
501
- if len_ymd > 1 or mstridx is None:
502
- if other > 31:
503
- year = other
504
- else:
505
- day = other
506
-
507
- elif len_ymd == 2:
508
- # Two members with numbers
509
- if self[0] > 31:
510
- # 99-01
511
- year, month = self
512
- elif self[1] > 31:
513
- # 01-99
514
- month, year = self
515
- elif dayfirst and self[1] <= 12:
516
- # 13-01
517
- day, month = self
518
- else:
519
- # 01-13
520
- month, day = self
521
-
522
- elif len_ymd == 3:
523
- # Three members
524
- if mstridx == 0:
525
- if self[1] > 31:
526
- # Apr-2003-25
527
- month, year, day = self
528
- else:
529
- month, day, year = self
530
- elif mstridx == 1:
531
- if self[0] > 31 or (yearfirst and self[2] <= 31):
532
- # 99-Jan-01
533
- year, month, day = self
534
- else:
535
- # 01-Jan-01
536
- # Give precedence to day-first, since
537
- # two-digit years is usually hand-written.
538
- day, month, year = self
539
-
540
- elif mstridx == 2:
541
- # WTF!?
542
- if self[1] > 31:
543
- # 01-99-Jan
544
- day, year, month = self
545
- else:
546
- # 99-01-Jan
547
- year, day, month = self
548
-
549
- else:
550
- if (self[0] > 31 or
551
- self.ystridx == 0 or
552
- (yearfirst and self[1] <= 12 and self[2] <= 31)):
553
- # 99-01-01
554
- if dayfirst and self[2] <= 12:
555
- year, day, month = self
556
- else:
557
- year, month, day = self
558
- elif self[0] > 12 or (dayfirst and self[1] <= 12):
559
- # 13-01-01
560
- day, month, year = self
561
- else:
562
- # 01-13-01
563
- month, day, year = self
564
-
565
- return year, month, day
566
-
567
-
568
- class parser(object):
569
- def __init__(self, info=None):
570
- self.info = info or parserinfo()
571
-
572
- def parse(self, timestr, default=None,
573
- ignoretz=False, tzinfos=None, **kwargs):
574
- """
575
- Parse the date/time string into a :class:`datetime.datetime` object.
576
-
577
- :param timestr:
578
- Any date/time string using the supported formats.
579
-
580
- :param default:
581
- The default datetime object, if this is a datetime object and not
582
- ``None``, elements specified in ``timestr`` replace elements in the
583
- default object.
584
-
585
- :param ignoretz:
586
- If set ``True``, time zones in parsed strings are ignored and a
587
- naive :class:`datetime.datetime` object is returned.
588
-
589
- :param tzinfos:
590
- Additional time zone names / aliases which may be present in the
591
- string. This argument maps time zone names (and optionally offsets
592
- from those time zones) to time zones. This parameter can be a
593
- dictionary with timezone aliases mapping time zone names to time
594
- zones or a function taking two parameters (``tzname`` and
595
- ``tzoffset``) and returning a time zone.
596
-
597
- The timezones to which the names are mapped can be an integer
598
- offset from UTC in seconds or a :class:`tzinfo` object.
599
-
600
- .. doctest::
601
- :options: +NORMALIZE_WHITESPACE
602
-
603
- >>> from dateutil.parser import parse
604
- >>> from dateutil.tz import gettz
605
- >>> tzinfos = {"BRST": -7200, "CST": gettz("America/Chicago")}
606
- >>> parse("2012-01-19 17:21:00 BRST", tzinfos=tzinfos)
607
- datetime.datetime(2012, 1, 19, 17, 21, tzinfo=tzoffset(u'BRST', -7200))
608
- >>> parse("2012-01-19 17:21:00 CST", tzinfos=tzinfos)
609
- datetime.datetime(2012, 1, 19, 17, 21,
610
- tzinfo=tzfile('/usr/share/zoneinfo/America/Chicago'))
611
-
612
- This parameter is ignored if ``ignoretz`` is set.
613
-
614
- :param \\*\\*kwargs:
615
- Keyword arguments as passed to ``_parse()``.
616
-
617
- :return:
618
- Returns a :class:`datetime.datetime` object or, if the
619
- ``fuzzy_with_tokens`` option is ``True``, returns a tuple, the
620
- first element being a :class:`datetime.datetime` object, the second
621
- a tuple containing the fuzzy tokens.
622
-
623
- :raises ParserError:
624
- Raised for invalid or unknown string format, if the provided
625
- :class:`tzinfo` is not in a valid format, or if an invalid date
626
- would be created.
627
-
628
- :raises TypeError:
629
- Raised for non-string or character stream input.
630
-
631
- :raises OverflowError:
632
- Raised if the parsed date exceeds the largest valid C integer on
633
- your system.
634
- """
635
-
636
- if default is None:
637
- default = datetime.datetime.now().replace(hour=0, minute=0,
638
- second=0, microsecond=0)
639
-
640
- res, skipped_tokens = self._parse(timestr, **kwargs)
641
-
642
- if res is None:
643
- raise ParserError("Unknown string format: %s", timestr)
644
-
645
- if len(res) == 0:
646
- raise ParserError("String does not contain a date: %s", timestr)
647
-
648
- try:
649
- ret = self._build_naive(res, default)
650
- except ValueError as e:
651
- six.raise_from(ParserError(str(e) + ": %s", timestr), e)
652
-
653
- if not ignoretz:
654
- ret = self._build_tzaware(ret, res, tzinfos)
655
-
656
- if kwargs.get('fuzzy_with_tokens', False):
657
- return ret, skipped_tokens
658
- else:
659
- return ret
660
-
661
- class _result(_resultbase):
662
- __slots__ = ["year", "month", "day", "weekday",
663
- "hour", "minute", "second", "microsecond",
664
- "tzname", "tzoffset", "ampm","any_unused_tokens"]
665
-
666
- def _parse(self, timestr, dayfirst=None, yearfirst=None, fuzzy=False,
667
- fuzzy_with_tokens=False):
668
- """
669
- Private method which performs the heavy lifting of parsing, called from
670
- ``parse()``, which passes on its ``kwargs`` to this function.
671
-
672
- :param timestr:
673
- The string to parse.
674
-
675
- :param dayfirst:
676
- Whether to interpret the first value in an ambiguous 3-integer date
677
- (e.g. 01/05/09) as the day (``True``) or month (``False``). If
678
- ``yearfirst`` is set to ``True``, this distinguishes between YDM
679
- and YMD. If set to ``None``, this value is retrieved from the
680
- current :class:`parserinfo` object (which itself defaults to
681
- ``False``).
682
-
683
- :param yearfirst:
684
- Whether to interpret the first value in an ambiguous 3-integer date
685
- (e.g. 01/05/09) as the year. If ``True``, the first number is taken
686
- to be the year, otherwise the last number is taken to be the year.
687
- If this is set to ``None``, the value is retrieved from the current
688
- :class:`parserinfo` object (which itself defaults to ``False``).
689
-
690
- :param fuzzy:
691
- Whether to allow fuzzy parsing, allowing for string like "Today is
692
- January 1, 2047 at 8:21:00AM".
693
-
694
- :param fuzzy_with_tokens:
695
- If ``True``, ``fuzzy`` is automatically set to True, and the parser
696
- will return a tuple where the first element is the parsed
697
- :class:`datetime.datetime` datetimestamp and the second element is
698
- a tuple containing the portions of the string which were ignored:
699
-
700
- .. doctest::
701
-
702
- >>> from dateutil.parser import parse
703
- >>> parse("Today is January 1, 2047 at 8:21:00AM", fuzzy_with_tokens=True)
704
- (datetime.datetime(2047, 1, 1, 8, 21), (u'Today is ', u' ', u'at '))
705
-
706
- """
707
- if fuzzy_with_tokens:
708
- fuzzy = True
709
-
710
- info = self.info
711
-
712
- if dayfirst is None:
713
- dayfirst = info.dayfirst
714
-
715
- if yearfirst is None:
716
- yearfirst = info.yearfirst
717
-
718
- res = self._result()
719
- l = _timelex.split(timestr) # Splits the timestr into tokens
720
-
721
- skipped_idxs = []
722
-
723
- # year/month/day list
724
- ymd = _ymd()
725
-
726
- len_l = len(l)
727
- i = 0
728
- try:
729
- while i < len_l:
730
-
731
- # Check if it's a number
732
- value_repr = l[i]
733
- try:
734
- value = float(value_repr)
735
- except ValueError:
736
- value = None
737
-
738
- if value is not None:
739
- # Numeric token
740
- i = self._parse_numeric_token(l, i, info, ymd, res, fuzzy)
741
-
742
- # Check weekday
743
- elif info.weekday(l[i]) is not None:
744
- value = info.weekday(l[i])
745
- res.weekday = value
746
-
747
- # Check month name
748
- elif info.month(l[i]) is not None:
749
- value = info.month(l[i])
750
- ymd.append(value, 'M')
751
-
752
- if i + 1 < len_l:
753
- if l[i + 1] in ('-', '/'):
754
- # Jan-01[-99]
755
- sep = l[i + 1]
756
- ymd.append(l[i + 2])
757
-
758
- if i + 3 < len_l and l[i + 3] == sep:
759
- # Jan-01-99
760
- ymd.append(l[i + 4])
761
- i += 2
762
-
763
- i += 2
764
-
765
- elif (i + 4 < len_l and l[i + 1] == l[i + 3] == ' ' and
766
- info.pertain(l[i + 2])):
767
- # Jan of 01
768
- # In this case, 01 is clearly year
769
- if l[i + 4].isdigit():
770
- # Convert it here to become unambiguous
771
- value = int(l[i + 4])
772
- year = str(info.convertyear(value))
773
- ymd.append(year, 'Y')
774
- else:
775
- # Wrong guess
776
- pass
777
- # TODO: not hit in tests
778
- i += 4
779
-
780
- # Check am/pm
781
- elif info.ampm(l[i]) is not None:
782
- value = info.ampm(l[i])
783
- val_is_ampm = self._ampm_valid(res.hour, res.ampm, fuzzy)
784
-
785
- if val_is_ampm:
786
- res.hour = self._adjust_ampm(res.hour, value)
787
- res.ampm = value
788
-
789
- elif fuzzy:
790
- skipped_idxs.append(i)
791
-
792
- # Check for a timezone name
793
- elif self._could_be_tzname(res.hour, res.tzname, res.tzoffset, l[i]):
794
- res.tzname = l[i]
795
- res.tzoffset = info.tzoffset(res.tzname)
796
-
797
- # Check for something like GMT+3, or BRST+3. Notice
798
- # that it doesn't mean "I am 3 hours after GMT", but
799
- # "my time +3 is GMT". If found, we reverse the
800
- # logic so that timezone parsing code will get it
801
- # right.
802
- if i + 1 < len_l and l[i + 1] in ('+', '-'):
803
- l[i + 1] = ('+', '-')[l[i + 1] == '+']
804
- res.tzoffset = None
805
- if info.utczone(res.tzname):
806
- # With something like GMT+3, the timezone
807
- # is *not* GMT.
808
- res.tzname = None
809
-
810
- # Check for a numbered timezone
811
- elif res.hour is not None and l[i] in ('+', '-'):
812
- signal = (-1, 1)[l[i] == '+']
813
- len_li = len(l[i + 1])
814
-
815
- # TODO: check that l[i + 1] is integer?
816
- if len_li == 4:
817
- # -0300
818
- hour_offset = int(l[i + 1][:2])
819
- min_offset = int(l[i + 1][2:])
820
- elif i + 2 < len_l and l[i + 2] == ':':
821
- # -03:00
822
- hour_offset = int(l[i + 1])
823
- min_offset = int(l[i + 3]) # TODO: Check that l[i+3] is minute-like?
824
- i += 2
825
- elif len_li <= 2:
826
- # -[0]3
827
- hour_offset = int(l[i + 1][:2])
828
- min_offset = 0
829
- else:
830
- raise ValueError(timestr)
831
-
832
- res.tzoffset = signal * (hour_offset * 3600 + min_offset * 60)
833
-
834
- # Look for a timezone name between parenthesis
835
- if (i + 5 < len_l and
836
- info.jump(l[i + 2]) and l[i + 3] == '(' and
837
- l[i + 5] == ')' and
838
- 3 <= len(l[i + 4]) and
839
- self._could_be_tzname(res.hour, res.tzname,
840
- None, l[i + 4])):
841
- # -0300 (BRST)
842
- res.tzname = l[i + 4]
843
- i += 4
844
-
845
- i += 1
846
-
847
- # Check jumps
848
- elif not (info.jump(l[i]) or fuzzy):
849
- raise ValueError(timestr)
850
-
851
- else:
852
- skipped_idxs.append(i)
853
- i += 1
854
-
855
- # Process year/month/day
856
- year, month, day = ymd.resolve_ymd(yearfirst, dayfirst)
857
-
858
- res.century_specified = ymd.century_specified
859
- res.year = year
860
- res.month = month
861
- res.day = day
862
-
863
- except (IndexError, ValueError):
864
- return None, None
865
-
866
- if not info.validate(res):
867
- return None, None
868
-
869
- if fuzzy_with_tokens:
870
- skipped_tokens = self._recombine_skipped(l, skipped_idxs)
871
- return res, tuple(skipped_tokens)
872
- else:
873
- return res, None
874
-
875
- def _parse_numeric_token(self, tokens, idx, info, ymd, res, fuzzy):
876
- # Token is a number
877
- value_repr = tokens[idx]
878
- try:
879
- value = self._to_decimal(value_repr)
880
- except Exception as e:
881
- six.raise_from(ValueError('Unknown numeric token'), e)
882
-
883
- len_li = len(value_repr)
884
-
885
- len_l = len(tokens)
886
-
887
- if (len(ymd) == 3 and len_li in (2, 4) and
888
- res.hour is None and
889
- (idx + 1 >= len_l or
890
- (tokens[idx + 1] != ':' and
891
- info.hms(tokens[idx + 1]) is None))):
892
- # 19990101T23[59]
893
- s = tokens[idx]
894
- res.hour = int(s[:2])
895
-
896
- if len_li == 4:
897
- res.minute = int(s[2:])
898
-
899
- elif len_li == 6 or (len_li > 6 and tokens[idx].find('.') == 6):
900
- # YYMMDD or HHMMSS[.ss]
901
- s = tokens[idx]
902
-
903
- if not ymd and '.' not in tokens[idx]:
904
- ymd.append(s[:2])
905
- ymd.append(s[2:4])
906
- ymd.append(s[4:])
907
- else:
908
- # 19990101T235959[.59]
909
-
910
- # TODO: Check if res attributes already set.
911
- res.hour = int(s[:2])
912
- res.minute = int(s[2:4])
913
- res.second, res.microsecond = self._parsems(s[4:])
914
-
915
- elif len_li in (8, 12, 14):
916
- # YYYYMMDD
917
- s = tokens[idx]
918
- ymd.append(s[:4], 'Y')
919
- ymd.append(s[4:6])
920
- ymd.append(s[6:8])
921
-
922
- if len_li > 8:
923
- res.hour = int(s[8:10])
924
- res.minute = int(s[10:12])
925
-
926
- if len_li > 12:
927
- res.second = int(s[12:])
928
-
929
- elif self._find_hms_idx(idx, tokens, info, allow_jump=True) is not None:
930
- # HH[ ]h or MM[ ]m or SS[.ss][ ]s
931
- hms_idx = self._find_hms_idx(idx, tokens, info, allow_jump=True)
932
- (idx, hms) = self._parse_hms(idx, tokens, info, hms_idx)
933
- if hms is not None:
934
- # TODO: checking that hour/minute/second are not
935
- # already set?
936
- self._assign_hms(res, value_repr, hms)
937
-
938
- elif idx + 2 < len_l and tokens[idx + 1] == ':':
939
- # HH:MM[:SS[.ss]]
940
- res.hour = int(value)
941
- value = self._to_decimal(tokens[idx + 2]) # TODO: try/except for this?
942
- (res.minute, res.second) = self._parse_min_sec(value)
943
-
944
- if idx + 4 < len_l and tokens[idx + 3] == ':':
945
- res.second, res.microsecond = self._parsems(tokens[idx + 4])
946
-
947
- idx += 2
948
-
949
- idx += 2
950
-
951
- elif idx + 1 < len_l and tokens[idx + 1] in ('-', '/', '.'):
952
- sep = tokens[idx + 1]
953
- ymd.append(value_repr)
954
-
955
- if idx + 2 < len_l and not info.jump(tokens[idx + 2]):
956
- if tokens[idx + 2].isdigit():
957
- # 01-01[-01]
958
- ymd.append(tokens[idx + 2])
959
- else:
960
- # 01-Jan[-01]
961
- value = info.month(tokens[idx + 2])
962
-
963
- if value is not None:
964
- ymd.append(value, 'M')
965
- else:
966
- raise ValueError()
967
-
968
- if idx + 3 < len_l and tokens[idx + 3] == sep:
969
- # We have three members
970
- value = info.month(tokens[idx + 4])
971
-
972
- if value is not None:
973
- ymd.append(value, 'M')
974
- else:
975
- ymd.append(tokens[idx + 4])
976
- idx += 2
977
-
978
- idx += 1
979
- idx += 1
980
-
981
- elif idx + 1 >= len_l or info.jump(tokens[idx + 1]):
982
- if idx + 2 < len_l and info.ampm(tokens[idx + 2]) is not None:
983
- # 12 am
984
- hour = int(value)
985
- res.hour = self._adjust_ampm(hour, info.ampm(tokens[idx + 2]))
986
- idx += 1
987
- else:
988
- # Year, month or day
989
- ymd.append(value)
990
- idx += 1
991
-
992
- elif info.ampm(tokens[idx + 1]) is not None and (0 <= value < 24):
993
- # 12am
994
- hour = int(value)
995
- res.hour = self._adjust_ampm(hour, info.ampm(tokens[idx + 1]))
996
- idx += 1
997
-
998
- elif ymd.could_be_day(value):
999
- ymd.append(value)
1000
-
1001
- elif not fuzzy:
1002
- raise ValueError()
1003
-
1004
- return idx
1005
-
1006
- def _find_hms_idx(self, idx, tokens, info, allow_jump):
1007
- len_l = len(tokens)
1008
-
1009
- if idx+1 < len_l and info.hms(tokens[idx+1]) is not None:
1010
- # There is an "h", "m", or "s" label following this token. We take
1011
- # assign the upcoming label to the current token.
1012
- # e.g. the "12" in 12h"
1013
- hms_idx = idx + 1
1014
-
1015
- elif (allow_jump and idx+2 < len_l and tokens[idx+1] == ' ' and
1016
- info.hms(tokens[idx+2]) is not None):
1017
- # There is a space and then an "h", "m", or "s" label.
1018
- # e.g. the "12" in "12 h"
1019
- hms_idx = idx + 2
1020
-
1021
- elif idx > 0 and info.hms(tokens[idx-1]) is not None:
1022
- # There is a "h", "m", or "s" preceding this token. Since neither
1023
- # of the previous cases was hit, there is no label following this
1024
- # token, so we use the previous label.
1025
- # e.g. the "04" in "12h04"
1026
- hms_idx = idx-1
1027
-
1028
- elif (1 < idx == len_l-1 and tokens[idx-1] == ' ' and
1029
- info.hms(tokens[idx-2]) is not None):
1030
- # If we are looking at the final token, we allow for a
1031
- # backward-looking check to skip over a space.
1032
- # TODO: Are we sure this is the right condition here?
1033
- hms_idx = idx - 2
1034
-
1035
- else:
1036
- hms_idx = None
1037
-
1038
- return hms_idx
1039
-
1040
- def _assign_hms(self, res, value_repr, hms):
1041
- # See GH issue #427, fixing float rounding
1042
- value = self._to_decimal(value_repr)
1043
-
1044
- if hms == 0:
1045
- # Hour
1046
- res.hour = int(value)
1047
- if value % 1:
1048
- res.minute = int(60*(value % 1))
1049
-
1050
- elif hms == 1:
1051
- (res.minute, res.second) = self._parse_min_sec(value)
1052
-
1053
- elif hms == 2:
1054
- (res.second, res.microsecond) = self._parsems(value_repr)
1055
-
1056
- def _could_be_tzname(self, hour, tzname, tzoffset, token):
1057
- return (hour is not None and
1058
- tzname is None and
1059
- tzoffset is None and
1060
- len(token) <= 5 and
1061
- (all(x in string.ascii_uppercase for x in token)
1062
- or token in self.info.UTCZONE))
1063
-
1064
- def _ampm_valid(self, hour, ampm, fuzzy):
1065
- """
1066
- For fuzzy parsing, 'a' or 'am' (both valid English words)
1067
- may erroneously trigger the AM/PM flag. Deal with that
1068
- here.
1069
- """
1070
- val_is_ampm = True
1071
-
1072
- # If there's already an AM/PM flag, this one isn't one.
1073
- if fuzzy and ampm is not None:
1074
- val_is_ampm = False
1075
-
1076
- # If AM/PM is found and hour is not, raise a ValueError
1077
- if hour is None:
1078
- if fuzzy:
1079
- val_is_ampm = False
1080
- else:
1081
- raise ValueError('No hour specified with AM or PM flag.')
1082
- elif not 0 <= hour <= 12:
1083
- # If AM/PM is found, it's a 12 hour clock, so raise
1084
- # an error for invalid range
1085
- if fuzzy:
1086
- val_is_ampm = False
1087
- else:
1088
- raise ValueError('Invalid hour specified for 12-hour clock.')
1089
-
1090
- return val_is_ampm
1091
-
1092
- def _adjust_ampm(self, hour, ampm):
1093
- if hour < 12 and ampm == 1:
1094
- hour += 12
1095
- elif hour == 12 and ampm == 0:
1096
- hour = 0
1097
- return hour
1098
-
1099
- def _parse_min_sec(self, value):
1100
- # TODO: Every usage of this function sets res.second to the return
1101
- # value. Are there any cases where second will be returned as None and
1102
- # we *don't* want to set res.second = None?
1103
- minute = int(value)
1104
- second = None
1105
-
1106
- sec_remainder = value % 1
1107
- if sec_remainder:
1108
- second = int(60 * sec_remainder)
1109
- return (minute, second)
1110
-
1111
- def _parse_hms(self, idx, tokens, info, hms_idx):
1112
- # TODO: Is this going to admit a lot of false-positives for when we
1113
- # just happen to have digits and "h", "m" or "s" characters in non-date
1114
- # text? I guess hex hashes won't have that problem, but there's plenty
1115
- # of random junk out there.
1116
- if hms_idx is None:
1117
- hms = None
1118
- new_idx = idx
1119
- elif hms_idx > idx:
1120
- hms = info.hms(tokens[hms_idx])
1121
- new_idx = hms_idx
1122
- else:
1123
- # Looking backwards, increment one.
1124
- hms = info.hms(tokens[hms_idx]) + 1
1125
- new_idx = idx
1126
-
1127
- return (new_idx, hms)
1128
-
1129
- # ------------------------------------------------------------------
1130
- # Handling for individual tokens. These are kept as methods instead
1131
- # of functions for the sake of customizability via subclassing.
1132
-
1133
- def _parsems(self, value):
1134
- """Parse a I[.F] seconds value into (seconds, microseconds)."""
1135
- if "." not in value:
1136
- return int(value), 0
1137
- else:
1138
- i, f = value.split(".")
1139
- return int(i), int(f.ljust(6, "0")[:6])
1140
-
1141
- def _to_decimal(self, val):
1142
- try:
1143
- decimal_value = Decimal(val)
1144
- # See GH 662, edge case, infinite value should not be converted
1145
- # via `_to_decimal`
1146
- if not decimal_value.is_finite():
1147
- raise ValueError("Converted decimal value is infinite or NaN")
1148
- except Exception as e:
1149
- msg = "Could not convert %s to decimal" % val
1150
- six.raise_from(ValueError(msg), e)
1151
- else:
1152
- return decimal_value
1153
-
1154
- # ------------------------------------------------------------------
1155
- # Post-Parsing construction of datetime output. These are kept as
1156
- # methods instead of functions for the sake of customizability via
1157
- # subclassing.
1158
-
1159
- def _build_tzinfo(self, tzinfos, tzname, tzoffset):
1160
- if callable(tzinfos):
1161
- tzdata = tzinfos(tzname, tzoffset)
1162
- else:
1163
- tzdata = tzinfos.get(tzname)
1164
- # handle case where tzinfo is paased an options that returns None
1165
- # eg tzinfos = {'BRST' : None}
1166
- if isinstance(tzdata, datetime.tzinfo) or tzdata is None:
1167
- tzinfo = tzdata
1168
- elif isinstance(tzdata, text_type):
1169
- tzinfo = tz.tzstr(tzdata)
1170
- elif isinstance(tzdata, integer_types):
1171
- tzinfo = tz.tzoffset(tzname, tzdata)
1172
- else:
1173
- raise TypeError("Offset must be tzinfo subclass, tz string, "
1174
- "or int offset.")
1175
- return tzinfo
1176
-
1177
- def _build_tzaware(self, naive, res, tzinfos):
1178
- if (callable(tzinfos) or (tzinfos and res.tzname in tzinfos)):
1179
- tzinfo = self._build_tzinfo(tzinfos, res.tzname, res.tzoffset)
1180
- aware = naive.replace(tzinfo=tzinfo)
1181
- aware = self._assign_tzname(aware, res.tzname)
1182
-
1183
- elif res.tzname and res.tzname in time.tzname:
1184
- aware = naive.replace(tzinfo=tz.tzlocal())
1185
-
1186
- # Handle ambiguous local datetime
1187
- aware = self._assign_tzname(aware, res.tzname)
1188
-
1189
- # This is mostly relevant for winter GMT zones parsed in the UK
1190
- if (aware.tzname() != res.tzname and
1191
- res.tzname in self.info.UTCZONE):
1192
- aware = aware.replace(tzinfo=tz.UTC)
1193
-
1194
- elif res.tzoffset == 0:
1195
- aware = naive.replace(tzinfo=tz.UTC)
1196
-
1197
- elif res.tzoffset:
1198
- aware = naive.replace(tzinfo=tz.tzoffset(res.tzname, res.tzoffset))
1199
-
1200
- elif not res.tzname and not res.tzoffset:
1201
- # i.e. no timezone information was found.
1202
- aware = naive
1203
-
1204
- elif res.tzname:
1205
- # tz-like string was parsed but we don't know what to do
1206
- # with it
1207
- warnings.warn("tzname {tzname} identified but not understood. "
1208
- "Pass `tzinfos` argument in order to correctly "
1209
- "return a timezone-aware datetime. In a future "
1210
- "version, this will raise an "
1211
- "exception.".format(tzname=res.tzname),
1212
- category=UnknownTimezoneWarning)
1213
- aware = naive
1214
-
1215
- return aware
1216
-
1217
- def _build_naive(self, res, default):
1218
- repl = {}
1219
- for attr in ("year", "month", "day", "hour",
1220
- "minute", "second", "microsecond"):
1221
- value = getattr(res, attr)
1222
- if value is not None:
1223
- repl[attr] = value
1224
-
1225
- if 'day' not in repl:
1226
- # If the default day exceeds the last day of the month, fall back
1227
- # to the end of the month.
1228
- cyear = default.year if res.year is None else res.year
1229
- cmonth = default.month if res.month is None else res.month
1230
- cday = default.day if res.day is None else res.day
1231
-
1232
- if cday > monthrange(cyear, cmonth)[1]:
1233
- repl['day'] = monthrange(cyear, cmonth)[1]
1234
-
1235
- naive = default.replace(**repl)
1236
-
1237
- if res.weekday is not None and not res.day:
1238
- naive = naive + relativedelta.relativedelta(weekday=res.weekday)
1239
-
1240
- return naive
1241
-
1242
- def _assign_tzname(self, dt, tzname):
1243
- if dt.tzname() != tzname:
1244
- new_dt = tz.enfold(dt, fold=1)
1245
- if new_dt.tzname() == tzname:
1246
- return new_dt
1247
-
1248
- return dt
1249
-
1250
- def _recombine_skipped(self, tokens, skipped_idxs):
1251
- """
1252
- >>> tokens = ["foo", " ", "bar", " ", "19June2000", "baz"]
1253
- >>> skipped_idxs = [0, 1, 2, 5]
1254
- >>> _recombine_skipped(tokens, skipped_idxs)
1255
- ["foo bar", "baz"]
1256
- """
1257
- skipped_tokens = []
1258
- for i, idx in enumerate(sorted(skipped_idxs)):
1259
- if i > 0 and idx - 1 == skipped_idxs[i - 1]:
1260
- skipped_tokens[-1] = skipped_tokens[-1] + tokens[idx]
1261
- else:
1262
- skipped_tokens.append(tokens[idx])
1263
-
1264
- return skipped_tokens
1265
-
1266
-
1267
- DEFAULTPARSER = parser()
1268
-
1269
-
1270
- def parse(timestr, parserinfo=None, **kwargs):
1271
- """
1272
-
1273
- Parse a string in one of the supported formats, using the
1274
- ``parserinfo`` parameters.
1275
-
1276
- :param timestr:
1277
- A string containing a date/time stamp.
1278
-
1279
- :param parserinfo:
1280
- A :class:`parserinfo` object containing parameters for the parser.
1281
- If ``None``, the default arguments to the :class:`parserinfo`
1282
- constructor are used.
1283
-
1284
- The ``**kwargs`` parameter takes the following keyword arguments:
1285
-
1286
- :param default:
1287
- The default datetime object, if this is a datetime object and not
1288
- ``None``, elements specified in ``timestr`` replace elements in the
1289
- default object.
1290
-
1291
- :param ignoretz:
1292
- If set ``True``, time zones in parsed strings are ignored and a naive
1293
- :class:`datetime` object is returned.
1294
-
1295
- :param tzinfos:
1296
- Additional time zone names / aliases which may be present in the
1297
- string. This argument maps time zone names (and optionally offsets
1298
- from those time zones) to time zones. This parameter can be a
1299
- dictionary with timezone aliases mapping time zone names to time
1300
- zones or a function taking two parameters (``tzname`` and
1301
- ``tzoffset``) and returning a time zone.
1302
-
1303
- The timezones to which the names are mapped can be an integer
1304
- offset from UTC in seconds or a :class:`tzinfo` object.
1305
-
1306
- .. doctest::
1307
- :options: +NORMALIZE_WHITESPACE
1308
-
1309
- >>> from dateutil.parser import parse
1310
- >>> from dateutil.tz import gettz
1311
- >>> tzinfos = {"BRST": -7200, "CST": gettz("America/Chicago")}
1312
- >>> parse("2012-01-19 17:21:00 BRST", tzinfos=tzinfos)
1313
- datetime.datetime(2012, 1, 19, 17, 21, tzinfo=tzoffset(u'BRST', -7200))
1314
- >>> parse("2012-01-19 17:21:00 CST", tzinfos=tzinfos)
1315
- datetime.datetime(2012, 1, 19, 17, 21,
1316
- tzinfo=tzfile('/usr/share/zoneinfo/America/Chicago'))
1317
-
1318
- This parameter is ignored if ``ignoretz`` is set.
1319
-
1320
- :param dayfirst:
1321
- Whether to interpret the first value in an ambiguous 3-integer date
1322
- (e.g. 01/05/09) as the day (``True``) or month (``False``). If
1323
- ``yearfirst`` is set to ``True``, this distinguishes between YDM and
1324
- YMD. If set to ``None``, this value is retrieved from the current
1325
- :class:`parserinfo` object (which itself defaults to ``False``).
1326
-
1327
- :param yearfirst:
1328
- Whether to interpret the first value in an ambiguous 3-integer date
1329
- (e.g. 01/05/09) as the year. If ``True``, the first number is taken to
1330
- be the year, otherwise the last number is taken to be the year. If
1331
- this is set to ``None``, the value is retrieved from the current
1332
- :class:`parserinfo` object (which itself defaults to ``False``).
1333
-
1334
- :param fuzzy:
1335
- Whether to allow fuzzy parsing, allowing for string like "Today is
1336
- January 1, 2047 at 8:21:00AM".
1337
-
1338
- :param fuzzy_with_tokens:
1339
- If ``True``, ``fuzzy`` is automatically set to True, and the parser
1340
- will return a tuple where the first element is the parsed
1341
- :class:`datetime.datetime` datetimestamp and the second element is
1342
- a tuple containing the portions of the string which were ignored:
1343
-
1344
- .. doctest::
1345
-
1346
- >>> from dateutil.parser import parse
1347
- >>> parse("Today is January 1, 2047 at 8:21:00AM", fuzzy_with_tokens=True)
1348
- (datetime.datetime(2047, 1, 1, 8, 21), (u'Today is ', u' ', u'at '))
1349
-
1350
- :return:
1351
- Returns a :class:`datetime.datetime` object or, if the
1352
- ``fuzzy_with_tokens`` option is ``True``, returns a tuple, the
1353
- first element being a :class:`datetime.datetime` object, the second
1354
- a tuple containing the fuzzy tokens.
1355
-
1356
- :raises ParserError:
1357
- Raised for invalid or unknown string formats, if the provided
1358
- :class:`tzinfo` is not in a valid format, or if an invalid date would
1359
- be created.
1360
-
1361
- :raises OverflowError:
1362
- Raised if the parsed date exceeds the largest valid C integer on
1363
- your system.
1364
- """
1365
- if parserinfo:
1366
- return parser(parserinfo).parse(timestr, **kwargs)
1367
- else:
1368
- return DEFAULTPARSER.parse(timestr, **kwargs)
1369
-
1370
-
1371
- class _tzparser(object):
1372
-
1373
- class _result(_resultbase):
1374
-
1375
- __slots__ = ["stdabbr", "stdoffset", "dstabbr", "dstoffset",
1376
- "start", "end"]
1377
-
1378
- class _attr(_resultbase):
1379
- __slots__ = ["month", "week", "weekday",
1380
- "yday", "jyday", "day", "time"]
1381
-
1382
- def __repr__(self):
1383
- return self._repr("")
1384
-
1385
- def __init__(self):
1386
- _resultbase.__init__(self)
1387
- self.start = self._attr()
1388
- self.end = self._attr()
1389
-
1390
- def parse(self, tzstr):
1391
- res = self._result()
1392
- l = [x for x in re.split(r'([,:.]|[a-zA-Z]+|[0-9]+)',tzstr) if x]
1393
- used_idxs = list()
1394
- try:
1395
-
1396
- len_l = len(l)
1397
-
1398
- i = 0
1399
- while i < len_l:
1400
- # BRST+3[BRDT[+2]]
1401
- j = i
1402
- while j < len_l and not [x for x in l[j]
1403
- if x in "0123456789:,-+"]:
1404
- j += 1
1405
- if j != i:
1406
- if not res.stdabbr:
1407
- offattr = "stdoffset"
1408
- res.stdabbr = "".join(l[i:j])
1409
- else:
1410
- offattr = "dstoffset"
1411
- res.dstabbr = "".join(l[i:j])
1412
-
1413
- for ii in range(j):
1414
- used_idxs.append(ii)
1415
- i = j
1416
- if (i < len_l and (l[i] in ('+', '-') or l[i][0] in
1417
- "0123456789")):
1418
- if l[i] in ('+', '-'):
1419
- # Yes, that's right. See the TZ variable
1420
- # documentation.
1421
- signal = (1, -1)[l[i] == '+']
1422
- used_idxs.append(i)
1423
- i += 1
1424
- else:
1425
- signal = -1
1426
- len_li = len(l[i])
1427
- if len_li == 4:
1428
- # -0300
1429
- setattr(res, offattr, (int(l[i][:2]) * 3600 +
1430
- int(l[i][2:]) * 60) * signal)
1431
- elif i + 1 < len_l and l[i + 1] == ':':
1432
- # -03:00
1433
- setattr(res, offattr,
1434
- (int(l[i]) * 3600 +
1435
- int(l[i + 2]) * 60) * signal)
1436
- used_idxs.append(i)
1437
- i += 2
1438
- elif len_li <= 2:
1439
- # -[0]3
1440
- setattr(res, offattr,
1441
- int(l[i][:2]) * 3600 * signal)
1442
- else:
1443
- return None
1444
- used_idxs.append(i)
1445
- i += 1
1446
- if res.dstabbr:
1447
- break
1448
- else:
1449
- break
1450
-
1451
-
1452
- if i < len_l:
1453
- for j in range(i, len_l):
1454
- if l[j] == ';':
1455
- l[j] = ','
1456
-
1457
- assert l[i] == ','
1458
-
1459
- i += 1
1460
-
1461
- if i >= len_l:
1462
- pass
1463
- elif (8 <= l.count(',') <= 9 and
1464
- not [y for x in l[i:] if x != ','
1465
- for y in x if y not in "0123456789+-"]):
1466
- # GMT0BST,3,0,30,3600,10,0,26,7200[,3600]
1467
- for x in (res.start, res.end):
1468
- x.month = int(l[i])
1469
- used_idxs.append(i)
1470
- i += 2
1471
- if l[i] == '-':
1472
- value = int(l[i + 1]) * -1
1473
- used_idxs.append(i)
1474
- i += 1
1475
- else:
1476
- value = int(l[i])
1477
- used_idxs.append(i)
1478
- i += 2
1479
- if value:
1480
- x.week = value
1481
- x.weekday = (int(l[i]) - 1) % 7
1482
- else:
1483
- x.day = int(l[i])
1484
- used_idxs.append(i)
1485
- i += 2
1486
- x.time = int(l[i])
1487
- used_idxs.append(i)
1488
- i += 2
1489
- if i < len_l:
1490
- if l[i] in ('-', '+'):
1491
- signal = (-1, 1)[l[i] == "+"]
1492
- used_idxs.append(i)
1493
- i += 1
1494
- else:
1495
- signal = 1
1496
- used_idxs.append(i)
1497
- res.dstoffset = (res.stdoffset + int(l[i]) * signal)
1498
-
1499
- # This was a made-up format that is not in normal use
1500
- warn(('Parsed time zone "%s"' % tzstr) +
1501
- 'is in a non-standard dateutil-specific format, which ' +
1502
- 'is now deprecated; support for parsing this format ' +
1503
- 'will be removed in future versions. It is recommended ' +
1504
- 'that you switch to a standard format like the GNU ' +
1505
- 'TZ variable format.', tz.DeprecatedTzFormatWarning)
1506
- elif (l.count(',') == 2 and l[i:].count('/') <= 2 and
1507
- not [y for x in l[i:] if x not in (',', '/', 'J', 'M',
1508
- '.', '-', ':')
1509
- for y in x if y not in "0123456789"]):
1510
- for x in (res.start, res.end):
1511
- if l[i] == 'J':
1512
- # non-leap year day (1 based)
1513
- used_idxs.append(i)
1514
- i += 1
1515
- x.jyday = int(l[i])
1516
- elif l[i] == 'M':
1517
- # month[-.]week[-.]weekday
1518
- used_idxs.append(i)
1519
- i += 1
1520
- x.month = int(l[i])
1521
- used_idxs.append(i)
1522
- i += 1
1523
- assert l[i] in ('-', '.')
1524
- used_idxs.append(i)
1525
- i += 1
1526
- x.week = int(l[i])
1527
- if x.week == 5:
1528
- x.week = -1
1529
- used_idxs.append(i)
1530
- i += 1
1531
- assert l[i] in ('-', '.')
1532
- used_idxs.append(i)
1533
- i += 1
1534
- x.weekday = (int(l[i]) - 1) % 7
1535
- else:
1536
- # year day (zero based)
1537
- x.yday = int(l[i]) + 1
1538
-
1539
- used_idxs.append(i)
1540
- i += 1
1541
-
1542
- if i < len_l and l[i] == '/':
1543
- used_idxs.append(i)
1544
- i += 1
1545
- # start time
1546
- len_li = len(l[i])
1547
- if len_li == 4:
1548
- # -0300
1549
- x.time = (int(l[i][:2]) * 3600 +
1550
- int(l[i][2:]) * 60)
1551
- elif i + 1 < len_l and l[i + 1] == ':':
1552
- # -03:00
1553
- x.time = int(l[i]) * 3600 + int(l[i + 2]) * 60
1554
- used_idxs.append(i)
1555
- i += 2
1556
- if i + 1 < len_l and l[i + 1] == ':':
1557
- used_idxs.append(i)
1558
- i += 2
1559
- x.time += int(l[i])
1560
- elif len_li <= 2:
1561
- # -[0]3
1562
- x.time = (int(l[i][:2]) * 3600)
1563
- else:
1564
- return None
1565
- used_idxs.append(i)
1566
- i += 1
1567
-
1568
- assert i == len_l or l[i] == ','
1569
-
1570
- i += 1
1571
-
1572
- assert i >= len_l
1573
-
1574
- except (IndexError, ValueError, AssertionError):
1575
- return None
1576
-
1577
- unused_idxs = set(range(len_l)).difference(used_idxs)
1578
- res.any_unused_tokens = not {l[n] for n in unused_idxs}.issubset({",",":"})
1579
- return res
1580
-
1581
-
1582
- DEFAULTTZPARSER = _tzparser()
1583
-
1584
-
1585
- def _parsetz(tzstr):
1586
- return DEFAULTTZPARSER.parse(tzstr)
1587
-
1588
-
1589
- class ParserError(ValueError):
1590
- """Exception subclass used for any failure to parse a datetime string.
1591
-
1592
- This is a subclass of :py:exc:`ValueError`, and should be raised any time
1593
- earlier versions of ``dateutil`` would have raised ``ValueError``.
1594
-
1595
- .. versionadded:: 2.8.1
1596
- """
1597
- def __str__(self):
1598
- try:
1599
- return self.args[0] % self.args[1:]
1600
- except (TypeError, IndexError):
1601
- return super(ParserError, self).__str__()
1602
-
1603
- def __repr__(self):
1604
- args = ", ".join("'%s'" % arg for arg in self.args)
1605
- return "%s(%s)" % (self.__class__.__name__, args)
1606
-
1607
-
1608
- class UnknownTimezoneWarning(RuntimeWarning):
1609
- """Raised when the parser finds a timezone it cannot parse into a tzinfo.
1610
-
1611
- .. versionadded:: 2.7.0
1612
- """
1613
- # vim:ts=4:sw=4:et
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.11/site-packages/dateutil/parser/isoparser.py DELETED
@@ -1,416 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- """
3
- This module offers a parser for ISO-8601 strings
4
-
5
- It is intended to support all valid date, time and datetime formats per the
6
- ISO-8601 specification.
7
-
8
- ..versionadded:: 2.7.0
9
- """
10
- from datetime import datetime, timedelta, time, date
11
- import calendar
12
- from dateutil import tz
13
-
14
- from functools import wraps
15
-
16
- import re
17
- import six
18
-
19
- __all__ = ["isoparse", "isoparser"]
20
-
21
-
22
- def _takes_ascii(f):
23
- @wraps(f)
24
- def func(self, str_in, *args, **kwargs):
25
- # If it's a stream, read the whole thing
26
- str_in = getattr(str_in, 'read', lambda: str_in)()
27
-
28
- # If it's unicode, turn it into bytes, since ISO-8601 only covers ASCII
29
- if isinstance(str_in, six.text_type):
30
- # ASCII is the same in UTF-8
31
- try:
32
- str_in = str_in.encode('ascii')
33
- except UnicodeEncodeError as e:
34
- msg = 'ISO-8601 strings should contain only ASCII characters'
35
- six.raise_from(ValueError(msg), e)
36
-
37
- return f(self, str_in, *args, **kwargs)
38
-
39
- return func
40
-
41
-
42
- class isoparser(object):
43
- def __init__(self, sep=None):
44
- """
45
- :param sep:
46
- A single character that separates date and time portions. If
47
- ``None``, the parser will accept any single character.
48
- For strict ISO-8601 adherence, pass ``'T'``.
49
- """
50
- if sep is not None:
51
- if (len(sep) != 1 or ord(sep) >= 128 or sep in '0123456789'):
52
- raise ValueError('Separator must be a single, non-numeric ' +
53
- 'ASCII character')
54
-
55
- sep = sep.encode('ascii')
56
-
57
- self._sep = sep
58
-
59
- @_takes_ascii
60
- def isoparse(self, dt_str):
61
- """
62
- Parse an ISO-8601 datetime string into a :class:`datetime.datetime`.
63
-
64
- An ISO-8601 datetime string consists of a date portion, followed
65
- optionally by a time portion - the date and time portions are separated
66
- by a single character separator, which is ``T`` in the official
67
- standard. Incomplete date formats (such as ``YYYY-MM``) may *not* be
68
- combined with a time portion.
69
-
70
- Supported date formats are:
71
-
72
- Common:
73
-
74
- - ``YYYY``
75
- - ``YYYY-MM``
76
- - ``YYYY-MM-DD`` or ``YYYYMMDD``
77
-
78
- Uncommon:
79
-
80
- - ``YYYY-Www`` or ``YYYYWww`` - ISO week (day defaults to 0)
81
- - ``YYYY-Www-D`` or ``YYYYWwwD`` - ISO week and day
82
-
83
- The ISO week and day numbering follows the same logic as
84
- :func:`datetime.date.isocalendar`.
85
-
86
- Supported time formats are:
87
-
88
- - ``hh``
89
- - ``hh:mm`` or ``hhmm``
90
- - ``hh:mm:ss`` or ``hhmmss``
91
- - ``hh:mm:ss.ssssss`` (Up to 6 sub-second digits)
92
-
93
- Midnight is a special case for `hh`, as the standard supports both
94
- 00:00 and 24:00 as a representation. The decimal separator can be
95
- either a dot or a comma.
96
-
97
-
98
- .. caution::
99
-
100
- Support for fractional components other than seconds is part of the
101
- ISO-8601 standard, but is not currently implemented in this parser.
102
-
103
- Supported time zone offset formats are:
104
-
105
- - `Z` (UTC)
106
- - `±HH:MM`
107
- - `±HHMM`
108
- - `±HH`
109
-
110
- Offsets will be represented as :class:`dateutil.tz.tzoffset` objects,
111
- with the exception of UTC, which will be represented as
112
- :class:`dateutil.tz.tzutc`. Time zone offsets equivalent to UTC (such
113
- as `+00:00`) will also be represented as :class:`dateutil.tz.tzutc`.
114
-
115
- :param dt_str:
116
- A string or stream containing only an ISO-8601 datetime string
117
-
118
- :return:
119
- Returns a :class:`datetime.datetime` representing the string.
120
- Unspecified components default to their lowest value.
121
-
122
- .. warning::
123
-
124
- As of version 2.7.0, the strictness of the parser should not be
125
- considered a stable part of the contract. Any valid ISO-8601 string
126
- that parses correctly with the default settings will continue to
127
- parse correctly in future versions, but invalid strings that
128
- currently fail (e.g. ``2017-01-01T00:00+00:00:00``) are not
129
- guaranteed to continue failing in future versions if they encode
130
- a valid date.
131
-
132
- .. versionadded:: 2.7.0
133
- """
134
- components, pos = self._parse_isodate(dt_str)
135
-
136
- if len(dt_str) > pos:
137
- if self._sep is None or dt_str[pos:pos + 1] == self._sep:
138
- components += self._parse_isotime(dt_str[pos + 1:])
139
- else:
140
- raise ValueError('String contains unknown ISO components')
141
-
142
- if len(components) > 3 and components[3] == 24:
143
- components[3] = 0
144
- return datetime(*components) + timedelta(days=1)
145
-
146
- return datetime(*components)
147
-
148
- @_takes_ascii
149
- def parse_isodate(self, datestr):
150
- """
151
- Parse the date portion of an ISO string.
152
-
153
- :param datestr:
154
- The string portion of an ISO string, without a separator
155
-
156
- :return:
157
- Returns a :class:`datetime.date` object
158
- """
159
- components, pos = self._parse_isodate(datestr)
160
- if pos < len(datestr):
161
- raise ValueError('String contains unknown ISO ' +
162
- 'components: {!r}'.format(datestr.decode('ascii')))
163
- return date(*components)
164
-
165
- @_takes_ascii
166
- def parse_isotime(self, timestr):
167
- """
168
- Parse the time portion of an ISO string.
169
-
170
- :param timestr:
171
- The time portion of an ISO string, without a separator
172
-
173
- :return:
174
- Returns a :class:`datetime.time` object
175
- """
176
- components = self._parse_isotime(timestr)
177
- if components[0] == 24:
178
- components[0] = 0
179
- return time(*components)
180
-
181
- @_takes_ascii
182
- def parse_tzstr(self, tzstr, zero_as_utc=True):
183
- """
184
- Parse a valid ISO time zone string.
185
-
186
- See :func:`isoparser.isoparse` for details on supported formats.
187
-
188
- :param tzstr:
189
- A string representing an ISO time zone offset
190
-
191
- :param zero_as_utc:
192
- Whether to return :class:`dateutil.tz.tzutc` for zero-offset zones
193
-
194
- :return:
195
- Returns :class:`dateutil.tz.tzoffset` for offsets and
196
- :class:`dateutil.tz.tzutc` for ``Z`` and (if ``zero_as_utc`` is
197
- specified) offsets equivalent to UTC.
198
- """
199
- return self._parse_tzstr(tzstr, zero_as_utc=zero_as_utc)
200
-
201
- # Constants
202
- _DATE_SEP = b'-'
203
- _TIME_SEP = b':'
204
- _FRACTION_REGEX = re.compile(b'[\\.,]([0-9]+)')
205
-
206
- def _parse_isodate(self, dt_str):
207
- try:
208
- return self._parse_isodate_common(dt_str)
209
- except ValueError:
210
- return self._parse_isodate_uncommon(dt_str)
211
-
212
- def _parse_isodate_common(self, dt_str):
213
- len_str = len(dt_str)
214
- components = [1, 1, 1]
215
-
216
- if len_str < 4:
217
- raise ValueError('ISO string too short')
218
-
219
- # Year
220
- components[0] = int(dt_str[0:4])
221
- pos = 4
222
- if pos >= len_str:
223
- return components, pos
224
-
225
- has_sep = dt_str[pos:pos + 1] == self._DATE_SEP
226
- if has_sep:
227
- pos += 1
228
-
229
- # Month
230
- if len_str - pos < 2:
231
- raise ValueError('Invalid common month')
232
-
233
- components[1] = int(dt_str[pos:pos + 2])
234
- pos += 2
235
-
236
- if pos >= len_str:
237
- if has_sep:
238
- return components, pos
239
- else:
240
- raise ValueError('Invalid ISO format')
241
-
242
- if has_sep:
243
- if dt_str[pos:pos + 1] != self._DATE_SEP:
244
- raise ValueError('Invalid separator in ISO string')
245
- pos += 1
246
-
247
- # Day
248
- if len_str - pos < 2:
249
- raise ValueError('Invalid common day')
250
- components[2] = int(dt_str[pos:pos + 2])
251
- return components, pos + 2
252
-
253
- def _parse_isodate_uncommon(self, dt_str):
254
- if len(dt_str) < 4:
255
- raise ValueError('ISO string too short')
256
-
257
- # All ISO formats start with the year
258
- year = int(dt_str[0:4])
259
-
260
- has_sep = dt_str[4:5] == self._DATE_SEP
261
-
262
- pos = 4 + has_sep # Skip '-' if it's there
263
- if dt_str[pos:pos + 1] == b'W':
264
- # YYYY-?Www-?D?
265
- pos += 1
266
- weekno = int(dt_str[pos:pos + 2])
267
- pos += 2
268
-
269
- dayno = 1
270
- if len(dt_str) > pos:
271
- if (dt_str[pos:pos + 1] == self._DATE_SEP) != has_sep:
272
- raise ValueError('Inconsistent use of dash separator')
273
-
274
- pos += has_sep
275
-
276
- dayno = int(dt_str[pos:pos + 1])
277
- pos += 1
278
-
279
- base_date = self._calculate_weekdate(year, weekno, dayno)
280
- else:
281
- # YYYYDDD or YYYY-DDD
282
- if len(dt_str) - pos < 3:
283
- raise ValueError('Invalid ordinal day')
284
-
285
- ordinal_day = int(dt_str[pos:pos + 3])
286
- pos += 3
287
-
288
- if ordinal_day < 1 or ordinal_day > (365 + calendar.isleap(year)):
289
- raise ValueError('Invalid ordinal day' +
290
- ' {} for year {}'.format(ordinal_day, year))
291
-
292
- base_date = date(year, 1, 1) + timedelta(days=ordinal_day - 1)
293
-
294
- components = [base_date.year, base_date.month, base_date.day]
295
- return components, pos
296
-
297
- def _calculate_weekdate(self, year, week, day):
298
- """
299
- Calculate the day of corresponding to the ISO year-week-day calendar.
300
-
301
- This function is effectively the inverse of
302
- :func:`datetime.date.isocalendar`.
303
-
304
- :param year:
305
- The year in the ISO calendar
306
-
307
- :param week:
308
- The week in the ISO calendar - range is [1, 53]
309
-
310
- :param day:
311
- The day in the ISO calendar - range is [1 (MON), 7 (SUN)]
312
-
313
- :return:
314
- Returns a :class:`datetime.date`
315
- """
316
- if not 0 < week < 54:
317
- raise ValueError('Invalid week: {}'.format(week))
318
-
319
- if not 0 < day < 8: # Range is 1-7
320
- raise ValueError('Invalid weekday: {}'.format(day))
321
-
322
- # Get week 1 for the specific year:
323
- jan_4 = date(year, 1, 4) # Week 1 always has January 4th in it
324
- week_1 = jan_4 - timedelta(days=jan_4.isocalendar()[2] - 1)
325
-
326
- # Now add the specific number of weeks and days to get what we want
327
- week_offset = (week - 1) * 7 + (day - 1)
328
- return week_1 + timedelta(days=week_offset)
329
-
330
- def _parse_isotime(self, timestr):
331
- len_str = len(timestr)
332
- components = [0, 0, 0, 0, None]
333
- pos = 0
334
- comp = -1
335
-
336
- if len_str < 2:
337
- raise ValueError('ISO time too short')
338
-
339
- has_sep = False
340
-
341
- while pos < len_str and comp < 5:
342
- comp += 1
343
-
344
- if timestr[pos:pos + 1] in b'-+Zz':
345
- # Detect time zone boundary
346
- components[-1] = self._parse_tzstr(timestr[pos:])
347
- pos = len_str
348
- break
349
-
350
- if comp == 1 and timestr[pos:pos+1] == self._TIME_SEP:
351
- has_sep = True
352
- pos += 1
353
- elif comp == 2 and has_sep:
354
- if timestr[pos:pos+1] != self._TIME_SEP:
355
- raise ValueError('Inconsistent use of colon separator')
356
- pos += 1
357
-
358
- if comp < 3:
359
- # Hour, minute, second
360
- components[comp] = int(timestr[pos:pos + 2])
361
- pos += 2
362
-
363
- if comp == 3:
364
- # Fraction of a second
365
- frac = self._FRACTION_REGEX.match(timestr[pos:])
366
- if not frac:
367
- continue
368
-
369
- us_str = frac.group(1)[:6] # Truncate to microseconds
370
- components[comp] = int(us_str) * 10**(6 - len(us_str))
371
- pos += len(frac.group())
372
-
373
- if pos < len_str:
374
- raise ValueError('Unused components in ISO string')
375
-
376
- if components[0] == 24:
377
- # Standard supports 00:00 and 24:00 as representations of midnight
378
- if any(component != 0 for component in components[1:4]):
379
- raise ValueError('Hour may only be 24 at 24:00:00.000')
380
-
381
- return components
382
-
383
- def _parse_tzstr(self, tzstr, zero_as_utc=True):
384
- if tzstr == b'Z' or tzstr == b'z':
385
- return tz.UTC
386
-
387
- if len(tzstr) not in {3, 5, 6}:
388
- raise ValueError('Time zone offset must be 1, 3, 5 or 6 characters')
389
-
390
- if tzstr[0:1] == b'-':
391
- mult = -1
392
- elif tzstr[0:1] == b'+':
393
- mult = 1
394
- else:
395
- raise ValueError('Time zone offset requires sign')
396
-
397
- hours = int(tzstr[1:3])
398
- if len(tzstr) == 3:
399
- minutes = 0
400
- else:
401
- minutes = int(tzstr[(4 if tzstr[3:4] == self._TIME_SEP else 3):])
402
-
403
- if zero_as_utc and hours == 0 and minutes == 0:
404
- return tz.UTC
405
- else:
406
- if minutes > 59:
407
- raise ValueError('Invalid minutes in time zone offset')
408
-
409
- if hours > 23:
410
- raise ValueError('Invalid hours in time zone offset')
411
-
412
- return tz.tzoffset(None, mult * (hours * 60 + minutes) * 60)
413
-
414
-
415
- DEFAULT_ISOPARSER = isoparser()
416
- isoparse = DEFAULT_ISOPARSER.isoparse
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.11/site-packages/dateutil/relativedelta.py DELETED
@@ -1,599 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- import datetime
3
- import calendar
4
-
5
- import operator
6
- from math import copysign
7
-
8
- from six import integer_types
9
- from warnings import warn
10
-
11
- from ._common import weekday
12
-
13
- MO, TU, WE, TH, FR, SA, SU = weekdays = tuple(weekday(x) for x in range(7))
14
-
15
- __all__ = ["relativedelta", "MO", "TU", "WE", "TH", "FR", "SA", "SU"]
16
-
17
-
18
- class relativedelta(object):
19
- """
20
- The relativedelta type is designed to be applied to an existing datetime and
21
- can replace specific components of that datetime, or represents an interval
22
- of time.
23
-
24
- It is based on the specification of the excellent work done by M.-A. Lemburg
25
- in his
26
- `mx.DateTime <https://www.egenix.com/products/python/mxBase/mxDateTime/>`_ extension.
27
- However, notice that this type does *NOT* implement the same algorithm as
28
- his work. Do *NOT* expect it to behave like mx.DateTime's counterpart.
29
-
30
- There are two different ways to build a relativedelta instance. The
31
- first one is passing it two date/datetime classes::
32
-
33
- relativedelta(datetime1, datetime2)
34
-
35
- The second one is passing it any number of the following keyword arguments::
36
-
37
- relativedelta(arg1=x,arg2=y,arg3=z...)
38
-
39
- year, month, day, hour, minute, second, microsecond:
40
- Absolute information (argument is singular); adding or subtracting a
41
- relativedelta with absolute information does not perform an arithmetic
42
- operation, but rather REPLACES the corresponding value in the
43
- original datetime with the value(s) in relativedelta.
44
-
45
- years, months, weeks, days, hours, minutes, seconds, microseconds:
46
- Relative information, may be negative (argument is plural); adding
47
- or subtracting a relativedelta with relative information performs
48
- the corresponding arithmetic operation on the original datetime value
49
- with the information in the relativedelta.
50
-
51
- weekday:
52
- One of the weekday instances (MO, TU, etc) available in the
53
- relativedelta module. These instances may receive a parameter N,
54
- specifying the Nth weekday, which could be positive or negative
55
- (like MO(+1) or MO(-2)). Not specifying it is the same as specifying
56
- +1. You can also use an integer, where 0=MO. This argument is always
57
- relative e.g. if the calculated date is already Monday, using MO(1)
58
- or MO(-1) won't change the day. To effectively make it absolute, use
59
- it in combination with the day argument (e.g. day=1, MO(1) for first
60
- Monday of the month).
61
-
62
- leapdays:
63
- Will add given days to the date found, if year is a leap
64
- year, and the date found is post 28 of february.
65
-
66
- yearday, nlyearday:
67
- Set the yearday or the non-leap year day (jump leap days).
68
- These are converted to day/month/leapdays information.
69
-
70
- There are relative and absolute forms of the keyword
71
- arguments. The plural is relative, and the singular is
72
- absolute. For each argument in the order below, the absolute form
73
- is applied first (by setting each attribute to that value) and
74
- then the relative form (by adding the value to the attribute).
75
-
76
- The order of attributes considered when this relativedelta is
77
- added to a datetime is:
78
-
79
- 1. Year
80
- 2. Month
81
- 3. Day
82
- 4. Hours
83
- 5. Minutes
84
- 6. Seconds
85
- 7. Microseconds
86
-
87
- Finally, weekday is applied, using the rule described above.
88
-
89
- For example
90
-
91
- >>> from datetime import datetime
92
- >>> from dateutil.relativedelta import relativedelta, MO
93
- >>> dt = datetime(2018, 4, 9, 13, 37, 0)
94
- >>> delta = relativedelta(hours=25, day=1, weekday=MO(1))
95
- >>> dt + delta
96
- datetime.datetime(2018, 4, 2, 14, 37)
97
-
98
- First, the day is set to 1 (the first of the month), then 25 hours
99
- are added, to get to the 2nd day and 14th hour, finally the
100
- weekday is applied, but since the 2nd is already a Monday there is
101
- no effect.
102
-
103
- """
104
-
105
- def __init__(self, dt1=None, dt2=None,
106
- years=0, months=0, days=0, leapdays=0, weeks=0,
107
- hours=0, minutes=0, seconds=0, microseconds=0,
108
- year=None, month=None, day=None, weekday=None,
109
- yearday=None, nlyearday=None,
110
- hour=None, minute=None, second=None, microsecond=None):
111
-
112
- if dt1 and dt2:
113
- # datetime is a subclass of date. So both must be date
114
- if not (isinstance(dt1, datetime.date) and
115
- isinstance(dt2, datetime.date)):
116
- raise TypeError("relativedelta only diffs datetime/date")
117
-
118
- # We allow two dates, or two datetimes, so we coerce them to be
119
- # of the same type
120
- if (isinstance(dt1, datetime.datetime) !=
121
- isinstance(dt2, datetime.datetime)):
122
- if not isinstance(dt1, datetime.datetime):
123
- dt1 = datetime.datetime.fromordinal(dt1.toordinal())
124
- elif not isinstance(dt2, datetime.datetime):
125
- dt2 = datetime.datetime.fromordinal(dt2.toordinal())
126
-
127
- self.years = 0
128
- self.months = 0
129
- self.days = 0
130
- self.leapdays = 0
131
- self.hours = 0
132
- self.minutes = 0
133
- self.seconds = 0
134
- self.microseconds = 0
135
- self.year = None
136
- self.month = None
137
- self.day = None
138
- self.weekday = None
139
- self.hour = None
140
- self.minute = None
141
- self.second = None
142
- self.microsecond = None
143
- self._has_time = 0
144
-
145
- # Get year / month delta between the two
146
- months = (dt1.year - dt2.year) * 12 + (dt1.month - dt2.month)
147
- self._set_months(months)
148
-
149
- # Remove the year/month delta so the timedelta is just well-defined
150
- # time units (seconds, days and microseconds)
151
- dtm = self.__radd__(dt2)
152
-
153
- # If we've overshot our target, make an adjustment
154
- if dt1 < dt2:
155
- compare = operator.gt
156
- increment = 1
157
- else:
158
- compare = operator.lt
159
- increment = -1
160
-
161
- while compare(dt1, dtm):
162
- months += increment
163
- self._set_months(months)
164
- dtm = self.__radd__(dt2)
165
-
166
- # Get the timedelta between the "months-adjusted" date and dt1
167
- delta = dt1 - dtm
168
- self.seconds = delta.seconds + delta.days * 86400
169
- self.microseconds = delta.microseconds
170
- else:
171
- # Check for non-integer values in integer-only quantities
172
- if any(x is not None and x != int(x) for x in (years, months)):
173
- raise ValueError("Non-integer years and months are "
174
- "ambiguous and not currently supported.")
175
-
176
- # Relative information
177
- self.years = int(years)
178
- self.months = int(months)
179
- self.days = days + weeks * 7
180
- self.leapdays = leapdays
181
- self.hours = hours
182
- self.minutes = minutes
183
- self.seconds = seconds
184
- self.microseconds = microseconds
185
-
186
- # Absolute information
187
- self.year = year
188
- self.month = month
189
- self.day = day
190
- self.hour = hour
191
- self.minute = minute
192
- self.second = second
193
- self.microsecond = microsecond
194
-
195
- if any(x is not None and int(x) != x
196
- for x in (year, month, day, hour,
197
- minute, second, microsecond)):
198
- # For now we'll deprecate floats - later it'll be an error.
199
- warn("Non-integer value passed as absolute information. " +
200
- "This is not a well-defined condition and will raise " +
201
- "errors in future versions.", DeprecationWarning)
202
-
203
- if isinstance(weekday, integer_types):
204
- self.weekday = weekdays[weekday]
205
- else:
206
- self.weekday = weekday
207
-
208
- yday = 0
209
- if nlyearday:
210
- yday = nlyearday
211
- elif yearday:
212
- yday = yearday
213
- if yearday > 59:
214
- self.leapdays = -1
215
- if yday:
216
- ydayidx = [31, 59, 90, 120, 151, 181, 212,
217
- 243, 273, 304, 334, 366]
218
- for idx, ydays in enumerate(ydayidx):
219
- if yday <= ydays:
220
- self.month = idx+1
221
- if idx == 0:
222
- self.day = yday
223
- else:
224
- self.day = yday-ydayidx[idx-1]
225
- break
226
- else:
227
- raise ValueError("invalid year day (%d)" % yday)
228
-
229
- self._fix()
230
-
231
- def _fix(self):
232
- if abs(self.microseconds) > 999999:
233
- s = _sign(self.microseconds)
234
- div, mod = divmod(self.microseconds * s, 1000000)
235
- self.microseconds = mod * s
236
- self.seconds += div * s
237
- if abs(self.seconds) > 59:
238
- s = _sign(self.seconds)
239
- div, mod = divmod(self.seconds * s, 60)
240
- self.seconds = mod * s
241
- self.minutes += div * s
242
- if abs(self.minutes) > 59:
243
- s = _sign(self.minutes)
244
- div, mod = divmod(self.minutes * s, 60)
245
- self.minutes = mod * s
246
- self.hours += div * s
247
- if abs(self.hours) > 23:
248
- s = _sign(self.hours)
249
- div, mod = divmod(self.hours * s, 24)
250
- self.hours = mod * s
251
- self.days += div * s
252
- if abs(self.months) > 11:
253
- s = _sign(self.months)
254
- div, mod = divmod(self.months * s, 12)
255
- self.months = mod * s
256
- self.years += div * s
257
- if (self.hours or self.minutes or self.seconds or self.microseconds
258
- or self.hour is not None or self.minute is not None or
259
- self.second is not None or self.microsecond is not None):
260
- self._has_time = 1
261
- else:
262
- self._has_time = 0
263
-
264
- @property
265
- def weeks(self):
266
- return int(self.days / 7.0)
267
-
268
- @weeks.setter
269
- def weeks(self, value):
270
- self.days = self.days - (self.weeks * 7) + value * 7
271
-
272
- def _set_months(self, months):
273
- self.months = months
274
- if abs(self.months) > 11:
275
- s = _sign(self.months)
276
- div, mod = divmod(self.months * s, 12)
277
- self.months = mod * s
278
- self.years = div * s
279
- else:
280
- self.years = 0
281
-
282
- def normalized(self):
283
- """
284
- Return a version of this object represented entirely using integer
285
- values for the relative attributes.
286
-
287
- >>> relativedelta(days=1.5, hours=2).normalized()
288
- relativedelta(days=+1, hours=+14)
289
-
290
- :return:
291
- Returns a :class:`dateutil.relativedelta.relativedelta` object.
292
- """
293
- # Cascade remainders down (rounding each to roughly nearest microsecond)
294
- days = int(self.days)
295
-
296
- hours_f = round(self.hours + 24 * (self.days - days), 11)
297
- hours = int(hours_f)
298
-
299
- minutes_f = round(self.minutes + 60 * (hours_f - hours), 10)
300
- minutes = int(minutes_f)
301
-
302
- seconds_f = round(self.seconds + 60 * (minutes_f - minutes), 8)
303
- seconds = int(seconds_f)
304
-
305
- microseconds = round(self.microseconds + 1e6 * (seconds_f - seconds))
306
-
307
- # Constructor carries overflow back up with call to _fix()
308
- return self.__class__(years=self.years, months=self.months,
309
- days=days, hours=hours, minutes=minutes,
310
- seconds=seconds, microseconds=microseconds,
311
- leapdays=self.leapdays, year=self.year,
312
- month=self.month, day=self.day,
313
- weekday=self.weekday, hour=self.hour,
314
- minute=self.minute, second=self.second,
315
- microsecond=self.microsecond)
316
-
317
- def __add__(self, other):
318
- if isinstance(other, relativedelta):
319
- return self.__class__(years=other.years + self.years,
320
- months=other.months + self.months,
321
- days=other.days + self.days,
322
- hours=other.hours + self.hours,
323
- minutes=other.minutes + self.minutes,
324
- seconds=other.seconds + self.seconds,
325
- microseconds=(other.microseconds +
326
- self.microseconds),
327
- leapdays=other.leapdays or self.leapdays,
328
- year=(other.year if other.year is not None
329
- else self.year),
330
- month=(other.month if other.month is not None
331
- else self.month),
332
- day=(other.day if other.day is not None
333
- else self.day),
334
- weekday=(other.weekday if other.weekday is not None
335
- else self.weekday),
336
- hour=(other.hour if other.hour is not None
337
- else self.hour),
338
- minute=(other.minute if other.minute is not None
339
- else self.minute),
340
- second=(other.second if other.second is not None
341
- else self.second),
342
- microsecond=(other.microsecond if other.microsecond
343
- is not None else
344
- self.microsecond))
345
- if isinstance(other, datetime.timedelta):
346
- return self.__class__(years=self.years,
347
- months=self.months,
348
- days=self.days + other.days,
349
- hours=self.hours,
350
- minutes=self.minutes,
351
- seconds=self.seconds + other.seconds,
352
- microseconds=self.microseconds + other.microseconds,
353
- leapdays=self.leapdays,
354
- year=self.year,
355
- month=self.month,
356
- day=self.day,
357
- weekday=self.weekday,
358
- hour=self.hour,
359
- minute=self.minute,
360
- second=self.second,
361
- microsecond=self.microsecond)
362
- if not isinstance(other, datetime.date):
363
- return NotImplemented
364
- elif self._has_time and not isinstance(other, datetime.datetime):
365
- other = datetime.datetime.fromordinal(other.toordinal())
366
- year = (self.year or other.year)+self.years
367
- month = self.month or other.month
368
- if self.months:
369
- assert 1 <= abs(self.months) <= 12
370
- month += self.months
371
- if month > 12:
372
- year += 1
373
- month -= 12
374
- elif month < 1:
375
- year -= 1
376
- month += 12
377
- day = min(calendar.monthrange(year, month)[1],
378
- self.day or other.day)
379
- repl = {"year": year, "month": month, "day": day}
380
- for attr in ["hour", "minute", "second", "microsecond"]:
381
- value = getattr(self, attr)
382
- if value is not None:
383
- repl[attr] = value
384
- days = self.days
385
- if self.leapdays and month > 2 and calendar.isleap(year):
386
- days += self.leapdays
387
- ret = (other.replace(**repl)
388
- + datetime.timedelta(days=days,
389
- hours=self.hours,
390
- minutes=self.minutes,
391
- seconds=self.seconds,
392
- microseconds=self.microseconds))
393
- if self.weekday:
394
- weekday, nth = self.weekday.weekday, self.weekday.n or 1
395
- jumpdays = (abs(nth) - 1) * 7
396
- if nth > 0:
397
- jumpdays += (7 - ret.weekday() + weekday) % 7
398
- else:
399
- jumpdays += (ret.weekday() - weekday) % 7
400
- jumpdays *= -1
401
- ret += datetime.timedelta(days=jumpdays)
402
- return ret
403
-
404
- def __radd__(self, other):
405
- return self.__add__(other)
406
-
407
- def __rsub__(self, other):
408
- return self.__neg__().__radd__(other)
409
-
410
- def __sub__(self, other):
411
- if not isinstance(other, relativedelta):
412
- return NotImplemented # In case the other object defines __rsub__
413
- return self.__class__(years=self.years - other.years,
414
- months=self.months - other.months,
415
- days=self.days - other.days,
416
- hours=self.hours - other.hours,
417
- minutes=self.minutes - other.minutes,
418
- seconds=self.seconds - other.seconds,
419
- microseconds=self.microseconds - other.microseconds,
420
- leapdays=self.leapdays or other.leapdays,
421
- year=(self.year if self.year is not None
422
- else other.year),
423
- month=(self.month if self.month is not None else
424
- other.month),
425
- day=(self.day if self.day is not None else
426
- other.day),
427
- weekday=(self.weekday if self.weekday is not None else
428
- other.weekday),
429
- hour=(self.hour if self.hour is not None else
430
- other.hour),
431
- minute=(self.minute if self.minute is not None else
432
- other.minute),
433
- second=(self.second if self.second is not None else
434
- other.second),
435
- microsecond=(self.microsecond if self.microsecond
436
- is not None else
437
- other.microsecond))
438
-
439
- def __abs__(self):
440
- return self.__class__(years=abs(self.years),
441
- months=abs(self.months),
442
- days=abs(self.days),
443
- hours=abs(self.hours),
444
- minutes=abs(self.minutes),
445
- seconds=abs(self.seconds),
446
- microseconds=abs(self.microseconds),
447
- leapdays=self.leapdays,
448
- year=self.year,
449
- month=self.month,
450
- day=self.day,
451
- weekday=self.weekday,
452
- hour=self.hour,
453
- minute=self.minute,
454
- second=self.second,
455
- microsecond=self.microsecond)
456
-
457
- def __neg__(self):
458
- return self.__class__(years=-self.years,
459
- months=-self.months,
460
- days=-self.days,
461
- hours=-self.hours,
462
- minutes=-self.minutes,
463
- seconds=-self.seconds,
464
- microseconds=-self.microseconds,
465
- leapdays=self.leapdays,
466
- year=self.year,
467
- month=self.month,
468
- day=self.day,
469
- weekday=self.weekday,
470
- hour=self.hour,
471
- minute=self.minute,
472
- second=self.second,
473
- microsecond=self.microsecond)
474
-
475
- def __bool__(self):
476
- return not (not self.years and
477
- not self.months and
478
- not self.days and
479
- not self.hours and
480
- not self.minutes and
481
- not self.seconds and
482
- not self.microseconds and
483
- not self.leapdays and
484
- self.year is None and
485
- self.month is None and
486
- self.day is None and
487
- self.weekday is None and
488
- self.hour is None and
489
- self.minute is None and
490
- self.second is None and
491
- self.microsecond is None)
492
- # Compatibility with Python 2.x
493
- __nonzero__ = __bool__
494
-
495
- def __mul__(self, other):
496
- try:
497
- f = float(other)
498
- except TypeError:
499
- return NotImplemented
500
-
501
- return self.__class__(years=int(self.years * f),
502
- months=int(self.months * f),
503
- days=int(self.days * f),
504
- hours=int(self.hours * f),
505
- minutes=int(self.minutes * f),
506
- seconds=int(self.seconds * f),
507
- microseconds=int(self.microseconds * f),
508
- leapdays=self.leapdays,
509
- year=self.year,
510
- month=self.month,
511
- day=self.day,
512
- weekday=self.weekday,
513
- hour=self.hour,
514
- minute=self.minute,
515
- second=self.second,
516
- microsecond=self.microsecond)
517
-
518
- __rmul__ = __mul__
519
-
520
- def __eq__(self, other):
521
- if not isinstance(other, relativedelta):
522
- return NotImplemented
523
- if self.weekday or other.weekday:
524
- if not self.weekday or not other.weekday:
525
- return False
526
- if self.weekday.weekday != other.weekday.weekday:
527
- return False
528
- n1, n2 = self.weekday.n, other.weekday.n
529
- if n1 != n2 and not ((not n1 or n1 == 1) and (not n2 or n2 == 1)):
530
- return False
531
- return (self.years == other.years and
532
- self.months == other.months and
533
- self.days == other.days and
534
- self.hours == other.hours and
535
- self.minutes == other.minutes and
536
- self.seconds == other.seconds and
537
- self.microseconds == other.microseconds and
538
- self.leapdays == other.leapdays and
539
- self.year == other.year and
540
- self.month == other.month and
541
- self.day == other.day and
542
- self.hour == other.hour and
543
- self.minute == other.minute and
544
- self.second == other.second and
545
- self.microsecond == other.microsecond)
546
-
547
- def __hash__(self):
548
- return hash((
549
- self.weekday,
550
- self.years,
551
- self.months,
552
- self.days,
553
- self.hours,
554
- self.minutes,
555
- self.seconds,
556
- self.microseconds,
557
- self.leapdays,
558
- self.year,
559
- self.month,
560
- self.day,
561
- self.hour,
562
- self.minute,
563
- self.second,
564
- self.microsecond,
565
- ))
566
-
567
- def __ne__(self, other):
568
- return not self.__eq__(other)
569
-
570
- def __div__(self, other):
571
- try:
572
- reciprocal = 1 / float(other)
573
- except TypeError:
574
- return NotImplemented
575
-
576
- return self.__mul__(reciprocal)
577
-
578
- __truediv__ = __div__
579
-
580
- def __repr__(self):
581
- l = []
582
- for attr in ["years", "months", "days", "leapdays",
583
- "hours", "minutes", "seconds", "microseconds"]:
584
- value = getattr(self, attr)
585
- if value:
586
- l.append("{attr}={value:+g}".format(attr=attr, value=value))
587
- for attr in ["year", "month", "day", "weekday",
588
- "hour", "minute", "second", "microsecond"]:
589
- value = getattr(self, attr)
590
- if value is not None:
591
- l.append("{attr}={value}".format(attr=attr, value=repr(value)))
592
- return "{classname}({attrs})".format(classname=self.__class__.__name__,
593
- attrs=", ".join(l))
594
-
595
-
596
- def _sign(x):
597
- return int(copysign(1, x))
598
-
599
- # vim:ts=4:sw=4:et
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.11/site-packages/dateutil/rrule.py DELETED
@@ -1,1737 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- """
3
- The rrule module offers a small, complete, and very fast, implementation of
4
- the recurrence rules documented in the
5
- `iCalendar RFC <https://tools.ietf.org/html/rfc5545>`_,
6
- including support for caching of results.
7
- """
8
- import calendar
9
- import datetime
10
- import heapq
11
- import itertools
12
- import re
13
- import sys
14
- from functools import wraps
15
- # For warning about deprecation of until and count
16
- from warnings import warn
17
-
18
- from six import advance_iterator, integer_types
19
-
20
- from six.moves import _thread, range
21
-
22
- from ._common import weekday as weekdaybase
23
-
24
- try:
25
- from math import gcd
26
- except ImportError:
27
- from fractions import gcd
28
-
29
- __all__ = ["rrule", "rruleset", "rrulestr",
30
- "YEARLY", "MONTHLY", "WEEKLY", "DAILY",
31
- "HOURLY", "MINUTELY", "SECONDLY",
32
- "MO", "TU", "WE", "TH", "FR", "SA", "SU"]
33
-
34
- # Every mask is 7 days longer to handle cross-year weekly periods.
35
- M366MASK = tuple([1]*31+[2]*29+[3]*31+[4]*30+[5]*31+[6]*30 +
36
- [7]*31+[8]*31+[9]*30+[10]*31+[11]*30+[12]*31+[1]*7)
37
- M365MASK = list(M366MASK)
38
- M29, M30, M31 = list(range(1, 30)), list(range(1, 31)), list(range(1, 32))
39
- MDAY366MASK = tuple(M31+M29+M31+M30+M31+M30+M31+M31+M30+M31+M30+M31+M31[:7])
40
- MDAY365MASK = list(MDAY366MASK)
41
- M29, M30, M31 = list(range(-29, 0)), list(range(-30, 0)), list(range(-31, 0))
42
- NMDAY366MASK = tuple(M31+M29+M31+M30+M31+M30+M31+M31+M30+M31+M30+M31+M31[:7])
43
- NMDAY365MASK = list(NMDAY366MASK)
44
- M366RANGE = (0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366)
45
- M365RANGE = (0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365)
46
- WDAYMASK = [0, 1, 2, 3, 4, 5, 6]*55
47
- del M29, M30, M31, M365MASK[59], MDAY365MASK[59], NMDAY365MASK[31]
48
- MDAY365MASK = tuple(MDAY365MASK)
49
- M365MASK = tuple(M365MASK)
50
-
51
- FREQNAMES = ['YEARLY', 'MONTHLY', 'WEEKLY', 'DAILY', 'HOURLY', 'MINUTELY', 'SECONDLY']
52
-
53
- (YEARLY,
54
- MONTHLY,
55
- WEEKLY,
56
- DAILY,
57
- HOURLY,
58
- MINUTELY,
59
- SECONDLY) = list(range(7))
60
-
61
- # Imported on demand.
62
- easter = None
63
- parser = None
64
-
65
-
66
- class weekday(weekdaybase):
67
- """
68
- This version of weekday does not allow n = 0.
69
- """
70
- def __init__(self, wkday, n=None):
71
- if n == 0:
72
- raise ValueError("Can't create weekday with n==0")
73
-
74
- super(weekday, self).__init__(wkday, n)
75
-
76
-
77
- MO, TU, WE, TH, FR, SA, SU = weekdays = tuple(weekday(x) for x in range(7))
78
-
79
-
80
- def _invalidates_cache(f):
81
- """
82
- Decorator for rruleset methods which may invalidate the
83
- cached length.
84
- """
85
- @wraps(f)
86
- def inner_func(self, *args, **kwargs):
87
- rv = f(self, *args, **kwargs)
88
- self._invalidate_cache()
89
- return rv
90
-
91
- return inner_func
92
-
93
-
94
- class rrulebase(object):
95
- def __init__(self, cache=False):
96
- if cache:
97
- self._cache = []
98
- self._cache_lock = _thread.allocate_lock()
99
- self._invalidate_cache()
100
- else:
101
- self._cache = None
102
- self._cache_complete = False
103
- self._len = None
104
-
105
- def __iter__(self):
106
- if self._cache_complete:
107
- return iter(self._cache)
108
- elif self._cache is None:
109
- return self._iter()
110
- else:
111
- return self._iter_cached()
112
-
113
- def _invalidate_cache(self):
114
- if self._cache is not None:
115
- self._cache = []
116
- self._cache_complete = False
117
- self._cache_gen = self._iter()
118
-
119
- if self._cache_lock.locked():
120
- self._cache_lock.release()
121
-
122
- self._len = None
123
-
124
- def _iter_cached(self):
125
- i = 0
126
- gen = self._cache_gen
127
- cache = self._cache
128
- acquire = self._cache_lock.acquire
129
- release = self._cache_lock.release
130
- while gen:
131
- if i == len(cache):
132
- acquire()
133
- if self._cache_complete:
134
- break
135
- try:
136
- for j in range(10):
137
- cache.append(advance_iterator(gen))
138
- except StopIteration:
139
- self._cache_gen = gen = None
140
- self._cache_complete = True
141
- break
142
- release()
143
- yield cache[i]
144
- i += 1
145
- while i < self._len:
146
- yield cache[i]
147
- i += 1
148
-
149
- def __getitem__(self, item):
150
- if self._cache_complete:
151
- return self._cache[item]
152
- elif isinstance(item, slice):
153
- if item.step and item.step < 0:
154
- return list(iter(self))[item]
155
- else:
156
- return list(itertools.islice(self,
157
- item.start or 0,
158
- item.stop or sys.maxsize,
159
- item.step or 1))
160
- elif item >= 0:
161
- gen = iter(self)
162
- try:
163
- for i in range(item+1):
164
- res = advance_iterator(gen)
165
- except StopIteration:
166
- raise IndexError
167
- return res
168
- else:
169
- return list(iter(self))[item]
170
-
171
- def __contains__(self, item):
172
- if self._cache_complete:
173
- return item in self._cache
174
- else:
175
- for i in self:
176
- if i == item:
177
- return True
178
- elif i > item:
179
- return False
180
- return False
181
-
182
- # __len__() introduces a large performance penalty.
183
- def count(self):
184
- """ Returns the number of recurrences in this set. It will have go
185
- through the whole recurrence, if this hasn't been done before. """
186
- if self._len is None:
187
- for x in self:
188
- pass
189
- return self._len
190
-
191
- def before(self, dt, inc=False):
192
- """ Returns the last recurrence before the given datetime instance. The
193
- inc keyword defines what happens if dt is an occurrence. With
194
- inc=True, if dt itself is an occurrence, it will be returned. """
195
- if self._cache_complete:
196
- gen = self._cache
197
- else:
198
- gen = self
199
- last = None
200
- if inc:
201
- for i in gen:
202
- if i > dt:
203
- break
204
- last = i
205
- else:
206
- for i in gen:
207
- if i >= dt:
208
- break
209
- last = i
210
- return last
211
-
212
- def after(self, dt, inc=False):
213
- """ Returns the first recurrence after the given datetime instance. The
214
- inc keyword defines what happens if dt is an occurrence. With
215
- inc=True, if dt itself is an occurrence, it will be returned. """
216
- if self._cache_complete:
217
- gen = self._cache
218
- else:
219
- gen = self
220
- if inc:
221
- for i in gen:
222
- if i >= dt:
223
- return i
224
- else:
225
- for i in gen:
226
- if i > dt:
227
- return i
228
- return None
229
-
230
- def xafter(self, dt, count=None, inc=False):
231
- """
232
- Generator which yields up to `count` recurrences after the given
233
- datetime instance, equivalent to `after`.
234
-
235
- :param dt:
236
- The datetime at which to start generating recurrences.
237
-
238
- :param count:
239
- The maximum number of recurrences to generate. If `None` (default),
240
- dates are generated until the recurrence rule is exhausted.
241
-
242
- :param inc:
243
- If `dt` is an instance of the rule and `inc` is `True`, it is
244
- included in the output.
245
-
246
- :yields: Yields a sequence of `datetime` objects.
247
- """
248
-
249
- if self._cache_complete:
250
- gen = self._cache
251
- else:
252
- gen = self
253
-
254
- # Select the comparison function
255
- if inc:
256
- comp = lambda dc, dtc: dc >= dtc
257
- else:
258
- comp = lambda dc, dtc: dc > dtc
259
-
260
- # Generate dates
261
- n = 0
262
- for d in gen:
263
- if comp(d, dt):
264
- if count is not None:
265
- n += 1
266
- if n > count:
267
- break
268
-
269
- yield d
270
-
271
- def between(self, after, before, inc=False, count=1):
272
- """ Returns all the occurrences of the rrule between after and before.
273
- The inc keyword defines what happens if after and/or before are
274
- themselves occurrences. With inc=True, they will be included in the
275
- list, if they are found in the recurrence set. """
276
- if self._cache_complete:
277
- gen = self._cache
278
- else:
279
- gen = self
280
- started = False
281
- l = []
282
- if inc:
283
- for i in gen:
284
- if i > before:
285
- break
286
- elif not started:
287
- if i >= after:
288
- started = True
289
- l.append(i)
290
- else:
291
- l.append(i)
292
- else:
293
- for i in gen:
294
- if i >= before:
295
- break
296
- elif not started:
297
- if i > after:
298
- started = True
299
- l.append(i)
300
- else:
301
- l.append(i)
302
- return l
303
-
304
-
305
- class rrule(rrulebase):
306
- """
307
- That's the base of the rrule operation. It accepts all the keywords
308
- defined in the RFC as its constructor parameters (except byday,
309
- which was renamed to byweekday) and more. The constructor prototype is::
310
-
311
- rrule(freq)
312
-
313
- Where freq must be one of YEARLY, MONTHLY, WEEKLY, DAILY, HOURLY, MINUTELY,
314
- or SECONDLY.
315
-
316
- .. note::
317
- Per RFC section 3.3.10, recurrence instances falling on invalid dates
318
- and times are ignored rather than coerced:
319
-
320
- Recurrence rules may generate recurrence instances with an invalid
321
- date (e.g., February 30) or nonexistent local time (e.g., 1:30 AM
322
- on a day where the local time is moved forward by an hour at 1:00
323
- AM). Such recurrence instances MUST be ignored and MUST NOT be
324
- counted as part of the recurrence set.
325
-
326
- This can lead to possibly surprising behavior when, for example, the
327
- start date occurs at the end of the month:
328
-
329
- >>> from dateutil.rrule import rrule, MONTHLY
330
- >>> from datetime import datetime
331
- >>> start_date = datetime(2014, 12, 31)
332
- >>> list(rrule(freq=MONTHLY, count=4, dtstart=start_date))
333
- ... # doctest: +NORMALIZE_WHITESPACE
334
- [datetime.datetime(2014, 12, 31, 0, 0),
335
- datetime.datetime(2015, 1, 31, 0, 0),
336
- datetime.datetime(2015, 3, 31, 0, 0),
337
- datetime.datetime(2015, 5, 31, 0, 0)]
338
-
339
- Additionally, it supports the following keyword arguments:
340
-
341
- :param dtstart:
342
- The recurrence start. Besides being the base for the recurrence,
343
- missing parameters in the final recurrence instances will also be
344
- extracted from this date. If not given, datetime.now() will be used
345
- instead.
346
- :param interval:
347
- The interval between each freq iteration. For example, when using
348
- YEARLY, an interval of 2 means once every two years, but with HOURLY,
349
- it means once every two hours. The default interval is 1.
350
- :param wkst:
351
- The week start day. Must be one of the MO, TU, WE constants, or an
352
- integer, specifying the first day of the week. This will affect
353
- recurrences based on weekly periods. The default week start is got
354
- from calendar.firstweekday(), and may be modified by
355
- calendar.setfirstweekday().
356
- :param count:
357
- If given, this determines how many occurrences will be generated.
358
-
359
- .. note::
360
- As of version 2.5.0, the use of the keyword ``until`` in conjunction
361
- with ``count`` is deprecated, to make sure ``dateutil`` is fully
362
- compliant with `RFC-5545 Sec. 3.3.10 <https://tools.ietf.org/
363
- html/rfc5545#section-3.3.10>`_. Therefore, ``until`` and ``count``
364
- **must not** occur in the same call to ``rrule``.
365
- :param until:
366
- If given, this must be a datetime instance specifying the upper-bound
367
- limit of the recurrence. The last recurrence in the rule is the greatest
368
- datetime that is less than or equal to the value specified in the
369
- ``until`` parameter.
370
-
371
- .. note::
372
- As of version 2.5.0, the use of the keyword ``until`` in conjunction
373
- with ``count`` is deprecated, to make sure ``dateutil`` is fully
374
- compliant with `RFC-5545 Sec. 3.3.10 <https://tools.ietf.org/
375
- html/rfc5545#section-3.3.10>`_. Therefore, ``until`` and ``count``
376
- **must not** occur in the same call to ``rrule``.
377
- :param bysetpos:
378
- If given, it must be either an integer, or a sequence of integers,
379
- positive or negative. Each given integer will specify an occurrence
380
- number, corresponding to the nth occurrence of the rule inside the
381
- frequency period. For example, a bysetpos of -1 if combined with a
382
- MONTHLY frequency, and a byweekday of (MO, TU, WE, TH, FR), will
383
- result in the last work day of every month.
384
- :param bymonth:
385
- If given, it must be either an integer, or a sequence of integers,
386
- meaning the months to apply the recurrence to.
387
- :param bymonthday:
388
- If given, it must be either an integer, or a sequence of integers,
389
- meaning the month days to apply the recurrence to.
390
- :param byyearday:
391
- If given, it must be either an integer, or a sequence of integers,
392
- meaning the year days to apply the recurrence to.
393
- :param byeaster:
394
- If given, it must be either an integer, or a sequence of integers,
395
- positive or negative. Each integer will define an offset from the
396
- Easter Sunday. Passing the offset 0 to byeaster will yield the Easter
397
- Sunday itself. This is an extension to the RFC specification.
398
- :param byweekno:
399
- If given, it must be either an integer, or a sequence of integers,
400
- meaning the week numbers to apply the recurrence to. Week numbers
401
- have the meaning described in ISO8601, that is, the first week of
402
- the year is that containing at least four days of the new year.
403
- :param byweekday:
404
- If given, it must be either an integer (0 == MO), a sequence of
405
- integers, one of the weekday constants (MO, TU, etc), or a sequence
406
- of these constants. When given, these variables will define the
407
- weekdays where the recurrence will be applied. It's also possible to
408
- use an argument n for the weekday instances, which will mean the nth
409
- occurrence of this weekday in the period. For example, with MONTHLY,
410
- or with YEARLY and BYMONTH, using FR(+1) in byweekday will specify the
411
- first friday of the month where the recurrence happens. Notice that in
412
- the RFC documentation, this is specified as BYDAY, but was renamed to
413
- avoid the ambiguity of that keyword.
414
- :param byhour:
415
- If given, it must be either an integer, or a sequence of integers,
416
- meaning the hours to apply the recurrence to.
417
- :param byminute:
418
- If given, it must be either an integer, or a sequence of integers,
419
- meaning the minutes to apply the recurrence to.
420
- :param bysecond:
421
- If given, it must be either an integer, or a sequence of integers,
422
- meaning the seconds to apply the recurrence to.
423
- :param cache:
424
- If given, it must be a boolean value specifying to enable or disable
425
- caching of results. If you will use the same rrule instance multiple
426
- times, enabling caching will improve the performance considerably.
427
- """
428
- def __init__(self, freq, dtstart=None,
429
- interval=1, wkst=None, count=None, until=None, bysetpos=None,
430
- bymonth=None, bymonthday=None, byyearday=None, byeaster=None,
431
- byweekno=None, byweekday=None,
432
- byhour=None, byminute=None, bysecond=None,
433
- cache=False):
434
- super(rrule, self).__init__(cache)
435
- global easter
436
- if not dtstart:
437
- if until and until.tzinfo:
438
- dtstart = datetime.datetime.now(tz=until.tzinfo).replace(microsecond=0)
439
- else:
440
- dtstart = datetime.datetime.now().replace(microsecond=0)
441
- elif not isinstance(dtstart, datetime.datetime):
442
- dtstart = datetime.datetime.fromordinal(dtstart.toordinal())
443
- else:
444
- dtstart = dtstart.replace(microsecond=0)
445
- self._dtstart = dtstart
446
- self._tzinfo = dtstart.tzinfo
447
- self._freq = freq
448
- self._interval = interval
449
- self._count = count
450
-
451
- # Cache the original byxxx rules, if they are provided, as the _byxxx
452
- # attributes do not necessarily map to the inputs, and this can be
453
- # a problem in generating the strings. Only store things if they've
454
- # been supplied (the string retrieval will just use .get())
455
- self._original_rule = {}
456
-
457
- if until and not isinstance(until, datetime.datetime):
458
- until = datetime.datetime.fromordinal(until.toordinal())
459
- self._until = until
460
-
461
- if self._dtstart and self._until:
462
- if (self._dtstart.tzinfo is not None) != (self._until.tzinfo is not None):
463
- # According to RFC5545 Section 3.3.10:
464
- # https://tools.ietf.org/html/rfc5545#section-3.3.10
465
- #
466
- # > If the "DTSTART" property is specified as a date with UTC
467
- # > time or a date with local time and time zone reference,
468
- # > then the UNTIL rule part MUST be specified as a date with
469
- # > UTC time.
470
- raise ValueError(
471
- 'RRULE UNTIL values must be specified in UTC when DTSTART '
472
- 'is timezone-aware'
473
- )
474
-
475
- if count is not None and until:
476
- warn("Using both 'count' and 'until' is inconsistent with RFC 5545"
477
- " and has been deprecated in dateutil. Future versions will "
478
- "raise an error.", DeprecationWarning)
479
-
480
- if wkst is None:
481
- self._wkst = calendar.firstweekday()
482
- elif isinstance(wkst, integer_types):
483
- self._wkst = wkst
484
- else:
485
- self._wkst = wkst.weekday
486
-
487
- if bysetpos is None:
488
- self._bysetpos = None
489
- elif isinstance(bysetpos, integer_types):
490
- if bysetpos == 0 or not (-366 <= bysetpos <= 366):
491
- raise ValueError("bysetpos must be between 1 and 366, "
492
- "or between -366 and -1")
493
- self._bysetpos = (bysetpos,)
494
- else:
495
- self._bysetpos = tuple(bysetpos)
496
- for pos in self._bysetpos:
497
- if pos == 0 or not (-366 <= pos <= 366):
498
- raise ValueError("bysetpos must be between 1 and 366, "
499
- "or between -366 and -1")
500
-
501
- if self._bysetpos:
502
- self._original_rule['bysetpos'] = self._bysetpos
503
-
504
- if (byweekno is None and byyearday is None and bymonthday is None and
505
- byweekday is None and byeaster is None):
506
- if freq == YEARLY:
507
- if bymonth is None:
508
- bymonth = dtstart.month
509
- self._original_rule['bymonth'] = None
510
- bymonthday = dtstart.day
511
- self._original_rule['bymonthday'] = None
512
- elif freq == MONTHLY:
513
- bymonthday = dtstart.day
514
- self._original_rule['bymonthday'] = None
515
- elif freq == WEEKLY:
516
- byweekday = dtstart.weekday()
517
- self._original_rule['byweekday'] = None
518
-
519
- # bymonth
520
- if bymonth is None:
521
- self._bymonth = None
522
- else:
523
- if isinstance(bymonth, integer_types):
524
- bymonth = (bymonth,)
525
-
526
- self._bymonth = tuple(sorted(set(bymonth)))
527
-
528
- if 'bymonth' not in self._original_rule:
529
- self._original_rule['bymonth'] = self._bymonth
530
-
531
- # byyearday
532
- if byyearday is None:
533
- self._byyearday = None
534
- else:
535
- if isinstance(byyearday, integer_types):
536
- byyearday = (byyearday,)
537
-
538
- self._byyearday = tuple(sorted(set(byyearday)))
539
- self._original_rule['byyearday'] = self._byyearday
540
-
541
- # byeaster
542
- if byeaster is not None:
543
- if not easter:
544
- from dateutil import easter
545
- if isinstance(byeaster, integer_types):
546
- self._byeaster = (byeaster,)
547
- else:
548
- self._byeaster = tuple(sorted(byeaster))
549
-
550
- self._original_rule['byeaster'] = self._byeaster
551
- else:
552
- self._byeaster = None
553
-
554
- # bymonthday
555
- if bymonthday is None:
556
- self._bymonthday = ()
557
- self._bynmonthday = ()
558
- else:
559
- if isinstance(bymonthday, integer_types):
560
- bymonthday = (bymonthday,)
561
-
562
- bymonthday = set(bymonthday) # Ensure it's unique
563
-
564
- self._bymonthday = tuple(sorted(x for x in bymonthday if x > 0))
565
- self._bynmonthday = tuple(sorted(x for x in bymonthday if x < 0))
566
-
567
- # Storing positive numbers first, then negative numbers
568
- if 'bymonthday' not in self._original_rule:
569
- self._original_rule['bymonthday'] = tuple(
570
- itertools.chain(self._bymonthday, self._bynmonthday))
571
-
572
- # byweekno
573
- if byweekno is None:
574
- self._byweekno = None
575
- else:
576
- if isinstance(byweekno, integer_types):
577
- byweekno = (byweekno,)
578
-
579
- self._byweekno = tuple(sorted(set(byweekno)))
580
-
581
- self._original_rule['byweekno'] = self._byweekno
582
-
583
- # byweekday / bynweekday
584
- if byweekday is None:
585
- self._byweekday = None
586
- self._bynweekday = None
587
- else:
588
- # If it's one of the valid non-sequence types, convert to a
589
- # single-element sequence before the iterator that builds the
590
- # byweekday set.
591
- if isinstance(byweekday, integer_types) or hasattr(byweekday, "n"):
592
- byweekday = (byweekday,)
593
-
594
- self._byweekday = set()
595
- self._bynweekday = set()
596
- for wday in byweekday:
597
- if isinstance(wday, integer_types):
598
- self._byweekday.add(wday)
599
- elif not wday.n or freq > MONTHLY:
600
- self._byweekday.add(wday.weekday)
601
- else:
602
- self._bynweekday.add((wday.weekday, wday.n))
603
-
604
- if not self._byweekday:
605
- self._byweekday = None
606
- elif not self._bynweekday:
607
- self._bynweekday = None
608
-
609
- if self._byweekday is not None:
610
- self._byweekday = tuple(sorted(self._byweekday))
611
- orig_byweekday = [weekday(x) for x in self._byweekday]
612
- else:
613
- orig_byweekday = ()
614
-
615
- if self._bynweekday is not None:
616
- self._bynweekday = tuple(sorted(self._bynweekday))
617
- orig_bynweekday = [weekday(*x) for x in self._bynweekday]
618
- else:
619
- orig_bynweekday = ()
620
-
621
- if 'byweekday' not in self._original_rule:
622
- self._original_rule['byweekday'] = tuple(itertools.chain(
623
- orig_byweekday, orig_bynweekday))
624
-
625
- # byhour
626
- if byhour is None:
627
- if freq < HOURLY:
628
- self._byhour = {dtstart.hour}
629
- else:
630
- self._byhour = None
631
- else:
632
- if isinstance(byhour, integer_types):
633
- byhour = (byhour,)
634
-
635
- if freq == HOURLY:
636
- self._byhour = self.__construct_byset(start=dtstart.hour,
637
- byxxx=byhour,
638
- base=24)
639
- else:
640
- self._byhour = set(byhour)
641
-
642
- self._byhour = tuple(sorted(self._byhour))
643
- self._original_rule['byhour'] = self._byhour
644
-
645
- # byminute
646
- if byminute is None:
647
- if freq < MINUTELY:
648
- self._byminute = {dtstart.minute}
649
- else:
650
- self._byminute = None
651
- else:
652
- if isinstance(byminute, integer_types):
653
- byminute = (byminute,)
654
-
655
- if freq == MINUTELY:
656
- self._byminute = self.__construct_byset(start=dtstart.minute,
657
- byxxx=byminute,
658
- base=60)
659
- else:
660
- self._byminute = set(byminute)
661
-
662
- self._byminute = tuple(sorted(self._byminute))
663
- self._original_rule['byminute'] = self._byminute
664
-
665
- # bysecond
666
- if bysecond is None:
667
- if freq < SECONDLY:
668
- self._bysecond = ((dtstart.second,))
669
- else:
670
- self._bysecond = None
671
- else:
672
- if isinstance(bysecond, integer_types):
673
- bysecond = (bysecond,)
674
-
675
- self._bysecond = set(bysecond)
676
-
677
- if freq == SECONDLY:
678
- self._bysecond = self.__construct_byset(start=dtstart.second,
679
- byxxx=bysecond,
680
- base=60)
681
- else:
682
- self._bysecond = set(bysecond)
683
-
684
- self._bysecond = tuple(sorted(self._bysecond))
685
- self._original_rule['bysecond'] = self._bysecond
686
-
687
- if self._freq >= HOURLY:
688
- self._timeset = None
689
- else:
690
- self._timeset = []
691
- for hour in self._byhour:
692
- for minute in self._byminute:
693
- for second in self._bysecond:
694
- self._timeset.append(
695
- datetime.time(hour, minute, second,
696
- tzinfo=self._tzinfo))
697
- self._timeset.sort()
698
- self._timeset = tuple(self._timeset)
699
-
700
- def __str__(self):
701
- """
702
- Output a string that would generate this RRULE if passed to rrulestr.
703
- This is mostly compatible with RFC5545, except for the
704
- dateutil-specific extension BYEASTER.
705
- """
706
-
707
- output = []
708
- h, m, s = [None] * 3
709
- if self._dtstart:
710
- output.append(self._dtstart.strftime('DTSTART:%Y%m%dT%H%M%S'))
711
- h, m, s = self._dtstart.timetuple()[3:6]
712
-
713
- parts = ['FREQ=' + FREQNAMES[self._freq]]
714
- if self._interval != 1:
715
- parts.append('INTERVAL=' + str(self._interval))
716
-
717
- if self._wkst:
718
- parts.append('WKST=' + repr(weekday(self._wkst))[0:2])
719
-
720
- if self._count is not None:
721
- parts.append('COUNT=' + str(self._count))
722
-
723
- if self._until:
724
- parts.append(self._until.strftime('UNTIL=%Y%m%dT%H%M%S'))
725
-
726
- if self._original_rule.get('byweekday') is not None:
727
- # The str() method on weekday objects doesn't generate
728
- # RFC5545-compliant strings, so we should modify that.
729
- original_rule = dict(self._original_rule)
730
- wday_strings = []
731
- for wday in original_rule['byweekday']:
732
- if wday.n:
733
- wday_strings.append('{n:+d}{wday}'.format(
734
- n=wday.n,
735
- wday=repr(wday)[0:2]))
736
- else:
737
- wday_strings.append(repr(wday))
738
-
739
- original_rule['byweekday'] = wday_strings
740
- else:
741
- original_rule = self._original_rule
742
-
743
- partfmt = '{name}={vals}'
744
- for name, key in [('BYSETPOS', 'bysetpos'),
745
- ('BYMONTH', 'bymonth'),
746
- ('BYMONTHDAY', 'bymonthday'),
747
- ('BYYEARDAY', 'byyearday'),
748
- ('BYWEEKNO', 'byweekno'),
749
- ('BYDAY', 'byweekday'),
750
- ('BYHOUR', 'byhour'),
751
- ('BYMINUTE', 'byminute'),
752
- ('BYSECOND', 'bysecond'),
753
- ('BYEASTER', 'byeaster')]:
754
- value = original_rule.get(key)
755
- if value:
756
- parts.append(partfmt.format(name=name, vals=(','.join(str(v)
757
- for v in value))))
758
-
759
- output.append('RRULE:' + ';'.join(parts))
760
- return '\n'.join(output)
761
-
762
- def replace(self, **kwargs):
763
- """Return new rrule with same attributes except for those attributes given new
764
- values by whichever keyword arguments are specified."""
765
- new_kwargs = {"interval": self._interval,
766
- "count": self._count,
767
- "dtstart": self._dtstart,
768
- "freq": self._freq,
769
- "until": self._until,
770
- "wkst": self._wkst,
771
- "cache": False if self._cache is None else True }
772
- new_kwargs.update(self._original_rule)
773
- new_kwargs.update(kwargs)
774
- return rrule(**new_kwargs)
775
-
776
- def _iter(self):
777
- year, month, day, hour, minute, second, weekday, yearday, _ = \
778
- self._dtstart.timetuple()
779
-
780
- # Some local variables to speed things up a bit
781
- freq = self._freq
782
- interval = self._interval
783
- wkst = self._wkst
784
- until = self._until
785
- bymonth = self._bymonth
786
- byweekno = self._byweekno
787
- byyearday = self._byyearday
788
- byweekday = self._byweekday
789
- byeaster = self._byeaster
790
- bymonthday = self._bymonthday
791
- bynmonthday = self._bynmonthday
792
- bysetpos = self._bysetpos
793
- byhour = self._byhour
794
- byminute = self._byminute
795
- bysecond = self._bysecond
796
-
797
- ii = _iterinfo(self)
798
- ii.rebuild(year, month)
799
-
800
- getdayset = {YEARLY: ii.ydayset,
801
- MONTHLY: ii.mdayset,
802
- WEEKLY: ii.wdayset,
803
- DAILY: ii.ddayset,
804
- HOURLY: ii.ddayset,
805
- MINUTELY: ii.ddayset,
806
- SECONDLY: ii.ddayset}[freq]
807
-
808
- if freq < HOURLY:
809
- timeset = self._timeset
810
- else:
811
- gettimeset = {HOURLY: ii.htimeset,
812
- MINUTELY: ii.mtimeset,
813
- SECONDLY: ii.stimeset}[freq]
814
- if ((freq >= HOURLY and
815
- self._byhour and hour not in self._byhour) or
816
- (freq >= MINUTELY and
817
- self._byminute and minute not in self._byminute) or
818
- (freq >= SECONDLY and
819
- self._bysecond and second not in self._bysecond)):
820
- timeset = ()
821
- else:
822
- timeset = gettimeset(hour, minute, second)
823
-
824
- total = 0
825
- count = self._count
826
- while True:
827
- # Get dayset with the right frequency
828
- dayset, start, end = getdayset(year, month, day)
829
-
830
- # Do the "hard" work ;-)
831
- filtered = False
832
- for i in dayset[start:end]:
833
- if ((bymonth and ii.mmask[i] not in bymonth) or
834
- (byweekno and not ii.wnomask[i]) or
835
- (byweekday and ii.wdaymask[i] not in byweekday) or
836
- (ii.nwdaymask and not ii.nwdaymask[i]) or
837
- (byeaster and not ii.eastermask[i]) or
838
- ((bymonthday or bynmonthday) and
839
- ii.mdaymask[i] not in bymonthday and
840
- ii.nmdaymask[i] not in bynmonthday) or
841
- (byyearday and
842
- ((i < ii.yearlen and i+1 not in byyearday and
843
- -ii.yearlen+i not in byyearday) or
844
- (i >= ii.yearlen and i+1-ii.yearlen not in byyearday and
845
- -ii.nextyearlen+i-ii.yearlen not in byyearday)))):
846
- dayset[i] = None
847
- filtered = True
848
-
849
- # Output results
850
- if bysetpos and timeset:
851
- poslist = []
852
- for pos in bysetpos:
853
- if pos < 0:
854
- daypos, timepos = divmod(pos, len(timeset))
855
- else:
856
- daypos, timepos = divmod(pos-1, len(timeset))
857
- try:
858
- i = [x for x in dayset[start:end]
859
- if x is not None][daypos]
860
- time = timeset[timepos]
861
- except IndexError:
862
- pass
863
- else:
864
- date = datetime.date.fromordinal(ii.yearordinal+i)
865
- res = datetime.datetime.combine(date, time)
866
- if res not in poslist:
867
- poslist.append(res)
868
- poslist.sort()
869
- for res in poslist:
870
- if until and res > until:
871
- self._len = total
872
- return
873
- elif res >= self._dtstart:
874
- if count is not None:
875
- count -= 1
876
- if count < 0:
877
- self._len = total
878
- return
879
- total += 1
880
- yield res
881
- else:
882
- for i in dayset[start:end]:
883
- if i is not None:
884
- date = datetime.date.fromordinal(ii.yearordinal + i)
885
- for time in timeset:
886
- res = datetime.datetime.combine(date, time)
887
- if until and res > until:
888
- self._len = total
889
- return
890
- elif res >= self._dtstart:
891
- if count is not None:
892
- count -= 1
893
- if count < 0:
894
- self._len = total
895
- return
896
-
897
- total += 1
898
- yield res
899
-
900
- # Handle frequency and interval
901
- fixday = False
902
- if freq == YEARLY:
903
- year += interval
904
- if year > datetime.MAXYEAR:
905
- self._len = total
906
- return
907
- ii.rebuild(year, month)
908
- elif freq == MONTHLY:
909
- month += interval
910
- if month > 12:
911
- div, mod = divmod(month, 12)
912
- month = mod
913
- year += div
914
- if month == 0:
915
- month = 12
916
- year -= 1
917
- if year > datetime.MAXYEAR:
918
- self._len = total
919
- return
920
- ii.rebuild(year, month)
921
- elif freq == WEEKLY:
922
- if wkst > weekday:
923
- day += -(weekday+1+(6-wkst))+self._interval*7
924
- else:
925
- day += -(weekday-wkst)+self._interval*7
926
- weekday = wkst
927
- fixday = True
928
- elif freq == DAILY:
929
- day += interval
930
- fixday = True
931
- elif freq == HOURLY:
932
- if filtered:
933
- # Jump to one iteration before next day
934
- hour += ((23-hour)//interval)*interval
935
-
936
- if byhour:
937
- ndays, hour = self.__mod_distance(value=hour,
938
- byxxx=self._byhour,
939
- base=24)
940
- else:
941
- ndays, hour = divmod(hour+interval, 24)
942
-
943
- if ndays:
944
- day += ndays
945
- fixday = True
946
-
947
- timeset = gettimeset(hour, minute, second)
948
- elif freq == MINUTELY:
949
- if filtered:
950
- # Jump to one iteration before next day
951
- minute += ((1439-(hour*60+minute))//interval)*interval
952
-
953
- valid = False
954
- rep_rate = (24*60)
955
- for j in range(rep_rate // gcd(interval, rep_rate)):
956
- if byminute:
957
- nhours, minute = \
958
- self.__mod_distance(value=minute,
959
- byxxx=self._byminute,
960
- base=60)
961
- else:
962
- nhours, minute = divmod(minute+interval, 60)
963
-
964
- div, hour = divmod(hour+nhours, 24)
965
- if div:
966
- day += div
967
- fixday = True
968
- filtered = False
969
-
970
- if not byhour or hour in byhour:
971
- valid = True
972
- break
973
-
974
- if not valid:
975
- raise ValueError('Invalid combination of interval and ' +
976
- 'byhour resulting in empty rule.')
977
-
978
- timeset = gettimeset(hour, minute, second)
979
- elif freq == SECONDLY:
980
- if filtered:
981
- # Jump to one iteration before next day
982
- second += (((86399 - (hour * 3600 + minute * 60 + second))
983
- // interval) * interval)
984
-
985
- rep_rate = (24 * 3600)
986
- valid = False
987
- for j in range(0, rep_rate // gcd(interval, rep_rate)):
988
- if bysecond:
989
- nminutes, second = \
990
- self.__mod_distance(value=second,
991
- byxxx=self._bysecond,
992
- base=60)
993
- else:
994
- nminutes, second = divmod(second+interval, 60)
995
-
996
- div, minute = divmod(minute+nminutes, 60)
997
- if div:
998
- hour += div
999
- div, hour = divmod(hour, 24)
1000
- if div:
1001
- day += div
1002
- fixday = True
1003
-
1004
- if ((not byhour or hour in byhour) and
1005
- (not byminute or minute in byminute) and
1006
- (not bysecond or second in bysecond)):
1007
- valid = True
1008
- break
1009
-
1010
- if not valid:
1011
- raise ValueError('Invalid combination of interval, ' +
1012
- 'byhour and byminute resulting in empty' +
1013
- ' rule.')
1014
-
1015
- timeset = gettimeset(hour, minute, second)
1016
-
1017
- if fixday and day > 28:
1018
- daysinmonth = calendar.monthrange(year, month)[1]
1019
- if day > daysinmonth:
1020
- while day > daysinmonth:
1021
- day -= daysinmonth
1022
- month += 1
1023
- if month == 13:
1024
- month = 1
1025
- year += 1
1026
- if year > datetime.MAXYEAR:
1027
- self._len = total
1028
- return
1029
- daysinmonth = calendar.monthrange(year, month)[1]
1030
- ii.rebuild(year, month)
1031
-
1032
- def __construct_byset(self, start, byxxx, base):
1033
- """
1034
- If a `BYXXX` sequence is passed to the constructor at the same level as
1035
- `FREQ` (e.g. `FREQ=HOURLY,BYHOUR={2,4,7},INTERVAL=3`), there are some
1036
- specifications which cannot be reached given some starting conditions.
1037
-
1038
- This occurs whenever the interval is not coprime with the base of a
1039
- given unit and the difference between the starting position and the
1040
- ending position is not coprime with the greatest common denominator
1041
- between the interval and the base. For example, with a FREQ of hourly
1042
- starting at 17:00 and an interval of 4, the only valid values for
1043
- BYHOUR would be {21, 1, 5, 9, 13, 17}, because 4 and 24 are not
1044
- coprime.
1045
-
1046
- :param start:
1047
- Specifies the starting position.
1048
- :param byxxx:
1049
- An iterable containing the list of allowed values.
1050
- :param base:
1051
- The largest allowable value for the specified frequency (e.g.
1052
- 24 hours, 60 minutes).
1053
-
1054
- This does not preserve the type of the iterable, returning a set, since
1055
- the values should be unique and the order is irrelevant, this will
1056
- speed up later lookups.
1057
-
1058
- In the event of an empty set, raises a :exception:`ValueError`, as this
1059
- results in an empty rrule.
1060
- """
1061
-
1062
- cset = set()
1063
-
1064
- # Support a single byxxx value.
1065
- if isinstance(byxxx, integer_types):
1066
- byxxx = (byxxx, )
1067
-
1068
- for num in byxxx:
1069
- i_gcd = gcd(self._interval, base)
1070
- # Use divmod rather than % because we need to wrap negative nums.
1071
- if i_gcd == 1 or divmod(num - start, i_gcd)[1] == 0:
1072
- cset.add(num)
1073
-
1074
- if len(cset) == 0:
1075
- raise ValueError("Invalid rrule byxxx generates an empty set.")
1076
-
1077
- return cset
1078
-
1079
- def __mod_distance(self, value, byxxx, base):
1080
- """
1081
- Calculates the next value in a sequence where the `FREQ` parameter is
1082
- specified along with a `BYXXX` parameter at the same "level"
1083
- (e.g. `HOURLY` specified with `BYHOUR`).
1084
-
1085
- :param value:
1086
- The old value of the component.
1087
- :param byxxx:
1088
- The `BYXXX` set, which should have been generated by
1089
- `rrule._construct_byset`, or something else which checks that a
1090
- valid rule is present.
1091
- :param base:
1092
- The largest allowable value for the specified frequency (e.g.
1093
- 24 hours, 60 minutes).
1094
-
1095
- If a valid value is not found after `base` iterations (the maximum
1096
- number before the sequence would start to repeat), this raises a
1097
- :exception:`ValueError`, as no valid values were found.
1098
-
1099
- This returns a tuple of `divmod(n*interval, base)`, where `n` is the
1100
- smallest number of `interval` repetitions until the next specified
1101
- value in `byxxx` is found.
1102
- """
1103
- accumulator = 0
1104
- for ii in range(1, base + 1):
1105
- # Using divmod() over % to account for negative intervals
1106
- div, value = divmod(value + self._interval, base)
1107
- accumulator += div
1108
- if value in byxxx:
1109
- return (accumulator, value)
1110
-
1111
-
1112
- class _iterinfo(object):
1113
- __slots__ = ["rrule", "lastyear", "lastmonth",
1114
- "yearlen", "nextyearlen", "yearordinal", "yearweekday",
1115
- "mmask", "mrange", "mdaymask", "nmdaymask",
1116
- "wdaymask", "wnomask", "nwdaymask", "eastermask"]
1117
-
1118
- def __init__(self, rrule):
1119
- for attr in self.__slots__:
1120
- setattr(self, attr, None)
1121
- self.rrule = rrule
1122
-
1123
- def rebuild(self, year, month):
1124
- # Every mask is 7 days longer to handle cross-year weekly periods.
1125
- rr = self.rrule
1126
- if year != self.lastyear:
1127
- self.yearlen = 365 + calendar.isleap(year)
1128
- self.nextyearlen = 365 + calendar.isleap(year + 1)
1129
- firstyday = datetime.date(year, 1, 1)
1130
- self.yearordinal = firstyday.toordinal()
1131
- self.yearweekday = firstyday.weekday()
1132
-
1133
- wday = datetime.date(year, 1, 1).weekday()
1134
- if self.yearlen == 365:
1135
- self.mmask = M365MASK
1136
- self.mdaymask = MDAY365MASK
1137
- self.nmdaymask = NMDAY365MASK
1138
- self.wdaymask = WDAYMASK[wday:]
1139
- self.mrange = M365RANGE
1140
- else:
1141
- self.mmask = M366MASK
1142
- self.mdaymask = MDAY366MASK
1143
- self.nmdaymask = NMDAY366MASK
1144
- self.wdaymask = WDAYMASK[wday:]
1145
- self.mrange = M366RANGE
1146
-
1147
- if not rr._byweekno:
1148
- self.wnomask = None
1149
- else:
1150
- self.wnomask = [0]*(self.yearlen+7)
1151
- # no1wkst = firstwkst = self.wdaymask.index(rr._wkst)
1152
- no1wkst = firstwkst = (7-self.yearweekday+rr._wkst) % 7
1153
- if no1wkst >= 4:
1154
- no1wkst = 0
1155
- # Number of days in the year, plus the days we got
1156
- # from last year.
1157
- wyearlen = self.yearlen+(self.yearweekday-rr._wkst) % 7
1158
- else:
1159
- # Number of days in the year, minus the days we
1160
- # left in last year.
1161
- wyearlen = self.yearlen-no1wkst
1162
- div, mod = divmod(wyearlen, 7)
1163
- numweeks = div+mod//4
1164
- for n in rr._byweekno:
1165
- if n < 0:
1166
- n += numweeks+1
1167
- if not (0 < n <= numweeks):
1168
- continue
1169
- if n > 1:
1170
- i = no1wkst+(n-1)*7
1171
- if no1wkst != firstwkst:
1172
- i -= 7-firstwkst
1173
- else:
1174
- i = no1wkst
1175
- for j in range(7):
1176
- self.wnomask[i] = 1
1177
- i += 1
1178
- if self.wdaymask[i] == rr._wkst:
1179
- break
1180
- if 1 in rr._byweekno:
1181
- # Check week number 1 of next year as well
1182
- # TODO: Check -numweeks for next year.
1183
- i = no1wkst+numweeks*7
1184
- if no1wkst != firstwkst:
1185
- i -= 7-firstwkst
1186
- if i < self.yearlen:
1187
- # If week starts in next year, we
1188
- # don't care about it.
1189
- for j in range(7):
1190
- self.wnomask[i] = 1
1191
- i += 1
1192
- if self.wdaymask[i] == rr._wkst:
1193
- break
1194
- if no1wkst:
1195
- # Check last week number of last year as
1196
- # well. If no1wkst is 0, either the year
1197
- # started on week start, or week number 1
1198
- # got days from last year, so there are no
1199
- # days from last year's last week number in
1200
- # this year.
1201
- if -1 not in rr._byweekno:
1202
- lyearweekday = datetime.date(year-1, 1, 1).weekday()
1203
- lno1wkst = (7-lyearweekday+rr._wkst) % 7
1204
- lyearlen = 365+calendar.isleap(year-1)
1205
- if lno1wkst >= 4:
1206
- lno1wkst = 0
1207
- lnumweeks = 52+(lyearlen +
1208
- (lyearweekday-rr._wkst) % 7) % 7//4
1209
- else:
1210
- lnumweeks = 52+(self.yearlen-no1wkst) % 7//4
1211
- else:
1212
- lnumweeks = -1
1213
- if lnumweeks in rr._byweekno:
1214
- for i in range(no1wkst):
1215
- self.wnomask[i] = 1
1216
-
1217
- if (rr._bynweekday and (month != self.lastmonth or
1218
- year != self.lastyear)):
1219
- ranges = []
1220
- if rr._freq == YEARLY:
1221
- if rr._bymonth:
1222
- for month in rr._bymonth:
1223
- ranges.append(self.mrange[month-1:month+1])
1224
- else:
1225
- ranges = [(0, self.yearlen)]
1226
- elif rr._freq == MONTHLY:
1227
- ranges = [self.mrange[month-1:month+1]]
1228
- if ranges:
1229
- # Weekly frequency won't get here, so we may not
1230
- # care about cross-year weekly periods.
1231
- self.nwdaymask = [0]*self.yearlen
1232
- for first, last in ranges:
1233
- last -= 1
1234
- for wday, n in rr._bynweekday:
1235
- if n < 0:
1236
- i = last+(n+1)*7
1237
- i -= (self.wdaymask[i]-wday) % 7
1238
- else:
1239
- i = first+(n-1)*7
1240
- i += (7-self.wdaymask[i]+wday) % 7
1241
- if first <= i <= last:
1242
- self.nwdaymask[i] = 1
1243
-
1244
- if rr._byeaster:
1245
- self.eastermask = [0]*(self.yearlen+7)
1246
- eyday = easter.easter(year).toordinal()-self.yearordinal
1247
- for offset in rr._byeaster:
1248
- self.eastermask[eyday+offset] = 1
1249
-
1250
- self.lastyear = year
1251
- self.lastmonth = month
1252
-
1253
- def ydayset(self, year, month, day):
1254
- return list(range(self.yearlen)), 0, self.yearlen
1255
-
1256
- def mdayset(self, year, month, day):
1257
- dset = [None]*self.yearlen
1258
- start, end = self.mrange[month-1:month+1]
1259
- for i in range(start, end):
1260
- dset[i] = i
1261
- return dset, start, end
1262
-
1263
- def wdayset(self, year, month, day):
1264
- # We need to handle cross-year weeks here.
1265
- dset = [None]*(self.yearlen+7)
1266
- i = datetime.date(year, month, day).toordinal()-self.yearordinal
1267
- start = i
1268
- for j in range(7):
1269
- dset[i] = i
1270
- i += 1
1271
- # if (not (0 <= i < self.yearlen) or
1272
- # self.wdaymask[i] == self.rrule._wkst):
1273
- # This will cross the year boundary, if necessary.
1274
- if self.wdaymask[i] == self.rrule._wkst:
1275
- break
1276
- return dset, start, i
1277
-
1278
- def ddayset(self, year, month, day):
1279
- dset = [None] * self.yearlen
1280
- i = datetime.date(year, month, day).toordinal() - self.yearordinal
1281
- dset[i] = i
1282
- return dset, i, i + 1
1283
-
1284
- def htimeset(self, hour, minute, second):
1285
- tset = []
1286
- rr = self.rrule
1287
- for minute in rr._byminute:
1288
- for second in rr._bysecond:
1289
- tset.append(datetime.time(hour, minute, second,
1290
- tzinfo=rr._tzinfo))
1291
- tset.sort()
1292
- return tset
1293
-
1294
- def mtimeset(self, hour, minute, second):
1295
- tset = []
1296
- rr = self.rrule
1297
- for second in rr._bysecond:
1298
- tset.append(datetime.time(hour, minute, second, tzinfo=rr._tzinfo))
1299
- tset.sort()
1300
- return tset
1301
-
1302
- def stimeset(self, hour, minute, second):
1303
- return (datetime.time(hour, minute, second,
1304
- tzinfo=self.rrule._tzinfo),)
1305
-
1306
-
1307
- class rruleset(rrulebase):
1308
- """ The rruleset type allows more complex recurrence setups, mixing
1309
- multiple rules, dates, exclusion rules, and exclusion dates. The type
1310
- constructor takes the following keyword arguments:
1311
-
1312
- :param cache: If True, caching of results will be enabled, improving
1313
- performance of multiple queries considerably. """
1314
-
1315
- class _genitem(object):
1316
- def __init__(self, genlist, gen):
1317
- try:
1318
- self.dt = advance_iterator(gen)
1319
- genlist.append(self)
1320
- except StopIteration:
1321
- pass
1322
- self.genlist = genlist
1323
- self.gen = gen
1324
-
1325
- def __next__(self):
1326
- try:
1327
- self.dt = advance_iterator(self.gen)
1328
- except StopIteration:
1329
- if self.genlist[0] is self:
1330
- heapq.heappop(self.genlist)
1331
- else:
1332
- self.genlist.remove(self)
1333
- heapq.heapify(self.genlist)
1334
-
1335
- next = __next__
1336
-
1337
- def __lt__(self, other):
1338
- return self.dt < other.dt
1339
-
1340
- def __gt__(self, other):
1341
- return self.dt > other.dt
1342
-
1343
- def __eq__(self, other):
1344
- return self.dt == other.dt
1345
-
1346
- def __ne__(self, other):
1347
- return self.dt != other.dt
1348
-
1349
- def __init__(self, cache=False):
1350
- super(rruleset, self).__init__(cache)
1351
- self._rrule = []
1352
- self._rdate = []
1353
- self._exrule = []
1354
- self._exdate = []
1355
-
1356
- @_invalidates_cache
1357
- def rrule(self, rrule):
1358
- """ Include the given :py:class:`rrule` instance in the recurrence set
1359
- generation. """
1360
- self._rrule.append(rrule)
1361
-
1362
- @_invalidates_cache
1363
- def rdate(self, rdate):
1364
- """ Include the given :py:class:`datetime` instance in the recurrence
1365
- set generation. """
1366
- self._rdate.append(rdate)
1367
-
1368
- @_invalidates_cache
1369
- def exrule(self, exrule):
1370
- """ Include the given rrule instance in the recurrence set exclusion
1371
- list. Dates which are part of the given recurrence rules will not
1372
- be generated, even if some inclusive rrule or rdate matches them.
1373
- """
1374
- self._exrule.append(exrule)
1375
-
1376
- @_invalidates_cache
1377
- def exdate(self, exdate):
1378
- """ Include the given datetime instance in the recurrence set
1379
- exclusion list. Dates included that way will not be generated,
1380
- even if some inclusive rrule or rdate matches them. """
1381
- self._exdate.append(exdate)
1382
-
1383
- def _iter(self):
1384
- rlist = []
1385
- self._rdate.sort()
1386
- self._genitem(rlist, iter(self._rdate))
1387
- for gen in [iter(x) for x in self._rrule]:
1388
- self._genitem(rlist, gen)
1389
- exlist = []
1390
- self._exdate.sort()
1391
- self._genitem(exlist, iter(self._exdate))
1392
- for gen in [iter(x) for x in self._exrule]:
1393
- self._genitem(exlist, gen)
1394
- lastdt = None
1395
- total = 0
1396
- heapq.heapify(rlist)
1397
- heapq.heapify(exlist)
1398
- while rlist:
1399
- ritem = rlist[0]
1400
- if not lastdt or lastdt != ritem.dt:
1401
- while exlist and exlist[0] < ritem:
1402
- exitem = exlist[0]
1403
- advance_iterator(exitem)
1404
- if exlist and exlist[0] is exitem:
1405
- heapq.heapreplace(exlist, exitem)
1406
- if not exlist or ritem != exlist[0]:
1407
- total += 1
1408
- yield ritem.dt
1409
- lastdt = ritem.dt
1410
- advance_iterator(ritem)
1411
- if rlist and rlist[0] is ritem:
1412
- heapq.heapreplace(rlist, ritem)
1413
- self._len = total
1414
-
1415
-
1416
-
1417
-
1418
- class _rrulestr(object):
1419
- """ Parses a string representation of a recurrence rule or set of
1420
- recurrence rules.
1421
-
1422
- :param s:
1423
- Required, a string defining one or more recurrence rules.
1424
-
1425
- :param dtstart:
1426
- If given, used as the default recurrence start if not specified in the
1427
- rule string.
1428
-
1429
- :param cache:
1430
- If set ``True`` caching of results will be enabled, improving
1431
- performance of multiple queries considerably.
1432
-
1433
- :param unfold:
1434
- If set ``True`` indicates that a rule string is split over more
1435
- than one line and should be joined before processing.
1436
-
1437
- :param forceset:
1438
- If set ``True`` forces a :class:`dateutil.rrule.rruleset` to
1439
- be returned.
1440
-
1441
- :param compatible:
1442
- If set ``True`` forces ``unfold`` and ``forceset`` to be ``True``.
1443
-
1444
- :param ignoretz:
1445
- If set ``True``, time zones in parsed strings are ignored and a naive
1446
- :class:`datetime.datetime` object is returned.
1447
-
1448
- :param tzids:
1449
- If given, a callable or mapping used to retrieve a
1450
- :class:`datetime.tzinfo` from a string representation.
1451
- Defaults to :func:`dateutil.tz.gettz`.
1452
-
1453
- :param tzinfos:
1454
- Additional time zone names / aliases which may be present in a string
1455
- representation. See :func:`dateutil.parser.parse` for more
1456
- information.
1457
-
1458
- :return:
1459
- Returns a :class:`dateutil.rrule.rruleset` or
1460
- :class:`dateutil.rrule.rrule`
1461
- """
1462
-
1463
- _freq_map = {"YEARLY": YEARLY,
1464
- "MONTHLY": MONTHLY,
1465
- "WEEKLY": WEEKLY,
1466
- "DAILY": DAILY,
1467
- "HOURLY": HOURLY,
1468
- "MINUTELY": MINUTELY,
1469
- "SECONDLY": SECONDLY}
1470
-
1471
- _weekday_map = {"MO": 0, "TU": 1, "WE": 2, "TH": 3,
1472
- "FR": 4, "SA": 5, "SU": 6}
1473
-
1474
- def _handle_int(self, rrkwargs, name, value, **kwargs):
1475
- rrkwargs[name.lower()] = int(value)
1476
-
1477
- def _handle_int_list(self, rrkwargs, name, value, **kwargs):
1478
- rrkwargs[name.lower()] = [int(x) for x in value.split(',')]
1479
-
1480
- _handle_INTERVAL = _handle_int
1481
- _handle_COUNT = _handle_int
1482
- _handle_BYSETPOS = _handle_int_list
1483
- _handle_BYMONTH = _handle_int_list
1484
- _handle_BYMONTHDAY = _handle_int_list
1485
- _handle_BYYEARDAY = _handle_int_list
1486
- _handle_BYEASTER = _handle_int_list
1487
- _handle_BYWEEKNO = _handle_int_list
1488
- _handle_BYHOUR = _handle_int_list
1489
- _handle_BYMINUTE = _handle_int_list
1490
- _handle_BYSECOND = _handle_int_list
1491
-
1492
- def _handle_FREQ(self, rrkwargs, name, value, **kwargs):
1493
- rrkwargs["freq"] = self._freq_map[value]
1494
-
1495
- def _handle_UNTIL(self, rrkwargs, name, value, **kwargs):
1496
- global parser
1497
- if not parser:
1498
- from dateutil import parser
1499
- try:
1500
- rrkwargs["until"] = parser.parse(value,
1501
- ignoretz=kwargs.get("ignoretz"),
1502
- tzinfos=kwargs.get("tzinfos"))
1503
- except ValueError:
1504
- raise ValueError("invalid until date")
1505
-
1506
- def _handle_WKST(self, rrkwargs, name, value, **kwargs):
1507
- rrkwargs["wkst"] = self._weekday_map[value]
1508
-
1509
- def _handle_BYWEEKDAY(self, rrkwargs, name, value, **kwargs):
1510
- """
1511
- Two ways to specify this: +1MO or MO(+1)
1512
- """
1513
- l = []
1514
- for wday in value.split(','):
1515
- if '(' in wday:
1516
- # If it's of the form TH(+1), etc.
1517
- splt = wday.split('(')
1518
- w = splt[0]
1519
- n = int(splt[1][:-1])
1520
- elif len(wday):
1521
- # If it's of the form +1MO
1522
- for i in range(len(wday)):
1523
- if wday[i] not in '+-0123456789':
1524
- break
1525
- n = wday[:i] or None
1526
- w = wday[i:]
1527
- if n:
1528
- n = int(n)
1529
- else:
1530
- raise ValueError("Invalid (empty) BYDAY specification.")
1531
-
1532
- l.append(weekdays[self._weekday_map[w]](n))
1533
- rrkwargs["byweekday"] = l
1534
-
1535
- _handle_BYDAY = _handle_BYWEEKDAY
1536
-
1537
- def _parse_rfc_rrule(self, line,
1538
- dtstart=None,
1539
- cache=False,
1540
- ignoretz=False,
1541
- tzinfos=None):
1542
- if line.find(':') != -1:
1543
- name, value = line.split(':')
1544
- if name != "RRULE":
1545
- raise ValueError("unknown parameter name")
1546
- else:
1547
- value = line
1548
- rrkwargs = {}
1549
- for pair in value.split(';'):
1550
- name, value = pair.split('=')
1551
- name = name.upper()
1552
- value = value.upper()
1553
- try:
1554
- getattr(self, "_handle_"+name)(rrkwargs, name, value,
1555
- ignoretz=ignoretz,
1556
- tzinfos=tzinfos)
1557
- except AttributeError:
1558
- raise ValueError("unknown parameter '%s'" % name)
1559
- except (KeyError, ValueError):
1560
- raise ValueError("invalid '%s': %s" % (name, value))
1561
- return rrule(dtstart=dtstart, cache=cache, **rrkwargs)
1562
-
1563
- def _parse_date_value(self, date_value, parms, rule_tzids,
1564
- ignoretz, tzids, tzinfos):
1565
- global parser
1566
- if not parser:
1567
- from dateutil import parser
1568
-
1569
- datevals = []
1570
- value_found = False
1571
- TZID = None
1572
-
1573
- for parm in parms:
1574
- if parm.startswith("TZID="):
1575
- try:
1576
- tzkey = rule_tzids[parm.split('TZID=')[-1]]
1577
- except KeyError:
1578
- continue
1579
- if tzids is None:
1580
- from . import tz
1581
- tzlookup = tz.gettz
1582
- elif callable(tzids):
1583
- tzlookup = tzids
1584
- else:
1585
- tzlookup = getattr(tzids, 'get', None)
1586
- if tzlookup is None:
1587
- msg = ('tzids must be a callable, mapping, or None, '
1588
- 'not %s' % tzids)
1589
- raise ValueError(msg)
1590
-
1591
- TZID = tzlookup(tzkey)
1592
- continue
1593
-
1594
- # RFC 5445 3.8.2.4: The VALUE parameter is optional, but may be found
1595
- # only once.
1596
- if parm not in {"VALUE=DATE-TIME", "VALUE=DATE"}:
1597
- raise ValueError("unsupported parm: " + parm)
1598
- else:
1599
- if value_found:
1600
- msg = ("Duplicate value parameter found in: " + parm)
1601
- raise ValueError(msg)
1602
- value_found = True
1603
-
1604
- for datestr in date_value.split(','):
1605
- date = parser.parse(datestr, ignoretz=ignoretz, tzinfos=tzinfos)
1606
- if TZID is not None:
1607
- if date.tzinfo is None:
1608
- date = date.replace(tzinfo=TZID)
1609
- else:
1610
- raise ValueError('DTSTART/EXDATE specifies multiple timezone')
1611
- datevals.append(date)
1612
-
1613
- return datevals
1614
-
1615
- def _parse_rfc(self, s,
1616
- dtstart=None,
1617
- cache=False,
1618
- unfold=False,
1619
- forceset=False,
1620
- compatible=False,
1621
- ignoretz=False,
1622
- tzids=None,
1623
- tzinfos=None):
1624
- global parser
1625
- if compatible:
1626
- forceset = True
1627
- unfold = True
1628
-
1629
- TZID_NAMES = dict(map(
1630
- lambda x: (x.upper(), x),
1631
- re.findall('TZID=(?P<name>[^:]+):', s)
1632
- ))
1633
- s = s.upper()
1634
- if not s.strip():
1635
- raise ValueError("empty string")
1636
- if unfold:
1637
- lines = s.splitlines()
1638
- i = 0
1639
- while i < len(lines):
1640
- line = lines[i].rstrip()
1641
- if not line:
1642
- del lines[i]
1643
- elif i > 0 and line[0] == " ":
1644
- lines[i-1] += line[1:]
1645
- del lines[i]
1646
- else:
1647
- i += 1
1648
- else:
1649
- lines = s.split()
1650
- if (not forceset and len(lines) == 1 and (s.find(':') == -1 or
1651
- s.startswith('RRULE:'))):
1652
- return self._parse_rfc_rrule(lines[0], cache=cache,
1653
- dtstart=dtstart, ignoretz=ignoretz,
1654
- tzinfos=tzinfos)
1655
- else:
1656
- rrulevals = []
1657
- rdatevals = []
1658
- exrulevals = []
1659
- exdatevals = []
1660
- for line in lines:
1661
- if not line:
1662
- continue
1663
- if line.find(':') == -1:
1664
- name = "RRULE"
1665
- value = line
1666
- else:
1667
- name, value = line.split(':', 1)
1668
- parms = name.split(';')
1669
- if not parms:
1670
- raise ValueError("empty property name")
1671
- name = parms[0]
1672
- parms = parms[1:]
1673
- if name == "RRULE":
1674
- for parm in parms:
1675
- raise ValueError("unsupported RRULE parm: "+parm)
1676
- rrulevals.append(value)
1677
- elif name == "RDATE":
1678
- for parm in parms:
1679
- if parm != "VALUE=DATE-TIME":
1680
- raise ValueError("unsupported RDATE parm: "+parm)
1681
- rdatevals.append(value)
1682
- elif name == "EXRULE":
1683
- for parm in parms:
1684
- raise ValueError("unsupported EXRULE parm: "+parm)
1685
- exrulevals.append(value)
1686
- elif name == "EXDATE":
1687
- exdatevals.extend(
1688
- self._parse_date_value(value, parms,
1689
- TZID_NAMES, ignoretz,
1690
- tzids, tzinfos)
1691
- )
1692
- elif name == "DTSTART":
1693
- dtvals = self._parse_date_value(value, parms, TZID_NAMES,
1694
- ignoretz, tzids, tzinfos)
1695
- if len(dtvals) != 1:
1696
- raise ValueError("Multiple DTSTART values specified:" +
1697
- value)
1698
- dtstart = dtvals[0]
1699
- else:
1700
- raise ValueError("unsupported property: "+name)
1701
- if (forceset or len(rrulevals) > 1 or rdatevals
1702
- or exrulevals or exdatevals):
1703
- if not parser and (rdatevals or exdatevals):
1704
- from dateutil import parser
1705
- rset = rruleset(cache=cache)
1706
- for value in rrulevals:
1707
- rset.rrule(self._parse_rfc_rrule(value, dtstart=dtstart,
1708
- ignoretz=ignoretz,
1709
- tzinfos=tzinfos))
1710
- for value in rdatevals:
1711
- for datestr in value.split(','):
1712
- rset.rdate(parser.parse(datestr,
1713
- ignoretz=ignoretz,
1714
- tzinfos=tzinfos))
1715
- for value in exrulevals:
1716
- rset.exrule(self._parse_rfc_rrule(value, dtstart=dtstart,
1717
- ignoretz=ignoretz,
1718
- tzinfos=tzinfos))
1719
- for value in exdatevals:
1720
- rset.exdate(value)
1721
- if compatible and dtstart:
1722
- rset.rdate(dtstart)
1723
- return rset
1724
- else:
1725
- return self._parse_rfc_rrule(rrulevals[0],
1726
- dtstart=dtstart,
1727
- cache=cache,
1728
- ignoretz=ignoretz,
1729
- tzinfos=tzinfos)
1730
-
1731
- def __call__(self, s, **kwargs):
1732
- return self._parse_rfc(s, **kwargs)
1733
-
1734
-
1735
- rrulestr = _rrulestr()
1736
-
1737
- # vim:ts=4:sw=4:et
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.11/site-packages/dateutil/tz/__init__.py DELETED
@@ -1,12 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- from .tz import *
3
- from .tz import __doc__
4
-
5
- __all__ = ["tzutc", "tzoffset", "tzlocal", "tzfile", "tzrange",
6
- "tzstr", "tzical", "tzwin", "tzwinlocal", "gettz",
7
- "enfold", "datetime_ambiguous", "datetime_exists",
8
- "resolve_imaginary", "UTC", "DeprecatedTzFormatWarning"]
9
-
10
-
11
- class DeprecatedTzFormatWarning(Warning):
12
- """Warning raised when time zones are parsed from deprecated formats."""
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.11/site-packages/dateutil/tz/_common.py DELETED
@@ -1,419 +0,0 @@
1
- from six import PY2
2
-
3
- from functools import wraps
4
-
5
- from datetime import datetime, timedelta, tzinfo
6
-
7
-
8
- ZERO = timedelta(0)
9
-
10
- __all__ = ['tzname_in_python2', 'enfold']
11
-
12
-
13
- def tzname_in_python2(namefunc):
14
- """Change unicode output into bytestrings in Python 2
15
-
16
- tzname() API changed in Python 3. It used to return bytes, but was changed
17
- to unicode strings
18
- """
19
- if PY2:
20
- @wraps(namefunc)
21
- def adjust_encoding(*args, **kwargs):
22
- name = namefunc(*args, **kwargs)
23
- if name is not None:
24
- name = name.encode()
25
-
26
- return name
27
-
28
- return adjust_encoding
29
- else:
30
- return namefunc
31
-
32
-
33
- # The following is adapted from Alexander Belopolsky's tz library
34
- # https://github.com/abalkin/tz
35
- if hasattr(datetime, 'fold'):
36
- # This is the pre-python 3.6 fold situation
37
- def enfold(dt, fold=1):
38
- """
39
- Provides a unified interface for assigning the ``fold`` attribute to
40
- datetimes both before and after the implementation of PEP-495.
41
-
42
- :param fold:
43
- The value for the ``fold`` attribute in the returned datetime. This
44
- should be either 0 or 1.
45
-
46
- :return:
47
- Returns an object for which ``getattr(dt, 'fold', 0)`` returns
48
- ``fold`` for all versions of Python. In versions prior to
49
- Python 3.6, this is a ``_DatetimeWithFold`` object, which is a
50
- subclass of :py:class:`datetime.datetime` with the ``fold``
51
- attribute added, if ``fold`` is 1.
52
-
53
- .. versionadded:: 2.6.0
54
- """
55
- return dt.replace(fold=fold)
56
-
57
- else:
58
- class _DatetimeWithFold(datetime):
59
- """
60
- This is a class designed to provide a PEP 495-compliant interface for
61
- Python versions before 3.6. It is used only for dates in a fold, so
62
- the ``fold`` attribute is fixed at ``1``.
63
-
64
- .. versionadded:: 2.6.0
65
- """
66
- __slots__ = ()
67
-
68
- def replace(self, *args, **kwargs):
69
- """
70
- Return a datetime with the same attributes, except for those
71
- attributes given new values by whichever keyword arguments are
72
- specified. Note that tzinfo=None can be specified to create a naive
73
- datetime from an aware datetime with no conversion of date and time
74
- data.
75
-
76
- This is reimplemented in ``_DatetimeWithFold`` because pypy3 will
77
- return a ``datetime.datetime`` even if ``fold`` is unchanged.
78
- """
79
- argnames = (
80
- 'year', 'month', 'day', 'hour', 'minute', 'second',
81
- 'microsecond', 'tzinfo'
82
- )
83
-
84
- for arg, argname in zip(args, argnames):
85
- if argname in kwargs:
86
- raise TypeError('Duplicate argument: {}'.format(argname))
87
-
88
- kwargs[argname] = arg
89
-
90
- for argname in argnames:
91
- if argname not in kwargs:
92
- kwargs[argname] = getattr(self, argname)
93
-
94
- dt_class = self.__class__ if kwargs.get('fold', 1) else datetime
95
-
96
- return dt_class(**kwargs)
97
-
98
- @property
99
- def fold(self):
100
- return 1
101
-
102
- def enfold(dt, fold=1):
103
- """
104
- Provides a unified interface for assigning the ``fold`` attribute to
105
- datetimes both before and after the implementation of PEP-495.
106
-
107
- :param fold:
108
- The value for the ``fold`` attribute in the returned datetime. This
109
- should be either 0 or 1.
110
-
111
- :return:
112
- Returns an object for which ``getattr(dt, 'fold', 0)`` returns
113
- ``fold`` for all versions of Python. In versions prior to
114
- Python 3.6, this is a ``_DatetimeWithFold`` object, which is a
115
- subclass of :py:class:`datetime.datetime` with the ``fold``
116
- attribute added, if ``fold`` is 1.
117
-
118
- .. versionadded:: 2.6.0
119
- """
120
- if getattr(dt, 'fold', 0) == fold:
121
- return dt
122
-
123
- args = dt.timetuple()[:6]
124
- args += (dt.microsecond, dt.tzinfo)
125
-
126
- if fold:
127
- return _DatetimeWithFold(*args)
128
- else:
129
- return datetime(*args)
130
-
131
-
132
- def _validate_fromutc_inputs(f):
133
- """
134
- The CPython version of ``fromutc`` checks that the input is a ``datetime``
135
- object and that ``self`` is attached as its ``tzinfo``.
136
- """
137
- @wraps(f)
138
- def fromutc(self, dt):
139
- if not isinstance(dt, datetime):
140
- raise TypeError("fromutc() requires a datetime argument")
141
- if dt.tzinfo is not self:
142
- raise ValueError("dt.tzinfo is not self")
143
-
144
- return f(self, dt)
145
-
146
- return fromutc
147
-
148
-
149
- class _tzinfo(tzinfo):
150
- """
151
- Base class for all ``dateutil`` ``tzinfo`` objects.
152
- """
153
-
154
- def is_ambiguous(self, dt):
155
- """
156
- Whether or not the "wall time" of a given datetime is ambiguous in this
157
- zone.
158
-
159
- :param dt:
160
- A :py:class:`datetime.datetime`, naive or time zone aware.
161
-
162
-
163
- :return:
164
- Returns ``True`` if ambiguous, ``False`` otherwise.
165
-
166
- .. versionadded:: 2.6.0
167
- """
168
-
169
- dt = dt.replace(tzinfo=self)
170
-
171
- wall_0 = enfold(dt, fold=0)
172
- wall_1 = enfold(dt, fold=1)
173
-
174
- same_offset = wall_0.utcoffset() == wall_1.utcoffset()
175
- same_dt = wall_0.replace(tzinfo=None) == wall_1.replace(tzinfo=None)
176
-
177
- return same_dt and not same_offset
178
-
179
- def _fold_status(self, dt_utc, dt_wall):
180
- """
181
- Determine the fold status of a "wall" datetime, given a representation
182
- of the same datetime as a (naive) UTC datetime. This is calculated based
183
- on the assumption that ``dt.utcoffset() - dt.dst()`` is constant for all
184
- datetimes, and that this offset is the actual number of hours separating
185
- ``dt_utc`` and ``dt_wall``.
186
-
187
- :param dt_utc:
188
- Representation of the datetime as UTC
189
-
190
- :param dt_wall:
191
- Representation of the datetime as "wall time". This parameter must
192
- either have a `fold` attribute or have a fold-naive
193
- :class:`datetime.tzinfo` attached, otherwise the calculation may
194
- fail.
195
- """
196
- if self.is_ambiguous(dt_wall):
197
- delta_wall = dt_wall - dt_utc
198
- _fold = int(delta_wall == (dt_utc.utcoffset() - dt_utc.dst()))
199
- else:
200
- _fold = 0
201
-
202
- return _fold
203
-
204
- def _fold(self, dt):
205
- return getattr(dt, 'fold', 0)
206
-
207
- def _fromutc(self, dt):
208
- """
209
- Given a timezone-aware datetime in a given timezone, calculates a
210
- timezone-aware datetime in a new timezone.
211
-
212
- Since this is the one time that we *know* we have an unambiguous
213
- datetime object, we take this opportunity to determine whether the
214
- datetime is ambiguous and in a "fold" state (e.g. if it's the first
215
- occurrence, chronologically, of the ambiguous datetime).
216
-
217
- :param dt:
218
- A timezone-aware :class:`datetime.datetime` object.
219
- """
220
-
221
- # Re-implement the algorithm from Python's datetime.py
222
- dtoff = dt.utcoffset()
223
- if dtoff is None:
224
- raise ValueError("fromutc() requires a non-None utcoffset() "
225
- "result")
226
-
227
- # The original datetime.py code assumes that `dst()` defaults to
228
- # zero during ambiguous times. PEP 495 inverts this presumption, so
229
- # for pre-PEP 495 versions of python, we need to tweak the algorithm.
230
- dtdst = dt.dst()
231
- if dtdst is None:
232
- raise ValueError("fromutc() requires a non-None dst() result")
233
- delta = dtoff - dtdst
234
-
235
- dt += delta
236
- # Set fold=1 so we can default to being in the fold for
237
- # ambiguous dates.
238
- dtdst = enfold(dt, fold=1).dst()
239
- if dtdst is None:
240
- raise ValueError("fromutc(): dt.dst gave inconsistent "
241
- "results; cannot convert")
242
- return dt + dtdst
243
-
244
- @_validate_fromutc_inputs
245
- def fromutc(self, dt):
246
- """
247
- Given a timezone-aware datetime in a given timezone, calculates a
248
- timezone-aware datetime in a new timezone.
249
-
250
- Since this is the one time that we *know* we have an unambiguous
251
- datetime object, we take this opportunity to determine whether the
252
- datetime is ambiguous and in a "fold" state (e.g. if it's the first
253
- occurrence, chronologically, of the ambiguous datetime).
254
-
255
- :param dt:
256
- A timezone-aware :class:`datetime.datetime` object.
257
- """
258
- dt_wall = self._fromutc(dt)
259
-
260
- # Calculate the fold status given the two datetimes.
261
- _fold = self._fold_status(dt, dt_wall)
262
-
263
- # Set the default fold value for ambiguous dates
264
- return enfold(dt_wall, fold=_fold)
265
-
266
-
267
- class tzrangebase(_tzinfo):
268
- """
269
- This is an abstract base class for time zones represented by an annual
270
- transition into and out of DST. Child classes should implement the following
271
- methods:
272
-
273
- * ``__init__(self, *args, **kwargs)``
274
- * ``transitions(self, year)`` - this is expected to return a tuple of
275
- datetimes representing the DST on and off transitions in standard
276
- time.
277
-
278
- A fully initialized ``tzrangebase`` subclass should also provide the
279
- following attributes:
280
- * ``hasdst``: Boolean whether or not the zone uses DST.
281
- * ``_dst_offset`` / ``_std_offset``: :class:`datetime.timedelta` objects
282
- representing the respective UTC offsets.
283
- * ``_dst_abbr`` / ``_std_abbr``: Strings representing the timezone short
284
- abbreviations in DST and STD, respectively.
285
- * ``_hasdst``: Whether or not the zone has DST.
286
-
287
- .. versionadded:: 2.6.0
288
- """
289
- def __init__(self):
290
- raise NotImplementedError('tzrangebase is an abstract base class')
291
-
292
- def utcoffset(self, dt):
293
- isdst = self._isdst(dt)
294
-
295
- if isdst is None:
296
- return None
297
- elif isdst:
298
- return self._dst_offset
299
- else:
300
- return self._std_offset
301
-
302
- def dst(self, dt):
303
- isdst = self._isdst(dt)
304
-
305
- if isdst is None:
306
- return None
307
- elif isdst:
308
- return self._dst_base_offset
309
- else:
310
- return ZERO
311
-
312
- @tzname_in_python2
313
- def tzname(self, dt):
314
- if self._isdst(dt):
315
- return self._dst_abbr
316
- else:
317
- return self._std_abbr
318
-
319
- def fromutc(self, dt):
320
- """ Given a datetime in UTC, return local time """
321
- if not isinstance(dt, datetime):
322
- raise TypeError("fromutc() requires a datetime argument")
323
-
324
- if dt.tzinfo is not self:
325
- raise ValueError("dt.tzinfo is not self")
326
-
327
- # Get transitions - if there are none, fixed offset
328
- transitions = self.transitions(dt.year)
329
- if transitions is None:
330
- return dt + self.utcoffset(dt)
331
-
332
- # Get the transition times in UTC
333
- dston, dstoff = transitions
334
-
335
- dston -= self._std_offset
336
- dstoff -= self._std_offset
337
-
338
- utc_transitions = (dston, dstoff)
339
- dt_utc = dt.replace(tzinfo=None)
340
-
341
- isdst = self._naive_isdst(dt_utc, utc_transitions)
342
-
343
- if isdst:
344
- dt_wall = dt + self._dst_offset
345
- else:
346
- dt_wall = dt + self._std_offset
347
-
348
- _fold = int(not isdst and self.is_ambiguous(dt_wall))
349
-
350
- return enfold(dt_wall, fold=_fold)
351
-
352
- def is_ambiguous(self, dt):
353
- """
354
- Whether or not the "wall time" of a given datetime is ambiguous in this
355
- zone.
356
-
357
- :param dt:
358
- A :py:class:`datetime.datetime`, naive or time zone aware.
359
-
360
-
361
- :return:
362
- Returns ``True`` if ambiguous, ``False`` otherwise.
363
-
364
- .. versionadded:: 2.6.0
365
- """
366
- if not self.hasdst:
367
- return False
368
-
369
- start, end = self.transitions(dt.year)
370
-
371
- dt = dt.replace(tzinfo=None)
372
- return (end <= dt < end + self._dst_base_offset)
373
-
374
- def _isdst(self, dt):
375
- if not self.hasdst:
376
- return False
377
- elif dt is None:
378
- return None
379
-
380
- transitions = self.transitions(dt.year)
381
-
382
- if transitions is None:
383
- return False
384
-
385
- dt = dt.replace(tzinfo=None)
386
-
387
- isdst = self._naive_isdst(dt, transitions)
388
-
389
- # Handle ambiguous dates
390
- if not isdst and self.is_ambiguous(dt):
391
- return not self._fold(dt)
392
- else:
393
- return isdst
394
-
395
- def _naive_isdst(self, dt, transitions):
396
- dston, dstoff = transitions
397
-
398
- dt = dt.replace(tzinfo=None)
399
-
400
- if dston < dstoff:
401
- isdst = dston <= dt < dstoff
402
- else:
403
- isdst = not dstoff <= dt < dston
404
-
405
- return isdst
406
-
407
- @property
408
- def _dst_base_offset(self):
409
- return self._dst_offset - self._std_offset
410
-
411
- __hash__ = None
412
-
413
- def __ne__(self, other):
414
- return not (self == other)
415
-
416
- def __repr__(self):
417
- return "%s(...)" % self.__class__.__name__
418
-
419
- __reduce__ = object.__reduce__
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.11/site-packages/dateutil/tz/_factories.py DELETED
@@ -1,80 +0,0 @@
1
- from datetime import timedelta
2
- import weakref
3
- from collections import OrderedDict
4
-
5
- from six.moves import _thread
6
-
7
-
8
- class _TzSingleton(type):
9
- def __init__(cls, *args, **kwargs):
10
- cls.__instance = None
11
- super(_TzSingleton, cls).__init__(*args, **kwargs)
12
-
13
- def __call__(cls):
14
- if cls.__instance is None:
15
- cls.__instance = super(_TzSingleton, cls).__call__()
16
- return cls.__instance
17
-
18
-
19
- class _TzFactory(type):
20
- def instance(cls, *args, **kwargs):
21
- """Alternate constructor that returns a fresh instance"""
22
- return type.__call__(cls, *args, **kwargs)
23
-
24
-
25
- class _TzOffsetFactory(_TzFactory):
26
- def __init__(cls, *args, **kwargs):
27
- cls.__instances = weakref.WeakValueDictionary()
28
- cls.__strong_cache = OrderedDict()
29
- cls.__strong_cache_size = 8
30
-
31
- cls._cache_lock = _thread.allocate_lock()
32
-
33
- def __call__(cls, name, offset):
34
- if isinstance(offset, timedelta):
35
- key = (name, offset.total_seconds())
36
- else:
37
- key = (name, offset)
38
-
39
- instance = cls.__instances.get(key, None)
40
- if instance is None:
41
- instance = cls.__instances.setdefault(key,
42
- cls.instance(name, offset))
43
-
44
- # This lock may not be necessary in Python 3. See GH issue #901
45
- with cls._cache_lock:
46
- cls.__strong_cache[key] = cls.__strong_cache.pop(key, instance)
47
-
48
- # Remove an item if the strong cache is overpopulated
49
- if len(cls.__strong_cache) > cls.__strong_cache_size:
50
- cls.__strong_cache.popitem(last=False)
51
-
52
- return instance
53
-
54
-
55
- class _TzStrFactory(_TzFactory):
56
- def __init__(cls, *args, **kwargs):
57
- cls.__instances = weakref.WeakValueDictionary()
58
- cls.__strong_cache = OrderedDict()
59
- cls.__strong_cache_size = 8
60
-
61
- cls.__cache_lock = _thread.allocate_lock()
62
-
63
- def __call__(cls, s, posix_offset=False):
64
- key = (s, posix_offset)
65
- instance = cls.__instances.get(key, None)
66
-
67
- if instance is None:
68
- instance = cls.__instances.setdefault(key,
69
- cls.instance(s, posix_offset))
70
-
71
- # This lock may not be necessary in Python 3. See GH issue #901
72
- with cls.__cache_lock:
73
- cls.__strong_cache[key] = cls.__strong_cache.pop(key, instance)
74
-
75
- # Remove an item if the strong cache is overpopulated
76
- if len(cls.__strong_cache) > cls.__strong_cache_size:
77
- cls.__strong_cache.popitem(last=False)
78
-
79
- return instance
80
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.11/site-packages/dateutil/tz/tz.py DELETED
@@ -1,1849 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- """
3
- This module offers timezone implementations subclassing the abstract
4
- :py:class:`datetime.tzinfo` type. There are classes to handle tzfile format
5
- files (usually are in :file:`/etc/localtime`, :file:`/usr/share/zoneinfo`,
6
- etc), TZ environment string (in all known formats), given ranges (with help
7
- from relative deltas), local machine timezone, fixed offset timezone, and UTC
8
- timezone.
9
- """
10
- import datetime
11
- import struct
12
- import time
13
- import sys
14
- import os
15
- import bisect
16
- import weakref
17
- from collections import OrderedDict
18
-
19
- import six
20
- from six import string_types
21
- from six.moves import _thread
22
- from ._common import tzname_in_python2, _tzinfo
23
- from ._common import tzrangebase, enfold
24
- from ._common import _validate_fromutc_inputs
25
-
26
- from ._factories import _TzSingleton, _TzOffsetFactory
27
- from ._factories import _TzStrFactory
28
- try:
29
- from .win import tzwin, tzwinlocal
30
- except ImportError:
31
- tzwin = tzwinlocal = None
32
-
33
- # For warning about rounding tzinfo
34
- from warnings import warn
35
-
36
- ZERO = datetime.timedelta(0)
37
- EPOCH = datetime.datetime(1970, 1, 1, 0, 0)
38
- EPOCHORDINAL = EPOCH.toordinal()
39
-
40
-
41
- @six.add_metaclass(_TzSingleton)
42
- class tzutc(datetime.tzinfo):
43
- """
44
- This is a tzinfo object that represents the UTC time zone.
45
-
46
- **Examples:**
47
-
48
- .. doctest::
49
-
50
- >>> from datetime import *
51
- >>> from dateutil.tz import *
52
-
53
- >>> datetime.now()
54
- datetime.datetime(2003, 9, 27, 9, 40, 1, 521290)
55
-
56
- >>> datetime.now(tzutc())
57
- datetime.datetime(2003, 9, 27, 12, 40, 12, 156379, tzinfo=tzutc())
58
-
59
- >>> datetime.now(tzutc()).tzname()
60
- 'UTC'
61
-
62
- .. versionchanged:: 2.7.0
63
- ``tzutc()`` is now a singleton, so the result of ``tzutc()`` will
64
- always return the same object.
65
-
66
- .. doctest::
67
-
68
- >>> from dateutil.tz import tzutc, UTC
69
- >>> tzutc() is tzutc()
70
- True
71
- >>> tzutc() is UTC
72
- True
73
- """
74
- def utcoffset(self, dt):
75
- return ZERO
76
-
77
- def dst(self, dt):
78
- return ZERO
79
-
80
- @tzname_in_python2
81
- def tzname(self, dt):
82
- return "UTC"
83
-
84
- def is_ambiguous(self, dt):
85
- """
86
- Whether or not the "wall time" of a given datetime is ambiguous in this
87
- zone.
88
-
89
- :param dt:
90
- A :py:class:`datetime.datetime`, naive or time zone aware.
91
-
92
-
93
- :return:
94
- Returns ``True`` if ambiguous, ``False`` otherwise.
95
-
96
- .. versionadded:: 2.6.0
97
- """
98
- return False
99
-
100
- @_validate_fromutc_inputs
101
- def fromutc(self, dt):
102
- """
103
- Fast track version of fromutc() returns the original ``dt`` object for
104
- any valid :py:class:`datetime.datetime` object.
105
- """
106
- return dt
107
-
108
- def __eq__(self, other):
109
- if not isinstance(other, (tzutc, tzoffset)):
110
- return NotImplemented
111
-
112
- return (isinstance(other, tzutc) or
113
- (isinstance(other, tzoffset) and other._offset == ZERO))
114
-
115
- __hash__ = None
116
-
117
- def __ne__(self, other):
118
- return not (self == other)
119
-
120
- def __repr__(self):
121
- return "%s()" % self.__class__.__name__
122
-
123
- __reduce__ = object.__reduce__
124
-
125
-
126
- #: Convenience constant providing a :class:`tzutc()` instance
127
- #:
128
- #: .. versionadded:: 2.7.0
129
- UTC = tzutc()
130
-
131
-
132
- @six.add_metaclass(_TzOffsetFactory)
133
- class tzoffset(datetime.tzinfo):
134
- """
135
- A simple class for representing a fixed offset from UTC.
136
-
137
- :param name:
138
- The timezone name, to be returned when ``tzname()`` is called.
139
- :param offset:
140
- The time zone offset in seconds, or (since version 2.6.0, represented
141
- as a :py:class:`datetime.timedelta` object).
142
- """
143
- def __init__(self, name, offset):
144
- self._name = name
145
-
146
- try:
147
- # Allow a timedelta
148
- offset = offset.total_seconds()
149
- except (TypeError, AttributeError):
150
- pass
151
-
152
- self._offset = datetime.timedelta(seconds=_get_supported_offset(offset))
153
-
154
- def utcoffset(self, dt):
155
- return self._offset
156
-
157
- def dst(self, dt):
158
- return ZERO
159
-
160
- @tzname_in_python2
161
- def tzname(self, dt):
162
- return self._name
163
-
164
- @_validate_fromutc_inputs
165
- def fromutc(self, dt):
166
- return dt + self._offset
167
-
168
- def is_ambiguous(self, dt):
169
- """
170
- Whether or not the "wall time" of a given datetime is ambiguous in this
171
- zone.
172
-
173
- :param dt:
174
- A :py:class:`datetime.datetime`, naive or time zone aware.
175
- :return:
176
- Returns ``True`` if ambiguous, ``False`` otherwise.
177
-
178
- .. versionadded:: 2.6.0
179
- """
180
- return False
181
-
182
- def __eq__(self, other):
183
- if not isinstance(other, tzoffset):
184
- return NotImplemented
185
-
186
- return self._offset == other._offset
187
-
188
- __hash__ = None
189
-
190
- def __ne__(self, other):
191
- return not (self == other)
192
-
193
- def __repr__(self):
194
- return "%s(%s, %s)" % (self.__class__.__name__,
195
- repr(self._name),
196
- int(self._offset.total_seconds()))
197
-
198
- __reduce__ = object.__reduce__
199
-
200
-
201
- class tzlocal(_tzinfo):
202
- """
203
- A :class:`tzinfo` subclass built around the ``time`` timezone functions.
204
- """
205
- def __init__(self):
206
- super(tzlocal, self).__init__()
207
-
208
- self._std_offset = datetime.timedelta(seconds=-time.timezone)
209
- if time.daylight:
210
- self._dst_offset = datetime.timedelta(seconds=-time.altzone)
211
- else:
212
- self._dst_offset = self._std_offset
213
-
214
- self._dst_saved = self._dst_offset - self._std_offset
215
- self._hasdst = bool(self._dst_saved)
216
- self._tznames = tuple(time.tzname)
217
-
218
- def utcoffset(self, dt):
219
- if dt is None and self._hasdst:
220
- return None
221
-
222
- if self._isdst(dt):
223
- return self._dst_offset
224
- else:
225
- return self._std_offset
226
-
227
- def dst(self, dt):
228
- if dt is None and self._hasdst:
229
- return None
230
-
231
- if self._isdst(dt):
232
- return self._dst_offset - self._std_offset
233
- else:
234
- return ZERO
235
-
236
- @tzname_in_python2
237
- def tzname(self, dt):
238
- return self._tznames[self._isdst(dt)]
239
-
240
- def is_ambiguous(self, dt):
241
- """
242
- Whether or not the "wall time" of a given datetime is ambiguous in this
243
- zone.
244
-
245
- :param dt:
246
- A :py:class:`datetime.datetime`, naive or time zone aware.
247
-
248
-
249
- :return:
250
- Returns ``True`` if ambiguous, ``False`` otherwise.
251
-
252
- .. versionadded:: 2.6.0
253
- """
254
- naive_dst = self._naive_is_dst(dt)
255
- return (not naive_dst and
256
- (naive_dst != self._naive_is_dst(dt - self._dst_saved)))
257
-
258
- def _naive_is_dst(self, dt):
259
- timestamp = _datetime_to_timestamp(dt)
260
- return time.localtime(timestamp + time.timezone).tm_isdst
261
-
262
- def _isdst(self, dt, fold_naive=True):
263
- # We can't use mktime here. It is unstable when deciding if
264
- # the hour near to a change is DST or not.
265
- #
266
- # timestamp = time.mktime((dt.year, dt.month, dt.day, dt.hour,
267
- # dt.minute, dt.second, dt.weekday(), 0, -1))
268
- # return time.localtime(timestamp).tm_isdst
269
- #
270
- # The code above yields the following result:
271
- #
272
- # >>> import tz, datetime
273
- # >>> t = tz.tzlocal()
274
- # >>> datetime.datetime(2003,2,15,23,tzinfo=t).tzname()
275
- # 'BRDT'
276
- # >>> datetime.datetime(2003,2,16,0,tzinfo=t).tzname()
277
- # 'BRST'
278
- # >>> datetime.datetime(2003,2,15,23,tzinfo=t).tzname()
279
- # 'BRST'
280
- # >>> datetime.datetime(2003,2,15,22,tzinfo=t).tzname()
281
- # 'BRDT'
282
- # >>> datetime.datetime(2003,2,15,23,tzinfo=t).tzname()
283
- # 'BRDT'
284
- #
285
- # Here is a more stable implementation:
286
- #
287
- if not self._hasdst:
288
- return False
289
-
290
- # Check for ambiguous times:
291
- dstval = self._naive_is_dst(dt)
292
- fold = getattr(dt, 'fold', None)
293
-
294
- if self.is_ambiguous(dt):
295
- if fold is not None:
296
- return not self._fold(dt)
297
- else:
298
- return True
299
-
300
- return dstval
301
-
302
- def __eq__(self, other):
303
- if isinstance(other, tzlocal):
304
- return (self._std_offset == other._std_offset and
305
- self._dst_offset == other._dst_offset)
306
- elif isinstance(other, tzutc):
307
- return (not self._hasdst and
308
- self._tznames[0] in {'UTC', 'GMT'} and
309
- self._std_offset == ZERO)
310
- elif isinstance(other, tzoffset):
311
- return (not self._hasdst and
312
- self._tznames[0] == other._name and
313
- self._std_offset == other._offset)
314
- else:
315
- return NotImplemented
316
-
317
- __hash__ = None
318
-
319
- def __ne__(self, other):
320
- return not (self == other)
321
-
322
- def __repr__(self):
323
- return "%s()" % self.__class__.__name__
324
-
325
- __reduce__ = object.__reduce__
326
-
327
-
328
- class _ttinfo(object):
329
- __slots__ = ["offset", "delta", "isdst", "abbr",
330
- "isstd", "isgmt", "dstoffset"]
331
-
332
- def __init__(self):
333
- for attr in self.__slots__:
334
- setattr(self, attr, None)
335
-
336
- def __repr__(self):
337
- l = []
338
- for attr in self.__slots__:
339
- value = getattr(self, attr)
340
- if value is not None:
341
- l.append("%s=%s" % (attr, repr(value)))
342
- return "%s(%s)" % (self.__class__.__name__, ", ".join(l))
343
-
344
- def __eq__(self, other):
345
- if not isinstance(other, _ttinfo):
346
- return NotImplemented
347
-
348
- return (self.offset == other.offset and
349
- self.delta == other.delta and
350
- self.isdst == other.isdst and
351
- self.abbr == other.abbr and
352
- self.isstd == other.isstd and
353
- self.isgmt == other.isgmt and
354
- self.dstoffset == other.dstoffset)
355
-
356
- __hash__ = None
357
-
358
- def __ne__(self, other):
359
- return not (self == other)
360
-
361
- def __getstate__(self):
362
- state = {}
363
- for name in self.__slots__:
364
- state[name] = getattr(self, name, None)
365
- return state
366
-
367
- def __setstate__(self, state):
368
- for name in self.__slots__:
369
- if name in state:
370
- setattr(self, name, state[name])
371
-
372
-
373
- class _tzfile(object):
374
- """
375
- Lightweight class for holding the relevant transition and time zone
376
- information read from binary tzfiles.
377
- """
378
- attrs = ['trans_list', 'trans_list_utc', 'trans_idx', 'ttinfo_list',
379
- 'ttinfo_std', 'ttinfo_dst', 'ttinfo_before', 'ttinfo_first']
380
-
381
- def __init__(self, **kwargs):
382
- for attr in self.attrs:
383
- setattr(self, attr, kwargs.get(attr, None))
384
-
385
-
386
- class tzfile(_tzinfo):
387
- """
388
- This is a ``tzinfo`` subclass that allows one to use the ``tzfile(5)``
389
- format timezone files to extract current and historical zone information.
390
-
391
- :param fileobj:
392
- This can be an opened file stream or a file name that the time zone
393
- information can be read from.
394
-
395
- :param filename:
396
- This is an optional parameter specifying the source of the time zone
397
- information in the event that ``fileobj`` is a file object. If omitted
398
- and ``fileobj`` is a file stream, this parameter will be set either to
399
- ``fileobj``'s ``name`` attribute or to ``repr(fileobj)``.
400
-
401
- See `Sources for Time Zone and Daylight Saving Time Data
402
- <https://data.iana.org/time-zones/tz-link.html>`_ for more information.
403
- Time zone files can be compiled from the `IANA Time Zone database files
404
- <https://www.iana.org/time-zones>`_ with the `zic time zone compiler
405
- <https://www.freebsd.org/cgi/man.cgi?query=zic&sektion=8>`_
406
-
407
- .. note::
408
-
409
- Only construct a ``tzfile`` directly if you have a specific timezone
410
- file on disk that you want to read into a Python ``tzinfo`` object.
411
- If you want to get a ``tzfile`` representing a specific IANA zone,
412
- (e.g. ``'America/New_York'``), you should call
413
- :func:`dateutil.tz.gettz` with the zone identifier.
414
-
415
-
416
- **Examples:**
417
-
418
- Using the US Eastern time zone as an example, we can see that a ``tzfile``
419
- provides time zone information for the standard Daylight Saving offsets:
420
-
421
- .. testsetup:: tzfile
422
-
423
- from dateutil.tz import gettz
424
- from datetime import datetime
425
-
426
- .. doctest:: tzfile
427
-
428
- >>> NYC = gettz('America/New_York')
429
- >>> NYC
430
- tzfile('/usr/share/zoneinfo/America/New_York')
431
-
432
- >>> print(datetime(2016, 1, 3, tzinfo=NYC)) # EST
433
- 2016-01-03 00:00:00-05:00
434
-
435
- >>> print(datetime(2016, 7, 7, tzinfo=NYC)) # EDT
436
- 2016-07-07 00:00:00-04:00
437
-
438
-
439
- The ``tzfile`` structure contains a fully history of the time zone,
440
- so historical dates will also have the right offsets. For example, before
441
- the adoption of the UTC standards, New York used local solar mean time:
442
-
443
- .. doctest:: tzfile
444
-
445
- >>> print(datetime(1901, 4, 12, tzinfo=NYC)) # LMT
446
- 1901-04-12 00:00:00-04:56
447
-
448
- And during World War II, New York was on "Eastern War Time", which was a
449
- state of permanent daylight saving time:
450
-
451
- .. doctest:: tzfile
452
-
453
- >>> print(datetime(1944, 2, 7, tzinfo=NYC)) # EWT
454
- 1944-02-07 00:00:00-04:00
455
-
456
- """
457
-
458
- def __init__(self, fileobj, filename=None):
459
- super(tzfile, self).__init__()
460
-
461
- file_opened_here = False
462
- if isinstance(fileobj, string_types):
463
- self._filename = fileobj
464
- fileobj = open(fileobj, 'rb')
465
- file_opened_here = True
466
- elif filename is not None:
467
- self._filename = filename
468
- elif hasattr(fileobj, "name"):
469
- self._filename = fileobj.name
470
- else:
471
- self._filename = repr(fileobj)
472
-
473
- if fileobj is not None:
474
- if not file_opened_here:
475
- fileobj = _nullcontext(fileobj)
476
-
477
- with fileobj as file_stream:
478
- tzobj = self._read_tzfile(file_stream)
479
-
480
- self._set_tzdata(tzobj)
481
-
482
- def _set_tzdata(self, tzobj):
483
- """ Set the time zone data of this object from a _tzfile object """
484
- # Copy the relevant attributes over as private attributes
485
- for attr in _tzfile.attrs:
486
- setattr(self, '_' + attr, getattr(tzobj, attr))
487
-
488
- def _read_tzfile(self, fileobj):
489
- out = _tzfile()
490
-
491
- # From tzfile(5):
492
- #
493
- # The time zone information files used by tzset(3)
494
- # begin with the magic characters "TZif" to identify
495
- # them as time zone information files, followed by
496
- # sixteen bytes reserved for future use, followed by
497
- # six four-byte values of type long, written in a
498
- # ``standard'' byte order (the high-order byte
499
- # of the value is written first).
500
- if fileobj.read(4).decode() != "TZif":
501
- raise ValueError("magic not found")
502
-
503
- fileobj.read(16)
504
-
505
- (
506
- # The number of UTC/local indicators stored in the file.
507
- ttisgmtcnt,
508
-
509
- # The number of standard/wall indicators stored in the file.
510
- ttisstdcnt,
511
-
512
- # The number of leap seconds for which data is
513
- # stored in the file.
514
- leapcnt,
515
-
516
- # The number of "transition times" for which data
517
- # is stored in the file.
518
- timecnt,
519
-
520
- # The number of "local time types" for which data
521
- # is stored in the file (must not be zero).
522
- typecnt,
523
-
524
- # The number of characters of "time zone
525
- # abbreviation strings" stored in the file.
526
- charcnt,
527
-
528
- ) = struct.unpack(">6l", fileobj.read(24))
529
-
530
- # The above header is followed by tzh_timecnt four-byte
531
- # values of type long, sorted in ascending order.
532
- # These values are written in ``standard'' byte order.
533
- # Each is used as a transition time (as returned by
534
- # time(2)) at which the rules for computing local time
535
- # change.
536
-
537
- if timecnt:
538
- out.trans_list_utc = list(struct.unpack(">%dl" % timecnt,
539
- fileobj.read(timecnt*4)))
540
- else:
541
- out.trans_list_utc = []
542
-
543
- # Next come tzh_timecnt one-byte values of type unsigned
544
- # char; each one tells which of the different types of
545
- # ``local time'' types described in the file is associated
546
- # with the same-indexed transition time. These values
547
- # serve as indices into an array of ttinfo structures that
548
- # appears next in the file.
549
-
550
- if timecnt:
551
- out.trans_idx = struct.unpack(">%dB" % timecnt,
552
- fileobj.read(timecnt))
553
- else:
554
- out.trans_idx = []
555
-
556
- # Each ttinfo structure is written as a four-byte value
557
- # for tt_gmtoff of type long, in a standard byte
558
- # order, followed by a one-byte value for tt_isdst
559
- # and a one-byte value for tt_abbrind. In each
560
- # structure, tt_gmtoff gives the number of
561
- # seconds to be added to UTC, tt_isdst tells whether
562
- # tm_isdst should be set by localtime(3), and
563
- # tt_abbrind serves as an index into the array of
564
- # time zone abbreviation characters that follow the
565
- # ttinfo structure(s) in the file.
566
-
567
- ttinfo = []
568
-
569
- for i in range(typecnt):
570
- ttinfo.append(struct.unpack(">lbb", fileobj.read(6)))
571
-
572
- abbr = fileobj.read(charcnt).decode()
573
-
574
- # Then there are tzh_leapcnt pairs of four-byte
575
- # values, written in standard byte order; the
576
- # first value of each pair gives the time (as
577
- # returned by time(2)) at which a leap second
578
- # occurs; the second gives the total number of
579
- # leap seconds to be applied after the given time.
580
- # The pairs of values are sorted in ascending order
581
- # by time.
582
-
583
- # Not used, for now (but seek for correct file position)
584
- if leapcnt:
585
- fileobj.seek(leapcnt * 8, os.SEEK_CUR)
586
-
587
- # Then there are tzh_ttisstdcnt standard/wall
588
- # indicators, each stored as a one-byte value;
589
- # they tell whether the transition times associated
590
- # with local time types were specified as standard
591
- # time or wall clock time, and are used when
592
- # a time zone file is used in handling POSIX-style
593
- # time zone environment variables.
594
-
595
- if ttisstdcnt:
596
- isstd = struct.unpack(">%db" % ttisstdcnt,
597
- fileobj.read(ttisstdcnt))
598
-
599
- # Finally, there are tzh_ttisgmtcnt UTC/local
600
- # indicators, each stored as a one-byte value;
601
- # they tell whether the transition times associated
602
- # with local time types were specified as UTC or
603
- # local time, and are used when a time zone file
604
- # is used in handling POSIX-style time zone envi-
605
- # ronment variables.
606
-
607
- if ttisgmtcnt:
608
- isgmt = struct.unpack(">%db" % ttisgmtcnt,
609
- fileobj.read(ttisgmtcnt))
610
-
611
- # Build ttinfo list
612
- out.ttinfo_list = []
613
- for i in range(typecnt):
614
- gmtoff, isdst, abbrind = ttinfo[i]
615
- gmtoff = _get_supported_offset(gmtoff)
616
- tti = _ttinfo()
617
- tti.offset = gmtoff
618
- tti.dstoffset = datetime.timedelta(0)
619
- tti.delta = datetime.timedelta(seconds=gmtoff)
620
- tti.isdst = isdst
621
- tti.abbr = abbr[abbrind:abbr.find('\x00', abbrind)]
622
- tti.isstd = (ttisstdcnt > i and isstd[i] != 0)
623
- tti.isgmt = (ttisgmtcnt > i and isgmt[i] != 0)
624
- out.ttinfo_list.append(tti)
625
-
626
- # Replace ttinfo indexes for ttinfo objects.
627
- out.trans_idx = [out.ttinfo_list[idx] for idx in out.trans_idx]
628
-
629
- # Set standard, dst, and before ttinfos. before will be
630
- # used when a given time is before any transitions,
631
- # and will be set to the first non-dst ttinfo, or to
632
- # the first dst, if all of them are dst.
633
- out.ttinfo_std = None
634
- out.ttinfo_dst = None
635
- out.ttinfo_before = None
636
- if out.ttinfo_list:
637
- if not out.trans_list_utc:
638
- out.ttinfo_std = out.ttinfo_first = out.ttinfo_list[0]
639
- else:
640
- for i in range(timecnt-1, -1, -1):
641
- tti = out.trans_idx[i]
642
- if not out.ttinfo_std and not tti.isdst:
643
- out.ttinfo_std = tti
644
- elif not out.ttinfo_dst and tti.isdst:
645
- out.ttinfo_dst = tti
646
-
647
- if out.ttinfo_std and out.ttinfo_dst:
648
- break
649
- else:
650
- if out.ttinfo_dst and not out.ttinfo_std:
651
- out.ttinfo_std = out.ttinfo_dst
652
-
653
- for tti in out.ttinfo_list:
654
- if not tti.isdst:
655
- out.ttinfo_before = tti
656
- break
657
- else:
658
- out.ttinfo_before = out.ttinfo_list[0]
659
-
660
- # Now fix transition times to become relative to wall time.
661
- #
662
- # I'm not sure about this. In my tests, the tz source file
663
- # is setup to wall time, and in the binary file isstd and
664
- # isgmt are off, so it should be in wall time. OTOH, it's
665
- # always in gmt time. Let me know if you have comments
666
- # about this.
667
- lastdst = None
668
- lastoffset = None
669
- lastdstoffset = None
670
- lastbaseoffset = None
671
- out.trans_list = []
672
-
673
- for i, tti in enumerate(out.trans_idx):
674
- offset = tti.offset
675
- dstoffset = 0
676
-
677
- if lastdst is not None:
678
- if tti.isdst:
679
- if not lastdst:
680
- dstoffset = offset - lastoffset
681
-
682
- if not dstoffset and lastdstoffset:
683
- dstoffset = lastdstoffset
684
-
685
- tti.dstoffset = datetime.timedelta(seconds=dstoffset)
686
- lastdstoffset = dstoffset
687
-
688
- # If a time zone changes its base offset during a DST transition,
689
- # then you need to adjust by the previous base offset to get the
690
- # transition time in local time. Otherwise you use the current
691
- # base offset. Ideally, I would have some mathematical proof of
692
- # why this is true, but I haven't really thought about it enough.
693
- baseoffset = offset - dstoffset
694
- adjustment = baseoffset
695
- if (lastbaseoffset is not None and baseoffset != lastbaseoffset
696
- and tti.isdst != lastdst):
697
- # The base DST has changed
698
- adjustment = lastbaseoffset
699
-
700
- lastdst = tti.isdst
701
- lastoffset = offset
702
- lastbaseoffset = baseoffset
703
-
704
- out.trans_list.append(out.trans_list_utc[i] + adjustment)
705
-
706
- out.trans_idx = tuple(out.trans_idx)
707
- out.trans_list = tuple(out.trans_list)
708
- out.trans_list_utc = tuple(out.trans_list_utc)
709
-
710
- return out
711
-
712
- def _find_last_transition(self, dt, in_utc=False):
713
- # If there's no list, there are no transitions to find
714
- if not self._trans_list:
715
- return None
716
-
717
- timestamp = _datetime_to_timestamp(dt)
718
-
719
- # Find where the timestamp fits in the transition list - if the
720
- # timestamp is a transition time, it's part of the "after" period.
721
- trans_list = self._trans_list_utc if in_utc else self._trans_list
722
- idx = bisect.bisect_right(trans_list, timestamp)
723
-
724
- # We want to know when the previous transition was, so subtract off 1
725
- return idx - 1
726
-
727
- def _get_ttinfo(self, idx):
728
- # For no list or after the last transition, default to _ttinfo_std
729
- if idx is None or (idx + 1) >= len(self._trans_list):
730
- return self._ttinfo_std
731
-
732
- # If there is a list and the time is before it, return _ttinfo_before
733
- if idx < 0:
734
- return self._ttinfo_before
735
-
736
- return self._trans_idx[idx]
737
-
738
- def _find_ttinfo(self, dt):
739
- idx = self._resolve_ambiguous_time(dt)
740
-
741
- return self._get_ttinfo(idx)
742
-
743
- def fromutc(self, dt):
744
- """
745
- The ``tzfile`` implementation of :py:func:`datetime.tzinfo.fromutc`.
746
-
747
- :param dt:
748
- A :py:class:`datetime.datetime` object.
749
-
750
- :raises TypeError:
751
- Raised if ``dt`` is not a :py:class:`datetime.datetime` object.
752
-
753
- :raises ValueError:
754
- Raised if this is called with a ``dt`` which does not have this
755
- ``tzinfo`` attached.
756
-
757
- :return:
758
- Returns a :py:class:`datetime.datetime` object representing the
759
- wall time in ``self``'s time zone.
760
- """
761
- # These isinstance checks are in datetime.tzinfo, so we'll preserve
762
- # them, even if we don't care about duck typing.
763
- if not isinstance(dt, datetime.datetime):
764
- raise TypeError("fromutc() requires a datetime argument")
765
-
766
- if dt.tzinfo is not self:
767
- raise ValueError("dt.tzinfo is not self")
768
-
769
- # First treat UTC as wall time and get the transition we're in.
770
- idx = self._find_last_transition(dt, in_utc=True)
771
- tti = self._get_ttinfo(idx)
772
-
773
- dt_out = dt + datetime.timedelta(seconds=tti.offset)
774
-
775
- fold = self.is_ambiguous(dt_out, idx=idx)
776
-
777
- return enfold(dt_out, fold=int(fold))
778
-
779
- def is_ambiguous(self, dt, idx=None):
780
- """
781
- Whether or not the "wall time" of a given datetime is ambiguous in this
782
- zone.
783
-
784
- :param dt:
785
- A :py:class:`datetime.datetime`, naive or time zone aware.
786
-
787
-
788
- :return:
789
- Returns ``True`` if ambiguous, ``False`` otherwise.
790
-
791
- .. versionadded:: 2.6.0
792
- """
793
- if idx is None:
794
- idx = self._find_last_transition(dt)
795
-
796
- # Calculate the difference in offsets from current to previous
797
- timestamp = _datetime_to_timestamp(dt)
798
- tti = self._get_ttinfo(idx)
799
-
800
- if idx is None or idx <= 0:
801
- return False
802
-
803
- od = self._get_ttinfo(idx - 1).offset - tti.offset
804
- tt = self._trans_list[idx] # Transition time
805
-
806
- return timestamp < tt + od
807
-
808
- def _resolve_ambiguous_time(self, dt):
809
- idx = self._find_last_transition(dt)
810
-
811
- # If we have no transitions, return the index
812
- _fold = self._fold(dt)
813
- if idx is None or idx == 0:
814
- return idx
815
-
816
- # If it's ambiguous and we're in a fold, shift to a different index.
817
- idx_offset = int(not _fold and self.is_ambiguous(dt, idx))
818
-
819
- return idx - idx_offset
820
-
821
- def utcoffset(self, dt):
822
- if dt is None:
823
- return None
824
-
825
- if not self._ttinfo_std:
826
- return ZERO
827
-
828
- return self._find_ttinfo(dt).delta
829
-
830
- def dst(self, dt):
831
- if dt is None:
832
- return None
833
-
834
- if not self._ttinfo_dst:
835
- return ZERO
836
-
837
- tti = self._find_ttinfo(dt)
838
-
839
- if not tti.isdst:
840
- return ZERO
841
-
842
- # The documentation says that utcoffset()-dst() must
843
- # be constant for every dt.
844
- return tti.dstoffset
845
-
846
- @tzname_in_python2
847
- def tzname(self, dt):
848
- if not self._ttinfo_std or dt is None:
849
- return None
850
- return self._find_ttinfo(dt).abbr
851
-
852
- def __eq__(self, other):
853
- if not isinstance(other, tzfile):
854
- return NotImplemented
855
- return (self._trans_list == other._trans_list and
856
- self._trans_idx == other._trans_idx and
857
- self._ttinfo_list == other._ttinfo_list)
858
-
859
- __hash__ = None
860
-
861
- def __ne__(self, other):
862
- return not (self == other)
863
-
864
- def __repr__(self):
865
- return "%s(%s)" % (self.__class__.__name__, repr(self._filename))
866
-
867
- def __reduce__(self):
868
- return self.__reduce_ex__(None)
869
-
870
- def __reduce_ex__(self, protocol):
871
- return (self.__class__, (None, self._filename), self.__dict__)
872
-
873
-
874
- class tzrange(tzrangebase):
875
- """
876
- The ``tzrange`` object is a time zone specified by a set of offsets and
877
- abbreviations, equivalent to the way the ``TZ`` variable can be specified
878
- in POSIX-like systems, but using Python delta objects to specify DST
879
- start, end and offsets.
880
-
881
- :param stdabbr:
882
- The abbreviation for standard time (e.g. ``'EST'``).
883
-
884
- :param stdoffset:
885
- An integer or :class:`datetime.timedelta` object or equivalent
886
- specifying the base offset from UTC.
887
-
888
- If unspecified, +00:00 is used.
889
-
890
- :param dstabbr:
891
- The abbreviation for DST / "Summer" time (e.g. ``'EDT'``).
892
-
893
- If specified, with no other DST information, DST is assumed to occur
894
- and the default behavior or ``dstoffset``, ``start`` and ``end`` is
895
- used. If unspecified and no other DST information is specified, it
896
- is assumed that this zone has no DST.
897
-
898
- If this is unspecified and other DST information is *is* specified,
899
- DST occurs in the zone but the time zone abbreviation is left
900
- unchanged.
901
-
902
- :param dstoffset:
903
- A an integer or :class:`datetime.timedelta` object or equivalent
904
- specifying the UTC offset during DST. If unspecified and any other DST
905
- information is specified, it is assumed to be the STD offset +1 hour.
906
-
907
- :param start:
908
- A :class:`relativedelta.relativedelta` object or equivalent specifying
909
- the time and time of year that daylight savings time starts. To
910
- specify, for example, that DST starts at 2AM on the 2nd Sunday in
911
- March, pass:
912
-
913
- ``relativedelta(hours=2, month=3, day=1, weekday=SU(+2))``
914
-
915
- If unspecified and any other DST information is specified, the default
916
- value is 2 AM on the first Sunday in April.
917
-
918
- :param end:
919
- A :class:`relativedelta.relativedelta` object or equivalent
920
- representing the time and time of year that daylight savings time
921
- ends, with the same specification method as in ``start``. One note is
922
- that this should point to the first time in the *standard* zone, so if
923
- a transition occurs at 2AM in the DST zone and the clocks are set back
924
- 1 hour to 1AM, set the ``hours`` parameter to +1.
925
-
926
-
927
- **Examples:**
928
-
929
- .. testsetup:: tzrange
930
-
931
- from dateutil.tz import tzrange, tzstr
932
-
933
- .. doctest:: tzrange
934
-
935
- >>> tzstr('EST5EDT') == tzrange("EST", -18000, "EDT")
936
- True
937
-
938
- >>> from dateutil.relativedelta import *
939
- >>> range1 = tzrange("EST", -18000, "EDT")
940
- >>> range2 = tzrange("EST", -18000, "EDT", -14400,
941
- ... relativedelta(hours=+2, month=4, day=1,
942
- ... weekday=SU(+1)),
943
- ... relativedelta(hours=+1, month=10, day=31,
944
- ... weekday=SU(-1)))
945
- >>> tzstr('EST5EDT') == range1 == range2
946
- True
947
-
948
- """
949
- def __init__(self, stdabbr, stdoffset=None,
950
- dstabbr=None, dstoffset=None,
951
- start=None, end=None):
952
-
953
- global relativedelta
954
- from dateutil import relativedelta
955
-
956
- self._std_abbr = stdabbr
957
- self._dst_abbr = dstabbr
958
-
959
- try:
960
- stdoffset = stdoffset.total_seconds()
961
- except (TypeError, AttributeError):
962
- pass
963
-
964
- try:
965
- dstoffset = dstoffset.total_seconds()
966
- except (TypeError, AttributeError):
967
- pass
968
-
969
- if stdoffset is not None:
970
- self._std_offset = datetime.timedelta(seconds=stdoffset)
971
- else:
972
- self._std_offset = ZERO
973
-
974
- if dstoffset is not None:
975
- self._dst_offset = datetime.timedelta(seconds=dstoffset)
976
- elif dstabbr and stdoffset is not None:
977
- self._dst_offset = self._std_offset + datetime.timedelta(hours=+1)
978
- else:
979
- self._dst_offset = ZERO
980
-
981
- if dstabbr and start is None:
982
- self._start_delta = relativedelta.relativedelta(
983
- hours=+2, month=4, day=1, weekday=relativedelta.SU(+1))
984
- else:
985
- self._start_delta = start
986
-
987
- if dstabbr and end is None:
988
- self._end_delta = relativedelta.relativedelta(
989
- hours=+1, month=10, day=31, weekday=relativedelta.SU(-1))
990
- else:
991
- self._end_delta = end
992
-
993
- self._dst_base_offset_ = self._dst_offset - self._std_offset
994
- self.hasdst = bool(self._start_delta)
995
-
996
- def transitions(self, year):
997
- """
998
- For a given year, get the DST on and off transition times, expressed
999
- always on the standard time side. For zones with no transitions, this
1000
- function returns ``None``.
1001
-
1002
- :param year:
1003
- The year whose transitions you would like to query.
1004
-
1005
- :return:
1006
- Returns a :class:`tuple` of :class:`datetime.datetime` objects,
1007
- ``(dston, dstoff)`` for zones with an annual DST transition, or
1008
- ``None`` for fixed offset zones.
1009
- """
1010
- if not self.hasdst:
1011
- return None
1012
-
1013
- base_year = datetime.datetime(year, 1, 1)
1014
-
1015
- start = base_year + self._start_delta
1016
- end = base_year + self._end_delta
1017
-
1018
- return (start, end)
1019
-
1020
- def __eq__(self, other):
1021
- if not isinstance(other, tzrange):
1022
- return NotImplemented
1023
-
1024
- return (self._std_abbr == other._std_abbr and
1025
- self._dst_abbr == other._dst_abbr and
1026
- self._std_offset == other._std_offset and
1027
- self._dst_offset == other._dst_offset and
1028
- self._start_delta == other._start_delta and
1029
- self._end_delta == other._end_delta)
1030
-
1031
- @property
1032
- def _dst_base_offset(self):
1033
- return self._dst_base_offset_
1034
-
1035
-
1036
- @six.add_metaclass(_TzStrFactory)
1037
- class tzstr(tzrange):
1038
- """
1039
- ``tzstr`` objects are time zone objects specified by a time-zone string as
1040
- it would be passed to a ``TZ`` variable on POSIX-style systems (see
1041
- the `GNU C Library: TZ Variable`_ for more details).
1042
-
1043
- There is one notable exception, which is that POSIX-style time zones use an
1044
- inverted offset format, so normally ``GMT+3`` would be parsed as an offset
1045
- 3 hours *behind* GMT. The ``tzstr`` time zone object will parse this as an
1046
- offset 3 hours *ahead* of GMT. If you would like to maintain the POSIX
1047
- behavior, pass a ``True`` value to ``posix_offset``.
1048
-
1049
- The :class:`tzrange` object provides the same functionality, but is
1050
- specified using :class:`relativedelta.relativedelta` objects. rather than
1051
- strings.
1052
-
1053
- :param s:
1054
- A time zone string in ``TZ`` variable format. This can be a
1055
- :class:`bytes` (2.x: :class:`str`), :class:`str` (2.x:
1056
- :class:`unicode`) or a stream emitting unicode characters
1057
- (e.g. :class:`StringIO`).
1058
-
1059
- :param posix_offset:
1060
- Optional. If set to ``True``, interpret strings such as ``GMT+3`` or
1061
- ``UTC+3`` as being 3 hours *behind* UTC rather than ahead, per the
1062
- POSIX standard.
1063
-
1064
- .. caution::
1065
-
1066
- Prior to version 2.7.0, this function also supported time zones
1067
- in the format:
1068
-
1069
- * ``EST5EDT,4,0,6,7200,10,0,26,7200,3600``
1070
- * ``EST5EDT,4,1,0,7200,10,-1,0,7200,3600``
1071
-
1072
- This format is non-standard and has been deprecated; this function
1073
- will raise a :class:`DeprecatedTZFormatWarning` until
1074
- support is removed in a future version.
1075
-
1076
- .. _`GNU C Library: TZ Variable`:
1077
- https://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html
1078
- """
1079
- def __init__(self, s, posix_offset=False):
1080
- global parser
1081
- from dateutil.parser import _parser as parser
1082
-
1083
- self._s = s
1084
-
1085
- res = parser._parsetz(s)
1086
- if res is None or res.any_unused_tokens:
1087
- raise ValueError("unknown string format")
1088
-
1089
- # Here we break the compatibility with the TZ variable handling.
1090
- # GMT-3 actually *means* the timezone -3.
1091
- if res.stdabbr in ("GMT", "UTC") and not posix_offset:
1092
- res.stdoffset *= -1
1093
-
1094
- # We must initialize it first, since _delta() needs
1095
- # _std_offset and _dst_offset set. Use False in start/end
1096
- # to avoid building it two times.
1097
- tzrange.__init__(self, res.stdabbr, res.stdoffset,
1098
- res.dstabbr, res.dstoffset,
1099
- start=False, end=False)
1100
-
1101
- if not res.dstabbr:
1102
- self._start_delta = None
1103
- self._end_delta = None
1104
- else:
1105
- self._start_delta = self._delta(res.start)
1106
- if self._start_delta:
1107
- self._end_delta = self._delta(res.end, isend=1)
1108
-
1109
- self.hasdst = bool(self._start_delta)
1110
-
1111
- def _delta(self, x, isend=0):
1112
- from dateutil import relativedelta
1113
- kwargs = {}
1114
- if x.month is not None:
1115
- kwargs["month"] = x.month
1116
- if x.weekday is not None:
1117
- kwargs["weekday"] = relativedelta.weekday(x.weekday, x.week)
1118
- if x.week > 0:
1119
- kwargs["day"] = 1
1120
- else:
1121
- kwargs["day"] = 31
1122
- elif x.day:
1123
- kwargs["day"] = x.day
1124
- elif x.yday is not None:
1125
- kwargs["yearday"] = x.yday
1126
- elif x.jyday is not None:
1127
- kwargs["nlyearday"] = x.jyday
1128
- if not kwargs:
1129
- # Default is to start on first sunday of april, and end
1130
- # on last sunday of october.
1131
- if not isend:
1132
- kwargs["month"] = 4
1133
- kwargs["day"] = 1
1134
- kwargs["weekday"] = relativedelta.SU(+1)
1135
- else:
1136
- kwargs["month"] = 10
1137
- kwargs["day"] = 31
1138
- kwargs["weekday"] = relativedelta.SU(-1)
1139
- if x.time is not None:
1140
- kwargs["seconds"] = x.time
1141
- else:
1142
- # Default is 2AM.
1143
- kwargs["seconds"] = 7200
1144
- if isend:
1145
- # Convert to standard time, to follow the documented way
1146
- # of working with the extra hour. See the documentation
1147
- # of the tzinfo class.
1148
- delta = self._dst_offset - self._std_offset
1149
- kwargs["seconds"] -= delta.seconds + delta.days * 86400
1150
- return relativedelta.relativedelta(**kwargs)
1151
-
1152
- def __repr__(self):
1153
- return "%s(%s)" % (self.__class__.__name__, repr(self._s))
1154
-
1155
-
1156
- class _tzicalvtzcomp(object):
1157
- def __init__(self, tzoffsetfrom, tzoffsetto, isdst,
1158
- tzname=None, rrule=None):
1159
- self.tzoffsetfrom = datetime.timedelta(seconds=tzoffsetfrom)
1160
- self.tzoffsetto = datetime.timedelta(seconds=tzoffsetto)
1161
- self.tzoffsetdiff = self.tzoffsetto - self.tzoffsetfrom
1162
- self.isdst = isdst
1163
- self.tzname = tzname
1164
- self.rrule = rrule
1165
-
1166
-
1167
- class _tzicalvtz(_tzinfo):
1168
- def __init__(self, tzid, comps=[]):
1169
- super(_tzicalvtz, self).__init__()
1170
-
1171
- self._tzid = tzid
1172
- self._comps = comps
1173
- self._cachedate = []
1174
- self._cachecomp = []
1175
- self._cache_lock = _thread.allocate_lock()
1176
-
1177
- def _find_comp(self, dt):
1178
- if len(self._comps) == 1:
1179
- return self._comps[0]
1180
-
1181
- dt = dt.replace(tzinfo=None)
1182
-
1183
- try:
1184
- with self._cache_lock:
1185
- return self._cachecomp[self._cachedate.index(
1186
- (dt, self._fold(dt)))]
1187
- except ValueError:
1188
- pass
1189
-
1190
- lastcompdt = None
1191
- lastcomp = None
1192
-
1193
- for comp in self._comps:
1194
- compdt = self._find_compdt(comp, dt)
1195
-
1196
- if compdt and (not lastcompdt or lastcompdt < compdt):
1197
- lastcompdt = compdt
1198
- lastcomp = comp
1199
-
1200
- if not lastcomp:
1201
- # RFC says nothing about what to do when a given
1202
- # time is before the first onset date. We'll look for the
1203
- # first standard component, or the first component, if
1204
- # none is found.
1205
- for comp in self._comps:
1206
- if not comp.isdst:
1207
- lastcomp = comp
1208
- break
1209
- else:
1210
- lastcomp = comp[0]
1211
-
1212
- with self._cache_lock:
1213
- self._cachedate.insert(0, (dt, self._fold(dt)))
1214
- self._cachecomp.insert(0, lastcomp)
1215
-
1216
- if len(self._cachedate) > 10:
1217
- self._cachedate.pop()
1218
- self._cachecomp.pop()
1219
-
1220
- return lastcomp
1221
-
1222
- def _find_compdt(self, comp, dt):
1223
- if comp.tzoffsetdiff < ZERO and self._fold(dt):
1224
- dt -= comp.tzoffsetdiff
1225
-
1226
- compdt = comp.rrule.before(dt, inc=True)
1227
-
1228
- return compdt
1229
-
1230
- def utcoffset(self, dt):
1231
- if dt is None:
1232
- return None
1233
-
1234
- return self._find_comp(dt).tzoffsetto
1235
-
1236
- def dst(self, dt):
1237
- comp = self._find_comp(dt)
1238
- if comp.isdst:
1239
- return comp.tzoffsetdiff
1240
- else:
1241
- return ZERO
1242
-
1243
- @tzname_in_python2
1244
- def tzname(self, dt):
1245
- return self._find_comp(dt).tzname
1246
-
1247
- def __repr__(self):
1248
- return "<tzicalvtz %s>" % repr(self._tzid)
1249
-
1250
- __reduce__ = object.__reduce__
1251
-
1252
-
1253
- class tzical(object):
1254
- """
1255
- This object is designed to parse an iCalendar-style ``VTIMEZONE`` structure
1256
- as set out in `RFC 5545`_ Section 4.6.5 into one or more `tzinfo` objects.
1257
-
1258
- :param `fileobj`:
1259
- A file or stream in iCalendar format, which should be UTF-8 encoded
1260
- with CRLF endings.
1261
-
1262
- .. _`RFC 5545`: https://tools.ietf.org/html/rfc5545
1263
- """
1264
- def __init__(self, fileobj):
1265
- global rrule
1266
- from dateutil import rrule
1267
-
1268
- if isinstance(fileobj, string_types):
1269
- self._s = fileobj
1270
- # ical should be encoded in UTF-8 with CRLF
1271
- fileobj = open(fileobj, 'r')
1272
- else:
1273
- self._s = getattr(fileobj, 'name', repr(fileobj))
1274
- fileobj = _nullcontext(fileobj)
1275
-
1276
- self._vtz = {}
1277
-
1278
- with fileobj as fobj:
1279
- self._parse_rfc(fobj.read())
1280
-
1281
- def keys(self):
1282
- """
1283
- Retrieves the available time zones as a list.
1284
- """
1285
- return list(self._vtz.keys())
1286
-
1287
- def get(self, tzid=None):
1288
- """
1289
- Retrieve a :py:class:`datetime.tzinfo` object by its ``tzid``.
1290
-
1291
- :param tzid:
1292
- If there is exactly one time zone available, omitting ``tzid``
1293
- or passing :py:const:`None` value returns it. Otherwise a valid
1294
- key (which can be retrieved from :func:`keys`) is required.
1295
-
1296
- :raises ValueError:
1297
- Raised if ``tzid`` is not specified but there are either more
1298
- or fewer than 1 zone defined.
1299
-
1300
- :returns:
1301
- Returns either a :py:class:`datetime.tzinfo` object representing
1302
- the relevant time zone or :py:const:`None` if the ``tzid`` was
1303
- not found.
1304
- """
1305
- if tzid is None:
1306
- if len(self._vtz) == 0:
1307
- raise ValueError("no timezones defined")
1308
- elif len(self._vtz) > 1:
1309
- raise ValueError("more than one timezone available")
1310
- tzid = next(iter(self._vtz))
1311
-
1312
- return self._vtz.get(tzid)
1313
-
1314
- def _parse_offset(self, s):
1315
- s = s.strip()
1316
- if not s:
1317
- raise ValueError("empty offset")
1318
- if s[0] in ('+', '-'):
1319
- signal = (-1, +1)[s[0] == '+']
1320
- s = s[1:]
1321
- else:
1322
- signal = +1
1323
- if len(s) == 4:
1324
- return (int(s[:2]) * 3600 + int(s[2:]) * 60) * signal
1325
- elif len(s) == 6:
1326
- return (int(s[:2]) * 3600 + int(s[2:4]) * 60 + int(s[4:])) * signal
1327
- else:
1328
- raise ValueError("invalid offset: " + s)
1329
-
1330
- def _parse_rfc(self, s):
1331
- lines = s.splitlines()
1332
- if not lines:
1333
- raise ValueError("empty string")
1334
-
1335
- # Unfold
1336
- i = 0
1337
- while i < len(lines):
1338
- line = lines[i].rstrip()
1339
- if not line:
1340
- del lines[i]
1341
- elif i > 0 and line[0] == " ":
1342
- lines[i-1] += line[1:]
1343
- del lines[i]
1344
- else:
1345
- i += 1
1346
-
1347
- tzid = None
1348
- comps = []
1349
- invtz = False
1350
- comptype = None
1351
- for line in lines:
1352
- if not line:
1353
- continue
1354
- name, value = line.split(':', 1)
1355
- parms = name.split(';')
1356
- if not parms:
1357
- raise ValueError("empty property name")
1358
- name = parms[0].upper()
1359
- parms = parms[1:]
1360
- if invtz:
1361
- if name == "BEGIN":
1362
- if value in ("STANDARD", "DAYLIGHT"):
1363
- # Process component
1364
- pass
1365
- else:
1366
- raise ValueError("unknown component: "+value)
1367
- comptype = value
1368
- founddtstart = False
1369
- tzoffsetfrom = None
1370
- tzoffsetto = None
1371
- rrulelines = []
1372
- tzname = None
1373
- elif name == "END":
1374
- if value == "VTIMEZONE":
1375
- if comptype:
1376
- raise ValueError("component not closed: "+comptype)
1377
- if not tzid:
1378
- raise ValueError("mandatory TZID not found")
1379
- if not comps:
1380
- raise ValueError(
1381
- "at least one component is needed")
1382
- # Process vtimezone
1383
- self._vtz[tzid] = _tzicalvtz(tzid, comps)
1384
- invtz = False
1385
- elif value == comptype:
1386
- if not founddtstart:
1387
- raise ValueError("mandatory DTSTART not found")
1388
- if tzoffsetfrom is None:
1389
- raise ValueError(
1390
- "mandatory TZOFFSETFROM not found")
1391
- if tzoffsetto is None:
1392
- raise ValueError(
1393
- "mandatory TZOFFSETFROM not found")
1394
- # Process component
1395
- rr = None
1396
- if rrulelines:
1397
- rr = rrule.rrulestr("\n".join(rrulelines),
1398
- compatible=True,
1399
- ignoretz=True,
1400
- cache=True)
1401
- comp = _tzicalvtzcomp(tzoffsetfrom, tzoffsetto,
1402
- (comptype == "DAYLIGHT"),
1403
- tzname, rr)
1404
- comps.append(comp)
1405
- comptype = None
1406
- else:
1407
- raise ValueError("invalid component end: "+value)
1408
- elif comptype:
1409
- if name == "DTSTART":
1410
- # DTSTART in VTIMEZONE takes a subset of valid RRULE
1411
- # values under RFC 5545.
1412
- for parm in parms:
1413
- if parm != 'VALUE=DATE-TIME':
1414
- msg = ('Unsupported DTSTART param in ' +
1415
- 'VTIMEZONE: ' + parm)
1416
- raise ValueError(msg)
1417
- rrulelines.append(line)
1418
- founddtstart = True
1419
- elif name in ("RRULE", "RDATE", "EXRULE", "EXDATE"):
1420
- rrulelines.append(line)
1421
- elif name == "TZOFFSETFROM":
1422
- if parms:
1423
- raise ValueError(
1424
- "unsupported %s parm: %s " % (name, parms[0]))
1425
- tzoffsetfrom = self._parse_offset(value)
1426
- elif name == "TZOFFSETTO":
1427
- if parms:
1428
- raise ValueError(
1429
- "unsupported TZOFFSETTO parm: "+parms[0])
1430
- tzoffsetto = self._parse_offset(value)
1431
- elif name == "TZNAME":
1432
- if parms:
1433
- raise ValueError(
1434
- "unsupported TZNAME parm: "+parms[0])
1435
- tzname = value
1436
- elif name == "COMMENT":
1437
- pass
1438
- else:
1439
- raise ValueError("unsupported property: "+name)
1440
- else:
1441
- if name == "TZID":
1442
- if parms:
1443
- raise ValueError(
1444
- "unsupported TZID parm: "+parms[0])
1445
- tzid = value
1446
- elif name in ("TZURL", "LAST-MODIFIED", "COMMENT"):
1447
- pass
1448
- else:
1449
- raise ValueError("unsupported property: "+name)
1450
- elif name == "BEGIN" and value == "VTIMEZONE":
1451
- tzid = None
1452
- comps = []
1453
- invtz = True
1454
-
1455
- def __repr__(self):
1456
- return "%s(%s)" % (self.__class__.__name__, repr(self._s))
1457
-
1458
-
1459
- if sys.platform != "win32":
1460
- TZFILES = ["/etc/localtime", "localtime"]
1461
- TZPATHS = ["/usr/share/zoneinfo",
1462
- "/usr/lib/zoneinfo",
1463
- "/usr/share/lib/zoneinfo",
1464
- "/etc/zoneinfo"]
1465
- else:
1466
- TZFILES = []
1467
- TZPATHS = []
1468
-
1469
-
1470
- def __get_gettz():
1471
- tzlocal_classes = (tzlocal,)
1472
- if tzwinlocal is not None:
1473
- tzlocal_classes += (tzwinlocal,)
1474
-
1475
- class GettzFunc(object):
1476
- """
1477
- Retrieve a time zone object from a string representation
1478
-
1479
- This function is intended to retrieve the :py:class:`tzinfo` subclass
1480
- that best represents the time zone that would be used if a POSIX
1481
- `TZ variable`_ were set to the same value.
1482
-
1483
- If no argument or an empty string is passed to ``gettz``, local time
1484
- is returned:
1485
-
1486
- .. code-block:: python3
1487
-
1488
- >>> gettz()
1489
- tzfile('/etc/localtime')
1490
-
1491
- This function is also the preferred way to map IANA tz database keys
1492
- to :class:`tzfile` objects:
1493
-
1494
- .. code-block:: python3
1495
-
1496
- >>> gettz('Pacific/Kiritimati')
1497
- tzfile('/usr/share/zoneinfo/Pacific/Kiritimati')
1498
-
1499
- On Windows, the standard is extended to include the Windows-specific
1500
- zone names provided by the operating system:
1501
-
1502
- .. code-block:: python3
1503
-
1504
- >>> gettz('Egypt Standard Time')
1505
- tzwin('Egypt Standard Time')
1506
-
1507
- Passing a GNU ``TZ`` style string time zone specification returns a
1508
- :class:`tzstr` object:
1509
-
1510
- .. code-block:: python3
1511
-
1512
- >>> gettz('AEST-10AEDT-11,M10.1.0/2,M4.1.0/3')
1513
- tzstr('AEST-10AEDT-11,M10.1.0/2,M4.1.0/3')
1514
-
1515
- :param name:
1516
- A time zone name (IANA, or, on Windows, Windows keys), location of
1517
- a ``tzfile(5)`` zoneinfo file or ``TZ`` variable style time zone
1518
- specifier. An empty string, no argument or ``None`` is interpreted
1519
- as local time.
1520
-
1521
- :return:
1522
- Returns an instance of one of ``dateutil``'s :py:class:`tzinfo`
1523
- subclasses.
1524
-
1525
- .. versionchanged:: 2.7.0
1526
-
1527
- After version 2.7.0, any two calls to ``gettz`` using the same
1528
- input strings will return the same object:
1529
-
1530
- .. code-block:: python3
1531
-
1532
- >>> tz.gettz('America/Chicago') is tz.gettz('America/Chicago')
1533
- True
1534
-
1535
- In addition to improving performance, this ensures that
1536
- `"same zone" semantics`_ are used for datetimes in the same zone.
1537
-
1538
-
1539
- .. _`TZ variable`:
1540
- https://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html
1541
-
1542
- .. _`"same zone" semantics`:
1543
- https://blog.ganssle.io/articles/2018/02/aware-datetime-arithmetic.html
1544
- """
1545
- def __init__(self):
1546
-
1547
- self.__instances = weakref.WeakValueDictionary()
1548
- self.__strong_cache_size = 8
1549
- self.__strong_cache = OrderedDict()
1550
- self._cache_lock = _thread.allocate_lock()
1551
-
1552
- def __call__(self, name=None):
1553
- with self._cache_lock:
1554
- rv = self.__instances.get(name, None)
1555
-
1556
- if rv is None:
1557
- rv = self.nocache(name=name)
1558
- if not (name is None
1559
- or isinstance(rv, tzlocal_classes)
1560
- or rv is None):
1561
- # tzlocal is slightly more complicated than the other
1562
- # time zone providers because it depends on environment
1563
- # at construction time, so don't cache that.
1564
- #
1565
- # We also cannot store weak references to None, so we
1566
- # will also not store that.
1567
- self.__instances[name] = rv
1568
- else:
1569
- # No need for strong caching, return immediately
1570
- return rv
1571
-
1572
- self.__strong_cache[name] = self.__strong_cache.pop(name, rv)
1573
-
1574
- if len(self.__strong_cache) > self.__strong_cache_size:
1575
- self.__strong_cache.popitem(last=False)
1576
-
1577
- return rv
1578
-
1579
- def set_cache_size(self, size):
1580
- with self._cache_lock:
1581
- self.__strong_cache_size = size
1582
- while len(self.__strong_cache) > size:
1583
- self.__strong_cache.popitem(last=False)
1584
-
1585
- def cache_clear(self):
1586
- with self._cache_lock:
1587
- self.__instances = weakref.WeakValueDictionary()
1588
- self.__strong_cache.clear()
1589
-
1590
- @staticmethod
1591
- def nocache(name=None):
1592
- """A non-cached version of gettz"""
1593
- tz = None
1594
- if not name:
1595
- try:
1596
- name = os.environ["TZ"]
1597
- except KeyError:
1598
- pass
1599
- if name is None or name in ("", ":"):
1600
- for filepath in TZFILES:
1601
- if not os.path.isabs(filepath):
1602
- filename = filepath
1603
- for path in TZPATHS:
1604
- filepath = os.path.join(path, filename)
1605
- if os.path.isfile(filepath):
1606
- break
1607
- else:
1608
- continue
1609
- if os.path.isfile(filepath):
1610
- try:
1611
- tz = tzfile(filepath)
1612
- break
1613
- except (IOError, OSError, ValueError):
1614
- pass
1615
- else:
1616
- tz = tzlocal()
1617
- else:
1618
- try:
1619
- if name.startswith(":"):
1620
- name = name[1:]
1621
- except TypeError as e:
1622
- if isinstance(name, bytes):
1623
- new_msg = "gettz argument should be str, not bytes"
1624
- six.raise_from(TypeError(new_msg), e)
1625
- else:
1626
- raise
1627
- if os.path.isabs(name):
1628
- if os.path.isfile(name):
1629
- tz = tzfile(name)
1630
- else:
1631
- tz = None
1632
- else:
1633
- for path in TZPATHS:
1634
- filepath = os.path.join(path, name)
1635
- if not os.path.isfile(filepath):
1636
- filepath = filepath.replace(' ', '_')
1637
- if not os.path.isfile(filepath):
1638
- continue
1639
- try:
1640
- tz = tzfile(filepath)
1641
- break
1642
- except (IOError, OSError, ValueError):
1643
- pass
1644
- else:
1645
- tz = None
1646
- if tzwin is not None:
1647
- try:
1648
- tz = tzwin(name)
1649
- except (WindowsError, UnicodeEncodeError):
1650
- # UnicodeEncodeError is for Python 2.7 compat
1651
- tz = None
1652
-
1653
- if not tz:
1654
- from dateutil.zoneinfo import get_zonefile_instance
1655
- tz = get_zonefile_instance().get(name)
1656
-
1657
- if not tz:
1658
- for c in name:
1659
- # name is not a tzstr unless it has at least
1660
- # one offset. For short values of "name", an
1661
- # explicit for loop seems to be the fastest way
1662
- # To determine if a string contains a digit
1663
- if c in "0123456789":
1664
- try:
1665
- tz = tzstr(name)
1666
- except ValueError:
1667
- pass
1668
- break
1669
- else:
1670
- if name in ("GMT", "UTC"):
1671
- tz = UTC
1672
- elif name in time.tzname:
1673
- tz = tzlocal()
1674
- return tz
1675
-
1676
- return GettzFunc()
1677
-
1678
-
1679
- gettz = __get_gettz()
1680
- del __get_gettz
1681
-
1682
-
1683
- def datetime_exists(dt, tz=None):
1684
- """
1685
- Given a datetime and a time zone, determine whether or not a given datetime
1686
- would fall in a gap.
1687
-
1688
- :param dt:
1689
- A :class:`datetime.datetime` (whose time zone will be ignored if ``tz``
1690
- is provided.)
1691
-
1692
- :param tz:
1693
- A :class:`datetime.tzinfo` with support for the ``fold`` attribute. If
1694
- ``None`` or not provided, the datetime's own time zone will be used.
1695
-
1696
- :return:
1697
- Returns a boolean value whether or not the "wall time" exists in
1698
- ``tz``.
1699
-
1700
- .. versionadded:: 2.7.0
1701
- """
1702
- if tz is None:
1703
- if dt.tzinfo is None:
1704
- raise ValueError('Datetime is naive and no time zone provided.')
1705
- tz = dt.tzinfo
1706
-
1707
- dt = dt.replace(tzinfo=None)
1708
-
1709
- # This is essentially a test of whether or not the datetime can survive
1710
- # a round trip to UTC.
1711
- dt_rt = dt.replace(tzinfo=tz).astimezone(UTC).astimezone(tz)
1712
- dt_rt = dt_rt.replace(tzinfo=None)
1713
-
1714
- return dt == dt_rt
1715
-
1716
-
1717
- def datetime_ambiguous(dt, tz=None):
1718
- """
1719
- Given a datetime and a time zone, determine whether or not a given datetime
1720
- is ambiguous (i.e if there are two times differentiated only by their DST
1721
- status).
1722
-
1723
- :param dt:
1724
- A :class:`datetime.datetime` (whose time zone will be ignored if ``tz``
1725
- is provided.)
1726
-
1727
- :param tz:
1728
- A :class:`datetime.tzinfo` with support for the ``fold`` attribute. If
1729
- ``None`` or not provided, the datetime's own time zone will be used.
1730
-
1731
- :return:
1732
- Returns a boolean value whether or not the "wall time" is ambiguous in
1733
- ``tz``.
1734
-
1735
- .. versionadded:: 2.6.0
1736
- """
1737
- if tz is None:
1738
- if dt.tzinfo is None:
1739
- raise ValueError('Datetime is naive and no time zone provided.')
1740
-
1741
- tz = dt.tzinfo
1742
-
1743
- # If a time zone defines its own "is_ambiguous" function, we'll use that.
1744
- is_ambiguous_fn = getattr(tz, 'is_ambiguous', None)
1745
- if is_ambiguous_fn is not None:
1746
- try:
1747
- return tz.is_ambiguous(dt)
1748
- except Exception:
1749
- pass
1750
-
1751
- # If it doesn't come out and tell us it's ambiguous, we'll just check if
1752
- # the fold attribute has any effect on this particular date and time.
1753
- dt = dt.replace(tzinfo=tz)
1754
- wall_0 = enfold(dt, fold=0)
1755
- wall_1 = enfold(dt, fold=1)
1756
-
1757
- same_offset = wall_0.utcoffset() == wall_1.utcoffset()
1758
- same_dst = wall_0.dst() == wall_1.dst()
1759
-
1760
- return not (same_offset and same_dst)
1761
-
1762
-
1763
- def resolve_imaginary(dt):
1764
- """
1765
- Given a datetime that may be imaginary, return an existing datetime.
1766
-
1767
- This function assumes that an imaginary datetime represents what the
1768
- wall time would be in a zone had the offset transition not occurred, so
1769
- it will always fall forward by the transition's change in offset.
1770
-
1771
- .. doctest::
1772
-
1773
- >>> from dateutil import tz
1774
- >>> from datetime import datetime
1775
- >>> NYC = tz.gettz('America/New_York')
1776
- >>> print(tz.resolve_imaginary(datetime(2017, 3, 12, 2, 30, tzinfo=NYC)))
1777
- 2017-03-12 03:30:00-04:00
1778
-
1779
- >>> KIR = tz.gettz('Pacific/Kiritimati')
1780
- >>> print(tz.resolve_imaginary(datetime(1995, 1, 1, 12, 30, tzinfo=KIR)))
1781
- 1995-01-02 12:30:00+14:00
1782
-
1783
- As a note, :func:`datetime.astimezone` is guaranteed to produce a valid,
1784
- existing datetime, so a round-trip to and from UTC is sufficient to get
1785
- an extant datetime, however, this generally "falls back" to an earlier time
1786
- rather than falling forward to the STD side (though no guarantees are made
1787
- about this behavior).
1788
-
1789
- :param dt:
1790
- A :class:`datetime.datetime` which may or may not exist.
1791
-
1792
- :return:
1793
- Returns an existing :class:`datetime.datetime`. If ``dt`` was not
1794
- imaginary, the datetime returned is guaranteed to be the same object
1795
- passed to the function.
1796
-
1797
- .. versionadded:: 2.7.0
1798
- """
1799
- if dt.tzinfo is not None and not datetime_exists(dt):
1800
-
1801
- curr_offset = (dt + datetime.timedelta(hours=24)).utcoffset()
1802
- old_offset = (dt - datetime.timedelta(hours=24)).utcoffset()
1803
-
1804
- dt += curr_offset - old_offset
1805
-
1806
- return dt
1807
-
1808
-
1809
- def _datetime_to_timestamp(dt):
1810
- """
1811
- Convert a :class:`datetime.datetime` object to an epoch timestamp in
1812
- seconds since January 1, 1970, ignoring the time zone.
1813
- """
1814
- return (dt.replace(tzinfo=None) - EPOCH).total_seconds()
1815
-
1816
-
1817
- if sys.version_info >= (3, 6):
1818
- def _get_supported_offset(second_offset):
1819
- return second_offset
1820
- else:
1821
- def _get_supported_offset(second_offset):
1822
- # For python pre-3.6, round to full-minutes if that's not the case.
1823
- # Python's datetime doesn't accept sub-minute timezones. Check
1824
- # http://python.org/sf/1447945 or https://bugs.python.org/issue5288
1825
- # for some information.
1826
- old_offset = second_offset
1827
- calculated_offset = 60 * ((second_offset + 30) // 60)
1828
- return calculated_offset
1829
-
1830
-
1831
- try:
1832
- # Python 3.7 feature
1833
- from contextlib import nullcontext as _nullcontext
1834
- except ImportError:
1835
- class _nullcontext(object):
1836
- """
1837
- Class for wrapping contexts so that they are passed through in a
1838
- with statement.
1839
- """
1840
- def __init__(self, context):
1841
- self.context = context
1842
-
1843
- def __enter__(self):
1844
- return self.context
1845
-
1846
- def __exit__(*args, **kwargs):
1847
- pass
1848
-
1849
- # vim:ts=4:sw=4:et
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.11/site-packages/dateutil/tz/win.py DELETED
@@ -1,370 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- """
3
- This module provides an interface to the native time zone data on Windows,
4
- including :py:class:`datetime.tzinfo` implementations.
5
-
6
- Attempting to import this module on a non-Windows platform will raise an
7
- :py:obj:`ImportError`.
8
- """
9
- # This code was originally contributed by Jeffrey Harris.
10
- import datetime
11
- import struct
12
-
13
- from six.moves import winreg
14
- from six import text_type
15
-
16
- try:
17
- import ctypes
18
- from ctypes import wintypes
19
- except ValueError:
20
- # ValueError is raised on non-Windows systems for some horrible reason.
21
- raise ImportError("Running tzwin on non-Windows system")
22
-
23
- from ._common import tzrangebase
24
-
25
- __all__ = ["tzwin", "tzwinlocal", "tzres"]
26
-
27
- ONEWEEK = datetime.timedelta(7)
28
-
29
- TZKEYNAMENT = r"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones"
30
- TZKEYNAME9X = r"SOFTWARE\Microsoft\Windows\CurrentVersion\Time Zones"
31
- TZLOCALKEYNAME = r"SYSTEM\CurrentControlSet\Control\TimeZoneInformation"
32
-
33
-
34
- def _settzkeyname():
35
- handle = winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE)
36
- try:
37
- winreg.OpenKey(handle, TZKEYNAMENT).Close()
38
- TZKEYNAME = TZKEYNAMENT
39
- except WindowsError:
40
- TZKEYNAME = TZKEYNAME9X
41
- handle.Close()
42
- return TZKEYNAME
43
-
44
-
45
- TZKEYNAME = _settzkeyname()
46
-
47
-
48
- class tzres(object):
49
- """
50
- Class for accessing ``tzres.dll``, which contains timezone name related
51
- resources.
52
-
53
- .. versionadded:: 2.5.0
54
- """
55
- p_wchar = ctypes.POINTER(wintypes.WCHAR) # Pointer to a wide char
56
-
57
- def __init__(self, tzres_loc='tzres.dll'):
58
- # Load the user32 DLL so we can load strings from tzres
59
- user32 = ctypes.WinDLL('user32')
60
-
61
- # Specify the LoadStringW function
62
- user32.LoadStringW.argtypes = (wintypes.HINSTANCE,
63
- wintypes.UINT,
64
- wintypes.LPWSTR,
65
- ctypes.c_int)
66
-
67
- self.LoadStringW = user32.LoadStringW
68
- self._tzres = ctypes.WinDLL(tzres_loc)
69
- self.tzres_loc = tzres_loc
70
-
71
- def load_name(self, offset):
72
- """
73
- Load a timezone name from a DLL offset (integer).
74
-
75
- >>> from dateutil.tzwin import tzres
76
- >>> tzr = tzres()
77
- >>> print(tzr.load_name(112))
78
- 'Eastern Standard Time'
79
-
80
- :param offset:
81
- A positive integer value referring to a string from the tzres dll.
82
-
83
- .. note::
84
-
85
- Offsets found in the registry are generally of the form
86
- ``@tzres.dll,-114``. The offset in this case is 114, not -114.
87
-
88
- """
89
- resource = self.p_wchar()
90
- lpBuffer = ctypes.cast(ctypes.byref(resource), wintypes.LPWSTR)
91
- nchar = self.LoadStringW(self._tzres._handle, offset, lpBuffer, 0)
92
- return resource[:nchar]
93
-
94
- def name_from_string(self, tzname_str):
95
- """
96
- Parse strings as returned from the Windows registry into the time zone
97
- name as defined in the registry.
98
-
99
- >>> from dateutil.tzwin import tzres
100
- >>> tzr = tzres()
101
- >>> print(tzr.name_from_string('@tzres.dll,-251'))
102
- 'Dateline Daylight Time'
103
- >>> print(tzr.name_from_string('Eastern Standard Time'))
104
- 'Eastern Standard Time'
105
-
106
- :param tzname_str:
107
- A timezone name string as returned from a Windows registry key.
108
-
109
- :return:
110
- Returns the localized timezone string from tzres.dll if the string
111
- is of the form `@tzres.dll,-offset`, else returns the input string.
112
- """
113
- if not tzname_str.startswith('@'):
114
- return tzname_str
115
-
116
- name_splt = tzname_str.split(',-')
117
- try:
118
- offset = int(name_splt[1])
119
- except:
120
- raise ValueError("Malformed timezone string.")
121
-
122
- return self.load_name(offset)
123
-
124
-
125
- class tzwinbase(tzrangebase):
126
- """tzinfo class based on win32's timezones available in the registry."""
127
- def __init__(self):
128
- raise NotImplementedError('tzwinbase is an abstract base class')
129
-
130
- def __eq__(self, other):
131
- # Compare on all relevant dimensions, including name.
132
- if not isinstance(other, tzwinbase):
133
- return NotImplemented
134
-
135
- return (self._std_offset == other._std_offset and
136
- self._dst_offset == other._dst_offset and
137
- self._stddayofweek == other._stddayofweek and
138
- self._dstdayofweek == other._dstdayofweek and
139
- self._stdweeknumber == other._stdweeknumber and
140
- self._dstweeknumber == other._dstweeknumber and
141
- self._stdhour == other._stdhour and
142
- self._dsthour == other._dsthour and
143
- self._stdminute == other._stdminute and
144
- self._dstminute == other._dstminute and
145
- self._std_abbr == other._std_abbr and
146
- self._dst_abbr == other._dst_abbr)
147
-
148
- @staticmethod
149
- def list():
150
- """Return a list of all time zones known to the system."""
151
- with winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE) as handle:
152
- with winreg.OpenKey(handle, TZKEYNAME) as tzkey:
153
- result = [winreg.EnumKey(tzkey, i)
154
- for i in range(winreg.QueryInfoKey(tzkey)[0])]
155
- return result
156
-
157
- def display(self):
158
- """
159
- Return the display name of the time zone.
160
- """
161
- return self._display
162
-
163
- def transitions(self, year):
164
- """
165
- For a given year, get the DST on and off transition times, expressed
166
- always on the standard time side. For zones with no transitions, this
167
- function returns ``None``.
168
-
169
- :param year:
170
- The year whose transitions you would like to query.
171
-
172
- :return:
173
- Returns a :class:`tuple` of :class:`datetime.datetime` objects,
174
- ``(dston, dstoff)`` for zones with an annual DST transition, or
175
- ``None`` for fixed offset zones.
176
- """
177
-
178
- if not self.hasdst:
179
- return None
180
-
181
- dston = picknthweekday(year, self._dstmonth, self._dstdayofweek,
182
- self._dsthour, self._dstminute,
183
- self._dstweeknumber)
184
-
185
- dstoff = picknthweekday(year, self._stdmonth, self._stddayofweek,
186
- self._stdhour, self._stdminute,
187
- self._stdweeknumber)
188
-
189
- # Ambiguous dates default to the STD side
190
- dstoff -= self._dst_base_offset
191
-
192
- return dston, dstoff
193
-
194
- def _get_hasdst(self):
195
- return self._dstmonth != 0
196
-
197
- @property
198
- def _dst_base_offset(self):
199
- return self._dst_base_offset_
200
-
201
-
202
- class tzwin(tzwinbase):
203
- """
204
- Time zone object created from the zone info in the Windows registry
205
-
206
- These are similar to :py:class:`dateutil.tz.tzrange` objects in that
207
- the time zone data is provided in the format of a single offset rule
208
- for either 0 or 2 time zone transitions per year.
209
-
210
- :param: name
211
- The name of a Windows time zone key, e.g. "Eastern Standard Time".
212
- The full list of keys can be retrieved with :func:`tzwin.list`.
213
- """
214
-
215
- def __init__(self, name):
216
- self._name = name
217
-
218
- with winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE) as handle:
219
- tzkeyname = text_type("{kn}\\{name}").format(kn=TZKEYNAME, name=name)
220
- with winreg.OpenKey(handle, tzkeyname) as tzkey:
221
- keydict = valuestodict(tzkey)
222
-
223
- self._std_abbr = keydict["Std"]
224
- self._dst_abbr = keydict["Dlt"]
225
-
226
- self._display = keydict["Display"]
227
-
228
- # See http://ww_winreg.jsiinc.com/SUBA/tip0300/rh0398.htm
229
- tup = struct.unpack("=3l16h", keydict["TZI"])
230
- stdoffset = -tup[0]-tup[1] # Bias + StandardBias * -1
231
- dstoffset = stdoffset-tup[2] # + DaylightBias * -1
232
- self._std_offset = datetime.timedelta(minutes=stdoffset)
233
- self._dst_offset = datetime.timedelta(minutes=dstoffset)
234
-
235
- # for the meaning see the win32 TIME_ZONE_INFORMATION structure docs
236
- # http://msdn.microsoft.com/en-us/library/windows/desktop/ms725481(v=vs.85).aspx
237
- (self._stdmonth,
238
- self._stddayofweek, # Sunday = 0
239
- self._stdweeknumber, # Last = 5
240
- self._stdhour,
241
- self._stdminute) = tup[4:9]
242
-
243
- (self._dstmonth,
244
- self._dstdayofweek, # Sunday = 0
245
- self._dstweeknumber, # Last = 5
246
- self._dsthour,
247
- self._dstminute) = tup[12:17]
248
-
249
- self._dst_base_offset_ = self._dst_offset - self._std_offset
250
- self.hasdst = self._get_hasdst()
251
-
252
- def __repr__(self):
253
- return "tzwin(%s)" % repr(self._name)
254
-
255
- def __reduce__(self):
256
- return (self.__class__, (self._name,))
257
-
258
-
259
- class tzwinlocal(tzwinbase):
260
- """
261
- Class representing the local time zone information in the Windows registry
262
-
263
- While :class:`dateutil.tz.tzlocal` makes system calls (via the :mod:`time`
264
- module) to retrieve time zone information, ``tzwinlocal`` retrieves the
265
- rules directly from the Windows registry and creates an object like
266
- :class:`dateutil.tz.tzwin`.
267
-
268
- Because Windows does not have an equivalent of :func:`time.tzset`, on
269
- Windows, :class:`dateutil.tz.tzlocal` instances will always reflect the
270
- time zone settings *at the time that the process was started*, meaning
271
- changes to the machine's time zone settings during the run of a program
272
- on Windows will **not** be reflected by :class:`dateutil.tz.tzlocal`.
273
- Because ``tzwinlocal`` reads the registry directly, it is unaffected by
274
- this issue.
275
- """
276
- def __init__(self):
277
- with winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE) as handle:
278
- with winreg.OpenKey(handle, TZLOCALKEYNAME) as tzlocalkey:
279
- keydict = valuestodict(tzlocalkey)
280
-
281
- self._std_abbr = keydict["StandardName"]
282
- self._dst_abbr = keydict["DaylightName"]
283
-
284
- try:
285
- tzkeyname = text_type('{kn}\\{sn}').format(kn=TZKEYNAME,
286
- sn=self._std_abbr)
287
- with winreg.OpenKey(handle, tzkeyname) as tzkey:
288
- _keydict = valuestodict(tzkey)
289
- self._display = _keydict["Display"]
290
- except OSError:
291
- self._display = None
292
-
293
- stdoffset = -keydict["Bias"]-keydict["StandardBias"]
294
- dstoffset = stdoffset-keydict["DaylightBias"]
295
-
296
- self._std_offset = datetime.timedelta(minutes=stdoffset)
297
- self._dst_offset = datetime.timedelta(minutes=dstoffset)
298
-
299
- # For reasons unclear, in this particular key, the day of week has been
300
- # moved to the END of the SYSTEMTIME structure.
301
- tup = struct.unpack("=8h", keydict["StandardStart"])
302
-
303
- (self._stdmonth,
304
- self._stdweeknumber, # Last = 5
305
- self._stdhour,
306
- self._stdminute) = tup[1:5]
307
-
308
- self._stddayofweek = tup[7]
309
-
310
- tup = struct.unpack("=8h", keydict["DaylightStart"])
311
-
312
- (self._dstmonth,
313
- self._dstweeknumber, # Last = 5
314
- self._dsthour,
315
- self._dstminute) = tup[1:5]
316
-
317
- self._dstdayofweek = tup[7]
318
-
319
- self._dst_base_offset_ = self._dst_offset - self._std_offset
320
- self.hasdst = self._get_hasdst()
321
-
322
- def __repr__(self):
323
- return "tzwinlocal()"
324
-
325
- def __str__(self):
326
- # str will return the standard name, not the daylight name.
327
- return "tzwinlocal(%s)" % repr(self._std_abbr)
328
-
329
- def __reduce__(self):
330
- return (self.__class__, ())
331
-
332
-
333
- def picknthweekday(year, month, dayofweek, hour, minute, whichweek):
334
- """ dayofweek == 0 means Sunday, whichweek 5 means last instance """
335
- first = datetime.datetime(year, month, 1, hour, minute)
336
-
337
- # This will work if dayofweek is ISO weekday (1-7) or Microsoft-style (0-6),
338
- # Because 7 % 7 = 0
339
- weekdayone = first.replace(day=((dayofweek - first.isoweekday()) % 7) + 1)
340
- wd = weekdayone + ((whichweek - 1) * ONEWEEK)
341
- if (wd.month != month):
342
- wd -= ONEWEEK
343
-
344
- return wd
345
-
346
-
347
- def valuestodict(key):
348
- """Convert a registry key's values to a dictionary."""
349
- dout = {}
350
- size = winreg.QueryInfoKey(key)[1]
351
- tz_res = None
352
-
353
- for i in range(size):
354
- key_name, value, dtype = winreg.EnumValue(key, i)
355
- if dtype == winreg.REG_DWORD or dtype == winreg.REG_DWORD_LITTLE_ENDIAN:
356
- # If it's a DWORD (32-bit integer), it's stored as unsigned - convert
357
- # that to a proper signed integer
358
- if value & (1 << 31):
359
- value = value - (1 << 32)
360
- elif dtype == winreg.REG_SZ:
361
- # If it's a reference to the tzres DLL, load the actual string
362
- if value.startswith('@tzres'):
363
- tz_res = tz_res or tzres()
364
- value = tz_res.name_from_string(value)
365
-
366
- value = value.rstrip('\x00') # Remove trailing nulls
367
-
368
- dout[key_name] = value
369
-
370
- return dout
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.11/site-packages/dateutil/tzwin.py DELETED
@@ -1,2 +0,0 @@
1
- # tzwin has moved to dateutil.tz.win
2
- from .tz.win import *
 
 
 
.venv/lib/python3.11/site-packages/dateutil/utils.py DELETED
@@ -1,71 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- """
3
- This module offers general convenience and utility functions for dealing with
4
- datetimes.
5
-
6
- .. versionadded:: 2.7.0
7
- """
8
- from __future__ import unicode_literals
9
-
10
- from datetime import datetime, time
11
-
12
-
13
- def today(tzinfo=None):
14
- """
15
- Returns a :py:class:`datetime` representing the current day at midnight
16
-
17
- :param tzinfo:
18
- The time zone to attach (also used to determine the current day).
19
-
20
- :return:
21
- A :py:class:`datetime.datetime` object representing the current day
22
- at midnight.
23
- """
24
-
25
- dt = datetime.now(tzinfo)
26
- return datetime.combine(dt.date(), time(0, tzinfo=tzinfo))
27
-
28
-
29
- def default_tzinfo(dt, tzinfo):
30
- """
31
- Sets the ``tzinfo`` parameter on naive datetimes only
32
-
33
- This is useful for example when you are provided a datetime that may have
34
- either an implicit or explicit time zone, such as when parsing a time zone
35
- string.
36
-
37
- .. doctest::
38
-
39
- >>> from dateutil.tz import tzoffset
40
- >>> from dateutil.parser import parse
41
- >>> from dateutil.utils import default_tzinfo
42
- >>> dflt_tz = tzoffset("EST", -18000)
43
- >>> print(default_tzinfo(parse('2014-01-01 12:30 UTC'), dflt_tz))
44
- 2014-01-01 12:30:00+00:00
45
- >>> print(default_tzinfo(parse('2014-01-01 12:30'), dflt_tz))
46
- 2014-01-01 12:30:00-05:00
47
-
48
- :param dt:
49
- The datetime on which to replace the time zone
50
-
51
- :param tzinfo:
52
- The :py:class:`datetime.tzinfo` subclass instance to assign to
53
- ``dt`` if (and only if) it is naive.
54
-
55
- :return:
56
- Returns an aware :py:class:`datetime.datetime`.
57
- """
58
- if dt.tzinfo is not None:
59
- return dt
60
- else:
61
- return dt.replace(tzinfo=tzinfo)
62
-
63
-
64
- def within_delta(dt1, dt2, delta):
65
- """
66
- Useful for comparing two datetimes that may have a negligible difference
67
- to be considered equal.
68
- """
69
- delta = abs(delta)
70
- difference = dt1 - dt2
71
- return -delta <= difference <= delta
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.11/site-packages/dateutil/zoneinfo/__init__.py DELETED
@@ -1,167 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- import warnings
3
- import json
4
-
5
- from tarfile import TarFile
6
- from pkgutil import get_data
7
- from io import BytesIO
8
-
9
- from dateutil.tz import tzfile as _tzfile
10
-
11
- __all__ = ["get_zonefile_instance", "gettz", "gettz_db_metadata"]
12
-
13
- ZONEFILENAME = "dateutil-zoneinfo.tar.gz"
14
- METADATA_FN = 'METADATA'
15
-
16
-
17
- class tzfile(_tzfile):
18
- def __reduce__(self):
19
- return (gettz, (self._filename,))
20
-
21
-
22
- def getzoneinfofile_stream():
23
- try:
24
- return BytesIO(get_data(__name__, ZONEFILENAME))
25
- except IOError as e: # TODO switch to FileNotFoundError?
26
- warnings.warn("I/O error({0}): {1}".format(e.errno, e.strerror))
27
- return None
28
-
29
-
30
- class ZoneInfoFile(object):
31
- def __init__(self, zonefile_stream=None):
32
- if zonefile_stream is not None:
33
- with TarFile.open(fileobj=zonefile_stream) as tf:
34
- self.zones = {zf.name: tzfile(tf.extractfile(zf), filename=zf.name)
35
- for zf in tf.getmembers()
36
- if zf.isfile() and zf.name != METADATA_FN}
37
- # deal with links: They'll point to their parent object. Less
38
- # waste of memory
39
- links = {zl.name: self.zones[zl.linkname]
40
- for zl in tf.getmembers() if
41
- zl.islnk() or zl.issym()}
42
- self.zones.update(links)
43
- try:
44
- metadata_json = tf.extractfile(tf.getmember(METADATA_FN))
45
- metadata_str = metadata_json.read().decode('UTF-8')
46
- self.metadata = json.loads(metadata_str)
47
- except KeyError:
48
- # no metadata in tar file
49
- self.metadata = None
50
- else:
51
- self.zones = {}
52
- self.metadata = None
53
-
54
- def get(self, name, default=None):
55
- """
56
- Wrapper for :func:`ZoneInfoFile.zones.get`. This is a convenience method
57
- for retrieving zones from the zone dictionary.
58
-
59
- :param name:
60
- The name of the zone to retrieve. (Generally IANA zone names)
61
-
62
- :param default:
63
- The value to return in the event of a missing key.
64
-
65
- .. versionadded:: 2.6.0
66
-
67
- """
68
- return self.zones.get(name, default)
69
-
70
-
71
- # The current API has gettz as a module function, although in fact it taps into
72
- # a stateful class. So as a workaround for now, without changing the API, we
73
- # will create a new "global" class instance the first time a user requests a
74
- # timezone. Ugly, but adheres to the api.
75
- #
76
- # TODO: Remove after deprecation period.
77
- _CLASS_ZONE_INSTANCE = []
78
-
79
-
80
- def get_zonefile_instance(new_instance=False):
81
- """
82
- This is a convenience function which provides a :class:`ZoneInfoFile`
83
- instance using the data provided by the ``dateutil`` package. By default, it
84
- caches a single instance of the ZoneInfoFile object and returns that.
85
-
86
- :param new_instance:
87
- If ``True``, a new instance of :class:`ZoneInfoFile` is instantiated and
88
- used as the cached instance for the next call. Otherwise, new instances
89
- are created only as necessary.
90
-
91
- :return:
92
- Returns a :class:`ZoneInfoFile` object.
93
-
94
- .. versionadded:: 2.6
95
- """
96
- if new_instance:
97
- zif = None
98
- else:
99
- zif = getattr(get_zonefile_instance, '_cached_instance', None)
100
-
101
- if zif is None:
102
- zif = ZoneInfoFile(getzoneinfofile_stream())
103
-
104
- get_zonefile_instance._cached_instance = zif
105
-
106
- return zif
107
-
108
-
109
- def gettz(name):
110
- """
111
- This retrieves a time zone from the local zoneinfo tarball that is packaged
112
- with dateutil.
113
-
114
- :param name:
115
- An IANA-style time zone name, as found in the zoneinfo file.
116
-
117
- :return:
118
- Returns a :class:`dateutil.tz.tzfile` time zone object.
119
-
120
- .. warning::
121
- It is generally inadvisable to use this function, and it is only
122
- provided for API compatibility with earlier versions. This is *not*
123
- equivalent to ``dateutil.tz.gettz()``, which selects an appropriate
124
- time zone based on the inputs, favoring system zoneinfo. This is ONLY
125
- for accessing the dateutil-specific zoneinfo (which may be out of
126
- date compared to the system zoneinfo).
127
-
128
- .. deprecated:: 2.6
129
- If you need to use a specific zoneinfofile over the system zoneinfo,
130
- instantiate a :class:`dateutil.zoneinfo.ZoneInfoFile` object and call
131
- :func:`dateutil.zoneinfo.ZoneInfoFile.get(name)` instead.
132
-
133
- Use :func:`get_zonefile_instance` to retrieve an instance of the
134
- dateutil-provided zoneinfo.
135
- """
136
- warnings.warn("zoneinfo.gettz() will be removed in future versions, "
137
- "to use the dateutil-provided zoneinfo files, instantiate a "
138
- "ZoneInfoFile object and use ZoneInfoFile.zones.get() "
139
- "instead. See the documentation for details.",
140
- DeprecationWarning)
141
-
142
- if len(_CLASS_ZONE_INSTANCE) == 0:
143
- _CLASS_ZONE_INSTANCE.append(ZoneInfoFile(getzoneinfofile_stream()))
144
- return _CLASS_ZONE_INSTANCE[0].zones.get(name)
145
-
146
-
147
- def gettz_db_metadata():
148
- """ Get the zonefile metadata
149
-
150
- See `zonefile_metadata`_
151
-
152
- :returns:
153
- A dictionary with the database metadata
154
-
155
- .. deprecated:: 2.6
156
- See deprecation warning in :func:`zoneinfo.gettz`. To get metadata,
157
- query the attribute ``zoneinfo.ZoneInfoFile.metadata``.
158
- """
159
- warnings.warn("zoneinfo.gettz_db_metadata() will be removed in future "
160
- "versions, to use the dateutil-provided zoneinfo files, "
161
- "ZoneInfoFile object and query the 'metadata' attribute "
162
- "instead. See the documentation for details.",
163
- DeprecationWarning)
164
-
165
- if len(_CLASS_ZONE_INSTANCE) == 0:
166
- _CLASS_ZONE_INSTANCE.append(ZoneInfoFile(getzoneinfofile_stream()))
167
- return _CLASS_ZONE_INSTANCE[0].metadata
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.11/site-packages/dateutil/zoneinfo/dateutil-zoneinfo.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:d3ea52e7b6e968de0d884df1288193596fa95b803db4f92a18279a7398004475
3
- size 156400
 
 
 
 
.venv/lib/python3.11/site-packages/dateutil/zoneinfo/rebuild.py DELETED
@@ -1,75 +0,0 @@
1
- import logging
2
- import os
3
- import tempfile
4
- import shutil
5
- import json
6
- from subprocess import check_call, check_output
7
- from tarfile import TarFile
8
-
9
- from dateutil.zoneinfo import METADATA_FN, ZONEFILENAME
10
-
11
-
12
- def rebuild(filename, tag=None, format="gz", zonegroups=[], metadata=None):
13
- """Rebuild the internal timezone info in dateutil/zoneinfo/zoneinfo*tar*
14
-
15
- filename is the timezone tarball from ``ftp.iana.org/tz``.
16
-
17
- """
18
- tmpdir = tempfile.mkdtemp()
19
- zonedir = os.path.join(tmpdir, "zoneinfo")
20
- moduledir = os.path.dirname(__file__)
21
- try:
22
- with TarFile.open(filename) as tf:
23
- for name in zonegroups:
24
- tf.extract(name, tmpdir)
25
- filepaths = [os.path.join(tmpdir, n) for n in zonegroups]
26
-
27
- _run_zic(zonedir, filepaths)
28
-
29
- # write metadata file
30
- with open(os.path.join(zonedir, METADATA_FN), 'w') as f:
31
- json.dump(metadata, f, indent=4, sort_keys=True)
32
- target = os.path.join(moduledir, ZONEFILENAME)
33
- with TarFile.open(target, "w:%s" % format) as tf:
34
- for entry in os.listdir(zonedir):
35
- entrypath = os.path.join(zonedir, entry)
36
- tf.add(entrypath, entry)
37
- finally:
38
- shutil.rmtree(tmpdir)
39
-
40
-
41
- def _run_zic(zonedir, filepaths):
42
- """Calls the ``zic`` compiler in a compatible way to get a "fat" binary.
43
-
44
- Recent versions of ``zic`` default to ``-b slim``, while older versions
45
- don't even have the ``-b`` option (but default to "fat" binaries). The
46
- current version of dateutil does not support Version 2+ TZif files, which
47
- causes problems when used in conjunction with "slim" binaries, so this
48
- function is used to ensure that we always get a "fat" binary.
49
- """
50
-
51
- try:
52
- help_text = check_output(["zic", "--help"])
53
- except OSError as e:
54
- _print_on_nosuchfile(e)
55
- raise
56
-
57
- if b"-b " in help_text:
58
- bloat_args = ["-b", "fat"]
59
- else:
60
- bloat_args = []
61
-
62
- check_call(["zic"] + bloat_args + ["-d", zonedir] + filepaths)
63
-
64
-
65
- def _print_on_nosuchfile(e):
66
- """Print helpful troubleshooting message
67
-
68
- e is an exception raised by subprocess.check_call()
69
-
70
- """
71
- if e.errno == 2:
72
- logging.error(
73
- "Could not find zic. Perhaps you need to install "
74
- "libc-bin or some other package that provides it, "
75
- "or it's not in your PATH?")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.11/site-packages/numpy-2.4.6.dist-info/INSTALLER DELETED
@@ -1 +0,0 @@
1
- uv
 
 
.venv/lib/python3.11/site-packages/numpy-2.4.6.dist-info/METADATA DELETED
@@ -1,139 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: numpy
3
- Version: 2.4.6
4
- Summary: Fundamental package for array computing in Python
5
- Author: Travis E. Oliphant et al.
6
- Maintainer-Email: NumPy Developers <numpy-discussion@python.org>
7
- License-Expression: BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0
8
- License-File: LICENSE.txt
9
- License-File: numpy/_core/include/numpy/libdivide/LICENSE.txt
10
- License-File: numpy/_core/src/common/pythoncapi-compat/COPYING
11
- License-File: numpy/_core/src/highway/LICENSE
12
- License-File: numpy/_core/src/multiarray/dragon4_LICENSE.txt
13
- License-File: numpy/_core/src/npysort/x86-simd-sort/LICENSE.md
14
- License-File: numpy/_core/src/umath/svml/LICENSE
15
- License-File: numpy/fft/pocketfft/LICENSE.md
16
- License-File: numpy/linalg/lapack_lite/LICENSE.txt
17
- License-File: numpy/ma/LICENSE
18
- License-File: numpy/random/LICENSE.md
19
- License-File: numpy/random/src/distributions/LICENSE.md
20
- License-File: numpy/random/src/mt19937/LICENSE.md
21
- License-File: numpy/random/src/pcg64/LICENSE.md
22
- License-File: numpy/random/src/philox/LICENSE.md
23
- License-File: numpy/random/src/sfc64/LICENSE.md
24
- License-File: numpy/random/src/splitmix64/LICENSE.md
25
- Classifier: Development Status :: 5 - Production/Stable
26
- Classifier: Intended Audience :: Science/Research
27
- Classifier: Intended Audience :: Developers
28
- Classifier: Programming Language :: C
29
- Classifier: Programming Language :: Python
30
- Classifier: Programming Language :: Python :: 3
31
- Classifier: Programming Language :: Python :: 3.11
32
- Classifier: Programming Language :: Python :: 3.12
33
- Classifier: Programming Language :: Python :: 3.13
34
- Classifier: Programming Language :: Python :: 3.14
35
- Classifier: Programming Language :: Python :: 3 :: Only
36
- Classifier: Programming Language :: Python :: Implementation :: CPython
37
- Classifier: Topic :: Software Development
38
- Classifier: Topic :: Scientific/Engineering
39
- Classifier: Typing :: Typed
40
- Classifier: Operating System :: Microsoft :: Windows
41
- Classifier: Operating System :: POSIX
42
- Classifier: Operating System :: Unix
43
- Classifier: Operating System :: MacOS
44
- Project-URL: homepage, https://numpy.org
45
- Project-URL: documentation, https://numpy.org/doc/
46
- Project-URL: source, https://github.com/numpy/numpy
47
- Project-URL: download, https://pypi.org/project/numpy/#files
48
- Project-URL: tracker, https://github.com/numpy/numpy/issues
49
- Project-URL: release notes, https://numpy.org/doc/stable/release
50
- Requires-Python: >=3.11
51
- Description-Content-Type: text/markdown
52
-
53
- <h1 align="center">
54
- <img src="https://raw.githubusercontent.com/numpy/numpy/main/branding/logo/primary/numpylogo.svg" width="300">
55
- </h1><br>
56
-
57
-
58
- [![Powered by NumFOCUS](https://img.shields.io/badge/powered%20by-NumFOCUS-orange.svg?style=flat&colorA=E1523D&colorB=007D8A)](
59
- https://numfocus.org)
60
- [![PyPI Downloads](https://img.shields.io/pypi/dm/numpy.svg?label=PyPI%20downloads)](
61
- https://pypi.org/project/numpy/)
62
- [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/numpy.svg?label=Conda%20downloads)](
63
- https://anaconda.org/conda-forge/numpy)
64
- [![Stack Overflow](https://img.shields.io/badge/stackoverflow-Ask%20questions-blue.svg)](
65
- https://stackoverflow.com/questions/tagged/numpy)
66
- [![Nature Paper](https://img.shields.io/badge/DOI-10.1038%2Fs41586--020--2649--2-blue)](
67
- https://doi.org/10.1038/s41586-020-2649-2)
68
- [![LFX Health Score](https://insights.linuxfoundation.org/api/badge/health-score?project=numpy)](https://insights.linuxfoundation.org/project/numpy)
69
- [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/numpy/numpy/badge)](https://securityscorecards.dev/viewer/?uri=github.com/numpy/numpy)
70
- [![Typing](https://img.shields.io/pypi/types/numpy)](https://pypi.org/project/numpy/)
71
-
72
-
73
- NumPy is the fundamental package for scientific computing with Python.
74
-
75
- - **Website:** https://numpy.org
76
- - **Documentation:** https://numpy.org/doc
77
- - **Mailing list:** https://mail.python.org/mailman/listinfo/numpy-discussion
78
- - **Source code:** https://github.com/numpy/numpy
79
- - **Contributing:** https://numpy.org/devdocs/dev/index.html
80
- - **Bug reports:** https://github.com/numpy/numpy/issues
81
- - **Report a security vulnerability:** https://tidelift.com/docs/security
82
-
83
- It provides:
84
-
85
- - a powerful N-dimensional array object
86
- - sophisticated (broadcasting) functions
87
- - tools for integrating C/C++ and Fortran code
88
- - useful linear algebra, Fourier transform, and random number capabilities
89
-
90
- Testing:
91
-
92
- NumPy requires `pytest` and `hypothesis`. Tests can then be run after installation with:
93
-
94
- python -c "import numpy, sys; sys.exit(numpy.test() is False)"
95
-
96
- Code of Conduct
97
- ----------------------
98
-
99
- NumPy is a community-driven open source project developed by a diverse group of
100
- [contributors](https://numpy.org/teams/). The NumPy leadership has made a strong
101
- commitment to creating an open, inclusive, and positive community. Please read the
102
- [NumPy Code of Conduct](https://numpy.org/code-of-conduct/) for guidance on how to interact
103
- with others in a way that makes our community thrive.
104
-
105
- Call for Contributions
106
- ----------------------
107
-
108
- The NumPy project welcomes your expertise and enthusiasm!
109
-
110
- Small improvements or fixes are always appreciated. If you are considering larger contributions
111
- to the source code, please contact us through the [mailing
112
- list](https://mail.python.org/mailman/listinfo/numpy-discussion) first.
113
-
114
- Writing code isn’t the only way to contribute to NumPy. You can also:
115
- - review pull requests
116
- - help us stay on top of new and old issues
117
- - develop tutorials, presentations, and other educational materials
118
- - maintain and improve [our website](https://github.com/numpy/numpy.org)
119
- - develop graphic design for our brand assets and promotional materials
120
- - translate website content
121
- - help with outreach and onboard new contributors
122
- - write grant proposals and help with other fundraising efforts
123
-
124
- For more information about the ways you can contribute to NumPy, visit [our website](https://numpy.org/contribute/).
125
- If you’re unsure where to start or how your skills fit in, reach out! You can
126
- ask on the mailing list or here, on GitHub, by opening a new issue or leaving a
127
- comment on a relevant issue that is already open.
128
-
129
- Our preferred channels of communication are all public, but if you’d like to
130
- speak to us in private first, contact our community coordinators at
131
- numpy-team@googlegroups.com or on Slack (write numpy-team@googlegroups.com for
132
- an invitation).
133
-
134
- We also have a biweekly community call, details of which are announced on the
135
- mailing list. You are very welcome to join.
136
-
137
- If you are new to contributing to open source, [this
138
- guide](https://opensource.guide/how-to-contribute/) helps explain why, what,
139
- and how to successfully get involved.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.11/site-packages/numpy-2.4.6.dist-info/RECORD DELETED
@@ -1,1045 +0,0 @@
1
- ../../../bin/f2py,sha256=tmJzwtmr613uXONrYp9OHFlksdQjck2tnALlhjq5mGA,352
2
- ../../../bin/numpy-config,sha256=SKJrFO5Bm3vO0Dizkl7qh9_k9VkzsK5ahF6LzZikWkM,352
3
- numpy-2.4.6.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
4
- numpy-2.4.6.dist-info/METADATA,sha256=sILFLMvjuIC64XfDUXG1LtbJR_OtceN2Lycj9gpBHeA,6608
5
- numpy-2.4.6.dist-info/RECORD,,
6
- numpy-2.4.6.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
- numpy-2.4.6.dist-info/WHEEL,sha256=AhtX1nhu7xc_MUHbXd_hCKNUrnjYpCoBbmQzU_zY5w0,140
8
- numpy-2.4.6.dist-info/entry_points.txt,sha256=7Cb63gyL2sIRpsHdADpl6xaIW5JTlUI-k_yqEVr0BSw,220
9
- numpy-2.4.6.dist-info/licenses/LICENSE.txt,sha256=SGAIPKoN4qwyksqYvQdL2PRdizJiTjex5wokC_9h5Ig,46794
10
- numpy-2.4.6.dist-info/licenses/numpy/_core/include/numpy/libdivide/LICENSE.txt,sha256=-8U59H0M-DvGE3gID7hz1cFGMBJsrL_nVANcOSbapew,1018
11
- numpy-2.4.6.dist-info/licenses/numpy/_core/src/common/pythoncapi-compat/COPYING,sha256=Pywf-nY4OlWuCqwByXN81wBQ3_Y-HwJmlPvp1mJXPJg,690
12
- numpy-2.4.6.dist-info/licenses/numpy/_core/src/highway/LICENSE,sha256=40AnDU9kOEVpqR1UastbCU1pzkfwwBXbd6u3Tcb4Fa8,20785
13
- numpy-2.4.6.dist-info/licenses/numpy/_core/src/multiarray/dragon4_LICENSE.txt,sha256=97FDCeX1TlAismRI7v1BmYitoq7AHTwRYthKDqjyHyw,1414
14
- numpy-2.4.6.dist-info/licenses/numpy/_core/src/npysort/x86-simd-sort/LICENSE.md,sha256=IR59c31heaCPeR67CpmJfOfNJFdBDFQodtElV27f6RA,1514
15
- numpy-2.4.6.dist-info/licenses/numpy/_core/src/umath/svml/LICENSE,sha256=wXARRntP5uIPv77aTfCeWMK8pUgKBj5Vc1pAAKN5qtk,1543
16
- numpy-2.4.6.dist-info/licenses/numpy/fft/pocketfft/LICENSE.md,sha256=qFyhP9-QFgtkoGmCFYaME7dNg1rQpOK6RHE7jFBYoFY,1498
17
- numpy-2.4.6.dist-info/licenses/numpy/linalg/lapack_lite/LICENSE.txt,sha256=oUzCXhDUCjqnBbfeL7dkplNdjumy204XJJAFhUV9_VU,2266
18
- numpy-2.4.6.dist-info/licenses/numpy/ma/LICENSE,sha256=BfO4g1GYjs-tEKvpLAxQ5YdcZFLVAJoAhMwpFVH_zKY,1593
19
- numpy-2.4.6.dist-info/licenses/numpy/random/LICENSE.md,sha256=EDFmtiuARDr7nrNIjgUuoGvgz_VmuQjxmeVh_eSa8Z8,3511
20
- numpy-2.4.6.dist-info/licenses/numpy/random/src/distributions/LICENSE.md,sha256=Rpd4vo8z1U4byqsowoHMRykW0tJz-DXlW8SH0wUD-s4,2745
21
- numpy-2.4.6.dist-info/licenses/numpy/random/src/mt19937/LICENSE.md,sha256=DhETN7JUlKdzEGaV8OeZ9kK4VnqqzKTxFqdKgXcXkVY,2926
22
- numpy-2.4.6.dist-info/licenses/numpy/random/src/pcg64/LICENSE.md,sha256=59T0-yA1jzFCEKiSrhc1HgSZOBNkb2l-w4c4XKKjaRg,1154
23
- numpy-2.4.6.dist-info/licenses/numpy/random/src/philox/LICENSE.md,sha256=b1gopXIj1Mx_jqUFomI-e5eLJCdSwVFeNV9GuizsGAA,1509
24
- numpy-2.4.6.dist-info/licenses/numpy/random/src/sfc64/LICENSE.md,sha256=nUCYhGAYMZzWjiKO5iIDYXh_c7zL8AI3qF5PyWIbmY8,1226
25
- numpy-2.4.6.dist-info/licenses/numpy/random/src/splitmix64/LICENSE.md,sha256=JosMoGdZ0x6jymjdNfIOh3kW6Sexwqg15FkqPENUsfk,332
26
- numpy.libs/libgfortran-daac5196-038a5e3c.so.5.0.0,sha256=jBP0S0Tk3QAFYy6kFz9fUBTSgp1QqhKyBUA0KXwH8jM,1671529
27
- numpy.libs/libscipy_openblas64_-7220728c.so,sha256=yTjPhIGlhY6NXv6oBBBiddfV54eKFhpdkPBbYSHvRYM,28699769
28
- numpy/__config__.py,sha256=92wVhtSoHweaVvV172-hjMePQclA6CcTfL3mQLVcS0k,5315
29
- numpy/__config__.pyi,sha256=MHeX15xqEBKQBQwoY0ZGFQx3TCL2doSpy4TO4tY3ZaU,2378
30
- numpy/__init__.cython-30.pxd,sha256=xcAXAuirtX6vO92E8jU4ONMlPMF2Js8L6XeN9OQXzbY,47154
31
- numpy/__init__.pxd,sha256=lgKlO-XL_ZrzOGCbsR8FfhJ7icHSsCiZTfiYNNNAyDw,43789
32
- numpy/__init__.py,sha256=kqRveR5FOSbTKSryWCuJmVoolHXw6q6nGpSYIyALg4o,26277
33
- numpy/__init__.pyi,sha256=1mV8G2brBIHBcz5tFobIuzFNl198jQuYe7jMLMnxmhM,236374
34
- numpy/_array_api_info.py,sha256=zm7HiQYqyhSqFl3JWG7OLhEw-JGEPq7-7-qWhXWqVZ8,10385
35
- numpy/_array_api_info.pyi,sha256=brHCz5yh1l0Ob-avua4_aV34zpheL7PTz67ALT3V220,4862
36
- numpy/_configtool.py,sha256=EFRJ3pazTxYhE9op-ocWyKTLZrrpFhfmmS_tWrq8Cxo,1007
37
- numpy/_configtool.pyi,sha256=d4f22QGwpb1ZtDk-1Sn72ftvo4incC5E2JAikmjzfJI,24
38
- numpy/_core/__init__.py,sha256=g3zorshpMJXS4cfDBtOF0XhaUL6XoAmTXGTK4E41VdI,6662
39
- numpy/_core/__init__.pyi,sha256=nuu4w2VFWXntCYWJ-Y6Ly9dP3g33IoFgUOAd2rxvnew,9973
40
- numpy/_core/_add_newdocs.py,sha256=vbaMbaLzoQSMstYSOvtu3m8r7ojIistNMwxUhdwTJM4,216086
41
- numpy/_core/_add_newdocs.pyi,sha256=Jzmdhc9vdXSnbrqHxmNJNcIjVEO4MxvHGAieZzYqA2Y,134
42
- numpy/_core/_add_newdocs_scalars.py,sha256=228riJ-dz9fV32TvOkMPUys_2_wnnDuU-EUbF1ehbvs,12933
43
- numpy/_core/_add_newdocs_scalars.pyi,sha256=o3SAAa6AK4qoBFB25o4MzKWgH7dFRcIY4fQlvQN9w70,549
44
- numpy/_core/_asarray.py,sha256=9ap3kDLNUcjKSQOfrkVPzr0tZGR1E1dtCIT_YeaFJdI,3894
45
- numpy/_core/_asarray.pyi,sha256=7lCzKwsVKH36-DkDHQX6Oyo5vu0n-M0zXVX4PpJIh-U,1147
46
- numpy/_core/_dtype.py,sha256=cM6JnjoHLURWCHgN8VmQyjeiiDjcwhB5L_fPMOe1uuM,10547
47
- numpy/_core/_dtype.pyi,sha256=YX1504kkprrNtkV0bs_A0L7nUuuQoAa0qCJkz6SaLpE,1832
48
- numpy/_core/_dtype_ctypes.py,sha256=KPPlakDsPkuThSOr5qFwW0jJ9VnjbvW4EWhObCHYGIE,3726
49
- numpy/_core/_dtype_ctypes.pyi,sha256=VwEZFViCPuHlCURv2jpJp9sbHh2hYUpzC_FRZNNGMMw,3682
50
- numpy/_core/_exceptions.py,sha256=X8Eg1hq1uU8L9wiOwFo2jRq6S0vnjCdgYFHj3hAW9Co,5159
51
- numpy/_core/_exceptions.pyi,sha256=sLeE1hMSWVdg-DOfJ9an6obUJJav0DFfZolxKETGxLc,1850
52
- numpy/_core/_internal.py,sha256=wVtCaspzD8zVJhE57hqCWrrymNIdJSKqfzczjNRFmO4,29437
53
- numpy/_core/_internal.pyi,sha256=4gQcrKgpMdnAnEZxiasbnsniUuc-fPu6SVlwV3snfZI,2151
54
- numpy/_core/_methods.py,sha256=ck-s9-Y8W4_ML6wUvzGgLLBI2eKPUW2GUCulB3pCVHY,9393
55
- numpy/_core/_methods.pyi,sha256=5HzEt2Z0-vxQfS1QJKDlTvNyLXcinNsja-xQiehMGbw,526
56
- numpy/_core/_multiarray_tests.cpython-311-aarch64-linux-gnu.so,sha256=ItCikAP9V7n4wmFrwh_NTsPLL1KyOXMxMaUFNQnH67s,226696
57
- numpy/_core/_multiarray_umath.cpython-311-aarch64-linux-gnu.so,sha256=FRck_avUgf-PHzfvEcd-Omg1beuZ4fwHB9PWPK2xaJc,5787465
58
- numpy/_core/_operand_flag_tests.cpython-311-aarch64-linux-gnu.so,sha256=xX_yAHWJQ_I50TrDRhQnjJFLub49IMjNn0stXQtD-lE,202216
59
- numpy/_core/_rational_tests.cpython-311-aarch64-linux-gnu.so,sha256=YGexWkSXVHE_zmccN4o_-GVdWCiofwAcUI0WRhtuw10,208168
60
- numpy/_core/_simd.cpython-311-aarch64-linux-gnu.so,sha256=F930LEDeWwVQ_1kyEjXGaqdONd7fe70dXJg613eRGZc,534728
61
- numpy/_core/_simd.pyi,sha256=J29NKpPSBpvUutD64O146kA-8YLPL6UYx6_qkvhExT4,978
62
- numpy/_core/_string_helpers.py,sha256=6Smgoi6oD2CunjwBSr9BZ20HkCnvW6nTPblTOU3pWng,2845
63
- numpy/_core/_string_helpers.pyi,sha256=xLlLKJHutEYzyKnTG2k7clcWvVUTvD319SjnKmDXuac,358
64
- numpy/_core/_struct_ufunc_tests.cpython-311-aarch64-linux-gnu.so,sha256=K6K0bC2OU4CgXsqySXdrHfO8p5zo4uzPoFmZtHf55vs,202312
65
- numpy/_core/_type_aliases.py,sha256=pNShTxC6avLB2RL7-POOtpFQRp53O-5UgOTxliz1gpY,3755
66
- numpy/_core/_type_aliases.pyi,sha256=xLRVFW9XxAz1Y65s3nwtoi-SxxHwD3dZcNJP5K2TrdI,2220
67
- numpy/_core/_ufunc_config.py,sha256=DpOLtjYAYZv-kCjo8oX53c2SW2LQIgaQ7EplCkisRaU,15611
68
- numpy/_core/_ufunc_config.pyi,sha256=sercSug21NJyS_ji8RyxmKHA2E50Qm_zg56UxIOoyDc,1861
69
- numpy/_core/_umath_tests.cpython-311-aarch64-linux-gnu.so,sha256=P3YMVVzkW1idPaYyej4rHB74O-7rHlaGxV9_VYdOcRc,207896
70
- numpy/_core/_umath_tests.pyi,sha256=5DTLe6fUK_TTjh2unv4ZhBvSiwiP0zO7_NfFhpe0x_0,2297
71
- numpy/_core/arrayprint.py,sha256=96fJqWt2RDb2dVYPLdo5kNDQQq6KqJjSuqQOf1kYIJs,65271
72
- numpy/_core/arrayprint.pyi,sha256=ixFoqT9nagIfQHrlzcn7dMRsM1-N9g6QOwWhkArrn_g,4530
73
- numpy/_core/cversions.py,sha256=H_iNIpx9-hY1cQNxqjT2d_5SXZhJbMo_caq4_q6LB7I,347
74
- numpy/_core/defchararray.py,sha256=MLElwfmK576gz5-A-7SVWIZ97Olw1y5nX_fwxshNIvc,37817
75
- numpy/_core/defchararray.pyi,sha256=pFsI98PHGEUYCOVX59--wkWwmt15Kx5Qzy-1HTWrYBY,28644
76
- numpy/_core/einsumfunc.py,sha256=uRKHsADVDGjDvkRZf52WjU4YqWfHKRQ6pe_gEr9PhH0,57930
77
- numpy/_core/einsumfunc.pyi,sha256=zJICB2I2KVzt_9yd3zAZS69x64vz2IpPKxPuRhf70yY,4925
78
- numpy/_core/fromnumeric.py,sha256=YFXY4ZXPeqrkF9I72iA801AU49s9fCijLn63HoWOlF8,142658
79
- numpy/_core/fromnumeric.pyi,sha256=DUEZhM0h_7BzM4pucjnEkuoA_ufEtkJld35a80NRkaI,45068
80
- numpy/_core/function_base.py,sha256=uLj1CEEMVnsOpLRNsY4o6wnGLp7DNoD8796n3oLuucE,19677
81
- numpy/_core/function_base.pyi,sha256=DDj2f4CZZ2ggrz7UjtSCn0ULNH5r_iengB9opDvM3SM,7045
82
- numpy/_core/getlimits.py,sha256=RtMBWAjylYTmfqtIL1JUKgL7bwyVwsob04bcQrmp7XI,15003
83
- numpy/_core/getlimits.pyi,sha256=Jyvd1P5Uy5t3oUUm3jKB3TcavNSsI-fK0jJSh0ycyQw,3797
84
- numpy/_core/include/numpy/__multiarray_api.c,sha256=ndBF5wbdd7F8_zWvR52MDO0Qm15_PrCCBlSk4dky4F8,12698
85
- numpy/_core/include/numpy/__multiarray_api.h,sha256=JguOheIpSWnm9uvlrfdZZJNOf0P3IXEqQc13wmxaeCE,61743
86
- numpy/_core/include/numpy/__ufunc_api.c,sha256=sHgO2DxBH9cGsyhmCKCIjyV005Gwb2RwHySx_QdZEsY,1799
87
- numpy/_core/include/numpy/__ufunc_api.h,sha256=XPRzJbUIA-ayVQJKOxeJORn-tYcamdj9Gkw2WQGRZPc,13405
88
- numpy/_core/include/numpy/_neighborhood_iterator_imp.h,sha256=s-Hw_l5WRwKtYvsiIghF0bg-mA_CgWnzFFOYVFJ-q4k,1857
89
- numpy/_core/include/numpy/_numpyconfig.h,sha256=fZXhz2pxhPUH1-x9LjYVGZdXxnyQNXJOUX3S3X0OuoU,926
90
- numpy/_core/include/numpy/_public_dtype_api_table.h,sha256=n6_Kb98SyvsR_X7stiNA6VuGp_c5W1e4fMVcJdO0wis,4574
91
- numpy/_core/include/numpy/arrayobject.h,sha256=mU5vpcQ95PH1j3bp8KYhJOFHB-GxwRjSUsR7nxlTSRk,204
92
- numpy/_core/include/numpy/arrayscalars.h,sha256=3Zlfeg4ZdHp74ZvC2RtQs9AKRif9gGMAK1Ini0Jjqos,4324
93
- numpy/_core/include/numpy/dtype_api.h,sha256=gEQsNYCHJdGUHgNBbXY3lIap2ULtyJTn5nQqygsOIIg,21455
94
- numpy/_core/include/numpy/halffloat.h,sha256=TRZfXgipa-dFppX2uNgkrjrPli-1BfJtadWjAembJ4s,1959
95
- numpy/_core/include/numpy/ndarrayobject.h,sha256=-d4aWZBflbqveDcDS1ja9C2rnqepKz7EJH8bzaMRg2o,12055
96
- numpy/_core/include/numpy/ndarraytypes.h,sha256=8Wa7iugSi8ATCVe-_dYt_UFSdUZd6C_4fY79MaRzHZs,67038
97
- numpy/_core/include/numpy/npy_2_compat.h,sha256=wdjB7_-AtW3op67Xbj3EVH6apSF7cRG6h3c5hBz-YMs,8546
98
- numpy/_core/include/numpy/npy_2_complexcompat.h,sha256=eE9dV_Iq3jEfGGJFH_pQjJnvC6eQ12WgOB7cZMmHByE,857
99
- numpy/_core/include/numpy/npy_3kcompat.h,sha256=i2AvqUqrbBiyx-KaKnVTN42MGV7anjoYCFff1JTCkCk,9673
100
- numpy/_core/include/numpy/npy_common.h,sha256=Oygi2LLroOIZWvyMIA5wTdZCTmlEewZ4fI91gu8HZBY,32954
101
- numpy/_core/include/numpy/npy_cpu.h,sha256=2BUewE2At9mB_nX9gmst1yoFx4jJBWj5UqKwdIPNa3E,4352
102
- numpy/_core/include/numpy/npy_endian.h,sha256=2X62aa1S9Iau_oD8a2KsDlQrDjtAboz_Tn32r1dtEp8,2878
103
- numpy/_core/include/numpy/npy_math.h,sha256=aeSFs60QbWPy1gIPyHDPrYExifm5mbDAcjP_mLk_PF0,18858
104
- numpy/_core/include/numpy/npy_no_deprecated_api.h,sha256=0yZrJcQEJ6MCHJInQk5TP9_qZ4t7EfBuoLOJ34IlJd4,678
105
- numpy/_core/include/numpy/npy_os.h,sha256=hlQsg_7-RkvS3s8OM8KXy99xxyJbCm-W1AYVcdnO1cw,1256
106
- numpy/_core/include/numpy/numpyconfig.h,sha256=FjxB-cwcS8wX2mMYY2gERxDgYvsVNaDm71gilMbMYIk,7466
107
- numpy/_core/include/numpy/random/LICENSE.txt,sha256=-8U59H0M-DvGE3gID7hz1cFGMBJsrL_nVANcOSbapew,1018
108
- numpy/_core/include/numpy/random/bitgen.h,sha256=49AwKOR552r-NkhuSOF1usb_URiMSRMvD22JF5pKIng,488
109
- numpy/_core/include/numpy/random/distributions.h,sha256=W5tOyETd0m1W0GdaZ5dJP8fKlBtsTpG23V2Zlmrlqpg,9861
110
- numpy/_core/include/numpy/random/libdivide.h,sha256=ew9MNhPQd1LsCZiWiFmj9IZ7yOnA3HKOXffDeR9X1jw,80138
111
- numpy/_core/include/numpy/ufuncobject.h,sha256=BengvqXqiy4ipzz23KQi1Kldy9ybYUs4Sp5yA73VgiU,11780
112
- numpy/_core/include/numpy/utils.h,sha256=wMNomSH3Dfj0q78PrjLVtFtN-FPo7UJ4o0ifCUO-6Es,1185
113
- numpy/_core/lib/libnpymath.a,sha256=KhTY8oKqIl2GDDOoJ2fLSF_sCMKL8NcudRJcbc9Xr_U,50752
114
- numpy/_core/lib/npy-pkg-config/mlib.ini,sha256=_LsWV1eStNqwhdiYPa2538GL46dnfVwT4MrI1zbsoFw,147
115
- numpy/_core/lib/npy-pkg-config/npymath.ini,sha256=0iMzarBfkkZ_EXO95_kz-SHZRcNIEwIeOjE_esVBkRQ,361
116
- numpy/_core/lib/pkgconfig/numpy.pc,sha256=2r5JPaU4HGAyTSOSfVMIQ_YyZVHr1R4--aCKl5l_z9A,191
117
- numpy/_core/memmap.py,sha256=yIsQ6n9kpZulggRJJFkTbjVwnB4leoyizvUpc2iU4n8,12651
118
- numpy/_core/memmap.pyi,sha256=_LKjb_PuhcQwpqc2lFaL379DYzQ9PtuKdlVV3jXOYEM,47
119
- numpy/_core/multiarray.py,sha256=rps15g0BUOKt4F1FwaMdv-7mJ9vmaLK3ob_C4_5T938,56786
120
- numpy/_core/multiarray.pyi,sha256=fjQAngf9-ByMpOf-6kpdFMIvf5FyOnGpEFqeP7riMEo,34829
121
- numpy/_core/numeric.py,sha256=115NMHLlm0d8rSDwiNlk9rQchA5zBNP3b-n2gy12Cp8,83038
122
- numpy/_core/numeric.pyi,sha256=Xs1pUKG24UvNF7BticXnB1E85NANpnCobliOrOCuVcQ,31713
123
- numpy/_core/numerictypes.py,sha256=15JLBX0m_MQgaiH_yBBI5glv0vXueU0arnS56RXfUxk,15967
124
- numpy/_core/numerictypes.pyi,sha256=a-zziI4f3MkP2EqqUevdUT8eLCRSg9UlK-dVQ3WtVnE,3503
125
- numpy/_core/overrides.py,sha256=K9wYrA52biO-Nm8GBdDzguqSctJQDouvA4IekTlfxVU,7480
126
- numpy/_core/overrides.pyi,sha256=f9pKPr_GWw_lRslBLDOESV4kiPHL4LqSCuk_aKpzRpg,1730
127
- numpy/_core/printoptions.py,sha256=NFpvy5bnjbvqnKeqQt0veEExpAAYAVNoiGXH3pglWAc,1056
128
- numpy/_core/printoptions.pyi,sha256=eNiliCnDuZBxla6X9kwZ-7YiCn-UtMbT-U_qTnw8l9w,594
129
- numpy/_core/records.py,sha256=_UAVj-g1gG-oMqRJRA4E9BT3IzG3M4JfxY3UjmJVMw0,36754
130
- numpy/_core/records.pyi,sha256=cOJPgRt8poiNAysEe1FtX2vjrUyIWk07_Wz9g0XJJLI,9175
131
- numpy/_core/shape_base.py,sha256=HW6Jff237fLXHo7XUlSm5xBrGpR1kviNka-W0a0sRp4,32712
132
- numpy/_core/shape_base.pyi,sha256=mO3WWfwrRArIVRDoMhtEcYWh7tunmpDnhfqyowwRt44,5255
133
- numpy/_core/strings.py,sha256=qcXg9CADXtDzpfUb2VMHwKePM4nXZPhNpGpVTjUJcGU,50578
134
- numpy/_core/strings.pyi,sha256=fbGD5TK14K5ICmNHnQDpMLeuc4UEUMH52laTTgzmcP8,13591
135
- numpy/_core/tests/_locales.py,sha256=lvHqUJVMsrE7Jh3N_KpO5fGBZgID-l3Zr4-_RrH1ZNM,2176
136
- numpy/_core/tests/_natype.py,sha256=k6Dj2e9iH8mIB32OW9FI2FGxiE_FDC7mIaIi4ZgQ6Vc,4387
137
- numpy/_core/tests/data/astype_copy.pkl,sha256=lWSzCcvzRB_wpuRGj92spGIw-rNPFcd9hwJaRVvfWdk,716
138
- numpy/_core/tests/data/generate_umath_validation_data.cpp,sha256=BQakB5o8Mq60zex5ovVO0IatNa7xbF8JvXmtk6373So,5842
139
- numpy/_core/tests/data/recarray_from_file.fits,sha256=NA0kliz31FlLnYxv3ppzeruONqNYkuEvts5wzXEeIc4,8640
140
- numpy/_core/tests/data/umath-validation-set-README.txt,sha256=pxWwOaGGahaRd-AlAidDfocLyrAiDp0whf5hC7hYwqM,967
141
- numpy/_core/tests/data/umath-validation-set-arccos.csv,sha256=yBlz8r6RnnAYhdlobzGGo2FKY-DoSTQaP26y8138a3I,61365
142
- numpy/_core/tests/data/umath-validation-set-arccosh.csv,sha256=0GXe7XG1Z3jXAcK-OlEot_Df3MetDQSlbm3MJ__iMQk,61365
143
- numpy/_core/tests/data/umath-validation-set-arcsin.csv,sha256=w_Sv2NDn-mLZSAqb56JT2g4bqBzxYAihedWxHuf82uU,61339
144
- numpy/_core/tests/data/umath-validation-set-arcsinh.csv,sha256=DZrMYoZZZyM1DDyXNUxSlzx6bOgajnRSLWAzxcPck8k,60289
145
- numpy/_core/tests/data/umath-validation-set-arctan.csv,sha256=0aosXZ-9DYTop0lj4bfcBNwYVvjZdW13hbMRTRRTmV0,60305
146
- numpy/_core/tests/data/umath-validation-set-arctanh.csv,sha256=HEK9ePx1OkKrXIKkMUV0IxrmsDqIlgKddiI-LvF2J20,61339
147
- numpy/_core/tests/data/umath-validation-set-cbrt.csv,sha256=v855MTZih-fZp_GuEDst2qaIsxU4a7vlAbeIJy2xKpc,60846
148
- numpy/_core/tests/data/umath-validation-set-cos.csv,sha256=0PNnDqKkokZ7ERVDgbes8KNZc-ISJrZUlVZc5LkW18E,59122
149
- numpy/_core/tests/data/umath-validation-set-cosh.csv,sha256=JKC4nKr3wTzA_XNSiQvVUq9zkYy4djvtu2-j4ZZ_7Oc,60869
150
- numpy/_core/tests/data/umath-validation-set-exp.csv,sha256=rUAWIbvyeKh9rPfp2n0Zq7AKq_nvHpgbgzLjAllhsek,17491
151
- numpy/_core/tests/data/umath-validation-set-exp2.csv,sha256=djosT-3fTpiN_f_2WOumgMuuKgC_XhpVO-QsUFwI6uU,58624
152
- numpy/_core/tests/data/umath-validation-set-expm1.csv,sha256=K7jL6N4KQGX71fj5hvYkzcMXk7MmQes8FwrNfyrPpgU,60299
153
- numpy/_core/tests/data/umath-validation-set-log.csv,sha256=ynzbVbKxFzxWFwxHnxX7Fpm-va09oI3oK1_lTe19g4w,11692
154
- numpy/_core/tests/data/umath-validation-set-log10.csv,sha256=NOBD-rOWI_FPG4Vmbzu3JtX9UA838f2AaDFA-waiqGA,68922
155
- numpy/_core/tests/data/umath-validation-set-log1p.csv,sha256=tdbYWPqWIz8BEbIyklynh_tpQJzo970Edd4ek6DsPb8,60303
156
- numpy/_core/tests/data/umath-validation-set-log2.csv,sha256=39EUD0vFMbwyoXoOhgCmid6NeEAQU7Ff7QFjPsVObIE,68917
157
- numpy/_core/tests/data/umath-validation-set-sin.csv,sha256=8PUjnQ_YfmxFb42XJrvpvmkeSpEOlEXSmNvIK4VgfAM,58611
158
- numpy/_core/tests/data/umath-validation-set-sinh.csv,sha256=XOsBUuPcMjiO_pevMalpmd0iRv2gmnh9u7bV9ZLLg8I,60293
159
- numpy/_core/tests/data/umath-validation-set-tan.csv,sha256=Hv2WUMIscfvQJ5Y5BipuHk4oE4VY6QKbQp_kNRdCqYQ,60299
160
- numpy/_core/tests/data/umath-validation-set-tanh.csv,sha256=iolZF_MOyWRgYSa-SsD4df5mnyFK18zrICI740SWoTc,60299
161
- numpy/_core/tests/examples/cython/checks.pyx,sha256=ca7UYpioE8FaowAPkpJq-YSbE-YAnE-T5msQDVt5a2A,10943
162
- numpy/_core/tests/examples/cython/meson.build,sha256=uuXVPKemNVMQ5MiEDqS4BXhwGHa96JHjS50WxZuJS_8,1268
163
- numpy/_core/tests/examples/cython/setup.py,sha256=JM6UnDql7LsAnRo6p9G-nRz3dfnoy9fHF6YVKy1OzdA,859
164
- numpy/_core/tests/examples/limited_api/limited_api1.c,sha256=wV_djP7TCJlNuRWzxMUtUyc1CqGGVopuGPqR9HUKak0,311
165
- numpy/_core/tests/examples/limited_api/limited_api2.pyx,sha256=1q4I59pdkCmMhLcYngN_XwQnPoLmDEo1uTGnhrLRjDc,203
166
- numpy/_core/tests/examples/limited_api/limited_api_latest.c,sha256=gID7NGwQU3EhRVZ3RMQCQBnFBTpz3_RqjmbHd3BUS-I,452
167
- numpy/_core/tests/examples/limited_api/meson.build,sha256=26_UaIf7zsWg8U9PicvwficlE0VRrrj6FRl-j1p2CJA,1662
168
- numpy/_core/tests/examples/limited_api/setup.py,sha256=Y6tgsOF58qe7eG2QmRQHG2wacZWfpbJLT8u-5OamjqA,437
169
- numpy/_core/tests/test__exceptions.py,sha256=luMT6vPIdf6LuwFNGyT-xLMZaKZEYYOFzFpMaesojoE,2922
170
- numpy/_core/tests/test_abc.py,sha256=9y2SsJdkPeV0oW6dsROPZOcQ72_mXie1uU2yPN93wzo,2221
171
- numpy/_core/tests/test_api.py,sha256=sCH4by-46BXTFOGjRDrVsUjNAr0Lh81Oo7sDNbrGtF0,24260
172
- numpy/_core/tests/test_argparse.py,sha256=DRLQD5TxhudrQZ79hm5ds3eKsXh_Ub7QsvEYzsdDSX0,2824
173
- numpy/_core/tests/test_array_api_info.py,sha256=PZ2EzS9pq4nLZRAvvUSOb2Ke5p7pb4u4P4HKLRZjstw,3063
174
- numpy/_core/tests/test_array_coercion.py,sha256=lrcMxUVuG6slxTU7fkIw0y_B0MFjSIiBoImLDrOyNfc,35391
175
- numpy/_core/tests/test_array_interface.py,sha256=l39VuV4nCdIeV1RUvMtjjPohAgIvJP-V3GQ5MaPrVK8,7843
176
- numpy/_core/tests/test_arraymethod.py,sha256=g5nnGdbFDJlo3O3kXQXtQsGLIowL-WlLXQDEPFIx_ng,3223
177
- numpy/_core/tests/test_arrayobject.py,sha256=-L2gaiTNYF_rp0YBPpbH9FbUV9RgkQYl_LD_WZCFDJ4,3336
178
- numpy/_core/tests/test_arrayprint.py,sha256=t-nVDpGTZXakWQKiMwc5TojPZbGlvXd7FT7kHV4X3a8,50574
179
- numpy/_core/tests/test_casting_floatingpoint_errors.py,sha256=cER1YCNEwq67uAPX0QhkJonb5oA4Ws1_t0Z2AWJjYJg,5076
180
- numpy/_core/tests/test_casting_unittests.py,sha256=onHTfAkrnowvuL3Hq1Z9Q3bjWMA2ze6sksihspQniUM,40944
181
- numpy/_core/tests/test_conversion_utils.py,sha256=4ttCX7dnA_8pTME87obUjy8KDkw3qLwSZhrVpLQA25o,6506
182
- numpy/_core/tests/test_cpu_dispatcher.py,sha256=MjpYITDEZke0pjeB1gBVuS82PueSO-BCp0c_5bVTeFM,1571
183
- numpy/_core/tests/test_cpu_features.py,sha256=QjnVgxMB1fSA0EF8wiUhWnYNHtwpxbM82hMKxD2-zlQ,16953
184
- numpy/_core/tests/test_custom_dtypes.py,sha256=aKtJ4gg2aFK-1yjv21NHZcqAinRrwYZYTH-0fFdYjBc,14496
185
- numpy/_core/tests/test_cython.py,sha256=PBSg78VeO0zoxwrvhuM4lV60Z5UzWcLJP2gd9tnWwgY,10653
186
- numpy/_core/tests/test_datetime.py,sha256=JDUi23ntoAvyR8rj5g5CAMobegOEAGZRfnJX7RKAmxM,124975
187
- numpy/_core/tests/test_defchararray.py,sha256=XV8IWNpIZmLPDjHyEb-ykncYhoPlNT7UMm6IY-GU4Fw,30683
188
- numpy/_core/tests/test_deprecations.py,sha256=PbBi_nMERElA8mXpkUQKGAgwGssdn5fIHzv5XdZBuVY,17944
189
- numpy/_core/tests/test_dlpack.py,sha256=4pKf7PywFZnK5508Gtu29qpa4VqTOosuxNjTuhRBjiQ,5831
190
- numpy/_core/tests/test_dtype.py,sha256=NGaHaL5dtwTvnNB0SmdNYO3dh_yBzJyd2lmXWej63lo,83222
191
- numpy/_core/tests/test_einsum.py,sha256=yrj4vQGo1JnDTTYP9vu-ipa5biW-QJWIpJ3gHs9zwb4,58175
192
- numpy/_core/tests/test_errstate.py,sha256=4ehvlnhiQ6ze1jv1Fj7SvXx44OQKydIVs7NtNnjKZHs,4628
193
- numpy/_core/tests/test_extint128.py,sha256=ooHOXvYUg5K2JRuUv9ae7mWl3qoDXFYs9Igb-ay54LA,5625
194
- numpy/_core/tests/test_finfo.py,sha256=OXPFEij-iMxjNRU57k82ao_j9i-EipfktFJtL28Uwr8,2488
195
- numpy/_core/tests/test_function_base.py,sha256=Oy3-ebeiUNHo5B4429zAT1UXZUsk93w4CeBy-yQleZQ,17683
196
- numpy/_core/tests/test_getlimits.py,sha256=HAvD2--XmGc-uZvh-DYvKXnQS8bZNUkG1UZsgmC0hjg,5453
197
- numpy/_core/tests/test_half.py,sha256=IVDl-MhjAMSEA6774o6iBC4Lg5ayMpqMpYpr9swmUms,25260
198
- numpy/_core/tests/test_hashtable.py,sha256=to2yWgEWJB3Pm1iJxtvyoRawlfCu3y5BmFqjnpVrVJ0,1148
199
- numpy/_core/tests/test_indexerrors.py,sha256=0BnHBaa02_H-jHIX2w_Ntjguzhnbg8OIgbz2CY1ZhM0,4713
200
- numpy/_core/tests/test_indexing.py,sha256=IOYLF2_dhfB-eLk3XxkUJ10Yh9DzDyCEOfs832g2Cyo,64623
201
- numpy/_core/tests/test_item_selection.py,sha256=AoPUe3llYwKjv3dO1PW1qSml4SWrAAL3fNqpwKAku6w,6631
202
- numpy/_core/tests/test_limited_api.py,sha256=75nz_t-jBdjKim6j-WW7WsD2rPnJ_KQ-zrRUiP3nVic,3463
203
- numpy/_core/tests/test_longdouble.py,sha256=ATFf89U4UCz2P-wSM-b-uNBPR1uv291znutcSHxcLEE,12454
204
- numpy/_core/tests/test_mem_overlap.py,sha256=A40WNYsvnGbPwyrZoJE2qIqRrGetQXbyHf0OmCOAwRE,29317
205
- numpy/_core/tests/test_mem_policy.py,sha256=Sa7JKNKFUtWBzmdy7JyGQa7CIsuAddpqgN8r4ZSCSNc,16848
206
- numpy/_core/tests/test_memmap.py,sha256=XcLLKt_47bDYpxB9bq8JFr1xRdX1_mVcsFHFiyXJaF0,8298
207
- numpy/_core/tests/test_multiarray.py,sha256=dQbqvp4CEXtzw-hOAWf5K3V2sSYcJHOXInXpuzxrIYI,420531
208
- numpy/_core/tests/test_multiprocessing.py,sha256=FsCKePMmjpFD0ZfoI9e4H-HiUkg3N7kuYDzyjjmE6q0,2034
209
- numpy/_core/tests/test_multithreading.py,sha256=dLKFEAiP-VS79A3gN_2vz1BqFt9pT722Dblcdt1voBc,12092
210
- numpy/_core/tests/test_nditer.py,sha256=GNpQIBkPPbmb0vyZV9fKVukfIPoP_dzPm_6_Oy724CA,138269
211
- numpy/_core/tests/test_nep50_promotions.py,sha256=i6KpABBWFB5PWCdEv8kIjNQd7ryAPINS5m_Tnu7sDj4,10068
212
- numpy/_core/tests/test_numeric.py,sha256=drTvM8NlNPNncPUSYHpW4rFs8Xx86gjIgpwrta9Qmkg,160604
213
- numpy/_core/tests/test_numerictypes.py,sha256=V7-XPC_Bpzc7u7Wg0ueCvlEcP2rGqYfGjbKrxcjMlY8,24174
214
- numpy/_core/tests/test_overrides.py,sha256=E5Hbzgj9iRuZ2NyQlOwzrJfFdNv7JSAkSf6ewekOoJk,27777
215
- numpy/_core/tests/test_print.py,sha256=9LSxaId6b7TvnUZpf1A--ffwTUcwV2h9vUFeyydfUnA,6915
216
- numpy/_core/tests/test_protocols.py,sha256=pbfumoRNnPhDP6PAPNIgLHUPPlmCdamCo4akkO8afjo,1173
217
- numpy/_core/tests/test_records.py,sha256=mGUVU_SMInz2vyJYTprn3fqo21fk-P1KkpXZijdJUTA,20612
218
- numpy/_core/tests/test_regression.py,sha256=UPJslIL4l64Kp1GTT0mMnMVpLeaLSuFZovwqGu6DJjo,96172
219
- numpy/_core/tests/test_scalar_ctors.py,sha256=jQYVEp3nOCYQ0_8yzFzQ7eQ6_RUNzrTVEebfLWEOrn4,6693
220
- numpy/_core/tests/test_scalar_methods.py,sha256=mm9vlzUseFrXxbMCjScJs--0X2hJogK8HVOQ-ooolqw,12511
221
- numpy/_core/tests/test_scalarbuffer.py,sha256=WUic9qTL2WYmI-FDp7AOjiFRxRnynveeLkKsUFdT3tc,5634
222
- numpy/_core/tests/test_scalarinherit.py,sha256=OIvSjrltdNSSP2c5HvDQ6pza3aKfmfgtixu1Zbahpcg,2587
223
- numpy/_core/tests/test_scalarmath.py,sha256=jOMC2XAR5o8DjhZsbLCFx2PRF50ron6EtEJwr6cHtwA,46217
224
- numpy/_core/tests/test_scalarprint.py,sha256=NS-FQDWICDcuDF5gxTQuG1Td1-EiOXIXufI-dwvKwxU,19705
225
- numpy/_core/tests/test_shape_base.py,sha256=_p0pDN96bA_urgl9_v-lTYqUNRFPcFCq8tvyRcShO8o,31867
226
- numpy/_core/tests/test_simd.py,sha256=g852NMNx_pmn_lGw0uQbXI2uKvMp_-yiQuwBUE1VNeg,48894
227
- numpy/_core/tests/test_simd_module.py,sha256=FFFeCwkMc7jfaByB4MGHaIfIhpnBxfPSIZW69xMZf8o,3950
228
- numpy/_core/tests/test_stringdtype.py,sha256=Y1ryw2qmXSyjFIOSMup1q3_tI9IVcRaX02GwIs8gmtg,58541
229
- numpy/_core/tests/test_strings.py,sha256=mhRaeJu7MkvBddcIAcjIvyueLXqBZRMbCpA3g8nvZKQ,60156
230
- numpy/_core/tests/test_ufunc.py,sha256=IOHiP9scoL-ulhDo8fx4RZuoabks13J6uvue2zXvESs,140346
231
- numpy/_core/tests/test_umath.py,sha256=ExOvVt_w2TiQbhdcJKcC9vP1hsd9wwstsuAApiiSzvw,196689
232
- numpy/_core/tests/test_umath_accuracy.py,sha256=fUXXLB44DrgivQzJFVO9VsQehcWScXP51mJTZP3GbHY,4379
233
- numpy/_core/tests/test_umath_complex.py,sha256=5oklimUgY9JcL47neqFzC3x3JiaIwY5LhFlmt3JfcTU,23611
234
- numpy/_core/tests/test_unicode.py,sha256=gCsIIbjb1wLX3ZXJzUxuK5QOGAsAeDeWjKx4jwSq2Ag,12987
235
- numpy/_core/umath.py,sha256=RQpCVgqDiiJg6F8jyDmLfQnnqNjdQXA3bg2SBGMGDAs,2140
236
- numpy/_core/umath.pyi,sha256=e4B_bHH6DEGR83DTQ07Z2sNA8MFJWSRL2HebwIj4CA0,3716
237
- numpy/_distributor_init.py,sha256=FBSJdgVHlQca5BrQEVYPoFm6KSTJhIFnWtWbEkEhTSo,421
238
- numpy/_distributor_init.pyi,sha256=6IvMzAmr0-Z6oqTkZcgXgrkJrQXVMjBih2AZvLdDgOE,27
239
- numpy/_expired_attrs_2_0.py,sha256=c1tGN6Y2RBsDJOlJjc_xJyMeo6HTIdk5x1BIxt-rJoQ,3771
240
- numpy/_expired_attrs_2_0.pyi,sha256=Ek1E0DfCcPP-KP-Lm0CKZPazkwdQP_xWrUnSkcMIojM,1239
241
- numpy/_globals.py,sha256=03sesd99euVf3CvZ11djE0S-C6z-VthFYGK2CyPjcis,4155
242
- numpy/_globals.pyi,sha256=IrHHIXmibXzgK0VUlECQLw4IEkveXSHo_ZWnTkfnLe4,280
243
- numpy/_pyinstaller/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
244
- numpy/_pyinstaller/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
245
- numpy/_pyinstaller/hook-numpy.py,sha256=MU22pQ4AkUYPQWu5C8pRDpnYXElLJ8R0FGNYJUQpiVE,1362
246
- numpy/_pyinstaller/hook-numpy.pyi,sha256=zfV785Nw3qAikKtVir5L3VwbbLfz8OwSakuN5LLrBB8,150
247
- numpy/_pyinstaller/tests/__init__.py,sha256=pdPbCTRwpCJamlyvIi9HZTlqAvK5HPbGu3oMA0cu2Rs,329
248
- numpy/_pyinstaller/tests/pyinstaller-smoke.py,sha256=6iL-eHMQaG3rxnS5EgcvrCqElm9aKL07Cjr1FZJSXls,1143
249
- numpy/_pyinstaller/tests/test_pyinstaller.py,sha256=8K-7QxmfoXCG0NwR0bhIgCNrDjGlrTzWnrR1sR8btgU,1135
250
- numpy/_pytesttester.py,sha256=DjlYL8uINN2XWa3nnlX6gPGuoLjcx1Bie_PQzbp2cpA,6328
251
- numpy/_pytesttester.pyi,sha256=ZrG8AwIUWGp3LEsELW-ZW3p7LmQbpFBvmAx47BK-21s,503
252
- numpy/_typing/__init__.py,sha256=MwNKwZKpmg7s-bq9FNt4GBEnSSbQSmkj-SpxtmMpoik,5466
253
- numpy/_typing/_add_docstring.py,sha256=_3g7D-6HAQ3MT4X6DE07yLua9LqWFhskNVx1TS7X9O4,3999
254
- numpy/_typing/_array_like.py,sha256=EPZUfJSjamvsWJ6Rs5ZwwA_5FhBpYdoifcVVtVcWPn0,4188
255
- numpy/_typing/_char_codes.py,sha256=j07npk82Nb7Ira2z7ZTlU3UcOPwt2gM7qZKrPLdjT48,8764
256
- numpy/_typing/_dtype_like.py,sha256=Gimb4NTelAV4DnwJvO69iq0X9_vdQ4BxQz3QIyYy9ME,3907
257
- numpy/_typing/_extended_precision.py,sha256=pknUqgak0FBNM-sERPqW-pFGH71_K-iehFSee5oQiqE,434
258
- numpy/_typing/_nbit.py,sha256=KSbKwOKttob-5ytT5vCVkHrDMn0YHvyptTTyj_6AYcw,632
259
- numpy/_typing/_nbit_base.py,sha256=nPZpsQltuR5B0iaAYF9qD2he_kXnmssv_RhaUNFsW-s,3058
260
- numpy/_typing/_nbit_base.pyi,sha256=NMH4lkJodOd-NwZiYFY1gLfuLpVtalIICZIjUOI4rFo,739
261
- numpy/_typing/_nested_sequence.py,sha256=wmeDKLVmvEnB9eYdd_mCNVWEocqmBo8GhpKWYQGFQew,2639
262
- numpy/_typing/_scalars.py,sha256=LhXY2BTHmeYKzeIZfpjvuMn-5eOLjU2n9z7z1l5bKf8,944
263
- numpy/_typing/_shape.py,sha256=6cFv-LbSyG9mlfSBOGGyul9Q_GUrlcHQC9JZa-m20cA,275
264
- numpy/_typing/_ufunc.py,sha256=HOkaE-6wV0fd3rmHZGC39YAHIIf8tyvlzekD4y4GQxA,156
265
- numpy/_typing/_ufunc.pyi,sha256=bVThAWsds3XB3ovsEljVkM0rykZ_QVylpVIHdLSMhHU,29621
266
- numpy/_utils/__init__.py,sha256=hVnZ7C0MCSNbMw-Zyq-MKCYStaGX6RzqFMnnh7ed4dE,3477
267
- numpy/_utils/__init__.pyi,sha256=iyjmbkqc_FSqPSQnWN1rgjIMLgYhUbxj8rDSbgbBtNQ,700
268
- numpy/_utils/_convertions.py,sha256=0xMxdeLOziDmHsRM_8luEh4S-kQdMoMg6GxNDDas69k,329
269
- numpy/_utils/_convertions.pyi,sha256=4l-0UmPCyVA70UJ8WAd2A45HrKFSzgC0sFDBSnKcYiQ,118
270
- numpy/_utils/_inspect.py,sha256=zFuJABH08D1Kgq_eecYkD1Ogg0OXp1t4oqjZxM0kdLk,7436
271
- numpy/_utils/_inspect.pyi,sha256=ECIdFsA77BHWMmSDMS1LIEfS3S7hCH4uvOeIeeEQHU8,2254
272
- numpy/_utils/_pep440.py,sha256=it9P4_oHXWw3BxdoVz7JPMuj5kxF5M7_BJ8Z1m9nu0w,13988
273
- numpy/_utils/_pep440.pyi,sha256=gtyEdfQKwTwF2SNsTg9LDnUIDCB0Fi95BWbhVkK9q9E,3846
274
- numpy/char/__init__.py,sha256=xs6pprMdmNeXVfuTRkU3nF9qdhutWdPu5oaep2AjWmc,93
275
- numpy/char/__init__.pyi,sha256=siwqDh7X7u4e0HGx3xg8eDaJVqy0_nac5y8UMzz-BcM,1540
276
- numpy/conftest.py,sha256=MZPvdfY_fM0b-cMDvjQCarajo8jEurYvNkfrSFq_HB0,8652
277
- numpy/core/__init__.py,sha256=wJNaRF1UFOnZKqiBrsshWLjTGiEZ9rvWlcit0xj7Y0w,1290
278
- numpy/core/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
279
- numpy/core/_dtype.py,sha256=GHBhfVtsVrP7v13IujEz9aGIENkYIdbfuRu-New1UnU,323
280
- numpy/core/_dtype.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
281
- numpy/core/_dtype_ctypes.py,sha256=wX4m37b0zQgxlzT5OjE_uj2E5CpiX9E7HLFpO6h_lDY,351
282
- numpy/core/_dtype_ctypes.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
283
- numpy/core/_internal.py,sha256=qxpHJELXNUcYJkJt1LktQuZm4BwYu4bXnMuBEOp6POU,949
284
- numpy/core/_multiarray_umath.py,sha256=T88HZgFD5VCuXRCSeLbPoj99nKUSdgyw8xWyf6eqhxQ,2098
285
- numpy/core/_utils.py,sha256=5fk18JN43Rg6YHvan6QjdrOeOuLtRlLVmP6MadBEJVA,923
286
- numpy/core/arrayprint.py,sha256=Lbe4smWXYFzd9sO9LLJ5PZS4C3bSvLt6HRtwSE56xN8,339
287
- numpy/core/defchararray.py,sha256=a9luvvni8gRrGVdKO7U_xwsFFvkzlxnVgxL75jLRmCI,347
288
- numpy/core/einsumfunc.py,sha256=CNucINgUIrpiLQn4xPI_mogwjfKlFA3h7gwAvRVwb5M,339
289
- numpy/core/fromnumeric.py,sha256=5TaonJVuC110qv3f3cqTtmjayTX0BmqJAgoAJn5H3ZI,343
290
- numpy/core/function_base.py,sha256=vhjhzsEzDd11RHg6pilfMJO3X6k94an5RAJqj-nlzms,351
291
- numpy/core/getlimits.py,sha256=6nCk4Tw0LjW7joWsprI5LiMzje1gsOjO2lSQ_OwBB8I,335
292
- numpy/core/multiarray.py,sha256=bjdPLbvJuj61M6TZkbB5NXOCNmH4QbUq6g3ePkKP6TA,793
293
- numpy/core/numeric.py,sha256=Ctk_QikyB2mM0xI0lBeB8YTUfTwQSXfVdpIMRtunbMo,360
294
- numpy/core/numerictypes.py,sha256=bXwTwzUahzbHrFGhS5RkJOvb6TYEsQnQC5ww9mN-1Vw,347
295
- numpy/core/overrides.py,sha256=1FZyb0U6JJuyojtxFvQ7HSJ2rpfhWec0F-X0mapCjc8,335
296
- numpy/core/overrides.pyi,sha256=-3xfjHfa4UaCuhTVwwRN4EOM5uz9vZR0gMeTVvEdbYI,525
297
- numpy/core/records.py,sha256=9yfFDxyOc68lXqfbaosgRNlw1dbWP8CRHzIPEtEtSgc,327
298
- numpy/core/shape_base.py,sha256=2srdQtF1d8LpUbDjGMXT-Tqz2K2NaTO-ZEC4viCYswY,339
299
- numpy/core/umath.py,sha256=hMVmNrICdqXRiiRG7UMV0Gr-9xYqJGmkONGQn20iK98,319
300
- numpy/ctypeslib/__init__.py,sha256=WFwMhpV2LJP-IQOspaInhV8c6XPKZwqppE-cvtIpqvU,193
301
- numpy/ctypeslib/__init__.pyi,sha256=A5kK_gk6zaVmFoz__pH9izZloKINsAS7V8RxNqeRB9M,367
302
- numpy/ctypeslib/_ctypeslib.py,sha256=NtEUpisQhDfETBLAkqYf7Ajq0xiNhZurb5SmGGH54pA,19079
303
- numpy/ctypeslib/_ctypeslib.pyi,sha256=wWjbulxR0MKfn4VqD4yPmB9P2Xl38He2cAcY_Bn7akQ,8295
304
- numpy/distutils/__init__.py,sha256=BU1C21439HRo7yH1SsN9me6WCDPpOwRQ37ZpNwDMqCw,2074
305
- numpy/distutils/__init__.pyi,sha256=D8LRE6BNOmuBGO-oakJGnjT9UJTk9zSR5rxMfZzlX64,119
306
- numpy/distutils/_shell_utils.py,sha256=3G7QGZXCxJQ6-2l1BTu3G_dRrWe6nT4QLlGYeh5oNZk,2538
307
- numpy/distutils/armccompiler.py,sha256=8qUaYh8QHOJlz7MNvkuJNyYdCOCivuW0pbmf_2OPZu0,962
308
- numpy/distutils/ccompiler.py,sha256=TYn7NMYjCdRqeOU3DdrVYgco36ISMUl3xnazfyy6e4Q,28710
309
- numpy/distutils/ccompiler_opt.py,sha256=jLxPBdY8ouJ7awDHc6Y7Jt3wF7TTI0BKnkkSuVnNMEY,100395
310
- numpy/distutils/checks/cpu_asimd.c,sha256=nXUsTLrSlhRL-UzDM8zMqn1uqJnR7TRlJi3Ixqw539w,818
311
- numpy/distutils/checks/cpu_asimddp.c,sha256=E4b9zT1IdSfGR2ACZJiQoR-BqaeDtzFqRNW8lBOXAaY,432
312
- numpy/distutils/checks/cpu_asimdfhm.c,sha256=6tXINVEpmA-lYRSbL6CrBu2ejNFmd9WONFGgg-JFXZE,529
313
- numpy/distutils/checks/cpu_asimdhp.c,sha256=SfwrEEA_091tmyI4vN3BNLs7ypUnrF_VbTg6gPl-ocs,379
314
- numpy/distutils/checks/cpu_avx.c,sha256=LuZW8o93VZZi7cYEP30dvKWTm7Mw1TLmCt5UaXDxCJg,779
315
- numpy/distutils/checks/cpu_avx2.c,sha256=jlDlea393op0JOiMJgmmPyKmyAXztLcObPOp9F9FaS0,749
316
- numpy/distutils/checks/cpu_avx512_clx.c,sha256=P-YHjj2XE4SithBkPwDgShOxGWnVSNUXg72h8O3kpbs,842
317
- numpy/distutils/checks/cpu_avx512_cnl.c,sha256=f_c2Z0xwAKTJeK3RYMIp1dgXYV8QyeOxUgKkMht4qko,948
318
- numpy/distutils/checks/cpu_avx512_icl.c,sha256=isI35-gm7Hqn2Qink5hP1XHWlh52a5vwKhEdW_CRviE,1004
319
- numpy/distutils/checks/cpu_avx512_knl.c,sha256=PVTkczTpHlXbTc7IQKlCFU9Cq4VGG-_JhVnT0_n-t1A,959
320
- numpy/distutils/checks/cpu_avx512_knm.c,sha256=eszPGr3XC9Js7mQUB0gFxlrNjQwfucQFz_UwFyNLjes,1132
321
- numpy/distutils/checks/cpu_avx512_skx.c,sha256=59VD8ebEJJHLlbY-4dakZV34bmq_lr9mBKz8BAcsdYc,1010
322
- numpy/distutils/checks/cpu_avx512_spr.c,sha256=i8DpADB8ZhIucKc8lt9JfYbQANRvR67u59oQf5winvg,904
323
- numpy/distutils/checks/cpu_avx512cd.c,sha256=Qfh5FJUv9ZWd_P5zxkvYYIkvqsPptgaDuKkeX_F8vyA,759
324
- numpy/distutils/checks/cpu_avx512f.c,sha256=d97NRcbJhqpvURnw7zyG0TOuEijKXvU0g4qOTWHbwxY,755
325
- numpy/distutils/checks/cpu_f16c.c,sha256=nzZzpUc8AfTtw-INR3KOxcjx9pyzVUM8OhsrdH2dO_w,868
326
- numpy/distutils/checks/cpu_fma3.c,sha256=YN6IDwuZALJHVVmpQ2tj-14HI_PcxH_giV8-XjzlmkU,817
327
- numpy/distutils/checks/cpu_fma4.c,sha256=qKdgTNNFg-n8vSB1Txco60HBLCcOi1aH23gZOX7yKqs,301
328
- numpy/distutils/checks/cpu_lsx.c,sha256=wM7u2mGZIkX1vd-S3xu8DwR4VVo06GyBsI-UfNlF6Is,210
329
- numpy/distutils/checks/cpu_neon.c,sha256=Y0SjuVLzh3upcbY47igHjmKgjHbXxbvzncwB7acfjxw,600
330
- numpy/distutils/checks/cpu_neon_fp16.c,sha256=E7YOGyYP41u1sqiCHpCGGqjmo7Cs6yUkmJ46K7LZloc,251
331
- numpy/distutils/checks/cpu_neon_vfpv4.c,sha256=qFY1C_fQYz7M_a_8j0KTdn7vaE3NNVmWY2JGArDGM3w,609
332
- numpy/distutils/checks/cpu_popcnt.c,sha256=vRcXHVw2j1F9I_07eIZ_xzDX3fd3mqgiQXL1w3pULJk,1049
333
- numpy/distutils/checks/cpu_rvv.c,sha256=ADmogrRu7XOOsCfB6PMpF0ES4yv8tXsbYduvZjEMTPA,300
334
- numpy/distutils/checks/cpu_sse.c,sha256=6MHITtC76UpSR9uh0SiURpnkpPkLzT5tbrcXT4xBFxo,686
335
- numpy/distutils/checks/cpu_sse2.c,sha256=yUZzdjDtBS-vYlhfP-pEzj3m0UPmgZs-hA99TZAEACU,697
336
- numpy/distutils/checks/cpu_sse3.c,sha256=j5XRHumUuccgN9XPZyjWUUqkq8Nu8XCSWmvUhmJTJ08,689
337
- numpy/distutils/checks/cpu_sse41.c,sha256=y_k81P-1b-Hx8OeRVDE9V1O9JakS0zPvlFKJ3VbSmEw,675
338
- numpy/distutils/checks/cpu_sse42.c,sha256=3PXucdI2mII-txO7zFN99TlVveT_QUAETTGvRk-_hYw,692
339
- numpy/distutils/checks/cpu_ssse3.c,sha256=X6VWxIXMRpdSCBsHPXvot3yTZ4d5yK9Bi1ScQP3WC-Q,705
340
- numpy/distutils/checks/cpu_sve.c,sha256=Ixj6TJHCdn7h_xE3MWviXrxlvo0OZkKDTT6sFIwNZPY,287
341
- numpy/distutils/checks/cpu_vsx.c,sha256=FVmR4iliKjcihzMCwloR1F2JYwSZK9P4f_hvIRLHSDQ,478
342
- numpy/distutils/checks/cpu_vsx2.c,sha256=yESs25Rt5ztb5-stuYbu3TbiyJKmllMpMLu01GOAHqE,263
343
- numpy/distutils/checks/cpu_vsx3.c,sha256=omC50tbEZNigsKMFPtE3zGRlIS2VuDTm3vZ9TBZWo4U,250
344
- numpy/distutils/checks/cpu_vsx4.c,sha256=ngezA1KuINqJkLAcMrZJR7bM0IeA25U6I-a5aISGXJo,305
345
- numpy/distutils/checks/cpu_vx.c,sha256=OpLU6jIfwvGJR4JPVVZLlUfvo7oAZ0YvsjafM2qtPlk,461
346
- numpy/distutils/checks/cpu_vxe.c,sha256=rYW_nKwXnlB0b8xCrJEr4TmvrEvS-NToxwyqqOHV8Bk,788
347
- numpy/distutils/checks/cpu_vxe2.c,sha256=Hv4wO23kwC2G6lqqercq4NE4K0nrvBxR7RIzr5HTXCc,624
348
- numpy/distutils/checks/cpu_xop.c,sha256=7uabsGeqvmVJQvuSEjs8-Sm8kpmvl6uZ9YHMF5h2opQ,234
349
- numpy/distutils/checks/extra_avx512bw_mask.c,sha256=pVPOhcu80yJVnIhOcHHXOlZ2proJ1MUf0XgccqhPoNk,636
350
- numpy/distutils/checks/extra_avx512dq_mask.c,sha256=nMfIvepISGFDexPrMYl5LWtdmt6Uy9TKPzF4BVayw2I,504
351
- numpy/distutils/checks/extra_avx512f_reduce.c,sha256=_NfbtfSAkm_A67umjR1oEb9yRnBL5EnTA76fvQIuNVk,1595
352
- numpy/distutils/checks/extra_vsx3_half_double.c,sha256=shHvIQZfR0o-sNefOt49BOh4WCmA0BpJvj4b7F9UdvQ,354
353
- numpy/distutils/checks/extra_vsx4_mma.c,sha256=GiQGZ9-6wYTgH42bJgSlXhWcTIrkjh5xv4uymj6rglk,499
354
- numpy/distutils/checks/extra_vsx_asm.c,sha256=BngiMVS9nyr22z6zMrOrHLeCloe_5luXhf5T5mYucgI,945
355
- numpy/distutils/checks/test_flags.c,sha256=uAIbhfAhyGe4nTdK_mZmoCefj9P0TGHNF9AUv_Cdx5A,16
356
- numpy/distutils/command/__init__.py,sha256=fW49zUB3syMFsKpf1oRBO0h8tmnTwRP3zUPrsB0R22M,1032
357
- numpy/distutils/command/autodist.py,sha256=8KWwr5mnjX20UpY4ITRDx-PreApyh9M7B92IwsEtTsQ,3718
358
- numpy/distutils/command/bdist_rpm.py,sha256=-tkZupIJr_jLqeX7xbRhE8-COXHRI0GoRpAKchVte54,709
359
- numpy/distutils/command/build.py,sha256=aj1SUGsDUTxs4Tch2ALLcPnuAVhaPjEPIZIobzMajm0,2613
360
- numpy/distutils/command/build_clib.py,sha256=jl9c9Z1eilrBIg352fOvJG3G_lSTIHQu3uMi_i2cwoA,19313
361
- numpy/distutils/command/build_ext.py,sha256=Y8HHTedTpzPOnzAVU9i7jKAWj9N4rj9K7rKrAdJYMaU,32979
362
- numpy/distutils/command/build_py.py,sha256=XiLZ2d_tmCE8uG5VAU5OK2zlzQayBfeY4l8FFEltbig,1144
363
- numpy/distutils/command/build_scripts.py,sha256=P2ytmZb3UpwfmbMXkFB2iMQk15tNUCynzMATllmp-Gs,1665
364
- numpy/distutils/command/build_src.py,sha256=KbRrVux_NXA-SNPwf2cFTat4qUi10y3d95RUIYyCp68,31174
365
- numpy/distutils/command/config.py,sha256=etJCBJusXp-yzPodZnCBW0NJgxPNhv-FRTon6uV761E,20670
366
- numpy/distutils/command/config_compiler.py,sha256=N6JHVRAwgzkEsHqK8tqziLPlwbfWvdHaEdPv_sklkHc,4371
367
- numpy/distutils/command/develop.py,sha256=9SbbnFnVbSJVZxTFoV9pwlOcM1D30GnOWm2QonQDvHI,575
368
- numpy/distutils/command/egg_info.py,sha256=i-Zk4sftK5cMQVQ2jqSxTMpVI-gYyXN16-p5TvmjURc,921
369
- numpy/distutils/command/install.py,sha256=nkW2fl7OABcE3sUcoNM7iONkF64CBESdVlRjTLg3hVA,3073
370
- numpy/distutils/command/install_clib.py,sha256=1xv0_lPVu3g16GgICjjlh7T8zQ6PSlevCuq8Bocx5YM,1399
371
- numpy/distutils/command/install_data.py,sha256=Y59EBG61MWP_5C8XJvSCVfzYpMNVNVcH_Z6c0qgr9KA,848
372
- numpy/distutils/command/install_headers.py,sha256=LD_b1bRoprrOOErq2V8DvY8ydFa6KALyi5_fnWymCxc,920
373
- numpy/distutils/command/sdist.py,sha256=8Tsju1RwXNbPyQcjv8GRMFveFQqYlbNdSZh2X1OV-VU,733
374
- numpy/distutils/conv_template.py,sha256=F-4vkkfAjCb-fN79WYrXX3BMHMoiQO-W2u09q12OPuI,9536
375
- numpy/distutils/core.py,sha256=QBJNJdIE0a9Rr4lo-3QnmEaWyVV068l6HbVPdJ75iZg,8173
376
- numpy/distutils/cpuinfo.py,sha256=XuNhsx_-tyrui_AOgn10yfZ9p4YBM68vW2_bGmKj07I,22639
377
- numpy/distutils/exec_command.py,sha256=YeWFIKNTEXSfObWBuNhUahiquH77SAav-0OK7FGDPs4,10283
378
- numpy/distutils/extension.py,sha256=g2Dei8GIkhrKpWttKkgQoVD6707pcx93MhhFt85Z89k,3460
379
- numpy/distutils/fcompiler/__init__.py,sha256=DqfaiKGVagOFuL0v3VZxZZkRnWWvly0_lYHuLjaZTBo,40625
380
- numpy/distutils/fcompiler/absoft.py,sha256=wnqLEZh6W688rcU4VTK--vvHFiA1eTJGncvRehgW-48,5568
381
- numpy/distutils/fcompiler/arm.py,sha256=MCri346qo1bYwjlm32xHRyRl-bAINTlfVIubN6HDz68,2090
382
- numpy/distutils/fcompiler/compaq.py,sha256=sjU2GKHJGuChtRb_MhnouMqvkIOQflmowFE6ErCWZhE,3903
383
- numpy/distutils/fcompiler/environment.py,sha256=DOD2FtKDk6O9k6U0h9UKWQ-65wU8z1tSPn3gUlRwCso,3080
384
- numpy/distutils/fcompiler/fujitsu.py,sha256=yK3wdHoF5qq25UcnIM6FzTXsJGJxdfKa_f__t04Ne7M,1333
385
- numpy/distutils/fcompiler/g95.py,sha256=FH4uww6re50OUT_BfdoWSLCDUqk8LvmQ2_j5RhF5nLQ,1330
386
- numpy/distutils/fcompiler/gnu.py,sha256=cfweRQRdP-sAdMhS9Ebhk5GE5c6fE-mpvGN20g-j5AQ,20472
387
- numpy/distutils/fcompiler/hpux.py,sha256=gloUjWGo7MgJmukorDq7ZxDnnUKXx-C6AQfryQshVM4,1353
388
- numpy/distutils/fcompiler/ibm.py,sha256=Ts2PXg2ocrXtX9eguvcHeQ4JB2ktpd5isXtRTpU9F5Y,3534
389
- numpy/distutils/fcompiler/intel.py,sha256=XYF0GLVhJWjS8noEx4TJ704Eqt-JGBolRZEOkwgNItE,6570
390
- numpy/distutils/fcompiler/lahey.py,sha256=U63KMfN8zDAd_jnvMkS2N-dvP4UiSRB9Ces290qLNXw,1327
391
- numpy/distutils/fcompiler/mips.py,sha256=LAwT0DY5yqlYh20hNMYR1-OKu8A9GNw-TbUfI8pvglM,1714
392
- numpy/distutils/fcompiler/nag.py,sha256=9pQCMUlwjRVHGKwZxvwd4bW5p-9v7VXcflELEImHg1g,2777
393
- numpy/distutils/fcompiler/none.py,sha256=6RX2X-mV1HuhJZnVfQmDmLVhIUWseIT4P5wf3rdLq9Y,758
394
- numpy/distutils/fcompiler/nv.py,sha256=NfU4vbXVBiV5FUG69NQciO61T-dFPB6N0Zd0zD8d4eY,1541
395
- numpy/distutils/fcompiler/pathf95.py,sha256=MiHVar6-beUEYVEpqXORIX4f8G29I47D36kreltdfoQ,1061
396
- numpy/distutils/fcompiler/pg.py,sha256=NOB1stzrjvQMZS7bIPTgWTcAFe3cjNveA5-SztUZqD0,3568
397
- numpy/distutils/fcompiler/sun.py,sha256=mfS3RTj9uYT6K9Ikp8RjmsEPIWAtUTzMhX9sGjEyF6I,1577
398
- numpy/distutils/fcompiler/vast.py,sha256=Xuxa4sNraUPcQmt45SogAfN0kDHFb6C73uNZNmX3RBE,1667
399
- numpy/distutils/from_template.py,sha256=hpoFQortsLZdMSr_fJILzXzrIwFlZoFjsDSo6jNtvWs,7913
400
- numpy/distutils/fujitsuccompiler.py,sha256=JDuUUE-GyPahkNnDZLWNHyAmJ2lJPCnLuIUFfHkjMzA,834
401
- numpy/distutils/intelccompiler.py,sha256=oBZ6MKmPP-RS-UrDvsxy7PAYgxE3pRykcZfrCpoDoas,4022
402
- numpy/distutils/lib2def.py,sha256=-3rDf9FXsDik3-Qpp-A6N_cYZKTlmVjVi4Jzyo-pSlY,3630
403
- numpy/distutils/line_endings.py,sha256=a8ZZECrPRffsbs0UygeR47_fOUlZppnx-QPssrIXtB0,2032
404
- numpy/distutils/log.py,sha256=m8caNBwPhIG7YTnD9iq9jjc6_yJOeU9FHuau2CSulds,2879
405
- numpy/distutils/mingw/gfortran_vs2003_hack.c,sha256=cbsN3Lk9Hkwzr9c-yOP2xEBg1_ml1X7nwAMDWxGjzc8,77
406
- numpy/distutils/mingw32ccompiler.py,sha256=juNt5VdgvbrZqsBJSyefaiKSYKzMaAsxFnRdVg6cIt8,22992
407
- numpy/distutils/misc_util.py,sha256=Kvvp75J__hElN5GTV5o9YCcx7QMzVNHsvWpGiZYWHKE,89238
408
- numpy/distutils/msvc9compiler.py,sha256=FCtP7g34AVuMIaqQlH8AV1ZBdIUXbk5G7eBeeTSr1zE,2192
409
- numpy/distutils/msvccompiler.py,sha256=ILookUifVJF9tAtPJoVCqZ673m5od6MVKuAHuA3Rcfk,2647
410
- numpy/distutils/npy_pkg_config.py,sha256=LWpcvPQ4ZuGmKO0lrqQHZHAhBe87gTT1Rf6vX0NtZQM,13018
411
- numpy/distutils/numpy_distribution.py,sha256=10Urolg1aDAG0EHYfcvObzOgqRV0ARh2GhDklEg4vS0,634
412
- numpy/distutils/pathccompiler.py,sha256=ck4WmxHrfRhWds7neNLxd1y19Z0PwdhHb9Q4u7p61lI,712
413
- numpy/distutils/system_info.py,sha256=8-Z9iZERzZlkYkyw5YmjaETbR1BhQ8L-NktJCBPZzSw,113882
414
- numpy/distutils/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
415
- numpy/distutils/tests/test_build_ext.py,sha256=kaKh51tQSetUr4ozxICwUUjOasSXHrg1MCzJAVDNbWY,2779
416
- numpy/distutils/tests/test_ccompiler_opt.py,sha256=N3pN-9gxPY1KvvMEjoXr7kLxTGN8aQOr8qo5gmlrm90,28778
417
- numpy/distutils/tests/test_ccompiler_opt_conf.py,sha256=maXytv39amuojbQIieIGIXMV4Cv-s0fsPMZeFEh9XyY,6347
418
- numpy/distutils/tests/test_exec_command.py,sha256=eYHPNYi8yQIGvybmEWRYkaR4HLi-5Y7xOSY-CNgiPv8,7381
419
- numpy/distutils/tests/test_fcompiler.py,sha256=mJXezTXDUbduhCwVGAfABHpEARWhnj8hLW9EOU3rn84,1277
420
- numpy/distutils/tests/test_fcompiler_gnu.py,sha256=nmfaFCVzbViIOQ2-MjgXt-bN8Uj674hCgiwr5Iol-_U,2136
421
- numpy/distutils/tests/test_fcompiler_intel.py,sha256=mxkfFD2rNfg8nn1pp_413S0uCdYXydPWBcz9ilgGkA0,1058
422
- numpy/distutils/tests/test_fcompiler_nagfor.py,sha256=CKEjik7YVfSJGL4abuctkmlkIUhAhv-x2aUcXiTR9b0,1102
423
- numpy/distutils/tests/test_from_template.py,sha256=SDYoe0XUpAayyEQDq7ZhrvEEz7U9upJDLYzhcdoVifc,1103
424
- numpy/distutils/tests/test_log.py,sha256=0tSM4q-00CjbMIRb9QOJzI4A7GHUiRGOG1SOOLz8dnM,868
425
- numpy/distutils/tests/test_mingw32ccompiler.py,sha256=gOEdQ_LCb7pcDqh3by-OxFHAo_i4aacO6F-F0ehWwvI,1908
426
- numpy/distutils/tests/test_misc_util.py,sha256=xjNaYJ4Ev5YjokxM8J_T2z2oGTzUSs-wCh9ZqO9RNmg,3364
427
- numpy/distutils/tests/test_npy_pkg_config.py,sha256=apGrmViPcXoPCEOgDthJgL13C9N0qQMs392QjZDxJd4,2557
428
- numpy/distutils/tests/test_shell_utils.py,sha256=UKU_t5oIa_kVMv89Ys9KN6Z_Fy5beqPDUsDAWPmcoR8,2114
429
- numpy/distutils/tests/test_system_info.py,sha256=baZ3Hts0JeyURsdZp0ot_j-lI9FZkG4D5aYeh9EIvWk,11383
430
- numpy/distutils/tests/utilities.py,sha256=pyfnVJJ7ZprjC2EETB6iFHYMkQeKsZbq1jVQR3cIrws,2287
431
- numpy/distutils/unixccompiler.py,sha256=fN4-LH6JJp44SLE7JkdG2kKQlK4LC8zuUpVC-RtmJ-U,5426
432
- numpy/doc/ufuncs.py,sha256=9xt8H34GhrXrFq9cWFUGvJFePa9YuH9Tq1DzAnm2E2E,5414
433
- numpy/dtypes.py,sha256=zuPwgC0ijF2oDRAOJ6I9JKhaJuhXFAygByLQaoVtT54,1312
434
- numpy/dtypes.pyi,sha256=HNKilNXiMPl9m4VNKB7CaGA-PKNUWkbMsxmzae9TzEY,15529
435
- numpy/exceptions.py,sha256=3xbpZ9l7F3mhwtymvl0vqE40aiN8bkceao8aXfZsl5U,7709
436
- numpy/exceptions.pyi,sha256=Y01ApN2EjN_D9yAmp4o3almtJlgGBJo0cez6YiW7lbM,794
437
- numpy/f2py/__init__.py,sha256=cAgUHWgJQZZsfv8co8KBNr_m8B6fpzdBaUNvJeBf_No,2448
438
- numpy/f2py/__init__.pyi,sha256=pKBCWm4Ly5IIbp67OXnn6UgGTjXCo066k1ZfYFdksFA,113
439
- numpy/f2py/__main__.py,sha256=6i2jVH2fPriV1aocTY_dUFvWK18qa-zjpnISA-OpF3w,130
440
- numpy/f2py/__version__.py,sha256=99S6mSevuhwGmO9ku--7VUJekhN0ot4-J0cZKiHcqpw,48
441
- numpy/f2py/__version__.pyi,sha256=L4V6f6B-wuPi82B0MzeQsgN0NuHUQs9rKYl1jy3tG7s,45
442
- numpy/f2py/_backends/__init__.py,sha256=7_bA7c_xDpLc4_8vPfH32-Lxn9fcUTgjQ25srdvwvAM,299
443
- numpy/f2py/_backends/__init__.pyi,sha256=i4XhDRwbrl0ta6QGJPxhYGfSgugNGdtoWf1_27eSd60,136
444
- numpy/f2py/_backends/_backend.py,sha256=oFXZ8-VwcQSbltl8_pgWLPqCOZ8Y_px7oeTk_BlxJTc,1151
445
- numpy/f2py/_backends/_backend.pyi,sha256=sU4YiHvGfMkzDFbhZqqQPT-kwJZsWpGemkLxDion7ss,1342
446
- numpy/f2py/_backends/_distutils.py,sha256=hET0WB4qy-D4BznekGAWhk945k5weq2lGUDR6hriXMo,2385
447
- numpy/f2py/_backends/_distutils.pyi,sha256=-L8K1KQShPGGd1vgr4DlnYf6AshHFaRzAcgGqKv205g,463
448
- numpy/f2py/_backends/_meson.py,sha256=OY0wifJ93dFI41fBq6DdsvnQ_erA5quixvp60etaiI4,8626
449
- numpy/f2py/_backends/_meson.pyi,sha256=qazYO9G3RXvYoqkNbPSr9_2rt2yKxXv77MSj3LPuSXU,1898
450
- numpy/f2py/_backends/meson.build.template,sha256=XSChr_3LqcAmrc4DcHCOGCHzSU2gWpdTsa3k0Ij0i-w,1792
451
- numpy/f2py/_isocbind.py,sha256=zaBgpfPNRmxVG3doUIlbZIiyB990MsXiwDabrSj9HnQ,2360
452
- numpy/f2py/_isocbind.pyi,sha256=KuzqHJQk0YSQnRnb8xqnyh8T0DGNnDD6bNI880tadCY,339
453
- numpy/f2py/_src_pyf.py,sha256=PHpo9D28Kq3q_3-KFX8D3sFD9eX8A1c3LuLNzXzByOw,7695
454
- numpy/f2py/_src_pyf.pyi,sha256=OmzQPXjJMOdIgxSduJB0HMy6rGltZ9fCDKkYcSa6WmU,1011
455
- numpy/f2py/auxfuncs.py,sha256=dnaUwrdAv4-LbEiHNbS1vrjQNCO0lBuyWkj3Rt_UizE,26920
456
- numpy/f2py/auxfuncs.pyi,sha256=RHQxfKuoQWFdT5BBqOZN5HOHX0Zu3qyOC-Ver6aaiQU,7992
457
- numpy/f2py/capi_maps.py,sha256=_DobSHqQok-qTqIpmSNJPA7zf0AGMWQmobCQ1y7HNcc,30083
458
- numpy/f2py/capi_maps.pyi,sha256=pR0pVZhUxaCpctq7FOWFSAGI_gaLdE-NWAyT96cWWZg,1066
459
- numpy/f2py/cb_rules.py,sha256=6KbPu9yfJ-7pAa24Ij9H34Ll15Qc8CXTqCFiUJI6R8Y,25051
460
- numpy/f2py/cb_rules.pyi,sha256=X_it8-Q0188EDlXd-QxhRdc3OUoA2t6V_jgM5TiQC88,495
461
- numpy/f2py/cfuncs.py,sha256=4J4P12oGpyWZHb1AVKAl7YJ3QUgngwGMCnB1IhrJn7U,52660
462
- numpy/f2py/cfuncs.pyi,sha256=EiAtSQxw4x-UlxsGKIEOJnld1d7dNYrk0bt_rlqLSp0,802
463
- numpy/f2py/common_rules.py,sha256=_9yzIolJMGgpd3D94LdBsODnfUskMRgt2v03rECIHJQ,5030
464
- numpy/f2py/common_rules.pyi,sha256=1uzTkcwiin6dVBbWUiOVB1ZppjKBHoRHG_Byvw-1UbI,323
465
- numpy/f2py/crackfortran.py,sha256=ZC_yebGTsGAM4VBxjMGFd9b_msXk8WfmlMnOUWA0xB0,146861
466
- numpy/f2py/crackfortran.pyi,sha256=-je1cNvBEmUifIGclah_SxqX2vXTLYqca2pom_ZcCsA,10298
467
- numpy/f2py/diagnose.py,sha256=YWNj1vM68e47Lb270wlZk5yrcU-yTlzGaYNPBZ7nTAU,5075
468
- numpy/f2py/diagnose.pyi,sha256=ZFVCWTwf_xzL736p9FcfCYWftOXcNqSMCmq-K27KNN8,23
469
- numpy/f2py/f2py2e.py,sha256=6wQ59y_Iq4Uw9UYdEpJlybpS2_b_w9oEtgwlPCcCcsM,28827
470
- numpy/f2py/f2py2e.pyi,sha256=vBiROr0fWogbfXLBSDQTmISuhHv6LtiL43GvyHQ1YYk,2131
471
- numpy/f2py/f90mod_rules.py,sha256=7Z5vorU4whX405xML66hr4i1icCUc9gr6an4R-AMh7M,9810
472
- numpy/f2py/f90mod_rules.pyi,sha256=r6w0DuH2Jdt8wPdDYAnXZAQmytIYUqPOxVz-QaWwt74,451
473
- numpy/f2py/func2subr.py,sha256=DXUsYF2TJxJ9576z_Mkn479YS9pstWsKUtu9_J6FjB8,10045
474
- numpy/f2py/func2subr.pyi,sha256=-MDbOrhanuizf3rlcwBQooCF4GnoGprA8ypeFV_m8d0,386
475
- numpy/f2py/rules.py,sha256=9XTR7sSgwkUSngcRnqd-pN3Yaq1swjB1PrrNj7YCqHI,63094
476
- numpy/f2py/rules.pyi,sha256=gpVSXV98hwuQzZzILfM0cKYeDJBct9wC2QD4ja79VsA,1307
477
- numpy/f2py/setup.cfg,sha256=Fpn4sjqTl5OT5sp8haqKIRnUcTPZNM6MIvUJBU7BIhg,48
478
- numpy/f2py/src/fortranobject.c,sha256=PhTgOrQGzLqyryRzhGY4hFLQPhhIL_pFh7TZT73j6JE,46456
479
- numpy/f2py/src/fortranobject.h,sha256=7cfRN_tToAQ1Na13VQ2Kzb2ujMHUAgGsbScnfLVOHqs,5823
480
- numpy/f2py/symbolic.py,sha256=qD1dLV1ZLsuIGBT3lHNskavb39hmwu4DEak0kWko5oE,53310
481
- numpy/f2py/symbolic.pyi,sha256=BB8PSxUF1kySgGQDUAMlCBtbhoNOfmjbvLujcg-hKmA,6064
482
- numpy/f2py/tests/__init__.py,sha256=pdPbCTRwpCJamlyvIi9HZTlqAvK5HPbGu3oMA0cu2Rs,329
483
- numpy/f2py/tests/src/abstract_interface/foo.f90,sha256=JFU2w98cB_XNwfrqNtI0yDTmpEdxYO_UEl2pgI_rnt8,658
484
- numpy/f2py/tests/src/abstract_interface/gh18403_mod.f90,sha256=gvQJIzNtvacWE0dhysxn30-iUeI65Hpq7DiE9oRauz8,105
485
- numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c,sha256=1W4NPnwgcU9d9RQ3vcpWGtxsBQq2lb2sAJwbLtjbPmg,7481
486
- numpy/f2py/tests/src/assumed_shape/.f2py_f2cmap,sha256=But9r9m4iL7EGq_haMW8IiQ4VivH0TgUozxX4pPvdpE,29
487
- numpy/f2py/tests/src/assumed_shape/foo_free.f90,sha256=oBwbGSlbr9MkFyhVO2aldjc01dr9GHrMrSiRQek8U64,460
488
- numpy/f2py/tests/src/assumed_shape/foo_mod.f90,sha256=rfzw3QdI-eaDSl-hslCgGpd5tHftJOVhXvb21Y9Gf6M,499
489
- numpy/f2py/tests/src/assumed_shape/foo_use.f90,sha256=rmT9k4jP9Ru1PLcGqepw9Jc6P9XNXM0axY7o4hi9lUw,269
490
- numpy/f2py/tests/src/assumed_shape/precision.f90,sha256=r08JeTVmTTExA-hYZ6HzaxVwBn1GMbPAuuwBhBDtJUk,130
491
- numpy/f2py/tests/src/block_docstring/foo.f,sha256=y7lPCPu7_Fhs_Tf2hfdpDQo1bhtvNSKRaZAOpM_l3dg,97
492
- numpy/f2py/tests/src/callback/foo.f,sha256=C1hjfpRCQWiOVVzIHqnsYcnLrqQcixrnHCn8hd9GhVk,1254
493
- numpy/f2py/tests/src/callback/gh17797.f90,sha256=_Nrl0a2HgUbtymGU0twaJ--7rMa1Uco2A3swbWvHoMo,148
494
- numpy/f2py/tests/src/callback/gh18335.f90,sha256=NraOyKIXyvv_Y-3xGnmTjtNjW2Znsnlk8AViI8zfovc,506
495
- numpy/f2py/tests/src/callback/gh25211.f,sha256=a2sxlQhtDVbYn8KOKHUYqwc-aCFt7sDPSnJsXFG35uI,179
496
- numpy/f2py/tests/src/callback/gh25211.pyf,sha256=FWxo0JWQlw519BpZV8PoYeI_FZ_K6C-3Wk6gLrfBPlw,447
497
- numpy/f2py/tests/src/callback/gh26681.f90,sha256=-cD69x7omk5wvVsfMHlXiZ-pTcaxs2Bl5G9GHA4UJ2M,566
498
- numpy/f2py/tests/src/cli/gh_22819.pyf,sha256=5rvOfCv-wSosB354LC9pExJmMoSHnbGZGl_rtA2fogA,142
499
- numpy/f2py/tests/src/cli/hi77.f,sha256=ttyI6vAP3qLnDqy82V04XmoqrXNM6uhMvvLri2p0dq0,71
500
- numpy/f2py/tests/src/cli/hiworld.f90,sha256=QWOLPrTxYQu1yrEtyQMbM0fE9M2RmXe7c185KnD5x3o,51
501
- numpy/f2py/tests/src/common/block.f,sha256=GQ0Pd-VMX3H3a-__f2SuosSdwNXHpBqoGnQDjf8aG9g,224
502
- numpy/f2py/tests/src/common/gh19161.f90,sha256=BUejyhqpNVfHZHQ-QC7o7ZSo7lQ6YHyX08lSmQqs6YM,193
503
- numpy/f2py/tests/src/crackfortran/accesstype.f90,sha256=-5Din7YlY1TU7tUHD2p-_DSTxGBpDsWYNeT9WOwGhno,208
504
- numpy/f2py/tests/src/crackfortran/common_with_division.f,sha256=2LfRa26JEB07_ti-WDmIveq991PxRlL_K6ss28rZDkk,494
505
- numpy/f2py/tests/src/crackfortran/data_common.f,sha256=ZSUAh3uhn9CCF-cYqK5TNmosBGPfsuHBIEfudgysun4,193
506
- numpy/f2py/tests/src/crackfortran/data_multiplier.f,sha256=jYrJKZWF_59JF9EMOSALUjn0UupWvp1teuGpcL5s1Sc,197
507
- numpy/f2py/tests/src/crackfortran/data_stmts.f90,sha256=19YO7OGj0IksyBlmMLZGRBQLjoE3erfkR4tFvhznvvE,693
508
- numpy/f2py/tests/src/crackfortran/data_with_comments.f,sha256=hoyXw330VHh8duMVmAQZjr1lgLVF4zFCIuEaUIrupv0,175
509
- numpy/f2py/tests/src/crackfortran/foo_deps.f90,sha256=CaH7mnWTG7FcnJe2vXN_0zDbMadw6NCqK-JJ2HmDjK8,128
510
- numpy/f2py/tests/src/crackfortran/gh15035.f,sha256=jJly1AzF5L9VxbVQ0vr-sf4LaUo4eQzJguhuemFxnvg,375
511
- numpy/f2py/tests/src/crackfortran/gh17859.f,sha256=7K5dtOXGuBDAENPNCt-tAGJqTfNKz5OsqVSk16_e7Es,340
512
- numpy/f2py/tests/src/crackfortran/gh22648.pyf,sha256=qZHPRNQljIeYNwbqPLxREnOrSdVV14f3fnaHqB1M7c0,241
513
- numpy/f2py/tests/src/crackfortran/gh23533.f,sha256=w3tr_KcY3s7oSWGDmjfMHv5h0RYVGUpyXquNdNFOJQg,126
514
- numpy/f2py/tests/src/crackfortran/gh23598.f90,sha256=41W6Ire-5wjJTTg6oAo7O1WZfd1Ug9vvNtNgHS5MhEU,101
515
- numpy/f2py/tests/src/crackfortran/gh23598Warn.f90,sha256=1v-hMCT_K7prhhamoM20nMU9zILam84Hr-imck_dYYk,205
516
- numpy/f2py/tests/src/crackfortran/gh23879.f90,sha256=LWDJTYR3t9h1IsrKC8dVXZlBfWX7clLeU006X6Ow8oI,332
517
- numpy/f2py/tests/src/crackfortran/gh27697.f90,sha256=bbnKpDsOuCWluoNodxzCspUQnu169zKTsn4fLTkhwpM,364
518
- numpy/f2py/tests/src/crackfortran/gh2848.f90,sha256=gPNasx98SIf7Z9ibk_DHiGKCvl7ERtsfoGXiFDT7FbM,282
519
- numpy/f2py/tests/src/crackfortran/operators.f90,sha256=-Fc-qjW1wBr3Dkvdd5dMTrt0hnjnV-1AYo-NFWcwFSo,1184
520
- numpy/f2py/tests/src/crackfortran/privatemod.f90,sha256=7bubZGMIn7iD31wDkjF1TlXCUM7naCIK69M9d0e3y-U,174
521
- numpy/f2py/tests/src/crackfortran/publicmod.f90,sha256=Pnwyf56Qd6W3FUH-ZMgnXEYkb7gn18ptNTdwmGan0Jo,167
522
- numpy/f2py/tests/src/crackfortran/pubprivmod.f90,sha256=eYpJwBYLKGOxVbKgEqfny1znib-b7uYhxcRXIf7uwXg,165
523
- numpy/f2py/tests/src/crackfortran/unicode_comment.f90,sha256=aINLh6GlfTwFewxvDoqnMqwuCNb4XAqi5Nj5vXguXYs,98
524
- numpy/f2py/tests/src/f2cmap/.f2py_f2cmap,sha256=iUOtfHd3OuT1Rz2-yiSgt4uPKGvCt5AzQ1iygJt_yjg,82
525
- numpy/f2py/tests/src/f2cmap/isoFortranEnvMap.f90,sha256=iJCD8a8MUTmuPuedbcmxW54Nr4alYuLhksBe1sHS4K0,298
526
- numpy/f2py/tests/src/isocintrin/isoCtests.f90,sha256=jcw-fzrFh0w5U66uJYfeUW4gv94L5MnWQ_NpsV9y0oI,998
527
- numpy/f2py/tests/src/kind/foo.f90,sha256=zIHpw1KdkWbTzbXb73hPbCg4N2Htj3XL8DIwM7seXpo,347
528
- numpy/f2py/tests/src/mixed/foo.f,sha256=90zmbSHloY1XQYcPb8B5d9bv9mCZx8Z8AMTtgDwJDz8,85
529
- numpy/f2py/tests/src/mixed/foo_fixed.f90,sha256=pxKuPzxF3Kn5khyFq9ayCsQiolxB3SaNtcWaK5j6Rv4,179
530
- numpy/f2py/tests/src/mixed/foo_free.f90,sha256=fIQ71wrBc00JUAVUj_r3QF9SdeNniBiMw6Ly7CGgPWU,139
531
- numpy/f2py/tests/src/modules/gh25337/data.f90,sha256=9Uz8CHB9i3_mjC3cTOmkTgPAF5tWSwYacG3MUrU-SY0,180
532
- numpy/f2py/tests/src/modules/gh25337/use_data.f90,sha256=WATiDGAoCKnGgMzm_iMgmfVU0UKOQlk5Fm0iXCmPAkE,179
533
- numpy/f2py/tests/src/modules/gh26920/two_mods_with_no_public_entities.f90,sha256=c7VU4SbK3yWn-6wksP3tDx_Hxh5u_g8UnlDpjU_-tBg,402
534
- numpy/f2py/tests/src/modules/gh26920/two_mods_with_one_public_routine.f90,sha256=eEU7RgFPh-TnNXEuJFdtJmTF-wPnpbHLQhG4fEeJnag,403
535
- numpy/f2py/tests/src/modules/module_data_docstring.f90,sha256=tDZ3fUlazLL8ThJm3VwNGJ75QIlLcW70NnMFv-JA4W0,224
536
- numpy/f2py/tests/src/modules/use_modules.f90,sha256=UsFfx0B2gu_tS-H-BpLWed_yoMDl1kbydMIOz8fvXWA,398
537
- numpy/f2py/tests/src/negative_bounds/issue_20853.f90,sha256=fdOPhRi7ipygwYCXcda7p_dlrws5Hd2GlpF9EZ-qnck,157
538
- numpy/f2py/tests/src/parameter/constant_array.f90,sha256=KRg7Gmq_r3B7t3IEgRkP1FT8ve8AuUFWT0WcTlXoN5U,1468
539
- numpy/f2py/tests/src/parameter/constant_both.f90,sha256=-bBf2eqHb-uFxgo6Q7iAtVUUQzrGFqzhHDNaxwSICfQ,1939
540
- numpy/f2py/tests/src/parameter/constant_compound.f90,sha256=re7pfzcuaquiOia53UT7qNNrTYu2euGKOF4IhoLmT6g,469
541
- numpy/f2py/tests/src/parameter/constant_integer.f90,sha256=nEmMLitKoSAG7gBBEQLWumogN-KS3DBZOAZJWcSDnFw,612
542
- numpy/f2py/tests/src/parameter/constant_non_compound.f90,sha256=IcxESVLKJUZ1k9uYKoSb8Hfm9-O_4rVnlkiUU2diy8Q,609
543
- numpy/f2py/tests/src/parameter/constant_real.f90,sha256=quNbDsM1Ts2rN4WtPO67S9Xi_8l2cXabWRO00CPQSSQ,610
544
- numpy/f2py/tests/src/quoted_character/foo.f,sha256=WjC9D9171fe2f7rkUAZUvik9bkIf9adByfRGzh6V0cM,482
545
- numpy/f2py/tests/src/regression/AB.inc,sha256=cSNxitwrjTKMiJzhY2AI5FaXJ5y9zDgA27x79jyoI6s,16
546
- numpy/f2py/tests/src/regression/assignOnlyModule.f90,sha256=c9RvUP1pQ201O_zOXgV0xp_aJF_8llxuA8Uot9z5tr0,608
547
- numpy/f2py/tests/src/regression/datonly.f90,sha256=9cVvl8zlAuGiqbSHMFzFn6aNWXj2v7sHJdd9A1Oc0qg,392
548
- numpy/f2py/tests/src/regression/f77comments.f,sha256=bqTsmO8WuSLVFsViIV7Nj7wQbJoZ7IAA3d2tpRDKsnA,626
549
- numpy/f2py/tests/src/regression/f77fixedform.f95,sha256=hcLZbdozMJ3V9pByVRp3RoeUvZgLMRLFctpZvxK2hTI,139
550
- numpy/f2py/tests/src/regression/f90continuation.f90,sha256=_W1fj0wXLqT91Q14qpBnM3F7rJKaiSR8upe0mR6_OIE,276
551
- numpy/f2py/tests/src/regression/incfile.f90,sha256=i7Y1zgMXR9bSxnjeYWSDGeCfsS5jiyn7BLb-wbwjz2U,92
552
- numpy/f2py/tests/src/regression/inout.f90,sha256=CpHpgMrf0bqA1W3Ozo3vInDz0RP904S7LkpdAH6ODck,277
553
- numpy/f2py/tests/src/regression/lower_f2py_fortran.f90,sha256=CMQL5RWf9LKnnUDiS-IYa9xc9DGanCYraNq0vGmunOE,100
554
- numpy/f2py/tests/src/regression/mod_derived_types.f90,sha256=565plqPwWDgnkpSb4-cfZbf3wTM85F2Gocklx5wpGWA,567
555
- numpy/f2py/tests/src/return_character/foo77.f,sha256=WzDNF3d_hUDSSZjtxd3DtE-bSx1ilOMEviGyYHbcFgM,980
556
- numpy/f2py/tests/src/return_character/foo90.f90,sha256=ULcETDEt7gXHRzmsMhPsGG4o3lGrcx-FEFaJsPGFKyA,1248
557
- numpy/f2py/tests/src/return_complex/foo77.f,sha256=8ECRJkfX82oFvGWKbIrCvKjf5QQQClx4sSEvsbkB6A8,973
558
- numpy/f2py/tests/src/return_complex/foo90.f90,sha256=c1BnrtWwL2dkrTr7wvlEqNDg59SeNMo3gyJuGdRwcDw,1238
559
- numpy/f2py/tests/src/return_integer/foo77.f,sha256=_8k1evlzBwvgZ047ofpdcbwKdF8Bm3eQ7VYl2Y8b5kA,1178
560
- numpy/f2py/tests/src/return_integer/foo90.f90,sha256=bzxbYtofivGRYH35Ang9ScnbNsVERN8-6ub5-eI-LGQ,1531
561
- numpy/f2py/tests/src/return_logical/foo77.f,sha256=FxiF_X0HkyXHzJM2rLyTubZJu4JB-ObLnVqfZwAQFl8,1188
562
- numpy/f2py/tests/src/return_logical/foo90.f90,sha256=9KmCe7yJYpi4ftkKOM3BCDnPOdBPTbUNrKxY3p37O14,1531
563
- numpy/f2py/tests/src/return_real/foo77.f,sha256=ZTrzb6oDrIDPlrVWP3Bmtkbz3ffHaaSQoXkfTGtCuFE,933
564
- numpy/f2py/tests/src/return_real/foo90.f90,sha256=gZuH5lj2lG6gqHlH766KQ3J4-Ero-G4WpOOo2MG3ohU,1194
565
- numpy/f2py/tests/src/routines/funcfortranname.f,sha256=oGPnHo0zL7kjFnuHw41mWUSXauoeRVPXnYXBb2qljio,123
566
- numpy/f2py/tests/src/routines/funcfortranname.pyf,sha256=coD8AdLyPK4_cGvQJgE2WJW_jH8EAulZCsMeb-Q1gOk,440
567
- numpy/f2py/tests/src/routines/subrout.f,sha256=RTexoH7RApv_mhu-RcVwyNiU-DXMTUP8LJAMSn2wQjk,90
568
- numpy/f2py/tests/src/routines/subrout.pyf,sha256=c9qv4XtIh4wA9avdkDJuXNwojK-VBPldrNhxlh446Ic,322
569
- numpy/f2py/tests/src/size/foo.f90,sha256=IlFAQazwBRr3zyT7v36-tV0-fXtB1d7WFp6S1JVMstg,815
570
- numpy/f2py/tests/src/string/char.f90,sha256=ihr_BH9lY7eXcQpHHDQhFoKcbu7VMOX5QP2Tlr7xlaM,618
571
- numpy/f2py/tests/src/string/fixed_string.f90,sha256=5n6IkuASFKgYICXY9foCVoqndfAY0AQZFEK8L8ARBGM,695
572
- numpy/f2py/tests/src/string/gh24008.f,sha256=UA8Pr-_yplfOFmc6m4v9ryFQ8W9OulaglulefkFWD68,217
573
- numpy/f2py/tests/src/string/gh24662.f90,sha256=-Tp9Kd1avvM7AIr8ZukFA9RVr-wusziAnE8AvG9QQI4,197
574
- numpy/f2py/tests/src/string/gh25286.f90,sha256=2EpxvC-0_dA58MBfGQcLyHzpZgKcMf_W9c73C_Mqnok,304
575
- numpy/f2py/tests/src/string/gh25286.pyf,sha256=GjgWKh1fHNdPGRiX5ek60i1XSeZsfFalydWqjISPVV8,381
576
- numpy/f2py/tests/src/string/gh25286_bc.pyf,sha256=6Y9zU66NfcGhTXlFOdFjCSMSwKXpq5ZfAe3FwpkAsm4,384
577
- numpy/f2py/tests/src/string/scalar_string.f90,sha256=ACxV2i6iPDk-a6L_Bs4jryVKYJMEGUTitEIYTjbJes4,176
578
- numpy/f2py/tests/src/string/string.f,sha256=shr3fLVZaa6SyUJFYIF1OZuhff8v5lCwsVNBU2B-3pk,248
579
- numpy/f2py/tests/src/value_attrspec/gh21665.f90,sha256=JC0FfVXsnB2lZHb-nGbySnxv_9VHAyD0mKaLDowczFU,190
580
- numpy/f2py/tests/test_abstract_interface.py,sha256=PXNQB0DZdmdZyysJkB8f9GY0_hA3hGkmha8aQBXc1Sk,811
581
- numpy/f2py/tests/test_array_from_pyobj.py,sha256=_A3-lUnbv19aFDr-sOj4HIAWzWCOgPUMPp3pPmEjXfA,23717
582
- numpy/f2py/tests/test_assumed_shape.py,sha256=8kPoQWn6IfMWNMba0al7a5XopKb3JnvZP3V3P6O2F8o,1467
583
- numpy/f2py/tests/test_block_docstring.py,sha256=P3K0QqnY0UfUQPc3vDrlP_WlZ6gNJ7iokG-D-ZG9tXQ,584
584
- numpy/f2py/tests/test_callback.py,sha256=P_5qM1xWOYfjeDgd70cIVpV1h0_tA1AP3kxRZDAeqII,7099
585
- numpy/f2py/tests/test_capi_maps.py,sha256=9shCCYs66AJKsbPx4T-WKSfHPCSI477JkPuA1C5aaaQ,396
586
- numpy/f2py/tests/test_character.py,sha256=R6FhfIi85E6L1qwlJtsnTCvNgFRriE3kSXefTwIVgLk,21931
587
- numpy/f2py/tests/test_common.py,sha256=gr4MF659JBWvSY4eQAqgHnOrVbEpq0ZhGM5Cdbye1L4,644
588
- numpy/f2py/tests/test_crackfortran.py,sha256=x_E4KmEfBX5SFsNkO_-mUi4W_WuzB-ZFsLOfUdHjLVE,16413
589
- numpy/f2py/tests/test_data.py,sha256=tete-xcIZHZi5VFjy_pyTjr5AjhQzoyJvLsT9QLYU1M,2895
590
- numpy/f2py/tests/test_docs.py,sha256=gaR62vpFaIna-50RXgeI9hN8hQ2Ln-CTngMina6j9j8,1930
591
- numpy/f2py/tests/test_f2cmap.py,sha256=zM8lksGAoH-cRvEVRkzciZ4oqH28obd-vvMVUObVjt0,387
592
- numpy/f2py/tests/test_f2py2e.py,sha256=tMS7m8ME4TCrCDSNng4A3dL1-1bOjnOEvv3FY283VyI,28569
593
- numpy/f2py/tests/test_isoc.py,sha256=g5PLyJuAYwF0obaZ55j_e-CNOODJcADsYFSfxcCl5LM,1434
594
- numpy/f2py/tests/test_kind.py,sha256=IJeqJcfCu0nsieHEFu-O1bIjE5uK_KpcijLH0fX-V6E,1845
595
- numpy/f2py/tests/test_mixed.py,sha256=DZcTCCle0o4aopFmGi58KtxzP6NFFci4N-pL3_HLb90,862
596
- numpy/f2py/tests/test_modules.py,sha256=GaOwxLf8KLdNkWIl9fveT9xg_wvCFdDsel9QiFweCAE,2301
597
- numpy/f2py/tests/test_parameter.py,sha256=P8hDezlxKN_Cm06oWGkS0pwlJvQz5QYwBsyTEA_Y1PQ,4634
598
- numpy/f2py/tests/test_pyf_src.py,sha256=xV81hRiGeytFFKeVnp-6O2OrGVdzJyecMEalCQSoDoI,1134
599
- numpy/f2py/tests/test_quoted_character.py,sha256=x19FhD6ZA7JkDuLuiXi48sGd8b42SPRuwwEY8CVRb24,477
600
- numpy/f2py/tests/test_regression.py,sha256=HzADiyPbbVSdbgul5aw-Eim8ScCdlrM6WWTPAFZiI4w,6182
601
- numpy/f2py/tests/test_return_character.py,sha256=t8cxO8LatnBXf2EU-HkfmdxvdHMYDk9DLx3kNUTArC4,1534
602
- numpy/f2py/tests/test_return_complex.py,sha256=_uWrnSh-IDL8men8X__5srP4wM0RkICr4WVJgoNgrzY,2440
603
- numpy/f2py/tests/test_return_integer.py,sha256=w9pHu-o1rcp148tATgFSqufr9nAnQxIeMKo-zowxPNY,1813
604
- numpy/f2py/tests/test_return_logical.py,sha256=OrS11uAw_asDamL7inRKf-S-7SBG0GTS8Vrqlexrkm0,2048
605
- numpy/f2py/tests/test_return_real.py,sha256=engDXzPYgBvUTLLdJ5vaIiGwt6A7zOn4lkM1W6mSUCY,3273
606
- numpy/f2py/tests/test_routines.py,sha256=f9pR8FNJgKuBWtzCjlfniWVHJecpW6gSNkGDb2t693c,795
607
- numpy/f2py/tests/test_semicolon_split.py,sha256=akc4xJiHI6xOCfpCEtFYPMz8qy2K5jODEPyJHYQvLdE,1627
608
- numpy/f2py/tests/test_size.py,sha256=SjES727lNcCJFePDnh7uBhncOXWOcqHqVPbZPvBO5js,1155
609
- numpy/f2py/tests/test_string.py,sha256=47wYPuO1NkjhXSbbyS8vBKsNCju5dA9uMjNhGPx-BGg,2938
610
- numpy/f2py/tests/test_symbolic.py,sha256=acA2uG435eNd_swRK6bT8tsYFOIsqq0wfR4wEM6ASTI,18561
611
- numpy/f2py/tests/test_value_attrspec.py,sha256=4wY9qPXl0JoPGCG7GyyuMDKLfsHAV8KRWGdEk9-ZZT8,330
612
- numpy/f2py/tests/util.py,sha256=KIDsCW5uZXe6jSdWpY9Ozlqs5-v-eeDsW3P5TDWKDzo,12112
613
- numpy/f2py/use_rules.py,sha256=emZhSLPbNDyBHnsfKKXDnGz4P_gwrgL0dfCZcD3n9D4,3376
614
- numpy/f2py/use_rules.pyi,sha256=gIAAemWfcidclVYZUpa6RRmSdUEDw4FDnGPaCNo93Zw,424
615
- numpy/fft/__init__.py,sha256=JRvTXZqBS5jgdqsuDaKlp-q7-xFCen6HOuEn1aJhN8A,8156
616
- numpy/fft/__init__.pyi,sha256=992nhxdKw-ctGDtuq46inSi2uteyIkLu0Qb6WnO8HrI,493
617
- numpy/fft/_helper.py,sha256=hIn2ZyEYG4fLB3MGvCPvpSrLXFfh-xO4zGKljk_TQjY,6787
618
- numpy/fft/_helper.pyi,sha256=m9w0WomCSxwNjl_ul8kIz69-CuRYpDKjvXOj8fgaFrk,1376
619
- numpy/fft/_pocketfft.py,sha256=jEoT07Ej5niqzKyvZ8VBk1p7gN1VKD8qyoG_MV0Co_o,62599
620
- numpy/fft/_pocketfft.pyi,sha256=rvwn-Yb0JwjjFZrEjxGJkIGSAU0i5bJLLpHirmwDDw4,3216
621
- numpy/fft/_pocketfft_umath.cpython-311-aarch64-linux-gnu.so,sha256=7tdBtJz7X5uptyQkZuguRioMbiie-XNT62ZFddV9wck,624936
622
- numpy/fft/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
623
- numpy/fft/tests/test_helper.py,sha256=LeVDCCdHzFhmCQ5ByMtVyA22GphgTQS5dupuxrLE8X0,6154
624
- numpy/fft/tests/test_pocketfft.py,sha256=D1PCAOUgwJMKCd0M28jpOilQxqj7wYoXXwn1xxmfyLA,24446
625
- numpy/lib/__init__.py,sha256=zYGuqEfPqq7LDbidpxYs8GgCNAmoJ4xQgFvF3XKJ5Rg,3004
626
- numpy/lib/__init__.pyi,sha256=exBBHVBBOsrMoLWflPYnqYgkiRgcxPbK0tE-6bP9g4Y,1495
627
- numpy/lib/_array_utils_impl.py,sha256=GYWiyNqLQ7DGUSBXz0bbR6AAqZStDIwUe7tsbZ__15M,1697
628
- numpy/lib/_array_utils_impl.pyi,sha256=prpTnShgOymnfPgSy_TotDYJMee4uVcl8crClI5bbCw,502
629
- numpy/lib/_arraypad_impl.py,sha256=afF5B0MYYFBfh596wPab6SdGQRnkBoWDtfhPEf7mMTE,33519
630
- numpy/lib/_arraypad_impl.pyi,sha256=DPdKF98OP-xsD8kqCWsAvNuUWbS-4q7PsN8GW_qXyjM,1929
631
- numpy/lib/_arraysetops_impl.py,sha256=n4lswN3C9PlO188LKPpdund-x33zxEeIr81kSNVUFrQ,37341
632
- numpy/lib/_arraysetops_impl.pyi,sha256=8VZHicsGK7GrG06sWq09CSO-Qjz11OsM1v0V9WWJw7I,13155
633
- numpy/lib/_arrayterator_impl.py,sha256=HtOADIHuG9ADbbMTgmh4P_muke1V-8E-FNEO3bVOGPA,7218
634
- numpy/lib/_arrayterator_impl.pyi,sha256=XEZf6uYIhHnQxd0HO699likPMgBJHHBa67CjW0TkdEI,1875
635
- numpy/lib/_datasource.py,sha256=zk-Vbn4JlDHEVa3De6A3NgjnnizSJi-HF0ZvvA6YIo4,22731
636
- numpy/lib/_datasource.pyi,sha256=YygvCl_6YccQe6oG-0Fm99hflv8azSWT6wVfnG87wzQ,995
637
- numpy/lib/_format_impl.py,sha256=KpDMH5_GNbE4FcFmsD7aWOH7EfisUR5Nm21n0UfoNpE,36884
638
- numpy/lib/_format_impl.pyi,sha256=liaA9VNhXcxzX5C8AJzHctwqe5-bySACAIOCvGz6Pco,2083
639
- numpy/lib/_function_base_impl.py,sha256=sjEP0m0JtWa8UMlL5NMDKGZQPBanWl_2eumUpKeup8k,193738
640
- numpy/lib/_function_base_impl.pyi,sha256=x9MtIA_XAgtHUYAJEmnGw0CiCq4tkAtOIkjx_-40qd0,75022
641
- numpy/lib/_histograms_impl.py,sha256=Utu7aAQc7ZpsHn_04ogUnZq1ZcdHfipcq9eRq817oVU,38432
642
- numpy/lib/_histograms_impl.pyi,sha256=A5M1rBuyv67IScw9pkdlyeptFkH3R0_UOHHdrDs3mpA,1055
643
- numpy/lib/_index_tricks_impl.py,sha256=DN54N4WthnKaw9wHmp93ro4au30R0s3p41RH7JFGPis,31519
644
- numpy/lib/_index_tricks_impl.pyi,sha256=1Yxx8IoqNfFt0YbKL1cDXXs9yRYq3CpC4Q8vhsdxX9I,8097
645
- numpy/lib/_iotools.py,sha256=0jtpvpl5L-_1ODI21F-1i19t1e3L-6wJxRd1CSLewL0,30876
646
- numpy/lib/_iotools.pyi,sha256=MiZ9S4gENGh-C-uWnzJTLBERkI-haXsSAmKffrMp1so,3652
647
- numpy/lib/_nanfunctions_impl.py,sha256=YtHIegZKsWbGeVoZLqfdQAR5f3tj16mjPIbOxsoF5LQ,71399
648
- numpy/lib/_nanfunctions_impl.pyi,sha256=b8tzCPwozLWvjGFJirShF-A67k1xlcpr3ERhFUCM3g0,816
649
- numpy/lib/_npyio_impl.py,sha256=VX29yndf3wWrZg9mlMXSUZRjRCbdsqIqfhcGgo3IO4I,98636
650
- numpy/lib/_npyio_impl.pyi,sha256=PRnSMC48qv7WmSZpbmua7IoqOXnBvHMxNk4r8z7WUZk,9494
651
- numpy/lib/_polynomial_impl.py,sha256=BIeU4_F6OSPetW_fowVE8p0Dd1uvsTu1fJc3uSgTBSE,44125
652
- numpy/lib/_polynomial_impl.pyi,sha256=ObY7qsEQVIQdJpLHqwinqSOuy6gJsmFQbeRAEqUHakA,7549
653
- numpy/lib/_scimath_impl.py,sha256=b5_-yRzWJIO8da_Z4B8qQe68j8lpO8gttGlvGNplytw,15684
654
- numpy/lib/_scimath_impl.pyi,sha256=pXBZjHPB_FbeBfe9M3N8TjrET_oclGuafWjTHC-xjUs,2774
655
- numpy/lib/_shape_base_impl.py,sha256=yYWK9Qb3nkDa4aT-4TkAoGIWqni5WBPQqVIVbHw3sxE,39013
656
- numpy/lib/_shape_base_impl.pyi,sha256=B2CrL7fSRd4AAZEjz7vRlcXWRc__NCoROMmlKYNB_hs,5526
657
- numpy/lib/_stride_tricks_impl.py,sha256=1P8F7jFneH7_BtX74OvcI6SNn2iQpzPjSKombhNVNmw,19115
658
- numpy/lib/_stride_tricks_impl.pyi,sha256=wA09OHAhkMTihc5Sff9XBvaRA16deo_-y0Eapggaf-A,1960
659
- numpy/lib/_twodim_base_impl.py,sha256=D-Ujk-kMZWXMI6wbi6RPs0egLghIJzCezgRorIiwhcg,33923
660
- numpy/lib/_twodim_base_impl.pyi,sha256=k99TQ_-JoniBDxJ5dj1pdJ7ESI8x_qzpIGYkndyUSQ8,13024
661
- numpy/lib/_type_check_impl.py,sha256=0rWzvLhMFqud2-yh58RVFQY8D2GpgUYDmnfpl4K3tWM,19914
662
- numpy/lib/_type_check_impl.pyi,sha256=KQXPN5V_o63vEqIuKTdMjWTaevtjKxJIsJvOmklb1So,9694
663
- numpy/lib/_ufunclike_impl.py,sha256=KYeiDVRMEfz98kOkw-XRy0e-jrTzjCODmdlGJSr7jNM,6014
664
- numpy/lib/_ufunclike_impl.pyi,sha256=b-FKZjd7CMNWtP68VC_f9B2s8xseZALQ44xy3um_Jq8,1714
665
- numpy/lib/_user_array_impl.py,sha256=ZckbFMNM28ETbpe12aYmJ4C1iReioSM-Te2N3iF_UZU,8026
666
- numpy/lib/_user_array_impl.pyi,sha256=zx-LVLytrRIHCLhJPN4qoaCx-q63FyZDxqZFH2dEJ7U,9268
667
- numpy/lib/_utils_impl.py,sha256=ltsW9MMp3k1vw7InidhYT5fo9grgwz624fvReiHDyWc,23499
668
- numpy/lib/_utils_impl.pyi,sha256=s4MsT3JtPCllqqUnI4r8rPdBWKscJSSnULaExAZ9UEg,724
669
- numpy/lib/_version.py,sha256=Cv-r6b9zVA6bD-vyFY8tCXRu9d5OsGnjqXalfY2RlOA,4783
670
- numpy/lib/_version.pyi,sha256=vysY5Vl_nh4si6GkMXEoB6pUDl-jJ5g0LpSDa40F124,641
671
- numpy/lib/array_utils.py,sha256=XbcyhJ9S0IlNnP9Ny6yygLMEACWWUPNOU8vevj1TEpI,144
672
- numpy/lib/array_utils.pyi,sha256=kEO5wShp8zEbNTPu-Kw-EHuZQvq1rXHzgjK797xCV0Q,191
673
- numpy/lib/format.py,sha256=npJ0eJhT7uKNK5a0lCMGfiJv-R4jyNhiIPeZbJcNXBs,477
674
- numpy/lib/format.pyi,sha256=vrcCHQQapO98nk_tQ0bhvfnLPwX6gWzUhmoB5HYycCk,852
675
- numpy/lib/introspect.py,sha256=6XobhsepKDUv8zmoPkfVM5EgZCGv61P2PKl_aRbEkHQ,2749
676
- numpy/lib/introspect.pyi,sha256=AWVX6b9mzdwsxizOY0LydWKBEpGatHaeeXGc2txYJEM,152
677
- numpy/lib/mixins.py,sha256=zQR-iIjCSSeWxepK5i-7ujSWfwFjrUZ_qxjerIikw6Y,7195
678
- numpy/lib/mixins.pyi,sha256=dRThvef7EHQts_Xz2NNp_WUTQmPyt-D5NPd49tz1RcM,3182
679
- numpy/lib/npyio.py,sha256=eaPvfHGSzUE70TJHHLOCPIX9G5ihMuBEexy6_PNhJ9Q,68
680
- numpy/lib/npyio.pyi,sha256=MTP8KyQ2GTU8BTkpaMHnwDQO9ABrHRiCCEO5BfQGgLo,116
681
- numpy/lib/recfunctions.py,sha256=T4aa5xXav9ntfw5YmzPiq_YUkh12wGk40XyBLQPCEzU,59539
682
- numpy/lib/recfunctions.pyi,sha256=uqozNxnNFfe9uCKkTz4NNLhsUsxsNWGQDDJnb-2dr1k,13452
683
- numpy/lib/scimath.py,sha256=qjFaQeq0zEIl7gKqOhaj_vmCC_KaFdyTmHdLUUkSp5I,169
684
- numpy/lib/scimath.pyi,sha256=AgI9GgTcFn_pFzApCbM-JKrFkyY8AetkUpZb7YN4tVM,233
685
- numpy/lib/stride_tricks.py,sha256=x0_BfwlycBAlR3BvpxTndeP96dHBT_fASbkTTTzBYgI,88
686
- numpy/lib/stride_tricks.pyi,sha256=Fqn9EZXdjIgUTce6UMD7rBBb8289QTMzohhjHwYP3TU,124
687
- numpy/lib/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
688
- numpy/lib/tests/data/py2-np0-objarr.npy,sha256=ZLoI7K3iQpXDkuoDF1Ymyc6Jbw4JngbQKC9grauVRsk,258
689
- numpy/lib/tests/data/py2-objarr.npy,sha256=F4cyUC-_TB9QSFLAo2c7c44rC6NUYIgrfGx9PqWPSKk,258
690
- numpy/lib/tests/data/py2-objarr.npz,sha256=xo13HBT0FbFZ2qvZz0LWGDb3SuQASSaXh7rKfVcJjx4,366
691
- numpy/lib/tests/data/py3-objarr.npy,sha256=7mtikKlHXp4unZhM8eBot8Cknlx1BofJdd73Np2PW8o,325
692
- numpy/lib/tests/data/py3-objarr.npz,sha256=vVRl9_NZ7_q-hjduUr8YWnzRy8ESNlmvMPlaSSC69fk,453
693
- numpy/lib/tests/data/python3.npy,sha256=X0ad3hAaLGXig9LtSHAo-BgOvLlFfPYMnZuVIxRmj-0,96
694
- numpy/lib/tests/data/win64python2.npy,sha256=agOcgHVYFJrV-nrRJDbGnUnF4ZTPYXuSeF-Mtg7GMpc,96
695
- numpy/lib/tests/test__datasource.py,sha256=mh6sTEsxnPJhRstFDOTtFHlkyYWC9wmdeJI09kpqDOg,10564
696
- numpy/lib/tests/test__iotools.py,sha256=GFFeJqg0XaYQkJMbq4VwWqua7y8BBPSZxoU8slliFHw,13830
697
- numpy/lib/tests/test__version.py,sha256=SwXoEqMap603c2jd7ONod0ZOVQeX6T-zArMf03OCHbw,1999
698
- numpy/lib/tests/test_array_utils.py,sha256=hPXtCjoBKe6MP91sg_04EBpRYg7MITVlCAgD1AScjx8,1118
699
- numpy/lib/tests/test_arraypad.py,sha256=lR_Kljvk3P8hPbNDb7j600dXcaTLwVadqPzpE1pmm5s,56616
700
- numpy/lib/tests/test_arraysetops.py,sha256=vLqMgRQhWyfvfYA05wzOFhSmfePrLdR2o8x5UCN0y84,47746
701
- numpy/lib/tests/test_arrayterator.py,sha256=ukCI8ViKwUgmcluA5YrohgSyVA0tgiuQjDbm4afhL3k,1296
702
- numpy/lib/tests/test_format.py,sha256=hRQLR45nUerpbdVmRYvwWiWCqh0A_bZbdl2QlseQcAM,41958
703
- numpy/lib/tests/test_function_base.py,sha256=dmiuDJai8EUOv-QBOBh2EyiB9lx2TOnmOSpRS8j69PE,178217
704
- numpy/lib/tests/test_histograms.py,sha256=bZwAk10KN8uCq8lYNg0aq7npsehlMv_UNOBhToqsk68,33951
705
- numpy/lib/tests/test_index_tricks.py,sha256=7fw1p3IECnXo2U_6OjIhRDqpfiJW3PSrcvEtlENqlS8,24407
706
- numpy/lib/tests/test_io.py,sha256=89D4CZ678gA-lZEyE-W7CHr2RVRW8qTS3LU4jyFx5Zc,111400
707
- numpy/lib/tests/test_loadtxt.py,sha256=Y6vCiejYyVYvmsX5rkxbk2fYgSQWe4_Zgs-7aS0APqA,40491
708
- numpy/lib/tests/test_mixins.py,sha256=9r6tgP4Wb6vCDn590PkHmHl-GBAoAL6_-mwp2wbiaO0,7009
709
- numpy/lib/tests/test_nanfunctions.py,sha256=lOaE9u5qTOZMFLHZkLhLiuCbXqcUAo3nwIEnGWYZaO0,54297
710
- numpy/lib/tests/test_packbits.py,sha256=REkoSXh9FVVTizyyHWkLqXFLIjt0rynXeixhK8-gBgk,17543
711
- numpy/lib/tests/test_polynomial.py,sha256=sBikyp8XBo9s7_6NAH_zAByIIuH9zeCqM3gtuS_uW7w,12405
712
- numpy/lib/tests/test_recfunctions.py,sha256=4ucL8V-emOvVNDws8TRxhvv9Dzl5QkERAWnUYTVBq24,43973
713
- numpy/lib/tests/test_regression.py,sha256=UURtmtwfrxMDF3UY1ZMNbgIJOa38jUzYKCmpYYD8e3Q,7716
714
- numpy/lib/tests/test_shape_base.py,sha256=ZWHeWCs9x0sD-L03h6kTmUdRHvxHVC-8KOu8KomhyKQ,27406
715
- numpy/lib/tests/test_stride_tricks.py,sha256=Xor-W2rgGc5TpdlEdcSdqoE_ARCPVXTBrnY51Xd0uqI,23012
716
- numpy/lib/tests/test_twodim_base.py,sha256=-djv2iP3W2sB4rAgj9Orl8alGwDFfPvcVu6CNvlKIcg,18925
717
- numpy/lib/tests/test_type_check.py,sha256=2M6uyLSI-CP13CAylnBn3kbT6nrK6wYWW-Scw13vsAQ,14796
718
- numpy/lib/tests/test_ufunclike.py,sha256=5a65WfziLpjPJ_yE8zg-A-q08xlyiU8_S1JH8kb-Uyw,3015
719
- numpy/lib/tests/test_utils.py,sha256=HRZxH8Rs-PxCpMAhgbNOrTfBrsA8B2eTOKypY0Udczw,2374
720
- numpy/lib/user_array.py,sha256=zs6u6TAXoAySGAZc1qE6fKD4AN-t6urZCaiZaKmHiso,63
721
- numpy/lib/user_array.pyi,sha256=8C-aTekEYA0bVU7F3turaw1w0j8FfFvDp9xKa9Pfe94,53
722
- numpy/linalg/__init__.py,sha256=tQAluaoJ9Od7GmfXwDuJFahswVSReQhNohoaGl1hPQI,2076
723
- numpy/linalg/__init__.pyi,sha256=i7eZhV3E6OXwspoIxr4ugY5aY4v6p9Ucf5T46UbZLZs,1016
724
- numpy/linalg/_linalg.py,sha256=5H0OKu0hNhKRzWZRmZpZ5kebpYZqu46rsdvqWw0WGKw,114861
725
- numpy/linalg/_linalg.pyi,sha256=2Hc-8D93OYiqegCzFMvCKYIjjAGWjQ_DPLBewlLr4Nw,13476
726
- numpy/linalg/_umath_linalg.cpython-311-aarch64-linux-gnu.so,sha256=4657SXVla6pLngYIX6VScQKnYIjRxZskXXIPnHg9J7o,395769
727
- numpy/linalg/_umath_linalg.pyi,sha256=2LjoAVHHaMRvEANZ0lgQh-JjS9Qp2ai9Is_Gmm9RSM4,1391
728
- numpy/linalg/lapack_lite.cpython-311-aarch64-linux-gnu.so,sha256=oVJHu10yvaYzjjPeg4AeaX8OvX0St34OL5Izlq6GXNg,329009
729
- numpy/linalg/lapack_lite.pyi,sha256=HWrXgeHCVKXIA4OXnZ5IjqeYoYj6S-7CE_yzGNLsQv8,2707
730
- numpy/linalg/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
731
- numpy/linalg/tests/test_deprecations.py,sha256=G7-AiBgYY-FqVOgu9bo0KO23iqoGOMoT158LwXTNF4E,616
732
- numpy/linalg/tests/test_linalg.py,sha256=oo3DolqdwrtjeqHNLEwODAaSWdSe6xBqZi_JMua5BhY,85944
733
- numpy/linalg/tests/test_regression.py,sha256=Q2GOimIPbUMuKR4508ZKmX3GwMv91TTeXdPRbbXhUhM,7047
734
- numpy/ma/API_CHANGES.txt,sha256=F_4jW8X5cYBbzpcwteymkonTmvzgKKY2kGrHF1AtnrI,3405
735
- numpy/ma/LICENSE,sha256=BfO4g1GYjs-tEKvpLAxQ5YdcZFLVAJoAhMwpFVH_zKY,1593
736
- numpy/ma/README.rst,sha256=krf2cvVK_zNQf1d3yVYwg0uDHzTiR4vHbr91zwaAyoI,9874
737
- numpy/ma/__init__.py,sha256=XpDWYXwauDc49-INsk455D03Uw4p6xFdsdWOn2rt87U,1406
738
- numpy/ma/__init__.pyi,sha256=QV7F1eN7GQLA2V2vI_bYXC_XhoZl-2IqXHWIqJtXLKU,6946
739
- numpy/ma/core.py,sha256=mXD6ksqk8MEKtRNitjR_512AdGH5j5Me99baqfMLADs,289255
740
- numpy/ma/core.pyi,sha256=sRucI8OkwW7_ludQUsxGUFpeHUXkURfhaGPFChvDDDw,131478
741
- numpy/ma/extras.py,sha256=AInammCBbRv65I1n1L1BbFSmvdQuZHDnrZ1oorGoTIE,67790
742
- numpy/ma/extras.pyi,sha256=Xh2jfcNC4gDQfjQ6VuwuqbxDlwAgme7aGpZXkHekz7g,8936
743
- numpy/ma/mrecords.py,sha256=AeXBSQRZH9mUatNazo8jxmHTuL8ONeo1AMlHbatWRcQ,26486
744
- numpy/ma/mrecords.pyi,sha256=ViAORHq2KLyMmD_rG7NvADFx1XdH_7A4b1DgP4Z-Ihg,2073
745
- numpy/ma/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
746
- numpy/ma/tests/test_arrayobject.py,sha256=MSvEcxlsVt4YZ7mVXU8q_hkwM0I7xsxWejEqnUQx6hE,1099
747
- numpy/ma/tests/test_core.py,sha256=fEN3vEZ-l-7VQG0xBty0fxRfcEWPTZqomjcExpP2Xpo,224851
748
- numpy/ma/tests/test_deprecations.py,sha256=DiI9OFpnou24GdczqhXAfF_1wNQVnIkhxaq-eH2EBCQ,2024
749
- numpy/ma/tests/test_extras.py,sha256=5_eKiYJfbz82WVIBaeDY7Y9bVQkgDuu-UmriieSz39g,75260
750
- numpy/ma/tests/test_mrecords.py,sha256=G9Rp8boPayW-X9F_wxxiHUVypfnXsHaLnbafvs-ScdU,19837
751
- numpy/ma/tests/test_old_ma.py,sha256=Z-oxH4w4MtHSHNGxAllx8yRyE_JlA-cdUWum72RuFoU,33075
752
- numpy/ma/tests/test_regression.py,sha256=_OvAuvcDPcd9PM7sdcnFGsSmtIzKhPYwIg6YWr2OTBY,2719
753
- numpy/ma/tests/test_subclassing.py,sha256=l8IC5FZfGQycX2DLUZZgW3pMySdqg1nksq0AxsY-N4I,16970
754
- numpy/ma/testutils.py,sha256=HWnz2sxyROWK7frc1aR2gYPMNsTUAE5eTgscjTJoNhw,10213
755
- numpy/ma/testutils.pyi,sha256=G7wA2szCP3O85I8NmjS9tlK5sIOGxk8-2UjxP2IoI8g,2290
756
- numpy/matlib.py,sha256=_S9N8S2NNsHGQUcloxrxABtJDejHiUyMdMJO7SayPkA,10638
757
- numpy/matlib.pyi,sha256=3-xlXgMvD-3-PL4ROMeiq0Jy_MyjUQ8mIZOg8BbmVyU,9731
758
- numpy/matrixlib/__init__.py,sha256=Ut6IqfjuA-kwwo6HBOYAgFjXXC_h7YV_3HyDsKM72dk,243
759
- numpy/matrixlib/__init__.pyi,sha256=uE45-GpcYfecaODsFYAYOZSJyXUSvWt7oNGer-BO7As,88
760
- numpy/matrixlib/defmatrix.py,sha256=wpw6lZU9X6qp8wAJokDXt2RBrL1eXqlmBt-ojIwYzlU,30875
761
- numpy/matrixlib/defmatrix.pyi,sha256=hcnedDDfFMd8AEtLvPebDKQg2oTgaqLVTnrtP0-p4bg,11066
762
- numpy/matrixlib/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
763
- numpy/matrixlib/tests/test_defmatrix.py,sha256=Ji8Ah5pdFJ8lHByI36PvTzQXk_NHgEucwjukcP1u1-w,14950
764
- numpy/matrixlib/tests/test_interaction.py,sha256=BMpaAIeGOJ5EEHWuozBifN8l3Av5RO6jGoaPgdzTiqQ,11874
765
- numpy/matrixlib/tests/test_masked_matrix.py,sha256=3cPMbFDq0-fUFNaCOhq4x7gf-eLqO_AA85kv4VIznUc,8822
766
- numpy/matrixlib/tests/test_matrix_linalg.py,sha256=k6tobXFHjqbbhs3oTpCuCcx87ilJx0-zlOppOCzvj8o,2231
767
- numpy/matrixlib/tests/test_multiarray.py,sha256=S5kjzsQR2YgT0qIGrNO1lUDl3o-h0EIdg_g3U3CnuRc,555
768
- numpy/matrixlib/tests/test_numeric.py,sha256=hZ-r921WDG8Ck8KmT6ulgykjHU1QaGY6gprC2OPo-vg,447
769
- numpy/matrixlib/tests/test_regression.py,sha256=XnfZ4RoTS49XMUyUlHVMc6wcWImNRja7DT1wTdEk428,934
770
- numpy/polynomial/__init__.py,sha256=gGSwLNpPCpXfPgiJSsgVoVsJ0AS1c-_MWlGOeiG55sI,6726
771
- numpy/polynomial/__init__.pyi,sha256=3RAJ_lqB4pwtaM17nDIOS3vZbLpf_WE_2scm2OUG_LU,712
772
- numpy/polynomial/_polybase.py,sha256=b0kCiTgUm8D5QC_LWSm6yNvwC79npDAeksK0vQPciCQ,39358
773
- numpy/polynomial/_polybase.pyi,sha256=Ww6khsXBlHNjYOO4BEeLXVoKCjsN3mVmV9o37Bj6HrQ,7767
774
- numpy/polynomial/_polytypes.pyi,sha256=PJtNJETCsW36kz_ZOdUjy4_pzMzJHBdGrRPklxEXJ-k,16234
775
- numpy/polynomial/chebyshev.py,sha256=FiEVmjrNVbhcYwG5UQEq9mqRBYTPhvGrkC_y6AsxRog,62286
776
- numpy/polynomial/chebyshev.pyi,sha256=njbTTN9e1zWFGT8RrAKqmhs1GXE5eMgfj0MdntsnqMk,5098
777
- numpy/polynomial/hermite.py,sha256=i8WMXgA47cJ5LiFKgHdVYpmhQyarus7aJrsE3r4Jbmo,54571
778
- numpy/polynomial/hermite.pyi,sha256=lnTddHUp9hwd9ikb3Nw9-HuLko9l1q3jMJnUadh0KYM,2638
779
- numpy/polynomial/hermite_e.py,sha256=JEw0ExZCNhHKWpj7C5SKP33QTr6I4wegTUyPu9UKyKM,52273
780
- numpy/polynomial/hermite_e.pyi,sha256=W8Nsi4Cbk2QNM2fA56ohaV_4TaqboijWlYyqGDcL4LI,2705
781
- numpy/polynomial/laguerre.py,sha256=LYVoI45ihTVXA7SvDf8H_KrAv_L6wFXdD7uj-DD21-s,52447
782
- numpy/polynomial/laguerre.pyi,sha256=_lVqxTy63387n3qdO_XClzDYpTcKZExnvSivmQTs73c,2366
783
- numpy/polynomial/legendre.py,sha256=ZWZ4kq7Ot-I5mCMD7Wy5EKBtI8jc88qsdPGy0MZaFg8,51102
784
- numpy/polynomial/legendre.pyi,sha256=14Ea8cVOfUIE8hQswgyHuZBtEdrnGb1J8t-oOBTWucs,2366
785
- numpy/polynomial/polynomial.py,sha256=nadD91M4ekHpLVbGxXYzB-g7iTK9yM4DlAjg95JsjP8,52669
786
- numpy/polynomial/polynomial.pyi,sha256=vIvmRAKKX5X-SA-6WO5ooV3X_5KdK75XJTaY6vnbK10,2989
787
- numpy/polynomial/polyutils.py,sha256=aAZJV6b0ZZYuK1IKDPHhiJgSmXV_eUikjXcUoTLHw7Y,22635
788
- numpy/polynomial/polyutils.pyi,sha256=IbzSXpiUHxwKUIwJLYiVWd3qc3S07c00UFfvfYPFxNg,10494
789
- numpy/polynomial/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
790
- numpy/polynomial/tests/test_chebyshev.py,sha256=XMnVK0Xc90aXl6kQ9Q9Wk1iQlYVfRUHmYf4hZNbXuYs,20629
791
- numpy/polynomial/tests/test_classes.py,sha256=86ZXIGQm3CRSRRyn4jA4loEP2747F7IXEDi_i-3YHG4,18531
792
- numpy/polynomial/tests/test_hermite.py,sha256=h_MR8bRD13dqWLUtmnHtD2BUmbz3Ho81deRQOnV4YFY,18666
793
- numpy/polynomial/tests/test_hermite_e.py,sha256=0n4Cltd-NCow1N09yGiQ98mIfME4mVAuzuBHF4imUu0,19005
794
- numpy/polynomial/tests/test_laguerre.py,sha256=ghgQMDC2o07JNsIk1-8h_MNNft2lqhsDAbKUhsPX2Rg,17616
795
- numpy/polynomial/tests/test_legendre.py,sha256=fbrw7jfec86s5LInQYKmJLbyYBn2nwFD5oLbVadub6s,18784
796
- numpy/polynomial/tests/test_polynomial.py,sha256=tKrml-0ryrpPkxoHDgBtM5TAcn5YkUX25U43dnnNc84,23564
797
- numpy/polynomial/tests/test_polyutils.py,sha256=AdB5QjViCG2Ocl9Gq4ULhH1Kj7ceQdkR9DHLg8qO2oI,3759
798
- numpy/polynomial/tests/test_printing.py,sha256=lPPk8cpK1FMr2S-mBc0pZ0IVeSrc0Tq_2jYmQ8bg_y8,21559
799
- numpy/polynomial/tests/test_symbol.py,sha256=ShBdNg9cvYy31fQnrn4gprZUSD0shz5r8zlG8CEq7gs,5375
800
- numpy/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
801
- numpy/random/LICENSE.md,sha256=EDFmtiuARDr7nrNIjgUuoGvgz_VmuQjxmeVh_eSa8Z8,3511
802
- numpy/random/__init__.pxd,sha256=9JbnX540aJNSothGs-7e23ozhilG6U8tINOUEp08M_k,431
803
- numpy/random/__init__.py,sha256=WFzntztUVNaiXCpQln8twyL8HSFNS7XAWJlJsQXgbqk,7480
804
- numpy/random/__init__.pyi,sha256=5X5UqSDkeruZafGWv9EnYb0RrjRs49r-TlzV3PPQOjs,2109
805
- numpy/random/_bounded_integers.cpython-311-aarch64-linux-gnu.so,sha256=HRmcB4daufm7-vnVV0foP3Yyk3oTDMnOJ_4PuCkaz_A,434000
806
- numpy/random/_bounded_integers.pxd,sha256=SH_FwJDigFEInhdliSaNH2H2ZIZoX02xYhNQA81g2-g,1678
807
- numpy/random/_bounded_integers.pyi,sha256=juqd9PbXs4yg45zMJ7BHAOPQjb7sgEbWE9InBtGZhfo,24
808
- numpy/random/_common.cpython-311-aarch64-linux-gnu.so,sha256=VjTRuo-BQDjZjigRPpK5rhqSfWSTdqXMmVHsUub3z0E,358272
809
- numpy/random/_common.pxd,sha256=MsWeOtfP_MKxRKtiGmggeAqNBDRjrV-OO5ArQ95kb1U,5046
810
- numpy/random/_common.pyi,sha256=02dQDSAflunmZQFWThDLG3650py_DNqCmxjmkv5_XpA,421
811
- numpy/random/_examples/cffi/extending.py,sha256=jpIL1njMhf0nehmlMHkgZkIxns2JC9GEDYgAChX87G8,884
812
- numpy/random/_examples/cffi/parse.py,sha256=PK9vdUxwmvdnFvH3rOpgnnpISwnid7ri5XOmBrMWpJw,1750
813
- numpy/random/_examples/cython/extending.pyx,sha256=ePnHDNfMQcTUzAqgFiEqrTFr9BoDmbqgjxzrDLvV8fE,2267
814
- numpy/random/_examples/cython/extending_distributions.pyx,sha256=t7Gp7ZaEnqMafXCvctHWTxc3nS52rPbV2GgrMr27TIE,3844
815
- numpy/random/_examples/cython/meson.build,sha256=GxZZT_Lu3nZsgcqo_7sTR_IdMJaHA1fxyjwrQTcodPs,1694
816
- numpy/random/_examples/numba/extending.py,sha256=Z7Z_Xp7HPE4K5BZ7AwpZ29qvuftFAkvhMtNX53tlMMw,1959
817
- numpy/random/_examples/numba/extending_distributions.py,sha256=fdePXeUj46yXK0MK1cszxUHQiOTiNuNsrbZqPw4AdGs,2036
818
- numpy/random/_generator.cpython-311-aarch64-linux-gnu.so,sha256=tOUO4y4YEDLi6iZMK5GbUwac4hj2uS2T_x6TlDrde_k,859280
819
- numpy/random/_generator.pyi,sha256=Z5ALhJM6Rp6KtlgV2gFrESOQstB-f5by7uMw-6aeT7k,24459
820
- numpy/random/_mt19937.cpython-311-aarch64-linux-gnu.so,sha256=6vQMseNOj12rvEKvToD-wksPFR8a4eQzoEFTHptI0rU,218392
821
- numpy/random/_mt19937.pyi,sha256=bkRD-NDIdLCtxeaEJqESbMFqKQe4tnFOTf0tBIiyV_g,822
822
- numpy/random/_pcg64.cpython-311-aarch64-linux-gnu.so,sha256=rUePcFUfpRQBJTThwMsvV3LCmKn9qgNAPiT3ABrh9YE,287304
823
- numpy/random/_pcg64.pyi,sha256=XWXz5nR8kbb04zUVb08Z2tjavwGacY2Gw2iUIdRKEeA,1173
824
- numpy/random/_philox.cpython-311-aarch64-linux-gnu.so,sha256=V0sBWyA34-T-id5UHin1c00cNAQPCK6m0CxMQXUkZi4,218168
825
- numpy/random/_philox.pyi,sha256=6bv9fiwlSF24XIt5rxJKOH1r2aoVSZeda8Orrs-lnj0,1013
826
- numpy/random/_pickle.py,sha256=Lt47ma_vnnJHdnQlc5jZ_DqBHsdKi0QiUNaIkMf95qA,2742
827
- numpy/random/_pickle.pyi,sha256=5obQY7CZRLMDjOgRtNgzV_Bg5O9E8DK_G74j7J7q6qo,1608
828
- numpy/random/_sfc64.cpython-311-aarch64-linux-gnu.so,sha256=ArwWBbNpJvuL9IEhrGG_plt1MxqjuhiQUTzzx_Ofohw,216056
829
- numpy/random/_sfc64.pyi,sha256=6yiVeSJlPC-dPelVwexZFsTFBZ1VORnBHKkwx62IEtg,691
830
- numpy/random/bit_generator.cpython-311-aarch64-linux-gnu.so,sha256=AX5VF5a7so6bYdoA5GpoMpLu0e8bO3m8YwFOSlUcjjI,301776
831
- numpy/random/bit_generator.pxd,sha256=X22hiI1BY-S-V9hdN4k7ToXqvo1JFEY4xf3PJVfXwx0,1204
832
- numpy/random/bit_generator.pyi,sha256=XR7Q7lD76PFehuurcx7bkmf5Hs3uMQ6oBvB8kwZ6jdY,3603
833
- numpy/random/c_distributions.pxd,sha256=UCtqx0Nf-vHuJVaqPlLFURWnaI1vH-vJRE01BZDTL9o,6335
834
- numpy/random/lib/libnpyrandom.a,sha256=9zX1gkp6vApY5VFOZQ3obgE3C5cEoImYrybHDrUsgSA,63566
835
- numpy/random/mtrand.cpython-311-aarch64-linux-gnu.so,sha256=mRdneaNNB9jt3aGSCAgjEMWShWI1f7udGmJ-hR1yDwE,719104
836
- numpy/random/mtrand.pyi,sha256=I_SrqLi1JeDH4bML9gcMOx9X45_OqKpQsl5a_IYM-TU,23801
837
- numpy/random/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
838
- numpy/random/tests/data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
839
- numpy/random/tests/data/generator_pcg64_np121.pkl.gz,sha256=EfQ-X70KkHgBAFX2pIPcCUl4MNP1ZNROaXOU75vdiqM,203
840
- numpy/random/tests/data/generator_pcg64_np126.pkl.gz,sha256=fN8deNVxX-HELA1eIZ32kdtYvc4hwKya6wv00GJeH0Y,208
841
- numpy/random/tests/data/mt19937-testset-1.csv,sha256=Xkef402AVB-eZgYQkVtoxERHkxffCA9Jyt_oMbtJGwY,15844
842
- numpy/random/tests/data/mt19937-testset-2.csv,sha256=nsBEQNnff-aFjHYK4thjvUK4xSXDSfv5aTbcE59pOkE,15825
843
- numpy/random/tests/data/pcg64-testset-1.csv,sha256=xB00DpknGUTTCxDr9L6aNo9Hs-sfzEMbUSS4t11TTfE,23839
844
- numpy/random/tests/data/pcg64-testset-2.csv,sha256=NTdzTKvG2U7_WyU_IoQUtMzU3kEvDH39CgnR6VzhTkw,23845
845
- numpy/random/tests/data/pcg64dxsm-testset-1.csv,sha256=vNSUT-gXS_oEw_awR3O30ziVO4seNPUv1UIZ01SfVnI,23833
846
- numpy/random/tests/data/pcg64dxsm-testset-2.csv,sha256=uylS8PU2AIKZ185OC04RBr_OePweGRtvn-dE4YN0yYA,23839
847
- numpy/random/tests/data/philox-testset-1.csv,sha256=SedRaIy5zFadmk71nKrGxCFZ6BwKz8g1A9-OZp3IkkY,23852
848
- numpy/random/tests/data/philox-testset-2.csv,sha256=dWECt-sbfvaSiK8-Ygp5AqyjoN5i26VEOrXqg01rk3g,23838
849
- numpy/random/tests/data/sfc64-testset-1.csv,sha256=iHs6iX6KR8bxGwKk-3tedAdMPz6ZW8slDSUECkAqC8Q,23840
850
- numpy/random/tests/data/sfc64-testset-2.csv,sha256=FIDIDFCaPZfWUSxsJMAe58hPNmMrU27kCd9FhCEYt_k,23833
851
- numpy/random/tests/data/sfc64_np126.pkl.gz,sha256=MVa1ylFy7DUPgUBK-oIeKSdVl4UYEiN3AZ7G3sdzzaw,290
852
- numpy/random/tests/test_direct.py,sha256=R0m_cGJKYLhUGCxuCoVZ6Rx3ChypNcotRiMnr7rvzRY,20023
853
- numpy/random/tests/test_extending.py,sha256=CQiEl6HpgmH6jO_FaT-XJozJvKEeBlidToHYIMGpiWU,4689
854
- numpy/random/tests/test_generator_mt19937.py,sha256=L9ct9nCVlbPRcMzbcoSqJ4jMuNImQm41OTWrISHE3As,118860
855
- numpy/random/tests/test_generator_mt19937_regressions.py,sha256=ii7W5tsNJNm8YaufSqIZyFrei2Yhh_Xq3yDZf6c0KlQ,8638
856
- numpy/random/tests/test_random.py,sha256=8xyABUg7BzP5iG2DoizSGvpwG-JFOZsEnywCzJJ1NZA,71278
857
- numpy/random/tests/test_randomstate.py,sha256=aK21GPQiVgJfNWk3TgL3irBX90jjipQWjAT18p8-6Ik,87749
858
- numpy/random/tests/test_randomstate_regression.py,sha256=H9EvishjtZ0PHJf-MTGULOibpcl1PveQyZW9nodlJJ4,8047
859
- numpy/random/tests/test_regression.py,sha256=Ox9Z5Q7eHS8ZbF69VWPwclmZcTUaL-vIOujlqu3uyNo,6324
860
- numpy/random/tests/test_seed_sequence.py,sha256=0lb4LRofbt_wHO-Cs_d1hwp1WcWjOmxH-OePkXST5bc,3310
861
- numpy/random/tests/test_smoke.py,sha256=WU5KNpwEYK9Pox35i9zLOmxEsP3SSX_fOLboasZvq0A,29935
862
- numpy/rec/__init__.py,sha256=kNAYYoSAA0izpUVRb-18sJw-iKtFq2Rl2U5SOH3pHRM,83
863
- numpy/rec/__init__.pyi,sha256=1ZL2SbvFSaoXwOK-378QQ0g0XldOjskx2E2uIerEGUI,347
864
- numpy/strings/__init__.py,sha256=o27wHW8jGaUfbDopSyEmYD6Rjeo33AzkGBBTgWrlGH4,83
865
- numpy/strings/__init__.pyi,sha256=JP8YQR3xZ_mPMdQax7QSR2cZ-N-V7ZDqvOcWIIUP_54,1319
866
- numpy/testing/__init__.py,sha256=Eqe-Ox-3JSqk6QRnnPPFLCW9Ikqv9OuJDhnm2uGM3zc,581
867
- numpy/testing/__init__.pyi,sha256=Avi7mmpPSuQ-lXCkAFdEOTG-Dfc3yOkdVIb07d8XqUY,2188
868
- numpy/testing/_private/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
869
- numpy/testing/_private/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
870
- numpy/testing/_private/extbuild.py,sha256=Lg1sqA94Q74Ki5u-sx0PEj7urr3YP470-BCiyvJwExQ,7716
871
- numpy/testing/_private/extbuild.pyi,sha256=AO2r2DVbl2A9EyytVQLIYAgvuIheYGn1pkdLRL38XY4,653
872
- numpy/testing/_private/utils.py,sha256=BRThby2wIV_tYE-zAVuuOWzp_yBHbCfsOV0ee9B4ZJE,98720
873
- numpy/testing/_private/utils.pyi,sha256=zFx9zp48JtI7q3053gcQYP3Nzxm8uHlicF21xqN2_ds,13225
874
- numpy/testing/overrides.py,sha256=B8Y8PlpvK71IcSuoubXWj4L5NVmLVSn7WMg1L7xZO8k,2134
875
- numpy/testing/overrides.pyi,sha256=QnD0JIqDuMNBBuUWlnaob0iH-Yph_RJ75PN3VaoQE_8,396
876
- numpy/testing/print_coercion_tables.py,sha256=SboNmCLc5FyV-UR8gKjJc2PIojN1XQTvH0WzDq75M2M,6286
877
- numpy/testing/print_coercion_tables.pyi,sha256=6U4zC30kUt0N-zfWDi4B335rhqqkpkvd2gLJEAEboBQ,820
878
- numpy/testing/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
879
- numpy/testing/tests/test_utils.py,sha256=YycdercfBDR8P1VodVeRKcHiV4n795wMr9JY2euR7u4,79701
880
- numpy/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
881
- numpy/tests/test__all__.py,sha256=AXbT9VmRSTYq9beba4d1Eom_V9SVXXEtpkBdEW2XCqU,222
882
- numpy/tests/test_configtool.py,sha256=VW0j4Gz85t59DGOwpkkY9ID0ySPLkY6s9HLCDlEfvDI,1812
883
- numpy/tests/test_ctypeslib.py,sha256=bDXPMKE5QeCbx2M6uOi8ZHXz50Z8O4nM0P6jl5asrl0,12832
884
- numpy/tests/test_lazyloading.py,sha256=Q5eGTVhKUEbVEeMsZLbhOGJVqOoAEStqmQxnnFIRMmA,1262
885
- numpy/tests/test_matlib.py,sha256=RMduSGHBJuVFmk__Ug_hVeGD4-Y3f28G0tlDt8F7k7c,1854
886
- numpy/tests/test_numpy_config.py,sha256=6HEKDmDiUbR0DQgZoaexOO3yUvDhc0RRPsI46hjcUvQ,1317
887
- numpy/tests/test_numpy_version.py,sha256=6PIeISx9_Hglpxc3y6KugeAgB4eBkuZC-DFlXt4LocA,1744
888
- numpy/tests/test_public_api.py,sha256=vm_hTRCjemI0bNh6PJYlV9SQhAlQvb5C1GWMGgGpqjU,28006
889
- numpy/tests/test_reloading.py,sha256=iWtE_3oVxP1TOQuLkW42DFz4MkpNhkxIo_WAwt5gHcU,2686
890
- numpy/tests/test_scripts.py,sha256=zcAXeR6bh7GxziiBwT3zZYfJFj5rp6g3N4qeqsVXp6o,1646
891
- numpy/tests/test_warnings.py,sha256=M6Lm_sMUhnbOEOQhYiU5tE43bzw_aTxDe-sK4ADqxn8,2420
892
- numpy/typing/__init__.py,sha256=ZYukeVOoCg2n22QIoaeN_aPNU4IopY3Lv4VA9m4oQAc,6984
893
- numpy/typing/__init__.pyi,sha256=WrtkmxvNpaorl5oK7LLtZv-1FnxjRKJvd_PJLUSLfNY,127
894
- numpy/typing/mypy_plugin.py,sha256=HXrRGoCkYUcctW4GIToBx_qXPfZyG2F3I6TvnaLFSlg,6846
895
- numpy/typing/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
896
- numpy/typing/tests/data/fail/arithmetic.pyi,sha256=GucPv-BYaNDz4h7PcwC-rZCijw-SdcRsZTKuA7Q512A,3686
897
- numpy/typing/tests/data/fail/array_constructors.pyi,sha256=nxqn0ddXib4l1Vh14ERhiHjV35WyFhG83a0XfMFKBGE,1200
898
- numpy/typing/tests/data/fail/array_like.pyi,sha256=klBpaBcONODcPC1LztdVZ3UuIPwXN8kUK_e9s_QnZoo,496
899
- numpy/typing/tests/data/fail/array_pad.pyi,sha256=mt-nhrs6f4YP7xgXizti7k_AwFAJ50yK97fMrMAAEds,137
900
- numpy/typing/tests/data/fail/arrayprint.pyi,sha256=8z4sszXe3Etx8ZyFwQlj1VzL7pGKW1CrlxyppoVixJQ,528
901
- numpy/typing/tests/data/fail/arrayterator.pyi,sha256=9Y8aD2lkDO7UcLo9ySR0pnVz0p2ofl2Lq4XTHgoMXxA,463
902
- numpy/typing/tests/data/fail/bitwise_ops.pyi,sha256=bbf3PYQfTp4oWEdkqHyjWUlL28w_CI5w66-3UC91kYc,380
903
- numpy/typing/tests/data/fail/char.pyi,sha256=h8PmTU-ncG7cYsxqz2kxvh1oGgtpHVk8l_KGTmiEQvw,2674
904
- numpy/typing/tests/data/fail/chararray.pyi,sha256=lBl4HeoqkAZQb5yHu5-LrfbuqledTamnAxXAioc-BaM,2249
905
- numpy/typing/tests/data/fail/comparisons.pyi,sha256=sxC1-BItC7D39Ac1Rs4jaZnCRrrHt1uLHY94DNzBVbY,736
906
- numpy/typing/tests/data/fail/constants.pyi,sha256=OHaBJo6GYW94BlUWKQDat5jiit5ZAy_h-5bb1WUJnLU,78
907
- numpy/typing/tests/data/fail/datasource.pyi,sha256=WFikGdZEajMOV15IUhz2L_TF7Unp5_WqEXHyWHYVaUo,420
908
- numpy/typing/tests/data/fail/dtype.pyi,sha256=crqAVZmBYLYV9N-ihiOnKCY1QK4iTxX7J4Tviac2Vq4,305
909
- numpy/typing/tests/data/fail/einsumfunc.pyi,sha256=4QWkwE4sr5bKz5-OCjPzeUcr4V-wpaMsqee2PXDwyjw,458
910
- numpy/typing/tests/data/fail/flatiter.pyi,sha256=WV9Hd1f5-y7cu9_HGNF8zv_UEN3ejw4O2tOAUpotbgE,1131
911
- numpy/typing/tests/data/fail/fromnumeric.pyi,sha256=cCKir-HY65-IkVf0Ez1d-gSEuEnAFzElOkhKqy6EAqQ,5688
912
- numpy/typing/tests/data/fail/histograms.pyi,sha256=wgI2CG-P0jbDw4KohR_nbJxqa34PT1e6nmnLi9KbPQM,376
913
- numpy/typing/tests/data/fail/index_tricks.pyi,sha256=RNZLHeMOpSX594Eem4WyJrM_QouqndGRVj2YQakJN-E,517
914
- numpy/typing/tests/data/fail/lib_function_base.pyi,sha256=o-LEak8T8b3zpNebJaQuKa6meECYz0duR_Mtb_Mw5xM,2663
915
- numpy/typing/tests/data/fail/lib_polynomial.pyi,sha256=Y3jlwigvtr5tFEHvr3SgguMVsYZe8cvsdgKcavgfucs,937
916
- numpy/typing/tests/data/fail/lib_utils.pyi,sha256=6Oc_wYI0mv0l74p4pEiVtKjkWFNg4WmXjGW7_2zEKS4,98
917
- numpy/typing/tests/data/fail/lib_version.pyi,sha256=BvABs2aeC6ZHUGkrsowu80Ks22pbxUMwSPJ8c5i7H14,154
918
- numpy/typing/tests/data/fail/linalg.pyi,sha256=aD_uyv64BR3190FjC8V8Z832eO3K9PjDXuSrH98OYFc,1540
919
- numpy/typing/tests/data/fail/ma.pyi,sha256=PJeufmU7W-oFICUS0_wEXwF3MNxliVwmf4uLJDF7Q44,7006
920
- numpy/typing/tests/data/fail/memmap.pyi,sha256=uXPLcVx726Bbw93E5kdIc7K0ssvLIZoJfNTULMtAa_8,169
921
- numpy/typing/tests/data/fail/modules.pyi,sha256=mEBLIY6vZAPIf2BuyJcMAR-FarSkT55FRlusrsR0qCo,603
922
- numpy/typing/tests/data/fail/multiarray.pyi,sha256=yHky9eaLYhRym8Dzp5KkJsSwIxqZAn4LVCyAS7vln_c,1666
923
- numpy/typing/tests/data/fail/ndarray.pyi,sha256=65IDiOprlv-sg375SBmmh6_hYOzlucTVLe42GymniGM,381
924
- numpy/typing/tests/data/fail/ndarray_misc.pyi,sha256=AsXRLQZ4iKDO8eCYTobItSJan8Fg5tKdZ-WJt2CgXzU,1402
925
- numpy/typing/tests/data/fail/nditer.pyi,sha256=Ng75GyVOdKGGmeKaaP68oAGKoGvqPwOpBj-h1sn1LMg,324
926
- numpy/typing/tests/data/fail/nested_sequence.pyi,sha256=r1OLdEm5Q3vsJWSsbTeIuP1G3meZC0HRMy5ODSfkoMI,464
927
- numpy/typing/tests/data/fail/npyio.pyi,sha256=NuDTuDApJB2b8zzVcVlD-UAP_yycIlTfMGEOlQAf55g,602
928
- numpy/typing/tests/data/fail/numerictypes.pyi,sha256=NJxviXTJIaDoz7q56dBrHCBNNG-doTu-oIryzwURxHQ,124
929
- numpy/typing/tests/data/fail/random.pyi,sha256=IvKXQuxZhuK6M0u2x3Y4PhXvLoC8OFnUdoeneaqDiIE,2903
930
- numpy/typing/tests/data/fail/rec.pyi,sha256=eeFXVvVg4DherRMA1T8KERtTiRN1ZIbarw4Yokb8WrU,741
931
- numpy/typing/tests/data/fail/scalars.pyi,sha256=rZeTalHQvC1pAqbg2Gp5MiH3_cm2bsItMSlfVWCtm3s,2838
932
- numpy/typing/tests/data/fail/shape.pyi,sha256=IFEyf5l-CMN2QbEQmCtvN8zMPjNzZs1VY2YGRO15lzU,132
933
- numpy/typing/tests/data/fail/shape_base.pyi,sha256=8366-8mCNii1D0W6YrOhCNxo8rrfqQThO-dIVWNRHvA,157
934
- numpy/typing/tests/data/fail/stride_tricks.pyi,sha256=g7-DY8Zc8pzTDyOBA-8t6yIFj1FZI9XpvVdbybQN2i0,330
935
- numpy/typing/tests/data/fail/strings.pyi,sha256=wX9ROrRNhpH9g_ewNGjWuTKU-He4xaNxrtz2Dm3iPo8,2333
936
- numpy/typing/tests/data/fail/testing.pyi,sha256=m8d2OZZ1DtsHfmnTwvdMRETUfo0lwRzaOXjuyNi08PQ,1399
937
- numpy/typing/tests/data/fail/twodim_base.pyi,sha256=axQ6ZXCzStPbdTL1pTwL87jeFVA6lD5uB5szXp4zgis,1132
938
- numpy/typing/tests/data/fail/type_check.pyi,sha256=HcoyUQqSm_jR2U1xJp4ksPGRwenahQ7helU_M2Wr3aU,370
939
- numpy/typing/tests/data/fail/ufunc_config.pyi,sha256=v5rd68Y2TzLplIOaOXM4h66HqSv8XbapR0b3xaoUOdQ,589
940
- numpy/typing/tests/data/fail/ufunclike.pyi,sha256=ejCb6kb7mmxPH0QrDsYfdFSLLPFKx0IZ9xSLs3YXOzg,649
941
- numpy/typing/tests/data/fail/ufuncs.pyi,sha256=XBoxO597ponBkFcCfwCS3s-jKfcnDzC_K5n2uBPrD6E,505
942
- numpy/typing/tests/data/fail/warnings_and_errors.pyi,sha256=SoFIznFd_xDifIsS0pv0aqS2BvhZaT6xsOA0zJrRJkA,200
943
- numpy/typing/tests/data/misc/extended_precision.pyi,sha256=b3gWM2KD6R4ygZ8gVbUn3SzlI8ESVLDqu-jv3dzJCrs,322
944
- numpy/typing/tests/data/mypy.ini,sha256=q0d9xXv3Aw7JngPw-7Eq8rp4QqYITitF5iIFssWSmZM,214
945
- numpy/typing/tests/data/pass/arithmetic.py,sha256=XOIN-j_AWzQAd9Cn3vWy-bRIgS2-LlvKESUsO3b05X0,7766
946
- numpy/typing/tests/data/pass/array_constructors.py,sha256=RJmnBjJm46HG9uta7-r-1Hj_KE2r9LWSSt-HMrELEYc,2448
947
- numpy/typing/tests/data/pass/array_like.py,sha256=6lURYraBGwvbryoFWeQW86THkyuuetCjlREebB67uXQ,1032
948
- numpy/typing/tests/data/pass/arrayprint.py,sha256=y_KkuLz1uM7pv53qfq7GQOuud4LoXE3apK1wtARdVyM,766
949
- numpy/typing/tests/data/pass/arrayterator.py,sha256=G6DdNEUdJGQNJivPimcpZxJHfs0ko0hJ0rXL4YD52xQ,394
950
- numpy/typing/tests/data/pass/bitwise_ops.py,sha256=-f3myeJItUjoO0CJXBwIDwYg4hYChsDNK7rSVpcMpMU,959
951
- numpy/typing/tests/data/pass/comparisons.py,sha256=E_04eHbZepqrQLd8L8LgWcf-jbwzOzXPqL2pgR4GGKs,3290
952
- numpy/typing/tests/data/pass/dtype.py,sha256=YDuYAb0oKoJc9eOnKJuoPfLbIKOgEdE04_CYxRS4U5I,1070
953
- numpy/typing/tests/data/pass/einsumfunc.py,sha256=eXj5L5MWPtQHgrHPsJ36qqrmBHqct9UoujjJCvHnF1k,1370
954
- numpy/typing/tests/data/pass/flatiter.py,sha256=6FdiXareijs-u7RT5iEWMDZKG29I7Dnl3pTr0xMBDO4,262
955
- numpy/typing/tests/data/pass/fromnumeric.py,sha256=d_hVLyrVDFPVx33aqLIyAGYYQ8XAJFIzrAsE8QCoof4,3991
956
- numpy/typing/tests/data/pass/index_tricks.py,sha256=IEd1ndXmwPCS3EazMlcP7Fqc0fso4SJ3Vuk7d_UefL0,1404
957
- numpy/typing/tests/data/pass/lib_user_array.py,sha256=iPekSN75_sVhMPNZKOlFLW1h8Ms2mYA-syd_keWus_4,618
958
- numpy/typing/tests/data/pass/lib_utils.py,sha256=bj1sEA4gsmezqbYdqKnVtKzY_fb64w7PEoZwNvaaUdA,317
959
- numpy/typing/tests/data/pass/lib_version.py,sha256=HnuGOx7tQA_bcxFIJ3dRoMAR0fockxg4lGqQ4g7LGIw,299
960
- numpy/typing/tests/data/pass/literal.py,sha256=6vsoM0_1WMfyPz8IFfugoSWI9qzPmh1Dj0hTS63TBR8,1509
961
- numpy/typing/tests/data/pass/ma.py,sha256=Yy9iA2sgjOSVV0QD0mMbpsCZcgK9g4A6lvz6sZm0GRg,3922
962
- numpy/typing/tests/data/pass/mod.py,sha256=PAjtQaBUsQt-7HeLZtfdmXSfLootcLOR4E-ZwtGbkUc,1571
963
- numpy/typing/tests/data/pass/modules.py,sha256=g9PhyLO6rflYHZtmryx1VWTubphN4TAPUSfoiYriTqE,625
964
- numpy/typing/tests/data/pass/multiarray.py,sha256=cObMKG9COfs2V9b2Be25NX8s0A6Z6Fk1pePAFjeyfUw,1379
965
- numpy/typing/tests/data/pass/ndarray_conversion.py,sha256=Yo4qZOXs9ZkHxOqEDnbsDo2VXF4E2E_RZFud2t9-RmU,1449
966
- numpy/typing/tests/data/pass/ndarray_misc.py,sha256=wRRe7KXemAEv-x6RHyhsKG-r-8SHWukHZiX4phWmhNQ,3356
967
- numpy/typing/tests/data/pass/ndarray_shape_manipulation.py,sha256=37eYwMNqMLwanIW9-63hrokacnSz2K_qtPUlkdpsTjo,640
968
- numpy/typing/tests/data/pass/nditer.py,sha256=nYO45Lw3ZNbQq75Vht86zzLZ4cWzP3ml0rxDPlYt8_8,63
969
- numpy/typing/tests/data/pass/numeric.py,sha256=gxbzAQZ_83oc9CaQou2DaQZHHWVFJCq0oJXwEvaz7Gc,1492
970
- numpy/typing/tests/data/pass/numerictypes.py,sha256=6x6eN9-5NsSQUSc6rf3fYieS2poYEY0t_ujbwgF9S5Q,331
971
- numpy/typing/tests/data/pass/random.py,sha256=IMHFGUy2GLzJcGkz6A6bYNYnO5yfLr0IZql-cENXPsA,61825
972
- numpy/typing/tests/data/pass/recfunctions.py,sha256=WSAurMALWvz8559jEvGAZ4oFz3isrgbq7AdulyHqb6A,4974
973
- numpy/typing/tests/data/pass/scalars.py,sha256=U7qLMrQia_8nyn9knImRhZVaSS_DXB865qotjosyxfY,3725
974
- numpy/typing/tests/data/pass/shape.py,sha256=GDv16_GTcvhhDMTBrGFveGqpq9HKo-ybGo0b_xc03do,439
975
- numpy/typing/tests/data/pass/simple.py,sha256=34J0fNGYvZR6WCrCnCIq6v1w357d5-kfYyoj55LJ1bA,2755
976
- numpy/typing/tests/data/pass/ufunc_config.py,sha256=uzXOhCl9N4LPV9hV2Iqg_skgkKMbBPBF0GXPU9EMeuE,1205
977
- numpy/typing/tests/data/pass/ufunclike.py,sha256=3BHtJxGyhqx0mglBPywofC3PYsKTuHhhrGY9ZrvwR5Y,1351
978
- numpy/typing/tests/data/pass/ufuncs.py,sha256=1Rem_geEm4qyD3XaRA1NAPKwr3YjRq68zbIlC_Xhi9M,422
979
- numpy/typing/tests/data/pass/warnings_and_errors.py,sha256=ETLZkDTGpZspvwjVYAZlnA1gH4PJ4bSY5PkWyxTjusU,161
980
- numpy/typing/tests/data/reveal/arithmetic.pyi,sha256=xpIyyBZRagV9vPJZA-XmmO5Tl8tkcOofripP1RfNVuM,26799
981
- numpy/typing/tests/data/reveal/array_api_info.pyi,sha256=oWKW0yGS9xKcLZnH2QeeixMBcI74dNIcwZr0bwGmDVM,3017
982
- numpy/typing/tests/data/reveal/array_constructors.pyi,sha256=-ZWL90FMWF0hRpk9hiasdF2C09AJklMGE0DWpKDgXCY,14763
983
- numpy/typing/tests/data/reveal/arraypad.pyi,sha256=wQOb5ud_6_nhI2TYJ6Nsq4M5FmtjiGRggQeOLLggFYU,904
984
- numpy/typing/tests/data/reveal/arrayprint.pyi,sha256=w2b9_EGKYZx8_yIFF8FyI-mZA4D460dHY4UhaO3rmi8,772
985
- numpy/typing/tests/data/reveal/arraysetops.pyi,sha256=Hhe49rLgj0P8SXElncNvLeCv1OqdI-iryB_673w7vL4,4411
986
- numpy/typing/tests/data/reveal/arrayterator.pyi,sha256=WVgpJLcATV7QF7CaSc-Ee_TZG7LbrD2hhbdsdJEwzmQ,1027
987
- numpy/typing/tests/data/reveal/bitwise_ops.pyi,sha256=yJdi07gYg_yEZU4GAplUeu-nJ99S16QD9lxbjiNzUuk,4637
988
- numpy/typing/tests/data/reveal/char.pyi,sha256=c1UlZEhsEAlUuQe42W2J0UKlXML1pK12tbcxiGzClaA,11552
989
- numpy/typing/tests/data/reveal/chararray.pyi,sha256=HrRlIsm3wMdI-iVC4_NQVz_1boN8CFiGheFu9QhLBlQ,5265
990
- numpy/typing/tests/data/reveal/comparisons.pyi,sha256=0pyVy1A2brPrD1pmCYZCEN5EiMxSHhQFaU0eUjiPc44,7181
991
- numpy/typing/tests/data/reveal/constants.pyi,sha256=AazwlvF--Te1dt35f8lkDLNuo3jQXqmGvddDQ37jAE0,333
992
- numpy/typing/tests/data/reveal/ctypeslib.pyi,sha256=U9ZO5GnGHxVyv-OWRYWHSXctH7LGHPWDdyNVl_saQEQ,4134
993
- numpy/typing/tests/data/reveal/datasource.pyi,sha256=B9nCoOPE4fJvBIeInAgUCg5pIsr8IYOu_iToqt6n-Nc,583
994
- numpy/typing/tests/data/reveal/dtype.pyi,sha256=v9zXxdAU0Dh0Y6ljXDkOy0gnDBe4MbaZsb2ui1r6j5I,4733
995
- numpy/typing/tests/data/reveal/einsumfunc.pyi,sha256=qPYk5W3lardDdgsQIGyu356iIGDnb0P38UKQDXWQlrk,1926
996
- numpy/typing/tests/data/reveal/emath.pyi,sha256=fcf0-GftYRByfJFuZC-MvzHlQU4A-f9-kPnxzQt48E0,2125
997
- numpy/typing/tests/data/reveal/fft.pyi,sha256=uZOJ0ljmmnejfPEwMsfUGDb52NOuTh7Npl7ONwx-Y2k,1601
998
- numpy/typing/tests/data/reveal/flatiter.pyi,sha256=zyMYyEgks-cNYYUViz-Eg_jeDE_bTXDwT6_gVDFo2bU,3262
999
- numpy/typing/tests/data/reveal/fromnumeric.pyi,sha256=9sGIU73NyjAw49FccNQdxTXHqgN9EkU2TT9tpO84tbE,15428
1000
- numpy/typing/tests/data/reveal/getlimits.pyi,sha256=zV_MSaLRwzckxfM3NN4lVkZ-BmOCLnnny5xTNEXPmWA,1586
1001
- numpy/typing/tests/data/reveal/histograms.pyi,sha256=Mr7P7JYMWF9jM6w5othyzh8CN3ygd2A-WRoB4jImnzk,1257
1002
- numpy/typing/tests/data/reveal/index_tricks.pyi,sha256=vtcdc7BdV21VSdiMLqHJT91G8_Cu5xuHe3iWXX217sA,3241
1003
- numpy/typing/tests/data/reveal/lib_function_base.pyi,sha256=1dgd6osocC6MLmaRuEsYJ0KbARz0wZG2NYcqAihFUNs,19963
1004
- numpy/typing/tests/data/reveal/lib_polynomial.pyi,sha256=dpw6fehZACkcWW_ydBKG6H9E0O7xjgdIbOQ4iGcCXlo,5702
1005
- numpy/typing/tests/data/reveal/lib_utils.pyi,sha256=oQCay2NF8pYHD5jNgRZKNjn8uJW4TJqUPIlytOwDSi0,436
1006
- numpy/typing/tests/data/reveal/lib_version.pyi,sha256=y4ZJSLEeS273Zd6fqaE2XNdczTS0-cwIJ2Yn_4Otm44,572
1007
- numpy/typing/tests/data/reveal/linalg.pyi,sha256=Kj3BGRssY-OhBGLXRLJof0B2cbYmTis1fxCqOEYv11A,7192
1008
- numpy/typing/tests/data/reveal/ma.pyi,sha256=C58mGDYVJf7TkRX6iGZPsy4spNjqQYqJ0AT15GASEu8,50608
1009
- numpy/typing/tests/data/reveal/matrix.pyi,sha256=bGUljQb5nqjMzghlxg57IFbXhWNjaQorUiW3Tz-6Edc,2830
1010
- numpy/typing/tests/data/reveal/memmap.pyi,sha256=OCcEhR5mvvXk4UhF6lRqmkxU2NcAqJ4nqAuBpcroQ1g,719
1011
- numpy/typing/tests/data/reveal/mod.pyi,sha256=THGQkngaOD0fxKr6LC6D76eByu7P_ky-LWUK8Bc3cm8,7178
1012
- numpy/typing/tests/data/reveal/modules.pyi,sha256=_Gvxgql5KbJFL1Mj5gFAphzyGC44AkuNZLnYkv-3LRA,1858
1013
- numpy/typing/tests/data/reveal/multiarray.pyi,sha256=s3VNstzDaTAVu59_aZIVggUa4DTMXNfQr1VhLEYSUbQ,8053
1014
- numpy/typing/tests/data/reveal/nbit_base_example.pyi,sha256=tJwOCuoOtoXY4iCUhp16AjDzV2qwZfNep5gtdeRiWZ8,674
1015
- numpy/typing/tests/data/reveal/ndarray_assignability.pyi,sha256=I5w0Y0Q5qUU7a-OhB3VeNcrD_zCI3XEEANlkis6WHUE,2911
1016
- numpy/typing/tests/data/reveal/ndarray_conversion.pyi,sha256=XRYlocES5qrAJ6T-U0V_FMWhN3wn4krYSnIs_KBoHMk,3252
1017
- numpy/typing/tests/data/reveal/ndarray_misc.pyi,sha256=BTEDCNfBGS_zvG_hG80PKccTz77dIxy3KIzC-Xb-nJc,8691
1018
- numpy/typing/tests/data/reveal/ndarray_shape_manipulation.pyi,sha256=5z-mfTFUzQUzCcYx7PDGLWG6z9Sy1xn6sFWNHNPJw5U,1698
1019
- numpy/typing/tests/data/reveal/nditer.pyi,sha256=yih7UE0OynR7GuVCGgwhzjTjARwOXikDe6Dr4ymRC2g,1898
1020
- numpy/typing/tests/data/reveal/nested_sequence.pyi,sha256=Z2vwweUjoqxR0zUUldOUXsg6mkDfDP1BMyFV2hje5Z8,612
1021
- numpy/typing/tests/data/reveal/npyio.pyi,sha256=m1XZsYCBIHKeS-1JWQm2mY7nb_iHzU4mtwi2CMC4r4c,3500
1022
- numpy/typing/tests/data/reveal/numeric.pyi,sha256=yKygW6XCcYYtODKeQxbuGmwDQLUwYWu5Jzdi29IXboQ,9072
1023
- numpy/typing/tests/data/reveal/numerictypes.pyi,sha256=8XB1qex01lga6r0hXaNh6X6MCBjPZM2DYpSVBgBicIg,568
1024
- numpy/typing/tests/data/reveal/polynomial_polybase.pyi,sha256=QoSd2zNnvn54V0HYr4HiHHJ21Hum3nY9SuPPeswEyIo,7626
1025
- numpy/typing/tests/data/reveal/polynomial_polyutils.pyi,sha256=U_zqcmHRzwEVXt_xJ8Jyc2kWfzCKTWkebiiQMuuABws,10619
1026
- numpy/typing/tests/data/reveal/polynomial_series.pyi,sha256=vSmOxVgQzlhbTy8pW1nAMZvnq3vc9iP_GUQeRx4ES4o,6880
1027
- numpy/typing/tests/data/reveal/random.pyi,sha256=xXJobSp5nVBelmrBO_OTvV8XQnbnZjbAyJfrRwlJshg,104296
1028
- numpy/typing/tests/data/reveal/rec.pyi,sha256=E8lxkOQ4qSwwX20Y4d438s5g-kTnNARsZc4f-Y8OhZo,3378
1029
- numpy/typing/tests/data/reveal/scalars.pyi,sha256=Vxmp_X8UWxG9js_Pw7t9l-XOs5xxMhZL-Fu2ygwhJuY,6378
1030
- numpy/typing/tests/data/reveal/shape.pyi,sha256=ZT6e5LW4nU90tA-Av5NLiyoaPW9NIX_XkWJ-LOOzh84,262
1031
- numpy/typing/tests/data/reveal/shape_base.pyi,sha256=xbnt0jps1djVxVMn4Lj8bxGl-mGvbhqSKFVWYcFApLg,2006
1032
- numpy/typing/tests/data/reveal/stride_tricks.pyi,sha256=Cm9P_F7promu0zGZmo957SOFCZ6Np8wSv5ecR_hB668,1315
1033
- numpy/typing/tests/data/reveal/strings.pyi,sha256=WvSd8xHIdxQdah3Q0ZJUva79jfVngB3UD9yb6awDW8w,9547
1034
- numpy/typing/tests/data/reveal/testing.pyi,sha256=nNBPXLqXUBTpWaZXJ76HUOUk2d5ygiFPRihG16EpgNo,8833
1035
- numpy/typing/tests/data/reveal/twodim_base.pyi,sha256=7TgO5a2G24Z99Rp3PE6DWgdlNA7J7GaaSJLvAX4eiEk,7475
1036
- numpy/typing/tests/data/reveal/type_check.pyi,sha256=W7rJUEf_iwI0D1FIVjhCEfzIjw_T04qcBYFxuPwnXAo,2392
1037
- numpy/typing/tests/data/reveal/ufunc_config.pyi,sha256=TctcrjlrJfsnR2S6GF4ID8kJttoT2CkLwqIynJOa8a4,1161
1038
- numpy/typing/tests/data/reveal/ufunclike.pyi,sha256=sk_HDVLeOoNeF4VOGHDI0iUT8YHeeOJjxyZTO4q0ddE,1346
1039
- numpy/typing/tests/data/reveal/ufuncs.pyi,sha256=uippeqIoG75gv0PSZm0WL9aQ5mG6zpXX3dHUz6-U30s,6345
1040
- numpy/typing/tests/data/reveal/warnings_and_errors.pyi,sha256=5qqRFzPOon1GhU_i5CHDxQLPKVcO2EMhbc851V8Gusc,449
1041
- numpy/typing/tests/test_isfile.py,sha256=h2BqYXXwKX6A9y3_FZt7X43EvxvPD8Lf0oQBiOwY2TU,1047
1042
- numpy/typing/tests/test_runtime.py,sha256=VLY_rg7VfZAFbCKbiwhArLS43FK4IKbsm4WBIL4wFxk,3076
1043
- numpy/typing/tests/test_typing.py,sha256=VERPf6NJ6gRLoKk0ki-s1wvDS4E--InjNUaj63_Q-00,6289
1044
- numpy/version.py,sha256=gz6xBRWB3mv00jzW8JDg-ky6tsVIRj3HGLW-YpIPotc,293
1045
- numpy/version.pyi,sha256=Y23oS-gNMAghMn4fMVi9SWc-BPFcaWl7PRE-ZmWR_wM,269
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.11/site-packages/numpy-2.4.6.dist-info/REQUESTED DELETED
File without changes
.venv/lib/python3.11/site-packages/numpy-2.4.6.dist-info/WHEEL DELETED
@@ -1,6 +0,0 @@
1
- Wheel-Version: 1.0
2
- Generator: meson
3
- Root-Is-Purelib: false
4
- Tag: cp311-cp311-manylinux_2_27_aarch64
5
- Tag: cp311-cp311-manylinux_2_28_aarch64
6
-
 
 
 
 
 
 
 
.venv/lib/python3.11/site-packages/numpy-2.4.6.dist-info/entry_points.txt DELETED
@@ -1,13 +0,0 @@
1
- [pkg_config]
2
- numpy = numpy._core.lib.pkgconfig
3
-
4
- [array_api]
5
- numpy = numpy
6
-
7
- [pyinstaller40]
8
- hook-dirs = numpy:_pyinstaller_hooks_dir
9
-
10
- [console_scripts]
11
- f2py = numpy.f2py.f2py2e:main
12
- numpy-config = numpy._configtool:main
13
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.11/site-packages/numpy-2.4.6.dist-info/licenses/LICENSE.txt DELETED
@@ -1,935 +0,0 @@
1
- Copyright (c) 2005-2025, NumPy Developers.
2
- All rights reserved.
3
-
4
- Redistribution and use in source and binary forms, with or without
5
- modification, are permitted provided that the following conditions are
6
- met:
7
-
8
- * Redistributions of source code must retain the above copyright
9
- notice, this list of conditions and the following disclaimer.
10
-
11
- * Redistributions in binary form must reproduce the above
12
- copyright notice, this list of conditions and the following
13
- disclaimer in the documentation and/or other materials provided
14
- with the distribution.
15
-
16
- * Neither the name of the NumPy Developers nor the names of any
17
- contributors may be used to endorse or promote products derived
18
- from this software without specific prior written permission.
19
-
20
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24
- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
-
32
- ----
33
-
34
-
35
- ----
36
-
37
- This binary distribution of NumPy also bundles the following software:
38
-
39
-
40
- Name: OpenBLAS
41
- Files: numpy.libs/libscipy_openblas*.so
42
- Description: bundled as a dynamically linked library
43
- Availability: https://github.com/OpenMathLib/OpenBLAS/
44
- License: BSD-3-Clause
45
- Copyright (c) 2011-2014, The OpenBLAS Project
46
- All rights reserved.
47
-
48
- Redistribution and use in source and binary forms, with or without
49
- modification, are permitted provided that the following conditions are
50
- met:
51
-
52
- 1. Redistributions of source code must retain the above copyright
53
- notice, this list of conditions and the following disclaimer.
54
-
55
- 2. Redistributions in binary form must reproduce the above copyright
56
- notice, this list of conditions and the following disclaimer in
57
- the documentation and/or other materials provided with the
58
- distribution.
59
- 3. Neither the name of the OpenBLAS project nor the names of
60
- its contributors may be used to endorse or promote products
61
- derived from this software without specific prior written
62
- permission.
63
-
64
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
65
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
66
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
67
- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
68
- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
69
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
70
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
71
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
72
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
73
- USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
74
-
75
-
76
- Name: LAPACK
77
- Files: numpy.libs/libscipy_openblas*.so
78
- Description: bundled in OpenBLAS
79
- Availability: https://github.com/OpenMathLib/OpenBLAS/
80
- License: BSD-3-Clause-Open-MPI
81
- Copyright (c) 1992-2013 The University of Tennessee and The University
82
- of Tennessee Research Foundation. All rights
83
- reserved.
84
- Copyright (c) 2000-2013 The University of California Berkeley. All
85
- rights reserved.
86
- Copyright (c) 2006-2013 The University of Colorado Denver. All rights
87
- reserved.
88
-
89
- $COPYRIGHT$
90
-
91
- Additional copyrights may follow
92
-
93
- $HEADER$
94
-
95
- Redistribution and use in source and binary forms, with or without
96
- modification, are permitted provided that the following conditions are
97
- met:
98
-
99
- - Redistributions of source code must retain the above copyright
100
- notice, this list of conditions and the following disclaimer.
101
-
102
- - Redistributions in binary form must reproduce the above copyright
103
- notice, this list of conditions and the following disclaimer listed
104
- in this license in the documentation and/or other materials
105
- provided with the distribution.
106
-
107
- - Neither the name of the copyright holders nor the names of its
108
- contributors may be used to endorse or promote products derived from
109
- this software without specific prior written permission.
110
-
111
- The copyright holders provide no reassurances that the source code
112
- provided does not infringe any patent, copyright, or any other
113
- intellectual property rights of third parties. The copyright holders
114
- disclaim any liability to any recipient for claims brought against
115
- recipient by any third party for infringement of that parties
116
- intellectual property rights.
117
-
118
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
119
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
120
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
121
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
122
- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
123
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
124
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
125
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
126
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
127
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
128
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
129
-
130
-
131
- Name: GCC runtime library
132
- Files: numpy.libs/libgfortran*.so
133
- Description: dynamically linked to files compiled with gcc
134
- Availability: https://gcc.gnu.org/git/?p=gcc.git;a=tree;f=libgfortran
135
- License: GPL-3.0-or-later WITH GCC-exception-3.1
136
- Copyright (C) 2002-2017 Free Software Foundation, Inc.
137
-
138
- Libgfortran is free software; you can redistribute it and/or modify
139
- it under the terms of the GNU General Public License as published by
140
- the Free Software Foundation; either version 3, or (at your option)
141
- any later version.
142
-
143
- Libgfortran is distributed in the hope that it will be useful,
144
- but WITHOUT ANY WARRANTY; without even the implied warranty of
145
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
146
- GNU General Public License for more details.
147
-
148
- Under Section 7 of GPL version 3, you are granted additional
149
- permissions described in the GCC Runtime Library Exception, version
150
- 3.1, as published by the Free Software Foundation.
151
-
152
- You should have received a copy of the GNU General Public License and
153
- a copy of the GCC Runtime Library Exception along with this program;
154
- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
155
- <http://www.gnu.org/licenses/>.
156
-
157
- ----
158
-
159
- Full text of license texts referred to above follows (that they are
160
- listed below does not necessarily imply the conditions apply to the
161
- present binary release):
162
-
163
- ----
164
-
165
- GCC RUNTIME LIBRARY EXCEPTION
166
-
167
- Version 3.1, 31 March 2009
168
-
169
- Copyright (C) 2009 Free Software Foundation, Inc. <https://fsf.org/>
170
-
171
- Everyone is permitted to copy and distribute verbatim copies of this
172
- license document, but changing it is not allowed.
173
-
174
- This GCC Runtime Library Exception ("Exception") is an additional
175
- permission under section 7 of the GNU General Public License, version
176
- 3 ("GPLv3"). It applies to a given file (the "Runtime Library") that
177
- bears a notice placed by the copyright holder of the file stating that
178
- the file is governed by GPLv3 along with this Exception.
179
-
180
- When you use GCC to compile a program, GCC may combine portions of
181
- certain GCC header files and runtime libraries with the compiled
182
- program. The purpose of this Exception is to allow compilation of
183
- non-GPL (including proprietary) programs to use, in this way, the
184
- header files and runtime libraries covered by this Exception.
185
-
186
- 0. Definitions.
187
-
188
- A file is an "Independent Module" if it either requires the Runtime
189
- Library for execution after a Compilation Process, or makes use of an
190
- interface provided by the Runtime Library, but is not otherwise based
191
- on the Runtime Library.
192
-
193
- "GCC" means a version of the GNU Compiler Collection, with or without
194
- modifications, governed by version 3 (or a specified later version) of
195
- the GNU General Public License (GPL) with the option of using any
196
- subsequent versions published by the FSF.
197
-
198
- "GPL-compatible Software" is software whose conditions of propagation,
199
- modification and use would permit combination with GCC in accord with
200
- the license of GCC.
201
-
202
- "Target Code" refers to output from any compiler for a real or virtual
203
- target processor architecture, in executable form or suitable for
204
- input to an assembler, loader, linker and/or execution
205
- phase. Notwithstanding that, Target Code does not include data in any
206
- format that is used as a compiler intermediate representation, or used
207
- for producing a compiler intermediate representation.
208
-
209
- The "Compilation Process" transforms code entirely represented in
210
- non-intermediate languages designed for human-written code, and/or in
211
- Java Virtual Machine byte code, into Target Code. Thus, for example,
212
- use of source code generators and preprocessors need not be considered
213
- part of the Compilation Process, since the Compilation Process can be
214
- understood as starting with the output of the generators or
215
- preprocessors.
216
-
217
- A Compilation Process is "Eligible" if it is done using GCC, alone or
218
- with other GPL-compatible software, or if it is done without using any
219
- work based on GCC. For example, using non-GPL-compatible Software to
220
- optimize any GCC intermediate representations would not qualify as an
221
- Eligible Compilation Process.
222
-
223
- 1. Grant of Additional Permission.
224
-
225
- You have permission to propagate a work of Target Code formed by
226
- combining the Runtime Library with Independent Modules, even if such
227
- propagation would otherwise violate the terms of GPLv3, provided that
228
- all Target Code was generated by Eligible Compilation Processes. You
229
- may then convey such a combination under terms of your choice,
230
- consistent with the licensing of the Independent Modules.
231
-
232
- 2. No Weakening of GCC Copyleft.
233
-
234
- The availability of this Exception does not imply any general
235
- presumption that third-party software is unaffected by the copyleft
236
- requirements of the license of GCC.
237
-
238
- ----
239
-
240
- GNU GENERAL PUBLIC LICENSE
241
- Version 3, 29 June 2007
242
-
243
- Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
244
- Everyone is permitted to copy and distribute verbatim copies
245
- of this license document, but changing it is not allowed.
246
-
247
- Preamble
248
-
249
- The GNU General Public License is a free, copyleft license for
250
- software and other kinds of works.
251
-
252
- The licenses for most software and other practical works are designed
253
- to take away your freedom to share and change the works. By contrast,
254
- the GNU General Public License is intended to guarantee your freedom to
255
- share and change all versions of a program--to make sure it remains free
256
- software for all its users. We, the Free Software Foundation, use the
257
- GNU General Public License for most of our software; it applies also to
258
- any other work released this way by its authors. You can apply it to
259
- your programs, too.
260
-
261
- When we speak of free software, we are referring to freedom, not
262
- price. Our General Public Licenses are designed to make sure that you
263
- have the freedom to distribute copies of free software (and charge for
264
- them if you wish), that you receive source code or can get it if you
265
- want it, that you can change the software or use pieces of it in new
266
- free programs, and that you know you can do these things.
267
-
268
- To protect your rights, we need to prevent others from denying you
269
- these rights or asking you to surrender the rights. Therefore, you have
270
- certain responsibilities if you distribute copies of the software, or if
271
- you modify it: responsibilities to respect the freedom of others.
272
-
273
- For example, if you distribute copies of such a program, whether
274
- gratis or for a fee, you must pass on to the recipients the same
275
- freedoms that you received. You must make sure that they, too, receive
276
- or can get the source code. And you must show them these terms so they
277
- know their rights.
278
-
279
- Developers that use the GNU GPL protect your rights with two steps:
280
- (1) assert copyright on the software, and (2) offer you this License
281
- giving you legal permission to copy, distribute and/or modify it.
282
-
283
- For the developers' and authors' protection, the GPL clearly explains
284
- that there is no warranty for this free software. For both users' and
285
- authors' sake, the GPL requires that modified versions be marked as
286
- changed, so that their problems will not be attributed erroneously to
287
- authors of previous versions.
288
-
289
- Some devices are designed to deny users access to install or run
290
- modified versions of the software inside them, although the manufacturer
291
- can do so. This is fundamentally incompatible with the aim of
292
- protecting users' freedom to change the software. The systematic
293
- pattern of such abuse occurs in the area of products for individuals to
294
- use, which is precisely where it is most unacceptable. Therefore, we
295
- have designed this version of the GPL to prohibit the practice for those
296
- products. If such problems arise substantially in other domains, we
297
- stand ready to extend this provision to those domains in future versions
298
- of the GPL, as needed to protect the freedom of users.
299
-
300
- Finally, every program is threatened constantly by software patents.
301
- States should not allow patents to restrict development and use of
302
- software on general-purpose computers, but in those that do, we wish to
303
- avoid the special danger that patents applied to a free program could
304
- make it effectively proprietary. To prevent this, the GPL assures that
305
- patents cannot be used to render the program non-free.
306
-
307
- The precise terms and conditions for copying, distribution and
308
- modification follow.
309
-
310
- TERMS AND CONDITIONS
311
-
312
- 0. Definitions.
313
-
314
- "This License" refers to version 3 of the GNU General Public License.
315
-
316
- "Copyright" also means copyright-like laws that apply to other kinds of
317
- works, such as semiconductor masks.
318
-
319
- "The Program" refers to any copyrightable work licensed under this
320
- License. Each licensee is addressed as "you". "Licensees" and
321
- "recipients" may be individuals or organizations.
322
-
323
- To "modify" a work means to copy from or adapt all or part of the work
324
- in a fashion requiring copyright permission, other than the making of an
325
- exact copy. The resulting work is called a "modified version" of the
326
- earlier work or a work "based on" the earlier work.
327
-
328
- A "covered work" means either the unmodified Program or a work based
329
- on the Program.
330
-
331
- To "propagate" a work means to do anything with it that, without
332
- permission, would make you directly or secondarily liable for
333
- infringement under applicable copyright law, except executing it on a
334
- computer or modifying a private copy. Propagation includes copying,
335
- distribution (with or without modification), making available to the
336
- public, and in some countries other activities as well.
337
-
338
- To "convey" a work means any kind of propagation that enables other
339
- parties to make or receive copies. Mere interaction with a user through
340
- a computer network, with no transfer of a copy, is not conveying.
341
-
342
- An interactive user interface displays "Appropriate Legal Notices"
343
- to the extent that it includes a convenient and prominently visible
344
- feature that (1) displays an appropriate copyright notice, and (2)
345
- tells the user that there is no warranty for the work (except to the
346
- extent that warranties are provided), that licensees may convey the
347
- work under this License, and how to view a copy of this License. If
348
- the interface presents a list of user commands or options, such as a
349
- menu, a prominent item in the list meets this criterion.
350
-
351
- 1. Source Code.
352
-
353
- The "source code" for a work means the preferred form of the work
354
- for making modifications to it. "Object code" means any non-source
355
- form of a work.
356
-
357
- A "Standard Interface" means an interface that either is an official
358
- standard defined by a recognized standards body, or, in the case of
359
- interfaces specified for a particular programming language, one that
360
- is widely used among developers working in that language.
361
-
362
- The "System Libraries" of an executable work include anything, other
363
- than the work as a whole, that (a) is included in the normal form of
364
- packaging a Major Component, but which is not part of that Major
365
- Component, and (b) serves only to enable use of the work with that
366
- Major Component, or to implement a Standard Interface for which an
367
- implementation is available to the public in source code form. A
368
- "Major Component", in this context, means a major essential component
369
- (kernel, window system, and so on) of the specific operating system
370
- (if any) on which the executable work runs, or a compiler used to
371
- produce the work, or an object code interpreter used to run it.
372
-
373
- The "Corresponding Source" for a work in object code form means all
374
- the source code needed to generate, install, and (for an executable
375
- work) run the object code and to modify the work, including scripts to
376
- control those activities. However, it does not include the work's
377
- System Libraries, or general-purpose tools or generally available free
378
- programs which are used unmodified in performing those activities but
379
- which are not part of the work. For example, Corresponding Source
380
- includes interface definition files associated with source files for
381
- the work, and the source code for shared libraries and dynamically
382
- linked subprograms that the work is specifically designed to require,
383
- such as by intimate data communication or control flow between those
384
- subprograms and other parts of the work.
385
-
386
- The Corresponding Source need not include anything that users
387
- can regenerate automatically from other parts of the Corresponding
388
- Source.
389
-
390
- The Corresponding Source for a work in source code form is that
391
- same work.
392
-
393
- 2. Basic Permissions.
394
-
395
- All rights granted under this License are granted for the term of
396
- copyright on the Program, and are irrevocable provided the stated
397
- conditions are met. This License explicitly affirms your unlimited
398
- permission to run the unmodified Program. The output from running a
399
- covered work is covered by this License only if the output, given its
400
- content, constitutes a covered work. This License acknowledges your
401
- rights of fair use or other equivalent, as provided by copyright law.
402
-
403
- You may make, run and propagate covered works that you do not
404
- convey, without conditions so long as your license otherwise remains
405
- in force. You may convey covered works to others for the sole purpose
406
- of having them make modifications exclusively for you, or provide you
407
- with facilities for running those works, provided that you comply with
408
- the terms of this License in conveying all material for which you do
409
- not control copyright. Those thus making or running the covered works
410
- for you must do so exclusively on your behalf, under your direction
411
- and control, on terms that prohibit them from making any copies of
412
- your copyrighted material outside their relationship with you.
413
-
414
- Conveying under any other circumstances is permitted solely under
415
- the conditions stated below. Sublicensing is not allowed; section 10
416
- makes it unnecessary.
417
-
418
- 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
419
-
420
- No covered work shall be deemed part of an effective technological
421
- measure under any applicable law fulfilling obligations under article
422
- 11 of the WIPO copyright treaty adopted on 20 December 1996, or
423
- similar laws prohibiting or restricting circumvention of such
424
- measures.
425
-
426
- When you convey a covered work, you waive any legal power to forbid
427
- circumvention of technological measures to the extent such circumvention
428
- is effected by exercising rights under this License with respect to
429
- the covered work, and you disclaim any intention to limit operation or
430
- modification of the work as a means of enforcing, against the work's
431
- users, your or third parties' legal rights to forbid circumvention of
432
- technological measures.
433
-
434
- 4. Conveying Verbatim Copies.
435
-
436
- You may convey verbatim copies of the Program's source code as you
437
- receive it, in any medium, provided that you conspicuously and
438
- appropriately publish on each copy an appropriate copyright notice;
439
- keep intact all notices stating that this License and any
440
- non-permissive terms added in accord with section 7 apply to the code;
441
- keep intact all notices of the absence of any warranty; and give all
442
- recipients a copy of this License along with the Program.
443
-
444
- You may charge any price or no price for each copy that you convey,
445
- and you may offer support or warranty protection for a fee.
446
-
447
- 5. Conveying Modified Source Versions.
448
-
449
- You may convey a work based on the Program, or the modifications to
450
- produce it from the Program, in the form of source code under the
451
- terms of section 4, provided that you also meet all of these conditions:
452
-
453
- a) The work must carry prominent notices stating that you modified
454
- it, and giving a relevant date.
455
-
456
- b) The work must carry prominent notices stating that it is
457
- released under this License and any conditions added under section
458
- 7. This requirement modifies the requirement in section 4 to
459
- "keep intact all notices".
460
-
461
- c) You must license the entire work, as a whole, under this
462
- License to anyone who comes into possession of a copy. This
463
- License will therefore apply, along with any applicable section 7
464
- additional terms, to the whole of the work, and all its parts,
465
- regardless of how they are packaged. This License gives no
466
- permission to license the work in any other way, but it does not
467
- invalidate such permission if you have separately received it.
468
-
469
- d) If the work has interactive user interfaces, each must display
470
- Appropriate Legal Notices; however, if the Program has interactive
471
- interfaces that do not display Appropriate Legal Notices, your
472
- work need not make them do so.
473
-
474
- A compilation of a covered work with other separate and independent
475
- works, which are not by their nature extensions of the covered work,
476
- and which are not combined with it such as to form a larger program,
477
- in or on a volume of a storage or distribution medium, is called an
478
- "aggregate" if the compilation and its resulting copyright are not
479
- used to limit the access or legal rights of the compilation's users
480
- beyond what the individual works permit. Inclusion of a covered work
481
- in an aggregate does not cause this License to apply to the other
482
- parts of the aggregate.
483
-
484
- 6. Conveying Non-Source Forms.
485
-
486
- You may convey a covered work in object code form under the terms
487
- of sections 4 and 5, provided that you also convey the
488
- machine-readable Corresponding Source under the terms of this License,
489
- in one of these ways:
490
-
491
- a) Convey the object code in, or embodied in, a physical product
492
- (including a physical distribution medium), accompanied by the
493
- Corresponding Source fixed on a durable physical medium
494
- customarily used for software interchange.
495
-
496
- b) Convey the object code in, or embodied in, a physical product
497
- (including a physical distribution medium), accompanied by a
498
- written offer, valid for at least three years and valid for as
499
- long as you offer spare parts or customer support for that product
500
- model, to give anyone who possesses the object code either (1) a
501
- copy of the Corresponding Source for all the software in the
502
- product that is covered by this License, on a durable physical
503
- medium customarily used for software interchange, for a price no
504
- more than your reasonable cost of physically performing this
505
- conveying of source, or (2) access to copy the
506
- Corresponding Source from a network server at no charge.
507
-
508
- c) Convey individual copies of the object code with a copy of the
509
- written offer to provide the Corresponding Source. This
510
- alternative is allowed only occasionally and noncommercially, and
511
- only if you received the object code with such an offer, in accord
512
- with subsection 6b.
513
-
514
- d) Convey the object code by offering access from a designated
515
- place (gratis or for a charge), and offer equivalent access to the
516
- Corresponding Source in the same way through the same place at no
517
- further charge. You need not require recipients to copy the
518
- Corresponding Source along with the object code. If the place to
519
- copy the object code is a network server, the Corresponding Source
520
- may be on a different server (operated by you or a third party)
521
- that supports equivalent copying facilities, provided you maintain
522
- clear directions next to the object code saying where to find the
523
- Corresponding Source. Regardless of what server hosts the
524
- Corresponding Source, you remain obligated to ensure that it is
525
- available for as long as needed to satisfy these requirements.
526
-
527
- e) Convey the object code using peer-to-peer transmission, provided
528
- you inform other peers where the object code and Corresponding
529
- Source of the work are being offered to the general public at no
530
- charge under subsection 6d.
531
-
532
- A separable portion of the object code, whose source code is excluded
533
- from the Corresponding Source as a System Library, need not be
534
- included in conveying the object code work.
535
-
536
- A "User Product" is either (1) a "consumer product", which means any
537
- tangible personal property which is normally used for personal, family,
538
- or household purposes, or (2) anything designed or sold for incorporation
539
- into a dwelling. In determining whether a product is a consumer product,
540
- doubtful cases shall be resolved in favor of coverage. For a particular
541
- product received by a particular user, "normally used" refers to a
542
- typical or common use of that class of product, regardless of the status
543
- of the particular user or of the way in which the particular user
544
- actually uses, or expects or is expected to use, the product. A product
545
- is a consumer product regardless of whether the product has substantial
546
- commercial, industrial or non-consumer uses, unless such uses represent
547
- the only significant mode of use of the product.
548
-
549
- "Installation Information" for a User Product means any methods,
550
- procedures, authorization keys, or other information required to install
551
- and execute modified versions of a covered work in that User Product from
552
- a modified version of its Corresponding Source. The information must
553
- suffice to ensure that the continued functioning of the modified object
554
- code is in no case prevented or interfered with solely because
555
- modification has been made.
556
-
557
- If you convey an object code work under this section in, or with, or
558
- specifically for use in, a User Product, and the conveying occurs as
559
- part of a transaction in which the right of possession and use of the
560
- User Product is transferred to the recipient in perpetuity or for a
561
- fixed term (regardless of how the transaction is characterized), the
562
- Corresponding Source conveyed under this section must be accompanied
563
- by the Installation Information. But this requirement does not apply
564
- if neither you nor any third party retains the ability to install
565
- modified object code on the User Product (for example, the work has
566
- been installed in ROM).
567
-
568
- The requirement to provide Installation Information does not include a
569
- requirement to continue to provide support service, warranty, or updates
570
- for a work that has been modified or installed by the recipient, or for
571
- the User Product in which it has been modified or installed. Access to a
572
- network may be denied when the modification itself materially and
573
- adversely affects the operation of the network or violates the rules and
574
- protocols for communication across the network.
575
-
576
- Corresponding Source conveyed, and Installation Information provided,
577
- in accord with this section must be in a format that is publicly
578
- documented (and with an implementation available to the public in
579
- source code form), and must require no special password or key for
580
- unpacking, reading or copying.
581
-
582
- 7. Additional Terms.
583
-
584
- "Additional permissions" are terms that supplement the terms of this
585
- License by making exceptions from one or more of its conditions.
586
- Additional permissions that are applicable to the entire Program shall
587
- be treated as though they were included in this License, to the extent
588
- that they are valid under applicable law. If additional permissions
589
- apply only to part of the Program, that part may be used separately
590
- under those permissions, but the entire Program remains governed by
591
- this License without regard to the additional permissions.
592
-
593
- When you convey a copy of a covered work, you may at your option
594
- remove any additional permissions from that copy, or from any part of
595
- it. (Additional permissions may be written to require their own
596
- removal in certain cases when you modify the work.) You may place
597
- additional permissions on material, added by you to a covered work,
598
- for which you have or can give appropriate copyright permission.
599
-
600
- Notwithstanding any other provision of this License, for material you
601
- add to a covered work, you may (if authorized by the copyright holders of
602
- that material) supplement the terms of this License with terms:
603
-
604
- a) Disclaiming warranty or limiting liability differently from the
605
- terms of sections 15 and 16 of this License; or
606
-
607
- b) Requiring preservation of specified reasonable legal notices or
608
- author attributions in that material or in the Appropriate Legal
609
- Notices displayed by works containing it; or
610
-
611
- c) Prohibiting misrepresentation of the origin of that material, or
612
- requiring that modified versions of such material be marked in
613
- reasonable ways as different from the original version; or
614
-
615
- d) Limiting the use for publicity purposes of names of licensors or
616
- authors of the material; or
617
-
618
- e) Declining to grant rights under trademark law for use of some
619
- trade names, trademarks, or service marks; or
620
-
621
- f) Requiring indemnification of licensors and authors of that
622
- material by anyone who conveys the material (or modified versions of
623
- it) with contractual assumptions of liability to the recipient, for
624
- any liability that these contractual assumptions directly impose on
625
- those licensors and authors.
626
-
627
- All other non-permissive additional terms are considered "further
628
- restrictions" within the meaning of section 10. If the Program as you
629
- received it, or any part of it, contains a notice stating that it is
630
- governed by this License along with a term that is a further
631
- restriction, you may remove that term. If a license document contains
632
- a further restriction but permits relicensing or conveying under this
633
- License, you may add to a covered work material governed by the terms
634
- of that license document, provided that the further restriction does
635
- not survive such relicensing or conveying.
636
-
637
- If you add terms to a covered work in accord with this section, you
638
- must place, in the relevant source files, a statement of the
639
- additional terms that apply to those files, or a notice indicating
640
- where to find the applicable terms.
641
-
642
- Additional terms, permissive or non-permissive, may be stated in the
643
- form of a separately written license, or stated as exceptions;
644
- the above requirements apply either way.
645
-
646
- 8. Termination.
647
-
648
- You may not propagate or modify a covered work except as expressly
649
- provided under this License. Any attempt otherwise to propagate or
650
- modify it is void, and will automatically terminate your rights under
651
- this License (including any patent licenses granted under the third
652
- paragraph of section 11).
653
-
654
- However, if you cease all violation of this License, then your
655
- license from a particular copyright holder is reinstated (a)
656
- provisionally, unless and until the copyright holder explicitly and
657
- finally terminates your license, and (b) permanently, if the copyright
658
- holder fails to notify you of the violation by some reasonable means
659
- prior to 60 days after the cessation.
660
-
661
- Moreover, your license from a particular copyright holder is
662
- reinstated permanently if the copyright holder notifies you of the
663
- violation by some reasonable means, this is the first time you have
664
- received notice of violation of this License (for any work) from that
665
- copyright holder, and you cure the violation prior to 30 days after
666
- your receipt of the notice.
667
-
668
- Termination of your rights under this section does not terminate the
669
- licenses of parties who have received copies or rights from you under
670
- this License. If your rights have been terminated and not permanently
671
- reinstated, you do not qualify to receive new licenses for the same
672
- material under section 10.
673
-
674
- 9. Acceptance Not Required for Having Copies.
675
-
676
- You are not required to accept this License in order to receive or
677
- run a copy of the Program. Ancillary propagation of a covered work
678
- occurring solely as a consequence of using peer-to-peer transmission
679
- to receive a copy likewise does not require acceptance. However,
680
- nothing other than this License grants you permission to propagate or
681
- modify any covered work. These actions infringe copyright if you do
682
- not accept this License. Therefore, by modifying or propagating a
683
- covered work, you indicate your acceptance of this License to do so.
684
-
685
- 10. Automatic Licensing of Downstream Recipients.
686
-
687
- Each time you convey a covered work, the recipient automatically
688
- receives a license from the original licensors, to run, modify and
689
- propagate that work, subject to this License. You are not responsible
690
- for enforcing compliance by third parties with this License.
691
-
692
- An "entity transaction" is a transaction transferring control of an
693
- organization, or substantially all assets of one, or subdividing an
694
- organization, or merging organizations. If propagation of a covered
695
- work results from an entity transaction, each party to that
696
- transaction who receives a copy of the work also receives whatever
697
- licenses to the work the party's predecessor in interest had or could
698
- give under the previous paragraph, plus a right to possession of the
699
- Corresponding Source of the work from the predecessor in interest, if
700
- the predecessor has it or can get it with reasonable efforts.
701
-
702
- You may not impose any further restrictions on the exercise of the
703
- rights granted or affirmed under this License. For example, you may
704
- not impose a license fee, royalty, or other charge for exercise of
705
- rights granted under this License, and you may not initiate litigation
706
- (including a cross-claim or counterclaim in a lawsuit) alleging that
707
- any patent claim is infringed by making, using, selling, offering for
708
- sale, or importing the Program or any portion of it.
709
-
710
- 11. Patents.
711
-
712
- A "contributor" is a copyright holder who authorizes use under this
713
- License of the Program or a work on which the Program is based. The
714
- work thus licensed is called the contributor's "contributor version".
715
-
716
- A contributor's "essential patent claims" are all patent claims
717
- owned or controlled by the contributor, whether already acquired or
718
- hereafter acquired, that would be infringed by some manner, permitted
719
- by this License, of making, using, or selling its contributor version,
720
- but do not include claims that would be infringed only as a
721
- consequence of further modification of the contributor version. For
722
- purposes of this definition, "control" includes the right to grant
723
- patent sublicenses in a manner consistent with the requirements of
724
- this License.
725
-
726
- Each contributor grants you a non-exclusive, worldwide, royalty-free
727
- patent license under the contributor's essential patent claims, to
728
- make, use, sell, offer for sale, import and otherwise run, modify and
729
- propagate the contents of its contributor version.
730
-
731
- In the following three paragraphs, a "patent license" is any express
732
- agreement or commitment, however denominated, not to enforce a patent
733
- (such as an express permission to practice a patent or covenant not to
734
- sue for patent infringement). To "grant" such a patent license to a
735
- party means to make such an agreement or commitment not to enforce a
736
- patent against the party.
737
-
738
- If you convey a covered work, knowingly relying on a patent license,
739
- and the Corresponding Source of the work is not available for anyone
740
- to copy, free of charge and under the terms of this License, through a
741
- publicly available network server or other readily accessible means,
742
- then you must either (1) cause the Corresponding Source to be so
743
- available, or (2) arrange to deprive yourself of the benefit of the
744
- patent license for this particular work, or (3) arrange, in a manner
745
- consistent with the requirements of this License, to extend the patent
746
- license to downstream recipients. "Knowingly relying" means you have
747
- actual knowledge that, but for the patent license, your conveying the
748
- covered work in a country, or your recipient's use of the covered work
749
- in a country, would infringe one or more identifiable patents in that
750
- country that you have reason to believe are valid.
751
-
752
- If, pursuant to or in connection with a single transaction or
753
- arrangement, you convey, or propagate by procuring conveyance of, a
754
- covered work, and grant a patent license to some of the parties
755
- receiving the covered work authorizing them to use, propagate, modify
756
- or convey a specific copy of the covered work, then the patent license
757
- you grant is automatically extended to all recipients of the covered
758
- work and works based on it.
759
-
760
- A patent license is "discriminatory" if it does not include within
761
- the scope of its coverage, prohibits the exercise of, or is
762
- conditioned on the non-exercise of one or more of the rights that are
763
- specifically granted under this License. You may not convey a covered
764
- work if you are a party to an arrangement with a third party that is
765
- in the business of distributing software, under which you make payment
766
- to the third party based on the extent of your activity of conveying
767
- the work, and under which the third party grants, to any of the
768
- parties who would receive the covered work from you, a discriminatory
769
- patent license (a) in connection with copies of the covered work
770
- conveyed by you (or copies made from those copies), or (b) primarily
771
- for and in connection with specific products or compilations that
772
- contain the covered work, unless you entered into that arrangement,
773
- or that patent license was granted, prior to 28 March 2007.
774
-
775
- Nothing in this License shall be construed as excluding or limiting
776
- any implied license or other defenses to infringement that may
777
- otherwise be available to you under applicable patent law.
778
-
779
- 12. No Surrender of Others' Freedom.
780
-
781
- If conditions are imposed on you (whether by court order, agreement or
782
- otherwise) that contradict the conditions of this License, they do not
783
- excuse you from the conditions of this License. If you cannot convey a
784
- covered work so as to satisfy simultaneously your obligations under this
785
- License and any other pertinent obligations, then as a consequence you may
786
- not convey it at all. For example, if you agree to terms that obligate you
787
- to collect a royalty for further conveying from those to whom you convey
788
- the Program, the only way you could satisfy both those terms and this
789
- License would be to refrain entirely from conveying the Program.
790
-
791
- 13. Use with the GNU Affero General Public License.
792
-
793
- Notwithstanding any other provision of this License, you have
794
- permission to link or combine any covered work with a work licensed
795
- under version 3 of the GNU Affero General Public License into a single
796
- combined work, and to convey the resulting work. The terms of this
797
- License will continue to apply to the part which is the covered work,
798
- but the special requirements of the GNU Affero General Public License,
799
- section 13, concerning interaction through a network will apply to the
800
- combination as such.
801
-
802
- 14. Revised Versions of this License.
803
-
804
- The Free Software Foundation may publish revised and/or new versions of
805
- the GNU General Public License from time to time. Such new versions will
806
- be similar in spirit to the present version, but may differ in detail to
807
- address new problems or concerns.
808
-
809
- Each version is given a distinguishing version number. If the
810
- Program specifies that a certain numbered version of the GNU General
811
- Public License "or any later version" applies to it, you have the
812
- option of following the terms and conditions either of that numbered
813
- version or of any later version published by the Free Software
814
- Foundation. If the Program does not specify a version number of the
815
- GNU General Public License, you may choose any version ever published
816
- by the Free Software Foundation.
817
-
818
- If the Program specifies that a proxy can decide which future
819
- versions of the GNU General Public License can be used, that proxy's
820
- public statement of acceptance of a version permanently authorizes you
821
- to choose that version for the Program.
822
-
823
- Later license versions may give you additional or different
824
- permissions. However, no additional obligations are imposed on any
825
- author or copyright holder as a result of your choosing to follow a
826
- later version.
827
-
828
- 15. Disclaimer of Warranty.
829
-
830
- THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
831
- APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
832
- HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
833
- OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
834
- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
835
- PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
836
- IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
837
- ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
838
-
839
- 16. Limitation of Liability.
840
-
841
- IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
842
- WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
843
- THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
844
- GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
845
- USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
846
- DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
847
- PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
848
- EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
849
- SUCH DAMAGES.
850
-
851
- 17. Interpretation of Sections 15 and 16.
852
-
853
- If the disclaimer of warranty and limitation of liability provided
854
- above cannot be given local legal effect according to their terms,
855
- reviewing courts shall apply local law that most closely approximates
856
- an absolute waiver of all civil liability in connection with the
857
- Program, unless a warranty or assumption of liability accompanies a
858
- copy of the Program in return for a fee.
859
-
860
- END OF TERMS AND CONDITIONS
861
-
862
- How to Apply These Terms to Your New Programs
863
-
864
- If you develop a new program, and you want it to be of the greatest
865
- possible use to the public, the best way to achieve this is to make it
866
- free software which everyone can redistribute and change under these terms.
867
-
868
- To do so, attach the following notices to the program. It is safest
869
- to attach them to the start of each source file to most effectively
870
- state the exclusion of warranty; and each file should have at least
871
- the "copyright" line and a pointer to where the full notice is found.
872
-
873
- <one line to give the program's name and a brief idea of what it does.>
874
- Copyright (C) <year> <name of author>
875
-
876
- This program is free software: you can redistribute it and/or modify
877
- it under the terms of the GNU General Public License as published by
878
- the Free Software Foundation, either version 3 of the License, or
879
- (at your option) any later version.
880
-
881
- This program is distributed in the hope that it will be useful,
882
- but WITHOUT ANY WARRANTY; without even the implied warranty of
883
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
884
- GNU General Public License for more details.
885
-
886
- You should have received a copy of the GNU General Public License
887
- along with this program. If not, see <https://www.gnu.org/licenses/>.
888
-
889
- Also add information on how to contact you by electronic and paper mail.
890
-
891
- If the program does terminal interaction, make it output a short
892
- notice like this when it starts in an interactive mode:
893
-
894
- <program> Copyright (C) <year> <name of author>
895
- This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
896
- This is free software, and you are welcome to redistribute it
897
- under certain conditions; type `show c' for details.
898
-
899
- The hypothetical commands `show w' and `show c' should show the appropriate
900
- parts of the General Public License. Of course, your program's commands
901
- might be different; for a GUI interface, you would use an "about box".
902
-
903
- You should also get your employer (if you work as a programmer) or school,
904
- if any, to sign a "copyright disclaimer" for the program, if necessary.
905
- For more information on this, and how to apply and follow the GNU GPL, see
906
- <https://www.gnu.org/licenses/>.
907
-
908
- The GNU General Public License does not permit incorporating your program
909
- into proprietary programs. If your program is a subroutine library, you
910
- may consider it more useful to permit linking proprietary applications with
911
- the library. If this is what you want to do, use the GNU Lesser General
912
- Public License instead of this License. But first, please read
913
- <https://www.gnu.org/licenses/why-not-lgpl.html>.
914
-
915
- Name: libquadmath
916
- Files: numpy.libs/libquadmath*.so
917
- Description: dynamically linked to files compiled with gcc
918
- Availability: https://gcc.gnu.org/git/?p=gcc.git;a=tree;f=libquadmath
919
- License: LGPL-2.1-or-later
920
-
921
- GCC Quad-Precision Math Library
922
- Copyright (C) 2010-2019 Free Software Foundation, Inc.
923
- Written by Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
924
-
925
- This file is part of the libquadmath library.
926
- Libquadmath is free software; you can redistribute it and/or
927
- modify it under the terms of the GNU Library General Public
928
- License as published by the Free Software Foundation; either
929
- version 2.1 of the License, or (at your option) any later version.
930
-
931
- Libquadmath is distributed in the hope that it will be useful,
932
- but WITHOUT ANY WARRANTY; without even the implied warranty of
933
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
934
- Lesser General Public License for more details.
935
- https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.11/site-packages/numpy-2.4.6.dist-info/licenses/numpy/_core/include/numpy/libdivide/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- zlib License
2
- ------------
3
-
4
- Copyright (C) 2010 - 2019 ridiculous_fish, <libdivide@ridiculousfish.com>
5
- Copyright (C) 2016 - 2019 Kim Walisch, <kim.walisch@gmail.com>
6
-
7
- This software is provided 'as-is', without any express or implied
8
- warranty. In no event will the authors be held liable for any damages
9
- arising from the use of this software.
10
-
11
- Permission is granted to anyone to use this software for any purpose,
12
- including commercial applications, and to alter it and redistribute it
13
- freely, subject to the following restrictions:
14
-
15
- 1. The origin of this software must not be misrepresented; you must not
16
- claim that you wrote the original software. If you use this software
17
- in a product, an acknowledgment in the product documentation would be
18
- appreciated but is not required.
19
- 2. Altered source versions must be plainly marked as such, and must not be
20
- misrepresented as being the original software.
21
- 3. This notice may not be removed or altered from any source distribution.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.11/site-packages/numpy-2.4.6.dist-info/licenses/numpy/_core/src/common/pythoncapi-compat/COPYING DELETED
@@ -1,14 +0,0 @@
1
- BSD Zero Clause License
2
-
3
- Copyright Contributors to the pythoncapi_compat project.
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted.
7
-
8
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
- PERFORMANCE OF THIS SOFTWARE.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.11/site-packages/numpy-2.4.6.dist-info/licenses/numpy/_core/src/highway/LICENSE DELETED
@@ -1,371 +0,0 @@
1
- This project is primarily dual-licensed under your choice of either the Apache
2
- License 2.0 or the BSD 3-Clause License.
3
-
4
- The following files are licensed under different terms:
5
- * hwy/contrib/random/random-inl.h: CC0 1.0 Universal
6
-
7
- The full texts of all applicable licenses are included below, separated by
8
- '---'.
9
-
10
- --------------------------------------------------------------------------------
11
- Apache License 2.0
12
- --------------------------------------------------------------------------------
13
-
14
- Apache License
15
- Version 2.0, January 2004
16
- http://www.apache.org/licenses/
17
-
18
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
19
-
20
- 1. Definitions.
21
-
22
- "License" shall mean the terms and conditions for use, reproduction,
23
- and distribution as defined by Sections 1 through 9 of this document.
24
-
25
- "Licensor" shall mean the copyright owner or entity authorized by
26
- the copyright owner that is granting the License.
27
-
28
- "Legal Entity" shall mean the union of the acting entity and all
29
- other entities that control, are controlled by, or are under common
30
- control with that entity. For the purposes of this definition,
31
- "control" means (i) the power, direct or indirect, to cause the
32
- direction or management of such entity, whether by contract or
33
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
34
- outstanding shares, or (iii) beneficial ownership of such entity.
35
-
36
- "You" (or "Your") shall mean an individual or Legal Entity
37
- exercising permissions granted by this License.
38
-
39
- "Source" form shall mean the preferred form for making modifications,
40
- including but not limited to software source code, documentation
41
- source, and configuration files.
42
-
43
- "Object" form shall mean any form resulting from mechanical
44
- transformation or translation of a Source form, including but
45
- not limited to compiled object code, generated documentation,
46
- and conversions to other media types.
47
-
48
- "Work" shall mean the work of authorship, whether in Source or
49
- Object form, made available under the License, as indicated by a
50
- copyright notice that is included in or attached to the work
51
- (an example is provided in the Appendix below).
52
-
53
- "Derivative Works" shall mean any work, whether in Source or Object
54
- form, that is based on (or derived from) the Work and for which the
55
- editorial revisions, annotations, elaborations, or other modifications
56
- represent, as a whole, an original work of authorship. For the purposes
57
- of this License, Derivative Works shall not include works that remain
58
- separable from, or merely link (or bind by name) to the interfaces of,
59
- the Work and Derivative Works thereof.
60
-
61
- "Contribution" shall mean any work of authorship, including
62
- the original version of the Work and any modifications or additions
63
- to that Work or Derivative Works thereof, that is intentionally
64
- submitted to Licensor for inclusion in the Work by the copyright owner
65
- or by an individual or Legal Entity authorized to submit on behalf of
66
- the copyright owner. For the purposes of this definition, "submitted"
67
- means any form of electronic, verbal, or written communication sent
68
- to the Licensor or its representatives, including but not limited to
69
- communication on electronic mailing lists, source code control systems,
70
- and issue tracking systems that are managed by, or on behalf of, the
71
- Licensor for the purpose of discussing and improving the Work, but
72
- excluding communication that is conspicuously marked or otherwise
73
- designated in writing by the copyright owner as "Not a Contribution."
74
-
75
- "Contributor" shall mean Licensor and any individual or Legal Entity
76
- on behalf of whom a Contribution has been received by Licensor and
77
- subsequently incorporated within the Work.
78
-
79
- 2. Grant of Copyright License. Subject to the terms and conditions of
80
- this License, each Contributor hereby grants to You a perpetual,
81
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
82
- copyright license to reproduce, prepare Derivative Works of,
83
- publicly display, publicly perform, sublicense, and distribute the
84
- Work and such Derivative Works in Source or Object form.
85
-
86
- 3. Grant of Patent License. Subject to the terms and conditions of
87
- this License, each Contributor hereby grants to You a perpetual,
88
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
89
- (except as stated in this section) patent license to make, have made,
90
- use, offer to sell, sell, import, and otherwise transfer the Work,
91
- where such license applies only to those patent claims licensable
92
- by such Contributor that are necessarily infringed by their
93
- Contribution(s) alone or by combination of their Contribution(s)
94
- with the Work to which such Contribution(s) was submitted. If You
95
- institute patent litigation against any entity (including a
96
- cross-claim or counterclaim in a lawsuit) alleging that the Work
97
- or a Contribution incorporated within the Work constitutes direct
98
- or contributory patent infringement, then any patent licenses
99
- granted to You under this License for that Work shall terminate
100
- as of the date such litigation is filed.
101
-
102
- 4. Redistribution. You may reproduce and distribute copies of the
103
- Work or Derivative Works thereof in any medium, with or without
104
- modifications, and in Source or Object form, provided that You
105
- meet the following conditions:
106
-
107
- (a) You must give any other recipients of the Work or
108
- Derivative Works a copy of this License; and
109
-
110
- (b) You must cause any modified files to carry prominent notices
111
- stating that You changed the files; and
112
-
113
- (c) You must retain, in the Source form of any Derivative Works
114
- that You distribute, all copyright, patent, trademark, and
115
- attribution notices from the Source form of the Work,
116
- excluding those notices that do not pertain to any part of
117
- the Derivative Works; and
118
-
119
- (d) If the Work includes a "NOTICE" text file as part of its
120
- distribution, then any Derivative Works that You distribute must
121
- include a readable copy of the attribution notices contained
122
- within such NOTICE file, excluding those notices that do not
123
- pertain to any part of the Derivative Works, in at least one
124
- of the following places: within a NOTICE text file distributed
125
- as part of the Derivative Works; within the Source form or
126
- documentation, if provided along with the Derivative Works; or,
127
- within a display generated by the Derivative Works, if and
128
- wherever such third-party notices normally appear. The contents
129
- of the NOTICE file are for informational purposes only and
130
- do not modify the License. You may add Your own attribution
131
- notices within Derivative Works that You distribute, alongside
132
- or as an addendum to the NOTICE text from the Work, provided
133
- that such additional attribution notices cannot be construed
134
- as modifying the License.
135
-
136
- You may add Your own copyright statement to Your modifications and
137
- may provide additional or different license terms and conditions
138
- for use, reproduction, or distribution of Your modifications, or
139
- for any such Derivative Works as a whole, provided Your use,
140
- reproduction, and distribution of the Work otherwise complies with
141
- the conditions stated in this License.
142
-
143
- 5. Submission of Contributions. Unless You explicitly state otherwise,
144
- any Contribution intentionally submitted for inclusion in the Work
145
- by You to the Licensor shall be under the terms and conditions of
146
- this License, without any additional terms or conditions.
147
- Notwithstanding the above, nothing herein shall supersede or modify
148
- the terms of any separate license agreement you may have executed
149
- with Licensor regarding such Contributions.
150
-
151
- 6. Trademarks. This License does not grant permission to use the trade
152
- names, trademarks, service marks, or product names of the Licensor,
153
- except as required for reasonable and customary use in describing the
154
- origin of the Work and reproducing the content of the NOTICE file.
155
-
156
- 7. Disclaimer of Warranty. Unless required by applicable law or
157
- agreed to in writing, Licensor provides the Work (and each
158
- Contributor provides its Contributions) on an "AS IS" BASIS,
159
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
160
- implied, including, without limitation, any warranties or conditions
161
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
162
- PARTICULAR PURPOSE. You are solely responsible for determining the
163
- appropriateness of using or redistributing the Work and assume any
164
- risks associated with Your exercise of permissions under this License.
165
-
166
- 8. Limitation of Liability. In no event and under no legal theory,
167
- whether in tort (including negligence), contract, or otherwise,
168
- unless required by applicable law (such as deliberate and grossly
169
- negligent acts) or agreed to in writing, shall any Contributor be
170
- liable to You for damages, including any direct, indirect, special,
171
- incidental, or consequential damages of any character arising as a
172
- result of this License or out of the use or inability to use the
173
- Work (including but not limited to damages for loss of goodwill,
174
- work stoppage, computer failure or malfunction, or any and all
175
- other commercial damages or losses), even if such Contributor
176
- has been advised of the possibility of such damages.
177
-
178
- 9. Accepting Warranty or Additional Liability. While redistributing
179
- the Work or Derivative Works thereof, You may choose to offer,
180
- and charge a fee for, acceptance of support, warranty, indemnity,
181
- or other liability obligations and/or rights consistent with this
182
- License. However, in accepting such obligations, You may act only
183
- on Your own behalf and on Your sole responsibility, not on behalf
184
- of any other Contributor, and only if You agree to indemnify,
185
- defend, and hold each Contributor harmless for any liability
186
- incurred by, or claims asserted against, such Contributor by reason
187
- of your accepting any such warranty or additional liability.
188
-
189
- END OF TERMS AND CONDITIONS
190
-
191
- APPENDIX: How to apply the Apache License to your work.
192
-
193
- To apply the Apache License to your work, attach the following
194
- boilerplate notice, with the fields enclosed by brackets "[]"
195
- replaced with your own identifying information. (Don't include
196
- the brackets!) The text should be enclosed in the appropriate
197
- comment syntax for the file format. We also recommend that a
198
- file or class name and description of purpose be included on the
199
- same "printed page" as the copyright notice for easier
200
- identification within third-party archives.
201
-
202
- Copyright [yyyy] [name of copyright owner]
203
-
204
- Licensed under the Apache License, Version 2.0 (the "License");
205
- you may not use this file except in compliance with the License.
206
- You may obtain a copy of the License at
207
-
208
- http://www.apache.org/licenses/LICENSE-2.0
209
-
210
- Unless required by applicable law or agreed to in writing, software
211
- distributed under the License is distributed on an "AS IS" BASIS,
212
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
213
- See the License for the specific language governing permissions and
214
- limitations under the License.
215
-
216
- --------------------------------------------------------------------------------
217
- BSD 3-Clause License
218
- --------------------------------------------------------------------------------
219
-
220
- Copyright (c) The Highway Project Authors. All rights reserved.
221
-
222
- Redistribution and use in source and binary forms, with or without modification,
223
- are permitted provided that the following conditions are met:
224
-
225
- 1. Redistributions of source code must retain the above copyright notice, this
226
- list of conditions and the following disclaimer.
227
-
228
- 2. Redistributions in binary form must reproduce the above copyright notice,
229
- this list of conditions and the following disclaimer in the documentation
230
- and/or other materials provided with the distribution.
231
-
232
- 3. Neither the name of the copyright holder nor the names of its
233
- contributors may be used to endorse or promote products derived from
234
- this software without specific prior written permission.
235
-
236
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
237
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
238
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
239
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
240
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
241
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
242
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
243
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
244
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
245
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
246
-
247
- --------------------------------------------------------------------------------
248
- CC0 1.0 Universal
249
- --------------------------------------------------------------------------------
250
-
251
- Creative Commons Legal Code
252
-
253
- CC0 1.0 Universal
254
-
255
- CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
256
- LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
257
- ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
258
- INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
259
- REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
260
- PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
261
- THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
262
- HEREUNDER.
263
-
264
- Statement of Purpose
265
-
266
- The laws of most jurisdictions throughout the world automatically confer
267
- exclusive Copyright and Related Rights (defined below) upon the creator
268
- and subsequent owner(s) (each and all, an "owner") of an original work of
269
- authorship and/or a database (each, a "Work").
270
-
271
- Certain owners wish to permanently relinquish those rights to a Work for
272
- the purpose of contributing to a commons of creative, cultural and
273
- scientific works ("Commons") that the public can reliably and without fear
274
- of later claims of infringement build upon, modify, incorporate in other
275
- works, reuse and redistribute as freely as possible in any form whatsoever
276
- and for any purposes, including without limitation commercial purposes.
277
- These owners may contribute to the Commons to promote the ideal of a free
278
- culture and the further production of creative, cultural and scientific
279
- works, or to gain reputation or greater distribution for their Work in
280
- part through the use and efforts of others.
281
-
282
- For these and/or other purposes and motivations, and without any
283
- expectation of additional consideration or compensation, the person
284
- associating CC0 with a Work (the "Affirmer"), to the extent that he or she
285
- is an owner of Copyright and Related Rights in the Work, voluntarily
286
- elects to apply CC0 to the Work and publicly distribute the Work under its
287
- terms, with knowledge of his or her Copyright and Related Rights in the
288
- Work and the meaning and intended legal effect of CC0 on those rights.
289
-
290
- 1. Copyright and Related Rights. A Work made available under CC0 may be
291
- protected by copyright and related or neighboring rights ("Copyright and
292
- Related Rights"). Copyright and Related Rights include, but are not
293
- limited to, the following:
294
-
295
- i. the right to reproduce, adapt, distribute, perform, display,
296
- communicate, and translate a Work;
297
- ii. moral rights retained by the original author(s) and/or performer(s);
298
- iii. publicity and privacy rights pertaining to a person's image or
299
- likeness depicted in a Work;
300
- iv. rights protecting against unfair competition in regards to a Work,
301
- subject to the limitations in paragraph 4(a), below;
302
- v. rights protecting the extraction, dissemination, use and reuse of data
303
- in a Work;
304
- vi. database rights (such as those arising under Directive 96/9/EC of the
305
- European Parliament and of the Council of 11 March 1996 on the legal
306
- protection of databases, and under any national implementation
307
- thereof, including any amended or successor version of such
308
- directive); and
309
- vii. other similar, equivalent or corresponding rights throughout the
310
- world based on applicable law or treaty, and any national
311
- implementations thereof.
312
-
313
- 2. Waiver. To the greatest extent permitted by, but not in contravention
314
- of, applicable law, Affirmer hereby overtly, fully, permanently,
315
- irrevocably and unconditionally waives, abandons, and surrenders all of
316
- Affirmer's Copyright and Related Rights and associated claims and causes
317
- of action, whether now known or unknown (including existing as well as
318
- future claims and causes of action), in the Work (i) in all territories
319
- worldwide, (ii) for the maximum duration provided by applicable law or
320
- treaty (including future time extensions), (iii) in any current or future
321
- medium and for any number of copies, and (iv) for any purpose whatsoever,
322
- including without limitation commercial, advertising or promotional
323
- purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
324
- member of the public at large and to the detriment of Affirmer's heirs and
325
- successors, fully intending that such Waiver shall not be subject to
326
- revocation, rescission, cancellation, termination, or any other legal or
327
- equitable action to disrupt the quiet enjoyment of the Work by the public
328
- as contemplated by Affirmer's express Statement of Purpose.
329
-
330
- 3. Public License Fallback. Should any part of the Waiver for any reason
331
- be judged legally invalid or ineffective under applicable law, then the
332
- Waiver shall be preserved to the maximum extent permitted taking into
333
- account Affirmer's express Statement of Purpose. In addition, to the
334
- extent the Waiver is so judged Affirmer hereby grants to each affected
335
- person a royalty-free, non transferable, non sublicensable, non exclusive,
336
- irrevocable and unconditional license to exercise Affirmer's Copyright and
337
- Related Rights in the Work (i) in all territories worldwide, (ii) for the
338
- maximum duration provided by applicable law or treaty (including future
339
- time extensions), (iii) in any current or future medium and for any number
340
- of copies, and (iv) for any purpose whatsoever, including without
341
- limitation commercial, advertising or promotional purposes (the
342
- "License"). The License shall be deemed effective as of the date CC0 was
343
- applied by Affirmer to the Work. Should any part of the License for any
344
- reason be judged legally invalid or ineffective under applicable law, such
345
- partial invalidity or ineffectiveness shall not invalidate the remainder
346
- of the License, and in such case Affirmer hereby affirms that he or she
347
- will not (i) exercise any of his or her remaining Copyright and Related
348
- Rights in the Work or (ii) assert any associated claims and causes of
349
- action with respect to the Work, in either case contrary to Affirmer's
350
- express Statement of Purpose.
351
-
352
- 4. Limitations and Disclaimers.
353
-
354
- a. No trademark or patent rights held by Affirmer are waived, abandoned,
355
- surrendered, licensed or otherwise affected by this document.
356
- b. Affirmer offers the Work as-is and makes no representations or
357
- warranties of any kind concerning the Work, express, implied,
358
- statutory or otherwise, including without limitation warranties of
359
- title, merchantability, fitness for a particular purpose, non
360
- infringement, or the absence of latent or other defects, accuracy, or
361
- the present or absence of errors, whether or not discoverable, all to
362
- the greatest extent permissible under applicable law.
363
- c. Affirmer disclaims responsibility for clearing rights of other persons
364
- that may apply to the Work or any use thereof, including without
365
- limitation any person's Copyright and Related Rights in the Work.
366
- Further, Affirmer disclaims responsibility for obtaining any necessary
367
- consents, permissions or other rights required for any use of the
368
- Work.
369
- d. Affirmer understands and acknowledges that Creative Commons is not a
370
- party to this document and has no duty or obligation with respect to
371
- this CC0 or use of the Work.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.11/site-packages/numpy-2.4.6.dist-info/licenses/numpy/_core/src/multiarray/dragon4_LICENSE.txt DELETED
@@ -1,27 +0,0 @@
1
- Copyright (c) 2014 Ryan Juckett
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy
4
- of this software and associated documentation files (the "Software"), to
5
- deal in the Software without restriction, including without limitation the
6
- rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7
- sell copies of the Software, and to permit persons to whom the Software is
8
- furnished to do so, subject to the following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in
11
- all copies or substantial portions of the Software.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19
- IN THE SOFTWARE.
20
-
21
- dragon4.c|h h contains a modified version of Ryan Juckett's Dragon4
22
- implementation, obtained from https://www.ryanjuckett.com,
23
- which has been ported from C++ to C and which has
24
- modifications specific to printing floats in numpy.
25
-
26
- Ryan Juckett's original code was under the Zlib license; he gave numpy
27
- permission to include it under the MIT license instead.