arkxcc commited on
Commit
056c37e
1 Parent(s): 42193e2

removing cache and env folders, adding strictTransfer again

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .env/bin/Activate.ps1 +0 -247
  2. .env/bin/activate +0 -69
  3. .env/bin/activate.csh +0 -26
  4. .env/bin/activate.fish +0 -69
  5. .env/bin/huggingface-cli +0 -8
  6. .env/bin/normalizer +0 -8
  7. .env/bin/pip +0 -8
  8. .env/bin/pip3 +0 -8
  9. .env/bin/pip3.11 +0 -8
  10. .env/bin/python +0 -1
  11. .env/bin/python3 +0 -1
  12. .env/bin/python3.11 +0 -1
  13. .env/bin/tqdm +0 -8
  14. .env/lib/python3.11/site-packages/PyYAML-6.0.1.dist-info/INSTALLER +0 -1
  15. .env/lib/python3.11/site-packages/PyYAML-6.0.1.dist-info/LICENSE +0 -20
  16. .env/lib/python3.11/site-packages/PyYAML-6.0.1.dist-info/METADATA +0 -46
  17. .env/lib/python3.11/site-packages/PyYAML-6.0.1.dist-info/RECORD +0 -43
  18. .env/lib/python3.11/site-packages/PyYAML-6.0.1.dist-info/WHEEL +0 -5
  19. .env/lib/python3.11/site-packages/PyYAML-6.0.1.dist-info/top_level.txt +0 -2
  20. .env/lib/python3.11/site-packages/__pycache__/typing_extensions.cpython-311.pyc +0 -0
  21. .env/lib/python3.11/site-packages/_distutils_hack/__init__.py +0 -227
  22. .env/lib/python3.11/site-packages/_distutils_hack/__pycache__/__init__.cpython-311.pyc +0 -0
  23. .env/lib/python3.11/site-packages/_distutils_hack/__pycache__/override.cpython-311.pyc +0 -0
  24. .env/lib/python3.11/site-packages/_distutils_hack/override.py +0 -1
  25. .env/lib/python3.11/site-packages/_yaml/__init__.py +0 -33
  26. .env/lib/python3.11/site-packages/_yaml/__pycache__/__init__.cpython-311.pyc +0 -0
  27. .env/lib/python3.11/site-packages/certifi-2023.11.17.dist-info/INSTALLER +0 -1
  28. .env/lib/python3.11/site-packages/certifi-2023.11.17.dist-info/LICENSE +0 -20
  29. .env/lib/python3.11/site-packages/certifi-2023.11.17.dist-info/METADATA +0 -66
  30. .env/lib/python3.11/site-packages/certifi-2023.11.17.dist-info/RECORD +0 -14
  31. .env/lib/python3.11/site-packages/certifi-2023.11.17.dist-info/WHEEL +0 -5
  32. .env/lib/python3.11/site-packages/certifi-2023.11.17.dist-info/top_level.txt +0 -1
  33. .env/lib/python3.11/site-packages/certifi/__init__.py +0 -4
  34. .env/lib/python3.11/site-packages/certifi/__main__.py +0 -12
  35. .env/lib/python3.11/site-packages/certifi/__pycache__/__init__.cpython-311.pyc +0 -0
  36. .env/lib/python3.11/site-packages/certifi/__pycache__/__main__.cpython-311.pyc +0 -0
  37. .env/lib/python3.11/site-packages/certifi/__pycache__/core.cpython-311.pyc +0 -0
  38. .env/lib/python3.11/site-packages/certifi/cacert.pem +0 -0
  39. .env/lib/python3.11/site-packages/certifi/core.py +0 -108
  40. .env/lib/python3.11/site-packages/certifi/py.typed +0 -0
  41. .env/lib/python3.11/site-packages/charset_normalizer-3.3.2.dist-info/INSTALLER +0 -1
  42. .env/lib/python3.11/site-packages/charset_normalizer-3.3.2.dist-info/LICENSE +0 -21
  43. .env/lib/python3.11/site-packages/charset_normalizer-3.3.2.dist-info/METADATA +0 -683
  44. .env/lib/python3.11/site-packages/charset_normalizer-3.3.2.dist-info/RECORD +0 -35
  45. .env/lib/python3.11/site-packages/charset_normalizer-3.3.2.dist-info/WHEEL +0 -5
  46. .env/lib/python3.11/site-packages/charset_normalizer-3.3.2.dist-info/entry_points.txt +0 -2
  47. .env/lib/python3.11/site-packages/charset_normalizer-3.3.2.dist-info/top_level.txt +0 -1
  48. .env/lib/python3.11/site-packages/charset_normalizer/__init__.py +0 -46
  49. .env/lib/python3.11/site-packages/charset_normalizer/__main__.py +0 -4
  50. .env/lib/python3.11/site-packages/charset_normalizer/__pycache__/__init__.cpython-311.pyc +0 -0
.env/bin/Activate.ps1 DELETED
@@ -1,247 +0,0 @@
1
- <#
2
- .Synopsis
3
- Activate a Python virtual environment for the current PowerShell session.
4
-
5
- .Description
6
- Pushes the python executable for a virtual environment to the front of the
7
- $Env:PATH environment variable and sets the prompt to signify that you are
8
- in a Python virtual environment. Makes use of the command line switches as
9
- well as the `pyvenv.cfg` file values present in the virtual environment.
10
-
11
- .Parameter VenvDir
12
- Path to the directory that contains the virtual environment to activate. The
13
- default value for this is the parent of the directory that the Activate.ps1
14
- script is located within.
15
-
16
- .Parameter Prompt
17
- The prompt prefix to display when this virtual environment is activated. By
18
- default, this prompt is the name of the virtual environment folder (VenvDir)
19
- surrounded by parentheses and followed by a single space (ie. '(.venv) ').
20
-
21
- .Example
22
- Activate.ps1
23
- Activates the Python virtual environment that contains the Activate.ps1 script.
24
-
25
- .Example
26
- Activate.ps1 -Verbose
27
- Activates the Python virtual environment that contains the Activate.ps1 script,
28
- and shows extra information about the activation as it executes.
29
-
30
- .Example
31
- Activate.ps1 -VenvDir C:\Users\MyUser\Common\.venv
32
- Activates the Python virtual environment located in the specified location.
33
-
34
- .Example
35
- Activate.ps1 -Prompt "MyPython"
36
- Activates the Python virtual environment that contains the Activate.ps1 script,
37
- and prefixes the current prompt with the specified string (surrounded in
38
- parentheses) while the virtual environment is active.
39
-
40
- .Notes
41
- On Windows, it may be required to enable this Activate.ps1 script by setting the
42
- execution policy for the user. You can do this by issuing the following PowerShell
43
- command:
44
-
45
- PS C:\> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
46
-
47
- For more information on Execution Policies:
48
- https://go.microsoft.com/fwlink/?LinkID=135170
49
-
50
- #>
51
- Param(
52
- [Parameter(Mandatory = $false)]
53
- [String]
54
- $VenvDir,
55
- [Parameter(Mandatory = $false)]
56
- [String]
57
- $Prompt
58
- )
59
-
60
- <# Function declarations --------------------------------------------------- #>
61
-
62
- <#
63
- .Synopsis
64
- Remove all shell session elements added by the Activate script, including the
65
- addition of the virtual environment's Python executable from the beginning of
66
- the PATH variable.
67
-
68
- .Parameter NonDestructive
69
- If present, do not remove this function from the global namespace for the
70
- session.
71
-
72
- #>
73
- function global:deactivate ([switch]$NonDestructive) {
74
- # Revert to original values
75
-
76
- # The prior prompt:
77
- if (Test-Path -Path Function:_OLD_VIRTUAL_PROMPT) {
78
- Copy-Item -Path Function:_OLD_VIRTUAL_PROMPT -Destination Function:prompt
79
- Remove-Item -Path Function:_OLD_VIRTUAL_PROMPT
80
- }
81
-
82
- # The prior PYTHONHOME:
83
- if (Test-Path -Path Env:_OLD_VIRTUAL_PYTHONHOME) {
84
- Copy-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME -Destination Env:PYTHONHOME
85
- Remove-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME
86
- }
87
-
88
- # The prior PATH:
89
- if (Test-Path -Path Env:_OLD_VIRTUAL_PATH) {
90
- Copy-Item -Path Env:_OLD_VIRTUAL_PATH -Destination Env:PATH
91
- Remove-Item -Path Env:_OLD_VIRTUAL_PATH
92
- }
93
-
94
- # Just remove the VIRTUAL_ENV altogether:
95
- if (Test-Path -Path Env:VIRTUAL_ENV) {
96
- Remove-Item -Path env:VIRTUAL_ENV
97
- }
98
-
99
- # Just remove VIRTUAL_ENV_PROMPT altogether.
100
- if (Test-Path -Path Env:VIRTUAL_ENV_PROMPT) {
101
- Remove-Item -Path env:VIRTUAL_ENV_PROMPT
102
- }
103
-
104
- # Just remove the _PYTHON_VENV_PROMPT_PREFIX altogether:
105
- if (Get-Variable -Name "_PYTHON_VENV_PROMPT_PREFIX" -ErrorAction SilentlyContinue) {
106
- Remove-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Scope Global -Force
107
- }
108
-
109
- # Leave deactivate function in the global namespace if requested:
110
- if (-not $NonDestructive) {
111
- Remove-Item -Path function:deactivate
112
- }
113
- }
114
-
115
- <#
116
- .Description
117
- Get-PyVenvConfig parses the values from the pyvenv.cfg file located in the
118
- given folder, and returns them in a map.
119
-
120
- For each line in the pyvenv.cfg file, if that line can be parsed into exactly
121
- two strings separated by `=` (with any amount of whitespace surrounding the =)
122
- then it is considered a `key = value` line. The left hand string is the key,
123
- the right hand is the value.
124
-
125
- If the value starts with a `'` or a `"` then the first and last character is
126
- stripped from the value before being captured.
127
-
128
- .Parameter ConfigDir
129
- Path to the directory that contains the `pyvenv.cfg` file.
130
- #>
131
- function Get-PyVenvConfig(
132
- [String]
133
- $ConfigDir
134
- ) {
135
- Write-Verbose "Given ConfigDir=$ConfigDir, obtain values in pyvenv.cfg"
136
-
137
- # Ensure the file exists, and issue a warning if it doesn't (but still allow the function to continue).
138
- $pyvenvConfigPath = Join-Path -Resolve -Path $ConfigDir -ChildPath 'pyvenv.cfg' -ErrorAction Continue
139
-
140
- # An empty map will be returned if no config file is found.
141
- $pyvenvConfig = @{ }
142
-
143
- if ($pyvenvConfigPath) {
144
-
145
- Write-Verbose "File exists, parse `key = value` lines"
146
- $pyvenvConfigContent = Get-Content -Path $pyvenvConfigPath
147
-
148
- $pyvenvConfigContent | ForEach-Object {
149
- $keyval = $PSItem -split "\s*=\s*", 2
150
- if ($keyval[0] -and $keyval[1]) {
151
- $val = $keyval[1]
152
-
153
- # Remove extraneous quotations around a string value.
154
- if ("'""".Contains($val.Substring(0, 1))) {
155
- $val = $val.Substring(1, $val.Length - 2)
156
- }
157
-
158
- $pyvenvConfig[$keyval[0]] = $val
159
- Write-Verbose "Adding Key: '$($keyval[0])'='$val'"
160
- }
161
- }
162
- }
163
- return $pyvenvConfig
164
- }
165
-
166
-
167
- <# Begin Activate script --------------------------------------------------- #>
168
-
169
- # Determine the containing directory of this script
170
- $VenvExecPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
171
- $VenvExecDir = Get-Item -Path $VenvExecPath
172
-
173
- Write-Verbose "Activation script is located in path: '$VenvExecPath'"
174
- Write-Verbose "VenvExecDir Fullname: '$($VenvExecDir.FullName)"
175
- Write-Verbose "VenvExecDir Name: '$($VenvExecDir.Name)"
176
-
177
- # Set values required in priority: CmdLine, ConfigFile, Default
178
- # First, get the location of the virtual environment, it might not be
179
- # VenvExecDir if specified on the command line.
180
- if ($VenvDir) {
181
- Write-Verbose "VenvDir given as parameter, using '$VenvDir' to determine values"
182
- }
183
- else {
184
- Write-Verbose "VenvDir not given as a parameter, using parent directory name as VenvDir."
185
- $VenvDir = $VenvExecDir.Parent.FullName.TrimEnd("\\/")
186
- Write-Verbose "VenvDir=$VenvDir"
187
- }
188
-
189
- # Next, read the `pyvenv.cfg` file to determine any required value such
190
- # as `prompt`.
191
- $pyvenvCfg = Get-PyVenvConfig -ConfigDir $VenvDir
192
-
193
- # Next, set the prompt from the command line, or the config file, or
194
- # just use the name of the virtual environment folder.
195
- if ($Prompt) {
196
- Write-Verbose "Prompt specified as argument, using '$Prompt'"
197
- }
198
- else {
199
- Write-Verbose "Prompt not specified as argument to script, checking pyvenv.cfg value"
200
- if ($pyvenvCfg -and $pyvenvCfg['prompt']) {
201
- Write-Verbose " Setting based on value in pyvenv.cfg='$($pyvenvCfg['prompt'])'"
202
- $Prompt = $pyvenvCfg['prompt'];
203
- }
204
- else {
205
- Write-Verbose " Setting prompt based on parent's directory's name. (Is the directory name passed to venv module when creating the virtual environment)"
206
- Write-Verbose " Got leaf-name of $VenvDir='$(Split-Path -Path $venvDir -Leaf)'"
207
- $Prompt = Split-Path -Path $venvDir -Leaf
208
- }
209
- }
210
-
211
- Write-Verbose "Prompt = '$Prompt'"
212
- Write-Verbose "VenvDir='$VenvDir'"
213
-
214
- # Deactivate any currently active virtual environment, but leave the
215
- # deactivate function in place.
216
- deactivate -nondestructive
217
-
218
- # Now set the environment variable VIRTUAL_ENV, used by many tools to determine
219
- # that there is an activated venv.
220
- $env:VIRTUAL_ENV = $VenvDir
221
-
222
- if (-not $Env:VIRTUAL_ENV_DISABLE_PROMPT) {
223
-
224
- Write-Verbose "Setting prompt to '$Prompt'"
225
-
226
- # Set the prompt to include the env name
227
- # Make sure _OLD_VIRTUAL_PROMPT is global
228
- function global:_OLD_VIRTUAL_PROMPT { "" }
229
- Copy-Item -Path function:prompt -Destination function:_OLD_VIRTUAL_PROMPT
230
- New-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Description "Python virtual environment prompt prefix" -Scope Global -Option ReadOnly -Visibility Public -Value $Prompt
231
-
232
- function global:prompt {
233
- Write-Host -NoNewline -ForegroundColor Green "($_PYTHON_VENV_PROMPT_PREFIX) "
234
- _OLD_VIRTUAL_PROMPT
235
- }
236
- $env:VIRTUAL_ENV_PROMPT = $Prompt
237
- }
238
-
239
- # Clear PYTHONHOME
240
- if (Test-Path -Path Env:PYTHONHOME) {
241
- Copy-Item -Path Env:PYTHONHOME -Destination Env:_OLD_VIRTUAL_PYTHONHOME
242
- Remove-Item -Path Env:PYTHONHOME
243
- }
244
-
245
- # Add the venv to the PATH
246
- Copy-Item -Path Env:PATH -Destination Env:_OLD_VIRTUAL_PATH
247
- $Env:PATH = "$VenvExecDir$([System.IO.Path]::PathSeparator)$Env:PATH"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.env/bin/activate DELETED
@@ -1,69 +0,0 @@
1
- # This file must be used with "source bin/activate" *from bash*
2
- # you cannot run it directly
3
-
4
- deactivate () {
5
- # reset old environment variables
6
- if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then
7
- PATH="${_OLD_VIRTUAL_PATH:-}"
8
- export PATH
9
- unset _OLD_VIRTUAL_PATH
10
- fi
11
- if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then
12
- PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}"
13
- export PYTHONHOME
14
- unset _OLD_VIRTUAL_PYTHONHOME
15
- fi
16
-
17
- # This should detect bash and zsh, which have a hash command that must
18
- # be called to get it to forget past commands. Without forgetting
19
- # past commands the $PATH changes we made may not be respected
20
- if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
21
- hash -r 2> /dev/null
22
- fi
23
-
24
- if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then
25
- PS1="${_OLD_VIRTUAL_PS1:-}"
26
- export PS1
27
- unset _OLD_VIRTUAL_PS1
28
- fi
29
-
30
- unset VIRTUAL_ENV
31
- unset VIRTUAL_ENV_PROMPT
32
- if [ ! "${1:-}" = "nondestructive" ] ; then
33
- # Self destruct!
34
- unset -f deactivate
35
- fi
36
- }
37
-
38
- # unset irrelevant variables
39
- deactivate nondestructive
40
-
41
- VIRTUAL_ENV="/Users/tiagocanzian/Documents/JOBS/Farm/Recolor/.env"
42
- export VIRTUAL_ENV
43
-
44
- _OLD_VIRTUAL_PATH="$PATH"
45
- PATH="$VIRTUAL_ENV/bin:$PATH"
46
- export PATH
47
-
48
- # unset PYTHONHOME if set
49
- # this will fail if PYTHONHOME is set to the empty string (which is bad anyway)
50
- # could use `if (set -u; : $PYTHONHOME) ;` in bash
51
- if [ -n "${PYTHONHOME:-}" ] ; then
52
- _OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}"
53
- unset PYTHONHOME
54
- fi
55
-
56
- if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then
57
- _OLD_VIRTUAL_PS1="${PS1:-}"
58
- PS1="(.env) ${PS1:-}"
59
- export PS1
60
- VIRTUAL_ENV_PROMPT="(.env) "
61
- export VIRTUAL_ENV_PROMPT
62
- fi
63
-
64
- # This should detect bash and zsh, which have a hash command that must
65
- # be called to get it to forget past commands. Without forgetting
66
- # past commands the $PATH changes we made may not be respected
67
- if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
68
- hash -r 2> /dev/null
69
- fi
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.env/bin/activate.csh DELETED
@@ -1,26 +0,0 @@
1
- # This file must be used with "source bin/activate.csh" *from csh*.
2
- # You cannot run it directly.
3
- # Created by Davide Di Blasi <davidedb@gmail.com>.
4
- # Ported to Python 3.3 venv by Andrew Svetlov <andrew.svetlov@gmail.com>
5
-
6
- alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; unsetenv VIRTUAL_ENV_PROMPT; test "\!:*" != "nondestructive" && unalias deactivate'
7
-
8
- # Unset irrelevant variables.
9
- deactivate nondestructive
10
-
11
- setenv VIRTUAL_ENV "/Users/tiagocanzian/Documents/JOBS/Farm/Recolor/.env"
12
-
13
- set _OLD_VIRTUAL_PATH="$PATH"
14
- setenv PATH "$VIRTUAL_ENV/bin:$PATH"
15
-
16
-
17
- set _OLD_VIRTUAL_PROMPT="$prompt"
18
-
19
- if (! "$?VIRTUAL_ENV_DISABLE_PROMPT") then
20
- set prompt = "(.env) $prompt"
21
- setenv VIRTUAL_ENV_PROMPT "(.env) "
22
- endif
23
-
24
- alias pydoc python -m pydoc
25
-
26
- rehash
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.env/bin/activate.fish DELETED
@@ -1,69 +0,0 @@
1
- # This file must be used with "source <venv>/bin/activate.fish" *from fish*
2
- # (https://fishshell.com/); you cannot run it directly.
3
-
4
- function deactivate -d "Exit virtual environment and return to normal shell environment"
5
- # reset old environment variables
6
- if test -n "$_OLD_VIRTUAL_PATH"
7
- set -gx PATH $_OLD_VIRTUAL_PATH
8
- set -e _OLD_VIRTUAL_PATH
9
- end
10
- if test -n "$_OLD_VIRTUAL_PYTHONHOME"
11
- set -gx PYTHONHOME $_OLD_VIRTUAL_PYTHONHOME
12
- set -e _OLD_VIRTUAL_PYTHONHOME
13
- end
14
-
15
- if test -n "$_OLD_FISH_PROMPT_OVERRIDE"
16
- set -e _OLD_FISH_PROMPT_OVERRIDE
17
- # prevents error when using nested fish instances (Issue #93858)
18
- if functions -q _old_fish_prompt
19
- functions -e fish_prompt
20
- functions -c _old_fish_prompt fish_prompt
21
- functions -e _old_fish_prompt
22
- end
23
- end
24
-
25
- set -e VIRTUAL_ENV
26
- set -e VIRTUAL_ENV_PROMPT
27
- if test "$argv[1]" != "nondestructive"
28
- # Self-destruct!
29
- functions -e deactivate
30
- end
31
- end
32
-
33
- # Unset irrelevant variables.
34
- deactivate nondestructive
35
-
36
- set -gx VIRTUAL_ENV "/Users/tiagocanzian/Documents/JOBS/Farm/Recolor/.env"
37
-
38
- set -gx _OLD_VIRTUAL_PATH $PATH
39
- set -gx PATH "$VIRTUAL_ENV/bin" $PATH
40
-
41
- # Unset PYTHONHOME if set.
42
- if set -q PYTHONHOME
43
- set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME
44
- set -e PYTHONHOME
45
- end
46
-
47
- if test -z "$VIRTUAL_ENV_DISABLE_PROMPT"
48
- # fish uses a function instead of an env var to generate the prompt.
49
-
50
- # Save the current fish_prompt function as the function _old_fish_prompt.
51
- functions -c fish_prompt _old_fish_prompt
52
-
53
- # With the original prompt function renamed, we can override with our own.
54
- function fish_prompt
55
- # Save the return status of the last command.
56
- set -l old_status $status
57
-
58
- # Output the venv prompt; color taken from the blue of the Python logo.
59
- printf "%s%s%s" (set_color 4B8BBE) "(.env) " (set_color normal)
60
-
61
- # Restore the return status of the previous command.
62
- echo "exit $old_status" | .
63
- # Output the original/"old" prompt.
64
- _old_fish_prompt
65
- end
66
-
67
- set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV"
68
- set -gx VIRTUAL_ENV_PROMPT "(.env) "
69
- end
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.env/bin/huggingface-cli DELETED
@@ -1,8 +0,0 @@
1
- #!/Users/tiagocanzian/Documents/JOBS/Farm/Recolor/.env/bin/python3.11
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from huggingface_hub.commands.huggingface_cli import main
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(main())
 
 
 
 
 
 
 
 
 
.env/bin/normalizer DELETED
@@ -1,8 +0,0 @@
1
- #!/Users/tiagocanzian/Documents/JOBS/Farm/Recolor/.env/bin/python3.11
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from charset_normalizer.cli import cli_detect
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(cli_detect())
 
 
 
 
 
 
 
 
 
.env/bin/pip DELETED
@@ -1,8 +0,0 @@
1
- #!/Users/tiagocanzian/Documents/JOBS/Farm/Recolor/.env/bin/python3.11
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from pip._internal.cli.main import main
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(main())
 
 
 
 
 
 
 
 
 
.env/bin/pip3 DELETED
@@ -1,8 +0,0 @@
1
- #!/Users/tiagocanzian/Documents/JOBS/Farm/Recolor/.env/bin/python3.11
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from pip._internal.cli.main import main
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(main())
 
 
 
 
 
 
 
 
 
.env/bin/pip3.11 DELETED
@@ -1,8 +0,0 @@
1
- #!/Users/tiagocanzian/Documents/JOBS/Farm/Recolor/.env/bin/python3.11
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from pip._internal.cli.main import main
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(main())
 
 
 
 
 
 
 
 
 
.env/bin/python DELETED
@@ -1 +0,0 @@
1
- python3.11
 
 
.env/bin/python3 DELETED
@@ -1 +0,0 @@
1
- python3.11
 
 
.env/bin/python3.11 DELETED
@@ -1 +0,0 @@
1
- /opt/homebrew/opt/python@3.11/bin/python3.11
 
 
.env/bin/tqdm DELETED
@@ -1,8 +0,0 @@
1
- #!/Users/tiagocanzian/Documents/JOBS/Farm/Recolor/.env/bin/python3.11
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from tqdm.cli import main
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(main())
 
 
 
 
 
 
 
 
 
.env/lib/python3.11/site-packages/PyYAML-6.0.1.dist-info/INSTALLER DELETED
@@ -1 +0,0 @@
1
- pip
 
 
.env/lib/python3.11/site-packages/PyYAML-6.0.1.dist-info/LICENSE DELETED
@@ -1,20 +0,0 @@
1
- Copyright (c) 2017-2021 Ingy döt Net
2
- Copyright (c) 2006-2016 Kirill Simonov
3
-
4
- Permission is hereby granted, free of charge, to any person obtaining a copy of
5
- this software and associated documentation files (the "Software"), to deal in
6
- the Software without restriction, including without limitation the rights to
7
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
8
- of the Software, and to permit persons to whom the Software is furnished to do
9
- so, subject to the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be included in all
12
- copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- SOFTWARE.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.env/lib/python3.11/site-packages/PyYAML-6.0.1.dist-info/METADATA DELETED
@@ -1,46 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: PyYAML
3
- Version: 6.0.1
4
- Summary: YAML parser and emitter for Python
5
- Home-page: https://pyyaml.org/
6
- Download-URL: https://pypi.org/project/PyYAML/
7
- Author: Kirill Simonov
8
- Author-email: xi@resolvent.net
9
- License: MIT
10
- Project-URL: Bug Tracker, https://github.com/yaml/pyyaml/issues
11
- Project-URL: CI, https://github.com/yaml/pyyaml/actions
12
- Project-URL: Documentation, https://pyyaml.org/wiki/PyYAMLDocumentation
13
- Project-URL: Mailing lists, http://lists.sourceforge.net/lists/listinfo/yaml-core
14
- Project-URL: Source Code, https://github.com/yaml/pyyaml
15
- Platform: Any
16
- Classifier: Development Status :: 5 - Production/Stable
17
- Classifier: Intended Audience :: Developers
18
- Classifier: License :: OSI Approved :: MIT License
19
- Classifier: Operating System :: OS Independent
20
- Classifier: Programming Language :: Cython
21
- Classifier: Programming Language :: Python
22
- Classifier: Programming Language :: Python :: 3
23
- Classifier: Programming Language :: Python :: 3.6
24
- Classifier: Programming Language :: Python :: 3.7
25
- Classifier: Programming Language :: Python :: 3.8
26
- Classifier: Programming Language :: Python :: 3.9
27
- Classifier: Programming Language :: Python :: 3.10
28
- Classifier: Programming Language :: Python :: 3.11
29
- Classifier: Programming Language :: Python :: Implementation :: CPython
30
- Classifier: Programming Language :: Python :: Implementation :: PyPy
31
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
32
- Classifier: Topic :: Text Processing :: Markup
33
- Requires-Python: >=3.6
34
- License-File: LICENSE
35
-
36
- YAML is a data serialization format designed for human readability
37
- and interaction with scripting languages. PyYAML is a YAML parser
38
- and emitter for Python.
39
-
40
- PyYAML features a complete YAML 1.1 parser, Unicode support, pickle
41
- support, capable extension API, and sensible error messages. PyYAML
42
- supports standard YAML tags and provides Python-specific tags that
43
- allow to represent an arbitrary Python object.
44
-
45
- PyYAML is applicable for a broad range of tasks from complex
46
- configuration files to object serialization and persistence.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.env/lib/python3.11/site-packages/PyYAML-6.0.1.dist-info/RECORD DELETED
@@ -1,43 +0,0 @@
1
- PyYAML-6.0.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
2
- PyYAML-6.0.1.dist-info/LICENSE,sha256=jTko-dxEkP1jVwfLiOsmvXZBAqcoKVQwfT5RZ6V36KQ,1101
3
- PyYAML-6.0.1.dist-info/METADATA,sha256=UNNF8-SzzwOKXVo-kV5lXUGH2_wDWMBmGxqISpp5HQk,2058
4
- PyYAML-6.0.1.dist-info/RECORD,,
5
- PyYAML-6.0.1.dist-info/WHEEL,sha256=GYWT1Q_60SI2bAUaGrkLwkEA5yYDmphib6XcY6K30ZQ,110
6
- PyYAML-6.0.1.dist-info/top_level.txt,sha256=rpj0IVMTisAjh_1vG3Ccf9v5jpCQwAz6cD1IVU5ZdhQ,11
7
- _yaml/__init__.py,sha256=04Ae_5osxahpJHa3XBZUAf4wi6XX32gR8D6X6p64GEA,1402
8
- _yaml/__pycache__/__init__.cpython-311.pyc,,
9
- yaml/__init__.py,sha256=bhl05qSeO-1ZxlSRjGrvl2m9nrXb1n9-GQatTN0Mrqc,12311
10
- yaml/__pycache__/__init__.cpython-311.pyc,,
11
- yaml/__pycache__/composer.cpython-311.pyc,,
12
- yaml/__pycache__/constructor.cpython-311.pyc,,
13
- yaml/__pycache__/cyaml.cpython-311.pyc,,
14
- yaml/__pycache__/dumper.cpython-311.pyc,,
15
- yaml/__pycache__/emitter.cpython-311.pyc,,
16
- yaml/__pycache__/error.cpython-311.pyc,,
17
- yaml/__pycache__/events.cpython-311.pyc,,
18
- yaml/__pycache__/loader.cpython-311.pyc,,
19
- yaml/__pycache__/nodes.cpython-311.pyc,,
20
- yaml/__pycache__/parser.cpython-311.pyc,,
21
- yaml/__pycache__/reader.cpython-311.pyc,,
22
- yaml/__pycache__/representer.cpython-311.pyc,,
23
- yaml/__pycache__/resolver.cpython-311.pyc,,
24
- yaml/__pycache__/scanner.cpython-311.pyc,,
25
- yaml/__pycache__/serializer.cpython-311.pyc,,
26
- yaml/__pycache__/tokens.cpython-311.pyc,,
27
- yaml/_yaml.cpython-311-darwin.so,sha256=YiF55JiadfOvw_mUH-lONNnsiMHj6C6o1SBfTCvvW54,362008
28
- yaml/composer.py,sha256=_Ko30Wr6eDWUeUpauUGT3Lcg9QPBnOPVlTnIMRGJ9FM,4883
29
- yaml/constructor.py,sha256=kNgkfaeLUkwQYY_Q6Ff1Tz2XVw_pG1xVE9Ak7z-viLA,28639
30
- yaml/cyaml.py,sha256=6ZrAG9fAYvdVe2FK_w0hmXoG7ZYsoYUwapG8CiC72H0,3851
31
- yaml/dumper.py,sha256=PLctZlYwZLp7XmeUdwRuv4nYOZ2UBnDIUy8-lKfLF-o,2837
32
- yaml/emitter.py,sha256=jghtaU7eFwg31bG0B7RZea_29Adi9CKmXq_QjgQpCkQ,43006
33
- yaml/error.py,sha256=Ah9z-toHJUbE9j-M8YpxgSRM5CgLCcwVzJgLLRF2Fxo,2533
34
- yaml/events.py,sha256=50_TksgQiE4up-lKo_V-nBy-tAIxkIPQxY5qDhKCeHw,2445
35
- yaml/loader.py,sha256=UVa-zIqmkFSCIYq_PgSGm4NSJttHY2Rf_zQ4_b1fHN0,2061
36
- yaml/nodes.py,sha256=gPKNj8pKCdh2d4gr3gIYINnPOaOxGhJAUiYhGRnPE84,1440
37
- yaml/parser.py,sha256=ilWp5vvgoHFGzvOZDItFoGjD6D42nhlZrZyjAwa0oJo,25495
38
- yaml/reader.py,sha256=0dmzirOiDG4Xo41RnuQS7K9rkY3xjHiVasfDMNTqCNw,6794
39
- yaml/representer.py,sha256=IuWP-cAW9sHKEnS0gCqSa894k1Bg4cgTxaDwIcbRQ-Y,14190
40
- yaml/resolver.py,sha256=9L-VYfm4mWHxUD1Vg4X7rjDRK_7VZd6b92wzq7Y2IKY,9004
41
- yaml/scanner.py,sha256=YEM3iLZSaQwXcQRg2l2R4MdT0zGP2F9eHkKGKnHyWQY,51279
42
- yaml/serializer.py,sha256=ChuFgmhU01hj4xgI8GaKv6vfM2Bujwa9i7d2FAHj7cA,4165
43
- yaml/tokens.py,sha256=lTQIzSVw8Mg9wv459-TjiOQe6wVziqaRlqX2_89rp54,2573
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.env/lib/python3.11/site-packages/PyYAML-6.0.1.dist-info/WHEEL DELETED
@@ -1,5 +0,0 @@
1
- Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.40.0)
3
- Root-Is-Purelib: false
4
- Tag: cp311-cp311-macosx_11_0_arm64
5
-
 
 
 
 
 
 
.env/lib/python3.11/site-packages/PyYAML-6.0.1.dist-info/top_level.txt DELETED
@@ -1,2 +0,0 @@
1
- _yaml
2
- yaml
 
 
 
.env/lib/python3.11/site-packages/__pycache__/typing_extensions.cpython-311.pyc DELETED
Binary file (123 kB)
 
.env/lib/python3.11/site-packages/_distutils_hack/__init__.py DELETED
@@ -1,227 +0,0 @@
1
- # don't import any costly modules
2
- import sys
3
- import os
4
-
5
-
6
- is_pypy = '__pypy__' in sys.builtin_module_names
7
-
8
-
9
- def warn_distutils_present():
10
- if 'distutils' not in sys.modules:
11
- return
12
- if is_pypy and sys.version_info < (3, 7):
13
- # PyPy for 3.6 unconditionally imports distutils, so bypass the warning
14
- # https://foss.heptapod.net/pypy/pypy/-/blob/be829135bc0d758997b3566062999ee8b23872b4/lib-python/3/site.py#L250
15
- return
16
- import warnings
17
-
18
- warnings.warn(
19
- "Distutils was imported before Setuptools, but importing Setuptools "
20
- "also replaces the `distutils` module in `sys.modules`. This may lead "
21
- "to undesirable behaviors or errors. To avoid these issues, avoid "
22
- "using distutils directly, ensure that setuptools is installed in the "
23
- "traditional way (e.g. not an editable install), and/or make sure "
24
- "that setuptools is always imported before distutils."
25
- )
26
-
27
-
28
- def clear_distutils():
29
- if 'distutils' not in sys.modules:
30
- return
31
- import warnings
32
-
33
- warnings.warn("Setuptools is replacing distutils.")
34
- mods = [
35
- name
36
- for name in sys.modules
37
- if name == "distutils" or name.startswith("distutils.")
38
- ]
39
- for name in mods:
40
- del sys.modules[name]
41
-
42
-
43
- def enabled():
44
- """
45
- Allow selection of distutils by environment variable.
46
- """
47
- which = os.environ.get('SETUPTOOLS_USE_DISTUTILS', 'local')
48
- return which == 'local'
49
-
50
-
51
- def ensure_local_distutils():
52
- import importlib
53
-
54
- clear_distutils()
55
-
56
- # With the DistutilsMetaFinder in place,
57
- # perform an import to cause distutils to be
58
- # loaded from setuptools._distutils. Ref #2906.
59
- with shim():
60
- importlib.import_module('distutils')
61
-
62
- # check that submodules load as expected
63
- core = importlib.import_module('distutils.core')
64
- assert '_distutils' in core.__file__, core.__file__
65
- assert 'setuptools._distutils.log' not in sys.modules
66
-
67
-
68
- def do_override():
69
- """
70
- Ensure that the local copy of distutils is preferred over stdlib.
71
-
72
- See https://github.com/pypa/setuptools/issues/417#issuecomment-392298401
73
- for more motivation.
74
- """
75
- if enabled():
76
- warn_distutils_present()
77
- ensure_local_distutils()
78
-
79
-
80
- class _TrivialRe:
81
- def __init__(self, *patterns):
82
- self._patterns = patterns
83
-
84
- def match(self, string):
85
- return all(pat in string for pat in self._patterns)
86
-
87
-
88
- class DistutilsMetaFinder:
89
- def find_spec(self, fullname, path, target=None):
90
- # optimization: only consider top level modules and those
91
- # found in the CPython test suite.
92
- if path is not None and not fullname.startswith('test.'):
93
- return
94
-
95
- method_name = 'spec_for_{fullname}'.format(**locals())
96
- method = getattr(self, method_name, lambda: None)
97
- return method()
98
-
99
- def spec_for_distutils(self):
100
- if self.is_cpython():
101
- return
102
-
103
- import importlib
104
- import importlib.abc
105
- import importlib.util
106
-
107
- try:
108
- mod = importlib.import_module('setuptools._distutils')
109
- except Exception:
110
- # There are a couple of cases where setuptools._distutils
111
- # may not be present:
112
- # - An older Setuptools without a local distutils is
113
- # taking precedence. Ref #2957.
114
- # - Path manipulation during sitecustomize removes
115
- # setuptools from the path but only after the hook
116
- # has been loaded. Ref #2980.
117
- # In either case, fall back to stdlib behavior.
118
- return
119
-
120
- class DistutilsLoader(importlib.abc.Loader):
121
- def create_module(self, spec):
122
- mod.__name__ = 'distutils'
123
- return mod
124
-
125
- def exec_module(self, module):
126
- pass
127
-
128
- return importlib.util.spec_from_loader(
129
- 'distutils', DistutilsLoader(), origin=mod.__file__
130
- )
131
-
132
- @staticmethod
133
- def is_cpython():
134
- """
135
- Suppress supplying distutils for CPython (build and tests).
136
- Ref #2965 and #3007.
137
- """
138
- return os.path.isfile('pybuilddir.txt')
139
-
140
- def spec_for_pip(self):
141
- """
142
- Ensure stdlib distutils when running under pip.
143
- See pypa/pip#8761 for rationale.
144
- """
145
- if sys.version_info >= (3, 12) or self.pip_imported_during_build():
146
- return
147
- clear_distutils()
148
- self.spec_for_distutils = lambda: None
149
-
150
- @classmethod
151
- def pip_imported_during_build(cls):
152
- """
153
- Detect if pip is being imported in a build script. Ref #2355.
154
- """
155
- import traceback
156
-
157
- return any(
158
- cls.frame_file_is_setup(frame) for frame, line in traceback.walk_stack(None)
159
- )
160
-
161
- @staticmethod
162
- def frame_file_is_setup(frame):
163
- """
164
- Return True if the indicated frame suggests a setup.py file.
165
- """
166
- # some frames may not have __file__ (#2940)
167
- return frame.f_globals.get('__file__', '').endswith('setup.py')
168
-
169
- def spec_for_sensitive_tests(self):
170
- """
171
- Ensure stdlib distutils when running select tests under CPython.
172
-
173
- python/cpython#91169
174
- """
175
- clear_distutils()
176
- self.spec_for_distutils = lambda: None
177
-
178
- sensitive_tests = (
179
- [
180
- 'test.test_distutils',
181
- 'test.test_peg_generator',
182
- 'test.test_importlib',
183
- ]
184
- if sys.version_info < (3, 10)
185
- else [
186
- 'test.test_distutils',
187
- ]
188
- )
189
-
190
-
191
- for name in DistutilsMetaFinder.sensitive_tests:
192
- setattr(
193
- DistutilsMetaFinder,
194
- f'spec_for_{name}',
195
- DistutilsMetaFinder.spec_for_sensitive_tests,
196
- )
197
-
198
-
199
- DISTUTILS_FINDER = DistutilsMetaFinder()
200
-
201
-
202
- def add_shim():
203
- DISTUTILS_FINDER in sys.meta_path or insert_shim()
204
-
205
-
206
- class shim:
207
- def __enter__(self):
208
- insert_shim()
209
-
210
- def __exit__(self, exc, value, tb):
211
- _remove_shim()
212
-
213
-
214
- def insert_shim():
215
- sys.meta_path.insert(0, DISTUTILS_FINDER)
216
-
217
-
218
- def _remove_shim():
219
- try:
220
- sys.meta_path.remove(DISTUTILS_FINDER)
221
- except ValueError:
222
- pass
223
-
224
-
225
- if sys.version_info < (3, 12):
226
- # DistutilsMetaFinder can only be disabled in Python < 3.12 (PEP 632)
227
- remove_shim = _remove_shim
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.env/lib/python3.11/site-packages/_distutils_hack/__pycache__/__init__.cpython-311.pyc DELETED
Binary file (11.3 kB)
 
.env/lib/python3.11/site-packages/_distutils_hack/__pycache__/override.cpython-311.pyc DELETED
Binary file (340 Bytes)
 
.env/lib/python3.11/site-packages/_distutils_hack/override.py DELETED
@@ -1 +0,0 @@
1
- __import__('_distutils_hack').do_override()
 
 
.env/lib/python3.11/site-packages/_yaml/__init__.py DELETED
@@ -1,33 +0,0 @@
1
- # This is a stub package designed to roughly emulate the _yaml
2
- # extension module, which previously existed as a standalone module
3
- # and has been moved into the `yaml` package namespace.
4
- # It does not perfectly mimic its old counterpart, but should get
5
- # close enough for anyone who's relying on it even when they shouldn't.
6
- import yaml
7
-
8
- # in some circumstances, the yaml module we imoprted may be from a different version, so we need
9
- # to tread carefully when poking at it here (it may not have the attributes we expect)
10
- if not getattr(yaml, '__with_libyaml__', False):
11
- from sys import version_info
12
-
13
- exc = ModuleNotFoundError if version_info >= (3, 6) else ImportError
14
- raise exc("No module named '_yaml'")
15
- else:
16
- from yaml._yaml import *
17
- import warnings
18
- warnings.warn(
19
- 'The _yaml extension module is now located at yaml._yaml'
20
- ' and its location is subject to change. To use the'
21
- ' LibYAML-based parser and emitter, import from `yaml`:'
22
- ' `from yaml import CLoader as Loader, CDumper as Dumper`.',
23
- DeprecationWarning
24
- )
25
- del warnings
26
- # Don't `del yaml` here because yaml is actually an existing
27
- # namespace member of _yaml.
28
-
29
- __name__ = '_yaml'
30
- # If the module is top-level (i.e. not a part of any specific package)
31
- # then the attribute should be set to ''.
32
- # https://docs.python.org/3.8/library/types.html
33
- __package__ = ''
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.env/lib/python3.11/site-packages/_yaml/__pycache__/__init__.cpython-311.pyc DELETED
Binary file (957 Bytes)
 
.env/lib/python3.11/site-packages/certifi-2023.11.17.dist-info/INSTALLER DELETED
@@ -1 +0,0 @@
1
- pip
 
 
.env/lib/python3.11/site-packages/certifi-2023.11.17.dist-info/LICENSE DELETED
@@ -1,20 +0,0 @@
1
- This package contains a modified version of ca-bundle.crt:
2
-
3
- ca-bundle.crt -- Bundle of CA Root Certificates
4
-
5
- This is a bundle of X.509 certificates of public Certificate Authorities
6
- (CA). These were automatically extracted from Mozilla's root certificates
7
- file (certdata.txt). This file can be found in the mozilla source tree:
8
- https://hg.mozilla.org/mozilla-central/file/tip/security/nss/lib/ckfw/builtins/certdata.txt
9
- It contains the certificates in PEM format and therefore
10
- can be directly used with curl / libcurl / php_curl, or with
11
- an Apache+mod_ssl webserver for SSL client authentication.
12
- Just configure this file as the SSLCACertificateFile.#
13
-
14
- ***** BEGIN LICENSE BLOCK *****
15
- This Source Code Form is subject to the terms of the Mozilla Public License,
16
- v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain
17
- one at http://mozilla.org/MPL/2.0/.
18
-
19
- ***** END LICENSE BLOCK *****
20
- @(#) $RCSfile: certdata.txt,v $ $Revision: 1.80 $ $Date: 2011/11/03 15:11:58 $
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.env/lib/python3.11/site-packages/certifi-2023.11.17.dist-info/METADATA DELETED
@@ -1,66 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: certifi
3
- Version: 2023.11.17
4
- Summary: Python package for providing Mozilla's CA Bundle.
5
- Home-page: https://github.com/certifi/python-certifi
6
- Author: Kenneth Reitz
7
- Author-email: me@kennethreitz.com
8
- License: MPL-2.0
9
- Project-URL: Source, https://github.com/certifi/python-certifi
10
- Classifier: Development Status :: 5 - Production/Stable
11
- Classifier: Intended Audience :: Developers
12
- Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
13
- Classifier: Natural Language :: English
14
- Classifier: Programming Language :: Python
15
- Classifier: Programming Language :: Python :: 3
16
- Classifier: Programming Language :: Python :: 3 :: Only
17
- Classifier: Programming Language :: Python :: 3.6
18
- Classifier: Programming Language :: Python :: 3.7
19
- Classifier: Programming Language :: Python :: 3.8
20
- Classifier: Programming Language :: Python :: 3.9
21
- Classifier: Programming Language :: Python :: 3.10
22
- Classifier: Programming Language :: Python :: 3.11
23
- Requires-Python: >=3.6
24
- License-File: LICENSE
25
-
26
- Certifi: Python SSL Certificates
27
- ================================
28
-
29
- Certifi provides Mozilla's carefully curated collection of Root Certificates for
30
- validating the trustworthiness of SSL certificates while verifying the identity
31
- of TLS hosts. It has been extracted from the `Requests`_ project.
32
-
33
- Installation
34
- ------------
35
-
36
- ``certifi`` is available on PyPI. Simply install it with ``pip``::
37
-
38
- $ pip install certifi
39
-
40
- Usage
41
- -----
42
-
43
- To reference the installed certificate authority (CA) bundle, you can use the
44
- built-in function::
45
-
46
- >>> import certifi
47
-
48
- >>> certifi.where()
49
- '/usr/local/lib/python3.7/site-packages/certifi/cacert.pem'
50
-
51
- Or from the command line::
52
-
53
- $ python -m certifi
54
- /usr/local/lib/python3.7/site-packages/certifi/cacert.pem
55
-
56
- Enjoy!
57
-
58
- .. _`Requests`: https://requests.readthedocs.io/en/master/
59
-
60
- Addition/Removal of Certificates
61
- --------------------------------
62
-
63
- Certifi does not support any addition/removal or other modification of the
64
- CA trust store content. This project is intended to provide a reliable and
65
- highly portable root of trust to python deployments. Look to upstream projects
66
- for methods to use alternate trust.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.env/lib/python3.11/site-packages/certifi-2023.11.17.dist-info/RECORD DELETED
@@ -1,14 +0,0 @@
1
- certifi-2023.11.17.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
2
- certifi-2023.11.17.dist-info/LICENSE,sha256=6TcW2mucDVpKHfYP5pWzcPBpVgPSH2-D8FPkLPwQyvc,989
3
- certifi-2023.11.17.dist-info/METADATA,sha256=P7BMxvbKUZTP20mLy_wc2atkEPFNVqElEzV6Mhaj3Zc,2172
4
- certifi-2023.11.17.dist-info/RECORD,,
5
- certifi-2023.11.17.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
6
- certifi-2023.11.17.dist-info/top_level.txt,sha256=KMu4vUCfsjLrkPbSNdgdekS-pVJzBAJFO__nI8NF6-U,8
7
- certifi/__init__.py,sha256=oYZVbNEJ66LQQamFRyuICe6FoYDmkY4j4fKEyO9D96c,94
8
- certifi/__main__.py,sha256=xBBoj905TUWBLRGANOcf7oi6e-3dMP4cEoG9OyMs11g,243
9
- certifi/__pycache__/__init__.cpython-311.pyc,,
10
- certifi/__pycache__/__main__.cpython-311.pyc,,
11
- certifi/__pycache__/core.cpython-311.pyc,,
12
- certifi/cacert.pem,sha256=z503-oFAev4R3MDXD-YCVhQiqiNEcIwyTkUE24xsV0g,290282
13
- certifi/core.py,sha256=lhewz0zFb2b4ULsQurElmloYwQoecjWzPqY67P8T7iM,4219
14
- certifi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.env/lib/python3.11/site-packages/certifi-2023.11.17.dist-info/WHEEL DELETED
@@ -1,5 +0,0 @@
1
- Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.3)
3
- Root-Is-Purelib: true
4
- Tag: py3-none-any
5
-
 
 
 
 
 
 
.env/lib/python3.11/site-packages/certifi-2023.11.17.dist-info/top_level.txt DELETED
@@ -1 +0,0 @@
1
- certifi
 
 
.env/lib/python3.11/site-packages/certifi/__init__.py DELETED
@@ -1,4 +0,0 @@
1
- from .core import contents, where
2
-
3
- __all__ = ["contents", "where"]
4
- __version__ = "2023.11.17"
 
 
 
 
 
.env/lib/python3.11/site-packages/certifi/__main__.py DELETED
@@ -1,12 +0,0 @@
1
- import argparse
2
-
3
- from certifi import contents, where
4
-
5
- parser = argparse.ArgumentParser()
6
- parser.add_argument("-c", "--contents", action="store_true")
7
- args = parser.parse_args()
8
-
9
- if args.contents:
10
- print(contents())
11
- else:
12
- print(where())
 
 
 
 
 
 
 
 
 
 
 
 
 
.env/lib/python3.11/site-packages/certifi/__pycache__/__init__.cpython-311.pyc DELETED
Binary file (352 Bytes)
 
.env/lib/python3.11/site-packages/certifi/__pycache__/__main__.cpython-311.pyc DELETED
Binary file (741 Bytes)
 
.env/lib/python3.11/site-packages/certifi/__pycache__/core.cpython-311.pyc DELETED
Binary file (3.36 kB)
 
.env/lib/python3.11/site-packages/certifi/cacert.pem DELETED
The diff for this file is too large to render. See raw diff
 
.env/lib/python3.11/site-packages/certifi/core.py DELETED
@@ -1,108 +0,0 @@
1
- """
2
- certifi.py
3
- ~~~~~~~~~~
4
-
5
- This module returns the installation location of cacert.pem or its contents.
6
- """
7
- import sys
8
-
9
-
10
- if sys.version_info >= (3, 11):
11
-
12
- from importlib.resources import as_file, files
13
-
14
- _CACERT_CTX = None
15
- _CACERT_PATH = None
16
-
17
- def where() -> str:
18
- # This is slightly terrible, but we want to delay extracting the file
19
- # in cases where we're inside of a zipimport situation until someone
20
- # actually calls where(), but we don't want to re-extract the file
21
- # on every call of where(), so we'll do it once then store it in a
22
- # global variable.
23
- global _CACERT_CTX
24
- global _CACERT_PATH
25
- if _CACERT_PATH is None:
26
- # This is slightly janky, the importlib.resources API wants you to
27
- # manage the cleanup of this file, so it doesn't actually return a
28
- # path, it returns a context manager that will give you the path
29
- # when you enter it and will do any cleanup when you leave it. In
30
- # the common case of not needing a temporary file, it will just
31
- # return the file system location and the __exit__() is a no-op.
32
- #
33
- # We also have to hold onto the actual context manager, because
34
- # it will do the cleanup whenever it gets garbage collected, so
35
- # we will also store that at the global level as well.
36
- _CACERT_CTX = as_file(files("certifi").joinpath("cacert.pem"))
37
- _CACERT_PATH = str(_CACERT_CTX.__enter__())
38
-
39
- return _CACERT_PATH
40
-
41
- def contents() -> str:
42
- return files("certifi").joinpath("cacert.pem").read_text(encoding="ascii")
43
-
44
- elif sys.version_info >= (3, 7):
45
-
46
- from importlib.resources import path as get_path, read_text
47
-
48
- _CACERT_CTX = None
49
- _CACERT_PATH = None
50
-
51
- def where() -> str:
52
- # This is slightly terrible, but we want to delay extracting the
53
- # file in cases where we're inside of a zipimport situation until
54
- # someone actually calls where(), but we don't want to re-extract
55
- # the file on every call of where(), so we'll do it once then store
56
- # it in a global variable.
57
- global _CACERT_CTX
58
- global _CACERT_PATH
59
- if _CACERT_PATH is None:
60
- # This is slightly janky, the importlib.resources API wants you
61
- # to manage the cleanup of this file, so it doesn't actually
62
- # return a path, it returns a context manager that will give
63
- # you the path when you enter it and will do any cleanup when
64
- # you leave it. In the common case of not needing a temporary
65
- # file, it will just return the file system location and the
66
- # __exit__() is a no-op.
67
- #
68
- # We also have to hold onto the actual context manager, because
69
- # it will do the cleanup whenever it gets garbage collected, so
70
- # we will also store that at the global level as well.
71
- _CACERT_CTX = get_path("certifi", "cacert.pem")
72
- _CACERT_PATH = str(_CACERT_CTX.__enter__())
73
-
74
- return _CACERT_PATH
75
-
76
- def contents() -> str:
77
- return read_text("certifi", "cacert.pem", encoding="ascii")
78
-
79
- else:
80
- import os
81
- import types
82
- from typing import Union
83
-
84
- Package = Union[types.ModuleType, str]
85
- Resource = Union[str, "os.PathLike"]
86
-
87
- # This fallback will work for Python versions prior to 3.7 that lack the
88
- # importlib.resources module but relies on the existing `where` function
89
- # so won't address issues with environments like PyOxidizer that don't set
90
- # __file__ on modules.
91
- def read_text(
92
- package: Package,
93
- resource: Resource,
94
- encoding: str = 'utf-8',
95
- errors: str = 'strict'
96
- ) -> str:
97
- with open(where(), encoding=encoding) as data:
98
- return data.read()
99
-
100
- # If we don't have importlib.resources, then we will just do the old logic
101
- # of assuming we're on the filesystem and munge the path directly.
102
- def where() -> str:
103
- f = os.path.dirname(__file__)
104
-
105
- return os.path.join(f, "cacert.pem")
106
-
107
- def contents() -> str:
108
- return read_text("certifi", "cacert.pem", encoding="ascii")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.env/lib/python3.11/site-packages/certifi/py.typed DELETED
File without changes
.env/lib/python3.11/site-packages/charset_normalizer-3.3.2.dist-info/INSTALLER DELETED
@@ -1 +0,0 @@
1
- pip
 
 
.env/lib/python3.11/site-packages/charset_normalizer-3.3.2.dist-info/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2019 TAHRI Ahmed R.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.env/lib/python3.11/site-packages/charset_normalizer-3.3.2.dist-info/METADATA DELETED
@@ -1,683 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: charset-normalizer
3
- Version: 3.3.2
4
- Summary: The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet.
5
- Home-page: https://github.com/Ousret/charset_normalizer
6
- Author: Ahmed TAHRI
7
- Author-email: ahmed.tahri@cloudnursery.dev
8
- License: MIT
9
- Project-URL: Bug Reports, https://github.com/Ousret/charset_normalizer/issues
10
- Project-URL: Documentation, https://charset-normalizer.readthedocs.io/en/latest
11
- Keywords: encoding,charset,charset-detector,detector,normalization,unicode,chardet,detect
12
- Classifier: Development Status :: 5 - Production/Stable
13
- Classifier: License :: OSI Approved :: MIT License
14
- Classifier: Intended Audience :: Developers
15
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
16
- Classifier: Operating System :: OS Independent
17
- Classifier: Programming Language :: Python
18
- Classifier: Programming Language :: Python :: 3
19
- Classifier: Programming Language :: Python :: 3.7
20
- Classifier: Programming Language :: Python :: 3.8
21
- Classifier: Programming Language :: Python :: 3.9
22
- Classifier: Programming Language :: Python :: 3.10
23
- Classifier: Programming Language :: Python :: 3.11
24
- Classifier: Programming Language :: Python :: 3.12
25
- Classifier: Programming Language :: Python :: Implementation :: PyPy
26
- Classifier: Topic :: Text Processing :: Linguistic
27
- Classifier: Topic :: Utilities
28
- Classifier: Typing :: Typed
29
- Requires-Python: >=3.7.0
30
- Description-Content-Type: text/markdown
31
- License-File: LICENSE
32
- Provides-Extra: unicode_backport
33
-
34
- <h1 align="center">Charset Detection, for Everyone 👋</h1>
35
-
36
- <p align="center">
37
- <sup>The Real First Universal Charset Detector</sup><br>
38
- <a href="https://pypi.org/project/charset-normalizer">
39
- <img src="https://img.shields.io/pypi/pyversions/charset_normalizer.svg?orange=blue" />
40
- </a>
41
- <a href="https://pepy.tech/project/charset-normalizer/">
42
- <img alt="Download Count Total" src="https://static.pepy.tech/badge/charset-normalizer/month" />
43
- </a>
44
- <a href="https://bestpractices.coreinfrastructure.org/projects/7297">
45
- <img src="https://bestpractices.coreinfrastructure.org/projects/7297/badge">
46
- </a>
47
- </p>
48
- <p align="center">
49
- <sup><i>Featured Packages</i></sup><br>
50
- <a href="https://github.com/jawah/niquests">
51
- <img alt="Static Badge" src="https://img.shields.io/badge/Niquests-HTTP_1.1%2C%202%2C_and_3_Client-cyan">
52
- </a>
53
- <a href="https://github.com/jawah/wassima">
54
- <img alt="Static Badge" src="https://img.shields.io/badge/Wassima-Certifi_Killer-cyan">
55
- </a>
56
- </p>
57
- <p align="center">
58
- <sup><i>In other language (unofficial port - by the community)</i></sup><br>
59
- <a href="https://github.com/nickspring/charset-normalizer-rs">
60
- <img alt="Static Badge" src="https://img.shields.io/badge/Rust-red">
61
- </a>
62
- </p>
63
-
64
- > A library that helps you read text from an unknown charset encoding.<br /> Motivated by `chardet`,
65
- > I'm trying to resolve the issue by taking a new approach.
66
- > All IANA character set names for which the Python core library provides codecs are supported.
67
-
68
- <p align="center">
69
- >>>>> <a href="https://charsetnormalizerweb.ousret.now.sh" target="_blank">👉 Try Me Online Now, Then Adopt Me 👈 </a> <<<<<
70
- </p>
71
-
72
- This project offers you an alternative to **Universal Charset Encoding Detector**, also known as **Chardet**.
73
-
74
- | Feature | [Chardet](https://github.com/chardet/chardet) | Charset Normalizer | [cChardet](https://github.com/PyYoshi/cChardet) |
75
- |--------------------------------------------------|:---------------------------------------------:|:--------------------------------------------------------------------------------------------------:|:-----------------------------------------------:|
76
- | `Fast` | ❌ | ✅ | ✅ |
77
- | `Universal**` | ❌ | ✅ | ❌ |
78
- | `Reliable` **without** distinguishable standards | ❌ | ✅ | ✅ |
79
- | `Reliable` **with** distinguishable standards | ✅ | ✅ | ✅ |
80
- | `License` | LGPL-2.1<br>_restrictive_ | MIT | MPL-1.1<br>_restrictive_ |
81
- | `Native Python` | ✅ | ✅ | ❌ |
82
- | `Detect spoken language` | ❌ | ✅ | N/A |
83
- | `UnicodeDecodeError Safety` | ❌ | ✅ | ❌ |
84
- | `Whl Size (min)` | 193.6 kB | 42 kB | ~200 kB |
85
- | `Supported Encoding` | 33 | 🎉 [99](https://charset-normalizer.readthedocs.io/en/latest/user/support.html#supported-encodings) | 40 |
86
-
87
- <p align="center">
88
- <img src="https://i.imgflip.com/373iay.gif" alt="Reading Normalized Text" width="226"/><img src="https://media.tenor.com/images/c0180f70732a18b4965448d33adba3d0/tenor.gif" alt="Cat Reading Text" width="200"/>
89
- </p>
90
-
91
- *\*\* : They are clearly using specific code for a specific encoding even if covering most of used one*<br>
92
- Did you got there because of the logs? See [https://charset-normalizer.readthedocs.io/en/latest/user/miscellaneous.html](https://charset-normalizer.readthedocs.io/en/latest/user/miscellaneous.html)
93
-
94
- ## ⚡ Performance
95
-
96
- This package offer better performance than its counterpart Chardet. Here are some numbers.
97
-
98
- | Package | Accuracy | Mean per file (ms) | File per sec (est) |
99
- |-----------------------------------------------|:--------:|:------------------:|:------------------:|
100
- | [chardet](https://github.com/chardet/chardet) | 86 % | 200 ms | 5 file/sec |
101
- | charset-normalizer | **98 %** | **10 ms** | 100 file/sec |
102
-
103
- | Package | 99th percentile | 95th percentile | 50th percentile |
104
- |-----------------------------------------------|:---------------:|:---------------:|:---------------:|
105
- | [chardet](https://github.com/chardet/chardet) | 1200 ms | 287 ms | 23 ms |
106
- | charset-normalizer | 100 ms | 50 ms | 5 ms |
107
-
108
- Chardet's performance on larger file (1MB+) are very poor. Expect huge difference on large payload.
109
-
110
- > Stats are generated using 400+ files using default parameters. More details on used files, see GHA workflows.
111
- > And yes, these results might change at any time. The dataset can be updated to include more files.
112
- > The actual delays heavily depends on your CPU capabilities. The factors should remain the same.
113
- > Keep in mind that the stats are generous and that Chardet accuracy vs our is measured using Chardet initial capability
114
- > (eg. Supported Encoding) Challenge-them if you want.
115
-
116
- ## ✨ Installation
117
-
118
- Using pip:
119
-
120
- ```sh
121
- pip install charset-normalizer -U
122
- ```
123
-
124
- ## 🚀 Basic Usage
125
-
126
- ### CLI
127
- This package comes with a CLI.
128
-
129
- ```
130
- usage: normalizer [-h] [-v] [-a] [-n] [-m] [-r] [-f] [-t THRESHOLD]
131
- file [file ...]
132
-
133
- The Real First Universal Charset Detector. Discover originating encoding used
134
- on text file. Normalize text to unicode.
135
-
136
- positional arguments:
137
- files File(s) to be analysed
138
-
139
- optional arguments:
140
- -h, --help show this help message and exit
141
- -v, --verbose Display complementary information about file if any.
142
- Stdout will contain logs about the detection process.
143
- -a, --with-alternative
144
- Output complementary possibilities if any. Top-level
145
- JSON WILL be a list.
146
- -n, --normalize Permit to normalize input file. If not set, program
147
- does not write anything.
148
- -m, --minimal Only output the charset detected to STDOUT. Disabling
149
- JSON output.
150
- -r, --replace Replace file when trying to normalize it instead of
151
- creating a new one.
152
- -f, --force Replace file without asking if you are sure, use this
153
- flag with caution.
154
- -t THRESHOLD, --threshold THRESHOLD
155
- Define a custom maximum amount of chaos allowed in
156
- decoded content. 0. <= chaos <= 1.
157
- --version Show version information and exit.
158
- ```
159
-
160
- ```bash
161
- normalizer ./data/sample.1.fr.srt
162
- ```
163
-
164
- or
165
-
166
- ```bash
167
- python -m charset_normalizer ./data/sample.1.fr.srt
168
- ```
169
-
170
- 🎉 Since version 1.4.0 the CLI produce easily usable stdout result in JSON format.
171
-
172
- ```json
173
- {
174
- "path": "/home/default/projects/charset_normalizer/data/sample.1.fr.srt",
175
- "encoding": "cp1252",
176
- "encoding_aliases": [
177
- "1252",
178
- "windows_1252"
179
- ],
180
- "alternative_encodings": [
181
- "cp1254",
182
- "cp1256",
183
- "cp1258",
184
- "iso8859_14",
185
- "iso8859_15",
186
- "iso8859_16",
187
- "iso8859_3",
188
- "iso8859_9",
189
- "latin_1",
190
- "mbcs"
191
- ],
192
- "language": "French",
193
- "alphabets": [
194
- "Basic Latin",
195
- "Latin-1 Supplement"
196
- ],
197
- "has_sig_or_bom": false,
198
- "chaos": 0.149,
199
- "coherence": 97.152,
200
- "unicode_path": null,
201
- "is_preferred": true
202
- }
203
- ```
204
-
205
- ### Python
206
- *Just print out normalized text*
207
- ```python
208
- from charset_normalizer import from_path
209
-
210
- results = from_path('./my_subtitle.srt')
211
-
212
- print(str(results.best()))
213
- ```
214
-
215
- *Upgrade your code without effort*
216
- ```python
217
- from charset_normalizer import detect
218
- ```
219
-
220
- The above code will behave the same as **chardet**. We ensure that we offer the best (reasonable) BC result possible.
221
-
222
- See the docs for advanced usage : [readthedocs.io](https://charset-normalizer.readthedocs.io/en/latest/)
223
-
224
- ## 😇 Why
225
-
226
- When I started using Chardet, I noticed that it was not suited to my expectations, and I wanted to propose a
227
- reliable alternative using a completely different method. Also! I never back down on a good challenge!
228
-
229
- I **don't care** about the **originating charset** encoding, because **two different tables** can
230
- produce **two identical rendered string.**
231
- What I want is to get readable text, the best I can.
232
-
233
- In a way, **I'm brute forcing text decoding.** How cool is that ? 😎
234
-
235
- Don't confuse package **ftfy** with charset-normalizer or chardet. ftfy goal is to repair unicode string whereas charset-normalizer to convert raw file in unknown encoding to unicode.
236
-
237
- ## 🍰 How
238
-
239
- - Discard all charset encoding table that could not fit the binary content.
240
- - Measure noise, or the mess once opened (by chunks) with a corresponding charset encoding.
241
- - Extract matches with the lowest mess detected.
242
- - Additionally, we measure coherence / probe for a language.
243
-
244
- **Wait a minute**, what is noise/mess and coherence according to **YOU ?**
245
-
246
- *Noise :* I opened hundred of text files, **written by humans**, with the wrong encoding table. **I observed**, then
247
- **I established** some ground rules about **what is obvious** when **it seems like** a mess.
248
- I know that my interpretation of what is noise is probably incomplete, feel free to contribute in order to
249
- improve or rewrite it.
250
-
251
- *Coherence :* For each language there is on earth, we have computed ranked letter appearance occurrences (the best we can). So I thought
252
- that intel is worth something here. So I use those records against decoded text to check if I can detect intelligent design.
253
-
254
- ## ⚡ Known limitations
255
-
256
- - Language detection is unreliable when text contains two or more languages sharing identical letters. (eg. HTML (english tags) + Turkish content (Sharing Latin characters))
257
- - Every charset detector heavily depends on sufficient content. In common cases, do not bother run detection on very tiny content.
258
-
259
- ## ⚠️ About Python EOLs
260
-
261
- **If you are running:**
262
-
263
- - Python >=2.7,<3.5: Unsupported
264
- - Python 3.5: charset-normalizer < 2.1
265
- - Python 3.6: charset-normalizer < 3.1
266
- - Python 3.7: charset-normalizer < 4.0
267
-
268
- Upgrade your Python interpreter as soon as possible.
269
-
270
- ## 👤 Contributing
271
-
272
- Contributions, issues and feature requests are very much welcome.<br />
273
- Feel free to check [issues page](https://github.com/ousret/charset_normalizer/issues) if you want to contribute.
274
-
275
- ## 📝 License
276
-
277
- Copyright © [Ahmed TAHRI @Ousret](https://github.com/Ousret).<br />
278
- This project is [MIT](https://github.com/Ousret/charset_normalizer/blob/master/LICENSE) licensed.
279
-
280
- Characters frequencies used in this project © 2012 [Denny Vrandečić](http://simia.net/letters/)
281
-
282
- ## 💼 For Enterprise
283
-
284
- Professional support for charset-normalizer is available as part of the [Tidelift
285
- Subscription][1]. Tidelift gives software development teams a single source for
286
- purchasing and maintaining their software, with professional grade assurances
287
- from the experts who know it best, while seamlessly integrating with existing
288
- tools.
289
-
290
- [1]: https://tidelift.com/subscription/pkg/pypi-charset-normalizer?utm_source=pypi-charset-normalizer&utm_medium=readme
291
-
292
- # Changelog
293
- All notable changes to charset-normalizer will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
294
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
295
-
296
- ## [3.3.2](https://github.com/Ousret/charset_normalizer/compare/3.3.1...3.3.2) (2023-10-31)
297
-
298
- ### Fixed
299
- - Unintentional memory usage regression when using large payload that match several encoding (#376)
300
- - Regression on some detection case showcased in the documentation (#371)
301
-
302
- ### Added
303
- - Noise (md) probe that identify malformed arabic representation due to the presence of letters in isolated form (credit to my wife)
304
-
305
- ## [3.3.1](https://github.com/Ousret/charset_normalizer/compare/3.3.0...3.3.1) (2023-10-22)
306
-
307
- ### Changed
308
- - Optional mypyc compilation upgraded to version 1.6.1 for Python >= 3.8
309
- - Improved the general detection reliability based on reports from the community
310
-
311
- ## [3.3.0](https://github.com/Ousret/charset_normalizer/compare/3.2.0...3.3.0) (2023-09-30)
312
-
313
- ### Added
314
- - Allow to execute the CLI (e.g. normalizer) through `python -m charset_normalizer.cli` or `python -m charset_normalizer`
315
- - Support for 9 forgotten encoding that are supported by Python but unlisted in `encoding.aliases` as they have no alias (#323)
316
-
317
- ### Removed
318
- - (internal) Redundant utils.is_ascii function and unused function is_private_use_only
319
- - (internal) charset_normalizer.assets is moved inside charset_normalizer.constant
320
-
321
- ### Changed
322
- - (internal) Unicode code blocks in constants are updated using the latest v15.0.0 definition to improve detection
323
- - Optional mypyc compilation upgraded to version 1.5.1 for Python >= 3.8
324
-
325
- ### Fixed
326
- - Unable to properly sort CharsetMatch when both chaos/noise and coherence were close due to an unreachable condition in \_\_lt\_\_ (#350)
327
-
328
- ## [3.2.0](https://github.com/Ousret/charset_normalizer/compare/3.1.0...3.2.0) (2023-06-07)
329
-
330
- ### Changed
331
- - Typehint for function `from_path` no longer enforce `PathLike` as its first argument
332
- - Minor improvement over the global detection reliability
333
-
334
- ### Added
335
- - Introduce function `is_binary` that relies on main capabilities, and optimized to detect binaries
336
- - Propagate `enable_fallback` argument throughout `from_bytes`, `from_path`, and `from_fp` that allow a deeper control over the detection (default True)
337
- - Explicit support for Python 3.12
338
-
339
- ### Fixed
340
- - Edge case detection failure where a file would contain 'very-long' camel cased word (Issue #289)
341
-
342
- ## [3.1.0](https://github.com/Ousret/charset_normalizer/compare/3.0.1...3.1.0) (2023-03-06)
343
-
344
- ### Added
345
- - Argument `should_rename_legacy` for legacy function `detect` and disregard any new arguments without errors (PR #262)
346
-
347
- ### Removed
348
- - Support for Python 3.6 (PR #260)
349
-
350
- ### Changed
351
- - Optional speedup provided by mypy/c 1.0.1
352
-
353
- ## [3.0.1](https://github.com/Ousret/charset_normalizer/compare/3.0.0...3.0.1) (2022-11-18)
354
-
355
- ### Fixed
356
- - Multi-bytes cutter/chunk generator did not always cut correctly (PR #233)
357
-
358
- ### Changed
359
- - Speedup provided by mypy/c 0.990 on Python >= 3.7
360
-
361
- ## [3.0.0](https://github.com/Ousret/charset_normalizer/compare/2.1.1...3.0.0) (2022-10-20)
362
-
363
- ### Added
364
- - Extend the capability of explain=True when cp_isolation contains at most two entries (min one), will log in details of the Mess-detector results
365
- - Support for alternative language frequency set in charset_normalizer.assets.FREQUENCIES
366
- - Add parameter `language_threshold` in `from_bytes`, `from_path` and `from_fp` to adjust the minimum expected coherence ratio
367
- - `normalizer --version` now specify if current version provide extra speedup (meaning mypyc compilation whl)
368
-
369
- ### Changed
370
- - Build with static metadata using 'build' frontend
371
- - Make the language detection stricter
372
- - Optional: Module `md.py` can be compiled using Mypyc to provide an extra speedup up to 4x faster than v2.1
373
-
374
- ### Fixed
375
- - CLI with opt --normalize fail when using full path for files
376
- - TooManyAccentuatedPlugin induce false positive on the mess detection when too few alpha character have been fed to it
377
- - Sphinx warnings when generating the documentation
378
-
379
- ### Removed
380
- - Coherence detector no longer return 'Simple English' instead return 'English'
381
- - Coherence detector no longer return 'Classical Chinese' instead return 'Chinese'
382
- - Breaking: Method `first()` and `best()` from CharsetMatch
383
- - UTF-7 will no longer appear as "detected" without a recognized SIG/mark (is unreliable/conflict with ASCII)
384
- - Breaking: Class aliases CharsetDetector, CharsetDoctor, CharsetNormalizerMatch and CharsetNormalizerMatches
385
- - Breaking: Top-level function `normalize`
386
- - Breaking: Properties `chaos_secondary_pass`, `coherence_non_latin` and `w_counter` from CharsetMatch
387
- - Support for the backport `unicodedata2`
388
-
389
- ## [3.0.0rc1](https://github.com/Ousret/charset_normalizer/compare/3.0.0b2...3.0.0rc1) (2022-10-18)
390
-
391
- ### Added
392
- - Extend the capability of explain=True when cp_isolation contains at most two entries (min one), will log in details of the Mess-detector results
393
- - Support for alternative language frequency set in charset_normalizer.assets.FREQUENCIES
394
- - Add parameter `language_threshold` in `from_bytes`, `from_path` and `from_fp` to adjust the minimum expected coherence ratio
395
-
396
- ### Changed
397
- - Build with static metadata using 'build' frontend
398
- - Make the language detection stricter
399
-
400
- ### Fixed
401
- - CLI with opt --normalize fail when using full path for files
402
- - TooManyAccentuatedPlugin induce false positive on the mess detection when too few alpha character have been fed to it
403
-
404
- ### Removed
405
- - Coherence detector no longer return 'Simple English' instead return 'English'
406
- - Coherence detector no longer return 'Classical Chinese' instead return 'Chinese'
407
-
408
- ## [3.0.0b2](https://github.com/Ousret/charset_normalizer/compare/3.0.0b1...3.0.0b2) (2022-08-21)
409
-
410
- ### Added
411
- - `normalizer --version` now specify if current version provide extra speedup (meaning mypyc compilation whl)
412
-
413
- ### Removed
414
- - Breaking: Method `first()` and `best()` from CharsetMatch
415
- - UTF-7 will no longer appear as "detected" without a recognized SIG/mark (is unreliable/conflict with ASCII)
416
-
417
- ### Fixed
418
- - Sphinx warnings when generating the documentation
419
-
420
- ## [3.0.0b1](https://github.com/Ousret/charset_normalizer/compare/2.1.0...3.0.0b1) (2022-08-15)
421
-
422
- ### Changed
423
- - Optional: Module `md.py` can be compiled using Mypyc to provide an extra speedup up to 4x faster than v2.1
424
-
425
- ### Removed
426
- - Breaking: Class aliases CharsetDetector, CharsetDoctor, CharsetNormalizerMatch and CharsetNormalizerMatches
427
- - Breaking: Top-level function `normalize`
428
- - Breaking: Properties `chaos_secondary_pass`, `coherence_non_latin` and `w_counter` from CharsetMatch
429
- - Support for the backport `unicodedata2`
430
-
431
- ## [2.1.1](https://github.com/Ousret/charset_normalizer/compare/2.1.0...2.1.1) (2022-08-19)
432
-
433
- ### Deprecated
434
- - Function `normalize` scheduled for removal in 3.0
435
-
436
- ### Changed
437
- - Removed useless call to decode in fn is_unprintable (#206)
438
-
439
- ### Fixed
440
- - Third-party library (i18n xgettext) crashing not recognizing utf_8 (PEP 263) with underscore from [@aleksandernovikov](https://github.com/aleksandernovikov) (#204)
441
-
442
- ## [2.1.0](https://github.com/Ousret/charset_normalizer/compare/2.0.12...2.1.0) (2022-06-19)
443
-
444
- ### Added
445
- - Output the Unicode table version when running the CLI with `--version` (PR #194)
446
-
447
- ### Changed
448
- - Re-use decoded buffer for single byte character sets from [@nijel](https://github.com/nijel) (PR #175)
449
- - Fixing some performance bottlenecks from [@deedy5](https://github.com/deedy5) (PR #183)
450
-
451
- ### Fixed
452
- - Workaround potential bug in cpython with Zero Width No-Break Space located in Arabic Presentation Forms-B, Unicode 1.1 not acknowledged as space (PR #175)
453
- - CLI default threshold aligned with the API threshold from [@oleksandr-kuzmenko](https://github.com/oleksandr-kuzmenko) (PR #181)
454
-
455
- ### Removed
456
- - Support for Python 3.5 (PR #192)
457
-
458
- ### Deprecated
459
- - Use of backport unicodedata from `unicodedata2` as Python is quickly catching up, scheduled for removal in 3.0 (PR #194)
460
-
461
- ## [2.0.12](https://github.com/Ousret/charset_normalizer/compare/2.0.11...2.0.12) (2022-02-12)
462
-
463
- ### Fixed
464
- - ASCII miss-detection on rare cases (PR #170)
465
-
466
- ## [2.0.11](https://github.com/Ousret/charset_normalizer/compare/2.0.10...2.0.11) (2022-01-30)
467
-
468
- ### Added
469
- - Explicit support for Python 3.11 (PR #164)
470
-
471
- ### Changed
472
- - The logging behavior have been completely reviewed, now using only TRACE and DEBUG levels (PR #163 #165)
473
-
474
- ## [2.0.10](https://github.com/Ousret/charset_normalizer/compare/2.0.9...2.0.10) (2022-01-04)
475
-
476
- ### Fixed
477
- - Fallback match entries might lead to UnicodeDecodeError for large bytes sequence (PR #154)
478
-
479
- ### Changed
480
- - Skipping the language-detection (CD) on ASCII (PR #155)
481
-
482
- ## [2.0.9](https://github.com/Ousret/charset_normalizer/compare/2.0.8...2.0.9) (2021-12-03)
483
-
484
- ### Changed
485
- - Moderating the logging impact (since 2.0.8) for specific environments (PR #147)
486
-
487
- ### Fixed
488
- - Wrong logging level applied when setting kwarg `explain` to True (PR #146)
489
-
490
- ## [2.0.8](https://github.com/Ousret/charset_normalizer/compare/2.0.7...2.0.8) (2021-11-24)
491
- ### Changed
492
- - Improvement over Vietnamese detection (PR #126)
493
- - MD improvement on trailing data and long foreign (non-pure latin) data (PR #124)
494
- - Efficiency improvements in cd/alphabet_languages from [@adbar](https://github.com/adbar) (PR #122)
495
- - call sum() without an intermediary list following PEP 289 recommendations from [@adbar](https://github.com/adbar) (PR #129)
496
- - Code style as refactored by Sourcery-AI (PR #131)
497
- - Minor adjustment on the MD around european words (PR #133)
498
- - Remove and replace SRTs from assets / tests (PR #139)
499
- - Initialize the library logger with a `NullHandler` by default from [@nmaynes](https://github.com/nmaynes) (PR #135)
500
- - Setting kwarg `explain` to True will add provisionally (bounded to function lifespan) a specific stream handler (PR #135)
501
-
502
- ### Fixed
503
- - Fix large (misleading) sequence giving UnicodeDecodeError (PR #137)
504
- - Avoid using too insignificant chunk (PR #137)
505
-
506
- ### Added
507
- - Add and expose function `set_logging_handler` to configure a specific StreamHandler from [@nmaynes](https://github.com/nmaynes) (PR #135)
508
- - Add `CHANGELOG.md` entries, format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) (PR #141)
509
-
510
- ## [2.0.7](https://github.com/Ousret/charset_normalizer/compare/2.0.6...2.0.7) (2021-10-11)
511
- ### Added
512
- - Add support for Kazakh (Cyrillic) language detection (PR #109)
513
-
514
- ### Changed
515
- - Further, improve inferring the language from a given single-byte code page (PR #112)
516
- - Vainly trying to leverage PEP263 when PEP3120 is not supported (PR #116)
517
- - Refactoring for potential performance improvements in loops from [@adbar](https://github.com/adbar) (PR #113)
518
- - Various detection improvement (MD+CD) (PR #117)
519
-
520
- ### Removed
521
- - Remove redundant logging entry about detected language(s) (PR #115)
522
-
523
- ### Fixed
524
- - Fix a minor inconsistency between Python 3.5 and other versions regarding language detection (PR #117 #102)
525
-
526
- ## [2.0.6](https://github.com/Ousret/charset_normalizer/compare/2.0.5...2.0.6) (2021-09-18)
527
- ### Fixed
528
- - Unforeseen regression with the loss of the backward-compatibility with some older minor of Python 3.5.x (PR #100)
529
- - Fix CLI crash when using --minimal output in certain cases (PR #103)
530
-
531
- ### Changed
532
- - Minor improvement to the detection efficiency (less than 1%) (PR #106 #101)
533
-
534
- ## [2.0.5](https://github.com/Ousret/charset_normalizer/compare/2.0.4...2.0.5) (2021-09-14)
535
- ### Changed
536
- - The project now comply with: flake8, mypy, isort and black to ensure a better overall quality (PR #81)
537
- - The BC-support with v1.x was improved, the old staticmethods are restored (PR #82)
538
- - The Unicode detection is slightly improved (PR #93)
539
- - Add syntax sugar \_\_bool\_\_ for results CharsetMatches list-container (PR #91)
540
-
541
- ### Removed
542
- - The project no longer raise warning on tiny content given for detection, will be simply logged as warning instead (PR #92)
543
-
544
- ### Fixed
545
- - In some rare case, the chunks extractor could cut in the middle of a multi-byte character and could mislead the mess detection (PR #95)
546
- - Some rare 'space' characters could trip up the UnprintablePlugin/Mess detection (PR #96)
547
- - The MANIFEST.in was not exhaustive (PR #78)
548
-
549
- ## [2.0.4](https://github.com/Ousret/charset_normalizer/compare/2.0.3...2.0.4) (2021-07-30)
550
- ### Fixed
551
- - The CLI no longer raise an unexpected exception when no encoding has been found (PR #70)
552
- - Fix accessing the 'alphabets' property when the payload contains surrogate characters (PR #68)
553
- - The logger could mislead (explain=True) on detected languages and the impact of one MBCS match (PR #72)
554
- - Submatch factoring could be wrong in rare edge cases (PR #72)
555
- - Multiple files given to the CLI were ignored when publishing results to STDOUT. (After the first path) (PR #72)
556
- - Fix line endings from CRLF to LF for certain project files (PR #67)
557
-
558
- ### Changed
559
- - Adjust the MD to lower the sensitivity, thus improving the global detection reliability (PR #69 #76)
560
- - Allow fallback on specified encoding if any (PR #71)
561
-
562
- ## [2.0.3](https://github.com/Ousret/charset_normalizer/compare/2.0.2...2.0.3) (2021-07-16)
563
- ### Changed
564
- - Part of the detection mechanism has been improved to be less sensitive, resulting in more accurate detection results. Especially ASCII. (PR #63)
565
- - According to the community wishes, the detection will fall back on ASCII or UTF-8 in a last-resort case. (PR #64)
566
-
567
- ## [2.0.2](https://github.com/Ousret/charset_normalizer/compare/2.0.1...2.0.2) (2021-07-15)
568
- ### Fixed
569
- - Empty/Too small JSON payload miss-detection fixed. Report from [@tseaver](https://github.com/tseaver) (PR #59)
570
-
571
- ### Changed
572
- - Don't inject unicodedata2 into sys.modules from [@akx](https://github.com/akx) (PR #57)
573
-
574
- ## [2.0.1](https://github.com/Ousret/charset_normalizer/compare/2.0.0...2.0.1) (2021-07-13)
575
- ### Fixed
576
- - Make it work where there isn't a filesystem available, dropping assets frequencies.json. Report from [@sethmlarson](https://github.com/sethmlarson). (PR #55)
577
- - Using explain=False permanently disable the verbose output in the current runtime (PR #47)
578
- - One log entry (language target preemptive) was not show in logs when using explain=True (PR #47)
579
- - Fix undesired exception (ValueError) on getitem of instance CharsetMatches (PR #52)
580
-
581
- ### Changed
582
- - Public function normalize default args values were not aligned with from_bytes (PR #53)
583
-
584
- ### Added
585
- - You may now use charset aliases in cp_isolation and cp_exclusion arguments (PR #47)
586
-
587
- ## [2.0.0](https://github.com/Ousret/charset_normalizer/compare/1.4.1...2.0.0) (2021-07-02)
588
- ### Changed
589
- - 4x to 5 times faster than the previous 1.4.0 release. At least 2x faster than Chardet.
590
- - Accent has been made on UTF-8 detection, should perform rather instantaneous.
591
- - The backward compatibility with Chardet has been greatly improved. The legacy detect function returns an identical charset name whenever possible.
592
- - The detection mechanism has been slightly improved, now Turkish content is detected correctly (most of the time)
593
- - The program has been rewritten to ease the readability and maintainability. (+Using static typing)+
594
- - utf_7 detection has been reinstated.
595
-
596
- ### Removed
597
- - This package no longer require anything when used with Python 3.5 (Dropped cached_property)
598
- - Removed support for these languages: Catalan, Esperanto, Kazakh, Baque, Volapük, Azeri, Galician, Nynorsk, Macedonian, and Serbocroatian.
599
- - The exception hook on UnicodeDecodeError has been removed.
600
-
601
- ### Deprecated
602
- - Methods coherence_non_latin, w_counter, chaos_secondary_pass of the class CharsetMatch are now deprecated and scheduled for removal in v3.0
603
-
604
- ### Fixed
605
- - The CLI output used the relative path of the file(s). Should be absolute.
606
-
607
- ## [1.4.1](https://github.com/Ousret/charset_normalizer/compare/1.4.0...1.4.1) (2021-05-28)
608
- ### Fixed
609
- - Logger configuration/usage no longer conflict with others (PR #44)
610
-
611
- ## [1.4.0](https://github.com/Ousret/charset_normalizer/compare/1.3.9...1.4.0) (2021-05-21)
612
- ### Removed
613
- - Using standard logging instead of using the package loguru.
614
- - Dropping nose test framework in favor of the maintained pytest.
615
- - Choose to not use dragonmapper package to help with gibberish Chinese/CJK text.
616
- - Require cached_property only for Python 3.5 due to constraint. Dropping for every other interpreter version.
617
- - Stop support for UTF-7 that does not contain a SIG.
618
- - Dropping PrettyTable, replaced with pure JSON output in CLI.
619
-
620
- ### Fixed
621
- - BOM marker in a CharsetNormalizerMatch instance could be False in rare cases even if obviously present. Due to the sub-match factoring process.
622
- - Not searching properly for the BOM when trying utf32/16 parent codec.
623
-
624
- ### Changed
625
- - Improving the package final size by compressing frequencies.json.
626
- - Huge improvement over the larges payload.
627
-
628
- ### Added
629
- - CLI now produces JSON consumable output.
630
- - Return ASCII if given sequences fit. Given reasonable confidence.
631
-
632
- ## [1.3.9](https://github.com/Ousret/charset_normalizer/compare/1.3.8...1.3.9) (2021-05-13)
633
-
634
- ### Fixed
635
- - In some very rare cases, you may end up getting encode/decode errors due to a bad bytes payload (PR #40)
636
-
637
- ## [1.3.8](https://github.com/Ousret/charset_normalizer/compare/1.3.7...1.3.8) (2021-05-12)
638
-
639
- ### Fixed
640
- - Empty given payload for detection may cause an exception if trying to access the `alphabets` property. (PR #39)
641
-
642
- ## [1.3.7](https://github.com/Ousret/charset_normalizer/compare/1.3.6...1.3.7) (2021-05-12)
643
-
644
- ### Fixed
645
- - The legacy detect function should return UTF-8-SIG if sig is present in the payload. (PR #38)
646
-
647
- ## [1.3.6](https://github.com/Ousret/charset_normalizer/compare/1.3.5...1.3.6) (2021-02-09)
648
-
649
- ### Changed
650
- - Amend the previous release to allow prettytable 2.0 (PR #35)
651
-
652
- ## [1.3.5](https://github.com/Ousret/charset_normalizer/compare/1.3.4...1.3.5) (2021-02-08)
653
-
654
- ### Fixed
655
- - Fix error while using the package with a python pre-release interpreter (PR #33)
656
-
657
- ### Changed
658
- - Dependencies refactoring, constraints revised.
659
-
660
- ### Added
661
- - Add python 3.9 and 3.10 to the supported interpreters
662
-
663
- MIT License
664
-
665
- Copyright (c) 2019 TAHRI Ahmed R.
666
-
667
- Permission is hereby granted, free of charge, to any person obtaining a copy
668
- of this software and associated documentation files (the "Software"), to deal
669
- in the Software without restriction, including without limitation the rights
670
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
671
- copies of the Software, and to permit persons to whom the Software is
672
- furnished to do so, subject to the following conditions:
673
-
674
- The above copyright notice and this permission notice shall be included in all
675
- copies or substantial portions of the Software.
676
-
677
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
678
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
679
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
680
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
681
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
682
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
683
- SOFTWARE.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.env/lib/python3.11/site-packages/charset_normalizer-3.3.2.dist-info/RECORD DELETED
@@ -1,35 +0,0 @@
1
- ../../../bin/normalizer,sha256=i4E76ggkuxh2AAR4Am4FY3I1S0aH5JJ87XRkH7RYTzU,284
2
- charset_normalizer-3.3.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
3
- charset_normalizer-3.3.2.dist-info/LICENSE,sha256=6zGgxaT7Cbik4yBV0lweX5w1iidS_vPNcgIT0cz-4kE,1070
4
- charset_normalizer-3.3.2.dist-info/METADATA,sha256=cfLhl5A6SI-F0oclm8w8ux9wshL1nipdeCdVnYb4AaA,33550
5
- charset_normalizer-3.3.2.dist-info/RECORD,,
6
- charset_normalizer-3.3.2.dist-info/WHEEL,sha256=eaDTbMedWofVq8IZjew9qeAkoA5Sw2MOU2ppdIRr1Jg,110
7
- charset_normalizer-3.3.2.dist-info/entry_points.txt,sha256=ADSTKrkXZ3hhdOVFi6DcUEHQRS0xfxDIE_pEz4wLIXA,65
8
- charset_normalizer-3.3.2.dist-info/top_level.txt,sha256=7ASyzePr8_xuZWJsnqJjIBtyV8vhEo0wBCv1MPRRi3Q,19
9
- charset_normalizer/__init__.py,sha256=UzI3xC8PhmcLRMzSgPb6minTmRq0kWznnCBJ8ZCc2XI,1577
10
- charset_normalizer/__main__.py,sha256=JxY8bleaENOFlLRb9HfoeZCzAMnn2A1oGR5Xm2eyqg0,73
11
- charset_normalizer/__pycache__/__init__.cpython-311.pyc,,
12
- charset_normalizer/__pycache__/__main__.cpython-311.pyc,,
13
- charset_normalizer/__pycache__/api.cpython-311.pyc,,
14
- charset_normalizer/__pycache__/cd.cpython-311.pyc,,
15
- charset_normalizer/__pycache__/constant.cpython-311.pyc,,
16
- charset_normalizer/__pycache__/legacy.cpython-311.pyc,,
17
- charset_normalizer/__pycache__/md.cpython-311.pyc,,
18
- charset_normalizer/__pycache__/models.cpython-311.pyc,,
19
- charset_normalizer/__pycache__/utils.cpython-311.pyc,,
20
- charset_normalizer/__pycache__/version.cpython-311.pyc,,
21
- charset_normalizer/api.py,sha256=WOlWjy6wT8SeMYFpaGbXZFN1TMXa-s8vZYfkL4G29iQ,21097
22
- charset_normalizer/cd.py,sha256=xwZliZcTQFA3jU0c00PRiu9MNxXTFxQkFLWmMW24ZzI,12560
23
- charset_normalizer/cli/__init__.py,sha256=D5ERp8P62llm2FuoMzydZ7d9rs8cvvLXqE-1_6oViPc,100
24
- charset_normalizer/cli/__main__.py,sha256=2F-xURZJzo063Ye-2RLJ2wcmURpbKeAzKwpiws65dAs,9744
25
- charset_normalizer/cli/__pycache__/__init__.cpython-311.pyc,,
26
- charset_normalizer/cli/__pycache__/__main__.cpython-311.pyc,,
27
- charset_normalizer/constant.py,sha256=p0IsOVcEbPWYPOdWhnhRbjK1YVBy6fs05C5vKC-zoxU,40481
28
- charset_normalizer/legacy.py,sha256=T-QuVMsMeDiQEk8WSszMrzVJg_14AMeSkmHdRYhdl1k,2071
29
- charset_normalizer/md.cpython-311-darwin.so,sha256=zbs-p3GrSygP9-4v4GVAUcyRpreXASFbQqgK9rvFoKw,50117
30
- charset_normalizer/md.py,sha256=NkSuVLK13_a8c7BxZ4cGIQ5vOtGIWOdh22WZEvjp-7U,19624
31
- charset_normalizer/md__mypyc.cpython-311-darwin.so,sha256=5u-KvFhpxi_WDpF0bB0tfYS2z7PzQ08aO8DAOMiMAXI,232636
32
- charset_normalizer/models.py,sha256=I5i0s4aKCCgLPY2tUY3pwkgFA-BUbbNxQ7hVkVTt62s,11624
33
- charset_normalizer/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
- charset_normalizer/utils.py,sha256=teiosMqzKjXyAHXnGdjSBOgnBZwx-SkBbCLrx0UXy8M,11894
35
- charset_normalizer/version.py,sha256=iHKUfHD3kDRSyrh_BN2ojh43TA5-UZQjvbVIEFfpHDs,79
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.env/lib/python3.11/site-packages/charset_normalizer-3.3.2.dist-info/WHEEL DELETED
@@ -1,5 +0,0 @@
1
- Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.2)
3
- Root-Is-Purelib: false
4
- Tag: cp311-cp311-macosx_11_0_arm64
5
-
 
 
 
 
 
 
.env/lib/python3.11/site-packages/charset_normalizer-3.3.2.dist-info/entry_points.txt DELETED
@@ -1,2 +0,0 @@
1
- [console_scripts]
2
- normalizer = charset_normalizer.cli:cli_detect
 
 
 
.env/lib/python3.11/site-packages/charset_normalizer-3.3.2.dist-info/top_level.txt DELETED
@@ -1 +0,0 @@
1
- charset_normalizer
 
 
.env/lib/python3.11/site-packages/charset_normalizer/__init__.py DELETED
@@ -1,46 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- """
3
- Charset-Normalizer
4
- ~~~~~~~~~~~~~~
5
- The Real First Universal Charset Detector.
6
- A library that helps you read text from an unknown charset encoding.
7
- Motivated by chardet, This package is trying to resolve the issue by taking a new approach.
8
- All IANA character set names for which the Python core library provides codecs are supported.
9
-
10
- Basic usage:
11
- >>> from charset_normalizer import from_bytes
12
- >>> results = from_bytes('Bсеки човек има право на образование. Oбразованието!'.encode('utf_8'))
13
- >>> best_guess = results.best()
14
- >>> str(best_guess)
15
- 'Bсеки човек има право на образование. Oбразованието!'
16
-
17
- Others methods and usages are available - see the full documentation
18
- at <https://github.com/Ousret/charset_normalizer>.
19
- :copyright: (c) 2021 by Ahmed TAHRI
20
- :license: MIT, see LICENSE for more details.
21
- """
22
- import logging
23
-
24
- from .api import from_bytes, from_fp, from_path, is_binary
25
- from .legacy import detect
26
- from .models import CharsetMatch, CharsetMatches
27
- from .utils import set_logging_handler
28
- from .version import VERSION, __version__
29
-
30
- __all__ = (
31
- "from_fp",
32
- "from_path",
33
- "from_bytes",
34
- "is_binary",
35
- "detect",
36
- "CharsetMatch",
37
- "CharsetMatches",
38
- "__version__",
39
- "VERSION",
40
- "set_logging_handler",
41
- )
42
-
43
- # Attach a NullHandler to the top level logger by default
44
- # https://docs.python.org/3.3/howto/logging.html#configuring-logging-for-a-library
45
-
46
- logging.getLogger("charset_normalizer").addHandler(logging.NullHandler())
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.env/lib/python3.11/site-packages/charset_normalizer/__main__.py DELETED
@@ -1,4 +0,0 @@
1
- from .cli import cli_detect
2
-
3
- if __name__ == "__main__":
4
- cli_detect()
 
 
 
 
 
.env/lib/python3.11/site-packages/charset_normalizer/__pycache__/__init__.cpython-311.pyc DELETED
Binary file (1.87 kB)