shpotes commited on
Commit
d312112
1 Parent(s): 3f58cee

remove venv

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitignore +2 -1
  2. .venv/bin/Activate.ps1 +0 -241
  3. .venv/bin/activate +0 -66
  4. .venv/bin/activate.csh +0 -25
  5. .venv/bin/activate.fish +0 -64
  6. .venv/bin/convert-caffe2-to-onnx +0 -8
  7. .venv/bin/convert-onnx-to-caffe2 +0 -8
  8. .venv/bin/datasets-cli +0 -33
  9. .venv/bin/easy_install +0 -8
  10. .venv/bin/easy_install-3.9 +0 -8
  11. .venv/bin/f2py +0 -8
  12. .venv/bin/f2py3 +0 -8
  13. .venv/bin/f2py3.9 +0 -8
  14. .venv/bin/get_objgraph +0 -54
  15. .venv/bin/huggingface-cli +0 -8
  16. .venv/bin/hypothesis +0 -8
  17. .venv/bin/normalizer +0 -8
  18. .venv/bin/numba +0 -8
  19. .venv/bin/phonemize +0 -8
  20. .venv/bin/pip +0 -8
  21. .venv/bin/pip3 +0 -8
  22. .venv/bin/pip3.9 +0 -8
  23. .venv/bin/plasma_store +0 -8
  24. .venv/bin/pycc +0 -3
  25. .venv/bin/python +0 -1
  26. .venv/bin/python3 +0 -1
  27. .venv/bin/python3.9 +0 -1
  28. .venv/bin/sacremoses +0 -8
  29. .venv/bin/segments +0 -8
  30. .venv/bin/tabulate +0 -8
  31. .venv/bin/torchrun +0 -8
  32. .venv/bin/tqdm +0 -8
  33. .venv/bin/transformers-cli +0 -8
  34. .venv/bin/undill +0 -22
  35. .venv/lib/python3.9/site-packages/Levenshtein/StringMatcher.py +0 -69
  36. .venv/lib/python3.9/site-packages/Levenshtein/__init__.py +0 -4
  37. .venv/lib/python3.9/site-packages/Levenshtein/__pycache__/StringMatcher.cpython-39.pyc +0 -0
  38. .venv/lib/python3.9/site-packages/Levenshtein/__pycache__/__init__.cpython-39.pyc +0 -0
  39. .venv/lib/python3.9/site-packages/Levenshtein/_levenshtein.c +0 -0
  40. .venv/lib/python3.9/site-packages/Levenshtein/_levenshtein.cpython-39-x86_64-linux-gnu.so +0 -0
  41. .venv/lib/python3.9/site-packages/Levenshtein/_levenshtein.h +0 -394
  42. .venv/lib/python3.9/site-packages/PyYAML-6.0.dist-info/INSTALLER +0 -1
  43. .venv/lib/python3.9/site-packages/PyYAML-6.0.dist-info/LICENSE +0 -20
  44. .venv/lib/python3.9/site-packages/PyYAML-6.0.dist-info/METADATA +0 -46
  45. .venv/lib/python3.9/site-packages/PyYAML-6.0.dist-info/RECORD +0 -43
  46. .venv/lib/python3.9/site-packages/PyYAML-6.0.dist-info/WHEEL +0 -8
  47. .venv/lib/python3.9/site-packages/PyYAML-6.0.dist-info/top_level.txt +0 -2
  48. .venv/lib/python3.9/site-packages/SoundFile-0.10.3.post1.dist-info/INSTALLER +0 -1
  49. .venv/lib/python3.9/site-packages/SoundFile-0.10.3.post1.dist-info/LICENSE +0 -29
  50. .venv/lib/python3.9/site-packages/SoundFile-0.10.3.post1.dist-info/METADATA +0 -310
.gitignore CHANGED
@@ -1 +1,2 @@
1
- checkpoint-*/
 
 
1
+ checkpoint-*/
2
+ .venv
.venv/bin/Activate.ps1 DELETED
@@ -1,241 +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 the _PYTHON_VENV_PROMPT_PREFIX altogether:
100
- if (Get-Variable -Name "_PYTHON_VENV_PROMPT_PREFIX" -ErrorAction SilentlyContinue) {
101
- Remove-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Scope Global -Force
102
- }
103
-
104
- # Leave deactivate function in the global namespace if requested:
105
- if (-not $NonDestructive) {
106
- Remove-Item -Path function:deactivate
107
- }
108
- }
109
-
110
- <#
111
- .Description
112
- Get-PyVenvConfig parses the values from the pyvenv.cfg file located in the
113
- given folder, and returns them in a map.
114
-
115
- For each line in the pyvenv.cfg file, if that line can be parsed into exactly
116
- two strings separated by `=` (with any amount of whitespace surrounding the =)
117
- then it is considered a `key = value` line. The left hand string is the key,
118
- the right hand is the value.
119
-
120
- If the value starts with a `'` or a `"` then the first and last character is
121
- stripped from the value before being captured.
122
-
123
- .Parameter ConfigDir
124
- Path to the directory that contains the `pyvenv.cfg` file.
125
- #>
126
- function Get-PyVenvConfig(
127
- [String]
128
- $ConfigDir
129
- ) {
130
- Write-Verbose "Given ConfigDir=$ConfigDir, obtain values in pyvenv.cfg"
131
-
132
- # Ensure the file exists, and issue a warning if it doesn't (but still allow the function to continue).
133
- $pyvenvConfigPath = Join-Path -Resolve -Path $ConfigDir -ChildPath 'pyvenv.cfg' -ErrorAction Continue
134
-
135
- # An empty map will be returned if no config file is found.
136
- $pyvenvConfig = @{ }
137
-
138
- if ($pyvenvConfigPath) {
139
-
140
- Write-Verbose "File exists, parse `key = value` lines"
141
- $pyvenvConfigContent = Get-Content -Path $pyvenvConfigPath
142
-
143
- $pyvenvConfigContent | ForEach-Object {
144
- $keyval = $PSItem -split "\s*=\s*", 2
145
- if ($keyval[0] -and $keyval[1]) {
146
- $val = $keyval[1]
147
-
148
- # Remove extraneous quotations around a string value.
149
- if ("'""".Contains($val.Substring(0, 1))) {
150
- $val = $val.Substring(1, $val.Length - 2)
151
- }
152
-
153
- $pyvenvConfig[$keyval[0]] = $val
154
- Write-Verbose "Adding Key: '$($keyval[0])'='$val'"
155
- }
156
- }
157
- }
158
- return $pyvenvConfig
159
- }
160
-
161
-
162
- <# Begin Activate script --------------------------------------------------- #>
163
-
164
- # Determine the containing directory of this script
165
- $VenvExecPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
166
- $VenvExecDir = Get-Item -Path $VenvExecPath
167
-
168
- Write-Verbose "Activation script is located in path: '$VenvExecPath'"
169
- Write-Verbose "VenvExecDir Fullname: '$($VenvExecDir.FullName)"
170
- Write-Verbose "VenvExecDir Name: '$($VenvExecDir.Name)"
171
-
172
- # Set values required in priority: CmdLine, ConfigFile, Default
173
- # First, get the location of the virtual environment, it might not be
174
- # VenvExecDir if specified on the command line.
175
- if ($VenvDir) {
176
- Write-Verbose "VenvDir given as parameter, using '$VenvDir' to determine values"
177
- }
178
- else {
179
- Write-Verbose "VenvDir not given as a parameter, using parent directory name as VenvDir."
180
- $VenvDir = $VenvExecDir.Parent.FullName.TrimEnd("\\/")
181
- Write-Verbose "VenvDir=$VenvDir"
182
- }
183
-
184
- # Next, read the `pyvenv.cfg` file to determine any required value such
185
- # as `prompt`.
186
- $pyvenvCfg = Get-PyVenvConfig -ConfigDir $VenvDir
187
-
188
- # Next, set the prompt from the command line, or the config file, or
189
- # just use the name of the virtual environment folder.
190
- if ($Prompt) {
191
- Write-Verbose "Prompt specified as argument, using '$Prompt'"
192
- }
193
- else {
194
- Write-Verbose "Prompt not specified as argument to script, checking pyvenv.cfg value"
195
- if ($pyvenvCfg -and $pyvenvCfg['prompt']) {
196
- Write-Verbose " Setting based on value in pyvenv.cfg='$($pyvenvCfg['prompt'])'"
197
- $Prompt = $pyvenvCfg['prompt'];
198
- }
199
- else {
200
- Write-Verbose " Setting prompt based on parent's directory's name. (Is the directory name passed to venv module when creating the virutal environment)"
201
- Write-Verbose " Got leaf-name of $VenvDir='$(Split-Path -Path $venvDir -Leaf)'"
202
- $Prompt = Split-Path -Path $venvDir -Leaf
203
- }
204
- }
205
-
206
- Write-Verbose "Prompt = '$Prompt'"
207
- Write-Verbose "VenvDir='$VenvDir'"
208
-
209
- # Deactivate any currently active virtual environment, but leave the
210
- # deactivate function in place.
211
- deactivate -nondestructive
212
-
213
- # Now set the environment variable VIRTUAL_ENV, used by many tools to determine
214
- # that there is an activated venv.
215
- $env:VIRTUAL_ENV = $VenvDir
216
-
217
- if (-not $Env:VIRTUAL_ENV_DISABLE_PROMPT) {
218
-
219
- Write-Verbose "Setting prompt to '$Prompt'"
220
-
221
- # Set the prompt to include the env name
222
- # Make sure _OLD_VIRTUAL_PROMPT is global
223
- function global:_OLD_VIRTUAL_PROMPT { "" }
224
- Copy-Item -Path function:prompt -Destination function:_OLD_VIRTUAL_PROMPT
225
- New-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Description "Python virtual environment prompt prefix" -Scope Global -Option ReadOnly -Visibility Public -Value $Prompt
226
-
227
- function global:prompt {
228
- Write-Host -NoNewline -ForegroundColor Green "($_PYTHON_VENV_PROMPT_PREFIX) "
229
- _OLD_VIRTUAL_PROMPT
230
- }
231
- }
232
-
233
- # Clear PYTHONHOME
234
- if (Test-Path -Path Env:PYTHONHOME) {
235
- Copy-Item -Path Env:PYTHONHOME -Destination Env:_OLD_VIRTUAL_PYTHONHOME
236
- Remove-Item -Path Env:PYTHONHOME
237
- }
238
-
239
- # Add the venv to the PATH
240
- Copy-Item -Path Env:PATH -Destination Env:_OLD_VIRTUAL_PATH
241
- $Env:PATH = "$VenvExecDir$([System.IO.Path]::PathSeparator)$Env:PATH"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/bin/activate DELETED
@@ -1,66 +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
- if [ ! "${1:-}" = "nondestructive" ] ; then
32
- # Self destruct!
33
- unset -f deactivate
34
- fi
35
- }
36
-
37
- # unset irrelevant variables
38
- deactivate nondestructive
39
-
40
- VIRTUAL_ENV="/home/sagrilaft/Project/audio/xls-r-et/.venv"
41
- export VIRTUAL_ENV
42
-
43
- _OLD_VIRTUAL_PATH="$PATH"
44
- PATH="$VIRTUAL_ENV/bin:$PATH"
45
- export PATH
46
-
47
- # unset PYTHONHOME if set
48
- # this will fail if PYTHONHOME is set to the empty string (which is bad anyway)
49
- # could use `if (set -u; : $PYTHONHOME) ;` in bash
50
- if [ -n "${PYTHONHOME:-}" ] ; then
51
- _OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}"
52
- unset PYTHONHOME
53
- fi
54
-
55
- if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then
56
- _OLD_VIRTUAL_PS1="${PS1:-}"
57
- PS1="(.venv) ${PS1:-}"
58
- export PS1
59
- fi
60
-
61
- # This should detect bash and zsh, which have a hash command that must
62
- # be called to get it to forget past commands. Without forgetting
63
- # past commands the $PATH changes we made may not be respected
64
- if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
65
- hash -r 2> /dev/null
66
- fi
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/bin/activate.csh DELETED
@@ -1,25 +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; test "\!:*" != "nondestructive" && unalias deactivate'
7
-
8
- # Unset irrelevant variables.
9
- deactivate nondestructive
10
-
11
- setenv VIRTUAL_ENV "/home/sagrilaft/Project/audio/xls-r-et/.venv"
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 = "(.venv) $prompt"
21
- endif
22
-
23
- alias pydoc python -m pydoc
24
-
25
- rehash
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/bin/activate.fish DELETED
@@ -1,64 +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
- functions -e fish_prompt
17
- set -e _OLD_FISH_PROMPT_OVERRIDE
18
- functions -c _old_fish_prompt fish_prompt
19
- functions -e _old_fish_prompt
20
- end
21
-
22
- set -e VIRTUAL_ENV
23
- if test "$argv[1]" != "nondestructive"
24
- # Self-destruct!
25
- functions -e deactivate
26
- end
27
- end
28
-
29
- # Unset irrelevant variables.
30
- deactivate nondestructive
31
-
32
- set -gx VIRTUAL_ENV "/home/sagrilaft/Project/audio/xls-r-et/.venv"
33
-
34
- set -gx _OLD_VIRTUAL_PATH $PATH
35
- set -gx PATH "$VIRTUAL_ENV/bin" $PATH
36
-
37
- # Unset PYTHONHOME if set.
38
- if set -q PYTHONHOME
39
- set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME
40
- set -e PYTHONHOME
41
- end
42
-
43
- if test -z "$VIRTUAL_ENV_DISABLE_PROMPT"
44
- # fish uses a function instead of an env var to generate the prompt.
45
-
46
- # Save the current fish_prompt function as the function _old_fish_prompt.
47
- functions -c fish_prompt _old_fish_prompt
48
-
49
- # With the original prompt function renamed, we can override with our own.
50
- function fish_prompt
51
- # Save the return status of the last command.
52
- set -l old_status $status
53
-
54
- # Output the venv prompt; color taken from the blue of the Python logo.
55
- printf "%s%s%s" (set_color 4B8BBE) "(.venv) " (set_color normal)
56
-
57
- # Restore the return status of the previous command.
58
- echo "exit $old_status" | .
59
- # Output the original/"old" prompt.
60
- _old_fish_prompt
61
- end
62
-
63
- set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV"
64
- end
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/bin/convert-caffe2-to-onnx DELETED
@@ -1,8 +0,0 @@
1
- #!/home/sagrilaft/Project/audio/xls-r-et/.venv/bin/python3.9
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from caffe2.python.onnx.bin.conversion import caffe2_to_onnx
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(caffe2_to_onnx())
 
 
 
 
 
 
 
 
 
.venv/bin/convert-onnx-to-caffe2 DELETED
@@ -1,8 +0,0 @@
1
- #!/home/sagrilaft/Project/audio/xls-r-et/.venv/bin/python3.9
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from caffe2.python.onnx.bin.conversion import onnx_to_caffe2
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(onnx_to_caffe2())
 
 
 
 
 
 
 
 
 
.venv/bin/datasets-cli DELETED
@@ -1,33 +0,0 @@
1
- #!/home/sagrilaft/Project/audio/xls-r-et/.venv/bin/python3.9
2
- # EASY-INSTALL-ENTRY-SCRIPT: 'datasets==1.18.1.dev0','console_scripts','datasets-cli'
3
- import re
4
- import sys
5
-
6
- # for compatibility with easy_install; see #2198
7
- __requires__ = 'datasets==1.18.1.dev0'
8
-
9
- try:
10
- from importlib.metadata import distribution
11
- except ImportError:
12
- try:
13
- from importlib_metadata import distribution
14
- except ImportError:
15
- from pkg_resources import load_entry_point
16
-
17
-
18
- def importlib_load_entry_point(spec, group, name):
19
- dist_name, _, _ = spec.partition('==')
20
- matches = (
21
- entry_point
22
- for entry_point in distribution(dist_name).entry_points
23
- if entry_point.group == group and entry_point.name == name
24
- )
25
- return next(matches).load()
26
-
27
-
28
- globals().setdefault('load_entry_point', importlib_load_entry_point)
29
-
30
-
31
- if __name__ == '__main__':
32
- sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
33
- sys.exit(load_entry_point('datasets==1.18.1.dev0', 'console_scripts', 'datasets-cli')())
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/bin/easy_install DELETED
@@ -1,8 +0,0 @@
1
- #!/home/sagrilaft/Project/audio/xls-r-et/.venv/bin/python3.9
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from setuptools.command.easy_install import main
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(main())
 
 
 
 
 
 
 
 
 
.venv/bin/easy_install-3.9 DELETED
@@ -1,8 +0,0 @@
1
- #!/home/sagrilaft/Project/audio/xls-r-et/.venv/bin/python3.9
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from setuptools.command.easy_install import main
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(main())
 
 
 
 
 
 
 
 
 
.venv/bin/f2py DELETED
@@ -1,8 +0,0 @@
1
- #!/home/sagrilaft/Project/audio/xls-r-et/.venv/bin/python3.9
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from numpy.f2py.f2py2e import main
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(main())
 
 
 
 
 
 
 
 
 
.venv/bin/f2py3 DELETED
@@ -1,8 +0,0 @@
1
- #!/home/sagrilaft/Project/audio/xls-r-et/.venv/bin/python3.9
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from numpy.f2py.f2py2e import main
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(main())
 
 
 
 
 
 
 
 
 
.venv/bin/f2py3.9 DELETED
@@ -1,8 +0,0 @@
1
- #!/home/sagrilaft/Project/audio/xls-r-et/.venv/bin/python3.9
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from numpy.f2py.f2py2e import main
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(main())
 
 
 
 
 
 
 
 
 
.venv/bin/get_objgraph DELETED
@@ -1,54 +0,0 @@
1
- #!/home/sagrilaft/Project/audio/xls-r-et/.venv/bin/python3.9
2
- #
3
- # Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
4
- # Copyright (c) 2008-2016 California Institute of Technology.
5
- # Copyright (c) 2016-2021 The Uncertainty Quantification Foundation.
6
- # License: 3-clause BSD. The full license text is available at:
7
- # - https://github.com/uqfoundation/dill/blob/master/LICENSE
8
- """
9
- display the reference paths for objects in ``dill.types`` or a .pkl file
10
-
11
- Notes:
12
- the generated image is useful in showing the pointer references in
13
- objects that are or can be pickled. Any object in ``dill.objects``
14
- listed in ``dill.load_types(picklable=True, unpicklable=True)`` works.
15
-
16
- Examples::
17
-
18
- $ get_objgraph FrameType
19
- Image generated as FrameType.png
20
- """
21
-
22
- import dill as pickle
23
- #pickle.debug.trace(True)
24
- #import pickle
25
-
26
- # get all objects for testing
27
- from dill import load_types
28
- load_types(pickleable=True,unpickleable=True)
29
- from dill import objects
30
-
31
- if __name__ == "__main__":
32
- import sys
33
- if len(sys.argv) != 2:
34
- print ("Please provide exactly one file or type name (e.g. 'IntType')")
35
- msg = "\n"
36
- for objtype in list(objects.keys())[:40]:
37
- msg += objtype + ', '
38
- print (msg + "...")
39
- else:
40
- objtype = str(sys.argv[-1])
41
- try:
42
- obj = objects[objtype]
43
- except KeyError:
44
- obj = pickle.load(open(objtype,'rb'))
45
- import os
46
- objtype = os.path.splitext(objtype)[0]
47
- try:
48
- import objgraph
49
- objgraph.show_refs(obj, filename=objtype+'.png')
50
- except ImportError:
51
- print ("Please install 'objgraph' to view object graphs")
52
-
53
-
54
- # EOF
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/bin/huggingface-cli DELETED
@@ -1,8 +0,0 @@
1
- #!/home/sagrilaft/Project/audio/xls-r-et/.venv/bin/python3.9
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())
 
 
 
 
 
 
 
 
 
.venv/bin/hypothesis DELETED
@@ -1,8 +0,0 @@
1
- #!/home/sagrilaft/Project/audio/xls-r-et/.venv/bin/python3.9
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from hypothesis.extra.cli import main
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(main())
 
 
 
 
 
 
 
 
 
.venv/bin/normalizer DELETED
@@ -1,8 +0,0 @@
1
- #!/home/sagrilaft/Project/audio/xls-r-et/.venv/bin/python3.9
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from charset_normalizer.cli.normalizer 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())
 
 
 
 
 
 
 
 
 
.venv/bin/numba DELETED
@@ -1,8 +0,0 @@
1
- #!/home/sagrilaft/Project/audio/xls-r-et/.venv/bin/python3.9
2
- # -*- coding: UTF-8 -*-
3
- from __future__ import print_function, division, absolute_import
4
-
5
- from numba.misc.numba_entry import main
6
-
7
- if __name__ == "__main__":
8
- main()
 
 
 
 
 
 
 
 
 
.venv/bin/phonemize DELETED
@@ -1,8 +0,0 @@
1
- #!/home/sagrilaft/Project/audio/xls-r-et/.venv/bin/python3.9
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from phonemizer.main import main
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(main())
 
 
 
 
 
 
 
 
 
.venv/bin/pip DELETED
@@ -1,8 +0,0 @@
1
- #!/home/sagrilaft/Project/audio/xls-r-et/.venv/bin/python3.9
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())
 
 
 
 
 
 
 
 
 
.venv/bin/pip3 DELETED
@@ -1,8 +0,0 @@
1
- #!/home/sagrilaft/Project/audio/xls-r-et/.venv/bin/python3.9
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())
 
 
 
 
 
 
 
 
 
.venv/bin/pip3.9 DELETED
@@ -1,8 +0,0 @@
1
- #!/home/sagrilaft/Project/audio/xls-r-et/.venv/bin/python3.9
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())
 
 
 
 
 
 
 
 
 
.venv/bin/plasma_store DELETED
@@ -1,8 +0,0 @@
1
- #!/home/sagrilaft/Project/audio/xls-r-et/.venv/bin/python3.9
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from pyarrow import _plasma_store_entry_point
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(_plasma_store_entry_point())
 
 
 
 
 
 
 
 
 
.venv/bin/pycc DELETED
@@ -1,3 +0,0 @@
1
- #!/home/sagrilaft/Project/audio/xls-r-et/.venv/bin/python3.9
2
- from numba.pycc import main
3
- main()
 
 
 
 
.venv/bin/python DELETED
@@ -1 +0,0 @@
1
- python3.9
 
 
.venv/bin/python3 DELETED
@@ -1 +0,0 @@
1
- python3.9
 
 
.venv/bin/python3.9 DELETED
@@ -1 +0,0 @@
1
- /usr/bin/python3.9
 
 
.venv/bin/sacremoses DELETED
@@ -1,8 +0,0 @@
1
- #!/home/sagrilaft/Project/audio/xls-r-et/.venv/bin/python3.9
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from sacremoses.cli import cli
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(cli())
 
 
 
 
 
 
 
 
 
.venv/bin/segments DELETED
@@ -1,8 +0,0 @@
1
- #!/home/sagrilaft/Project/audio/xls-r-et/.venv/bin/python3.9
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from segments.__main__ import main
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(main())
 
 
 
 
 
 
 
 
 
.venv/bin/tabulate DELETED
@@ -1,8 +0,0 @@
1
- #!/home/sagrilaft/Project/audio/xls-r-et/.venv/bin/python3.9
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from tabulate import _main
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(_main())
 
 
 
 
 
 
 
 
 
.venv/bin/torchrun DELETED
@@ -1,8 +0,0 @@
1
- #!/home/sagrilaft/Project/audio/xls-r-et/.venv/bin/python3.9
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from torch.distributed.run import main
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(main())
 
 
 
 
 
 
 
 
 
.venv/bin/tqdm DELETED
@@ -1,8 +0,0 @@
1
- #!/home/sagrilaft/Project/audio/xls-r-et/.venv/bin/python3.9
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())
 
 
 
 
 
 
 
 
 
.venv/bin/transformers-cli DELETED
@@ -1,8 +0,0 @@
1
- #!/home/sagrilaft/Project/audio/xls-r-et/.venv/bin/python3.9
2
- # -*- coding: utf-8 -*-
3
- import re
4
- import sys
5
- from transformers.commands.transformers_cli import main
6
- if __name__ == '__main__':
7
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
8
- sys.exit(main())
 
 
 
 
 
 
 
 
 
.venv/bin/undill DELETED
@@ -1,22 +0,0 @@
1
- #!/home/sagrilaft/Project/audio/xls-r-et/.venv/bin/python3.9
2
- #
3
- # Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
4
- # Copyright (c) 2008-2016 California Institute of Technology.
5
- # Copyright (c) 2016-2021 The Uncertainty Quantification Foundation.
6
- # License: 3-clause BSD. The full license text is available at:
7
- # - https://github.com/uqfoundation/dill/blob/master/LICENSE
8
- """
9
- unpickle the contents of a pickled object file
10
-
11
- Examples::
12
-
13
- $ undill hello.pkl
14
- ['hello', 'world']
15
- """
16
-
17
- if __name__ == '__main__':
18
- import sys
19
- import dill
20
- for file in sys.argv[1:]:
21
- print (dill.load(open(file,'rb')))
22
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.9/site-packages/Levenshtein/StringMatcher.py DELETED
@@ -1,69 +0,0 @@
1
- from Levenshtein import *
2
- from warnings import warn
3
-
4
- class StringMatcher:
5
- """A SequenceMatcher-like class built on the top of Levenshtein"""
6
-
7
- def _reset_cache(self):
8
- self._ratio = self._distance = None
9
- self._opcodes = self._editops = self._matching_blocks = None
10
-
11
- def __init__(self, isjunk=None, seq1='', seq2=''):
12
- if isjunk:
13
- warn("isjunk not NOT implemented, it will be ignored")
14
- self._str1, self._str2 = seq1, seq2
15
- self._reset_cache()
16
-
17
- def set_seqs(self, seq1, seq2):
18
- self._str1, self._str2 = seq1, seq2
19
- self._reset_cache()
20
-
21
- def set_seq1(self, seq1):
22
- self._str1 = seq1
23
- self._reset_cache()
24
-
25
- def set_seq2(self, seq2):
26
- self._str2 = seq2
27
- self._reset_cache()
28
-
29
- def get_opcodes(self):
30
- if not self._opcodes:
31
- if self._editops:
32
- self._opcodes = opcodes(self._editops, self._str1, self._str2)
33
- else:
34
- self._opcodes = opcodes(self._str1, self._str2)
35
- return self._opcodes
36
-
37
- def get_editops(self):
38
- if not self._editops:
39
- if self._opcodes:
40
- self._editops = editops(self._opcodes, self._str1, self._str2)
41
- else:
42
- self._editops = editops(self._str1, self._str2)
43
- return self._editops
44
-
45
- def get_matching_blocks(self):
46
- if not self._matching_blocks:
47
- self._matching_blocks = matching_blocks(self.get_opcodes(),
48
- self._str1, self._str2)
49
- return self._matching_blocks
50
-
51
- def ratio(self):
52
- if not self._ratio:
53
- self._ratio = ratio(self._str1, self._str2)
54
- return self._ratio
55
-
56
- def quick_ratio(self):
57
- # This is usually quick enough :o)
58
- if not self._ratio:
59
- self._ratio = ratio(self._str1, self._str2)
60
- return self._ratio
61
-
62
- def real_quick_ratio(self):
63
- len1, len2 = len(self._str1), len(self._str2)
64
- return 2.0 * min(len1, len2) / (len1 + len2)
65
-
66
- def distance(self):
67
- if not self._distance:
68
- self._distance = distance(self._str1, self._str2)
69
- return self._distance
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.9/site-packages/Levenshtein/__init__.py DELETED
@@ -1,4 +0,0 @@
1
- from Levenshtein import _levenshtein
2
- from Levenshtein._levenshtein import *
3
-
4
- __doc__ = _levenshtein.__doc__
 
 
 
 
 
.venv/lib/python3.9/site-packages/Levenshtein/__pycache__/StringMatcher.cpython-39.pyc DELETED
Binary file (2.82 kB)
 
.venv/lib/python3.9/site-packages/Levenshtein/__pycache__/__init__.cpython-39.pyc DELETED
Binary file (295 Bytes)
 
.venv/lib/python3.9/site-packages/Levenshtein/_levenshtein.c DELETED
The diff for this file is too large to render. See raw diff
 
.venv/lib/python3.9/site-packages/Levenshtein/_levenshtein.cpython-39-x86_64-linux-gnu.so DELETED
Binary file (358 kB)
 
.venv/lib/python3.9/site-packages/Levenshtein/_levenshtein.h DELETED
@@ -1,394 +0,0 @@
1
- /* @(#) $Id: Levenshtein.h,v 1.22 2005/01/13 20:02:56 yeti Exp $ */
2
- #ifndef LEVENSHTEIN_H
3
- #define LEVENSHTEIN_H
4
-
5
- #ifndef size_t
6
- # include <stdlib.h>
7
- #endif
8
-
9
- /* A bit dirty. */
10
- #ifndef _LEV_STATIC_PY
11
- # define _LEV_STATIC_PY /* */
12
- #endif
13
-
14
- /* In C, this is just wchar_t and unsigned char, in Python, lev_wchar can
15
- * be anything. If you really want to cheat, define wchar_t to any integer
16
- * type you like before including Levenshtein.h and recompile it. */
17
- #ifndef lev_wchar
18
- # ifndef wchar_t
19
- # include <wchar.h>
20
- # endif
21
- # define lev_wchar wchar_t
22
- #endif
23
- typedef unsigned char lev_byte;
24
-
25
- /* Edit opration type
26
- * DON'T CHANGE! used ad arrays indices and the bits are occasionally used
27
- * as flags */
28
- typedef enum {
29
- LEV_EDIT_KEEP = 0,
30
- LEV_EDIT_REPLACE = 1,
31
- LEV_EDIT_INSERT = 2,
32
- LEV_EDIT_DELETE = 3,
33
- LEV_EDIT_LAST /* sometimes returned when an error occurs */
34
- } LevEditType;
35
-
36
- /* Error codes returned by editop check functions */
37
- typedef enum {
38
- LEV_EDIT_ERR_OK = 0,
39
- LEV_EDIT_ERR_TYPE, /* nonexistent edit type */
40
- LEV_EDIT_ERR_OUT, /* edit out of string bounds */
41
- LEV_EDIT_ERR_ORDER, /* ops are not ordered */
42
- LEV_EDIT_ERR_BLOCK, /* incosistent block boundaries (block ops) */
43
- LEV_EDIT_ERR_SPAN, /* sequence is not a full transformation (block ops) */
44
- LEV_EDIT_ERR_LAST
45
- } LevEditOpError;
46
-
47
- /* string averaging method (UNUSED yet) */
48
- typedef enum {
49
- LEV_AVG_HEAD = 0, /* take operations from the head */
50
- LEV_AVG_TAIL, /* take operations from the tail */
51
- LEV_AVG_SPREAD, /* take a equidistantly distributed subset */
52
- LEV_AVG_BLOCK, /* take a random continuous block */
53
- LEV_AVG_RANDOM, /* take a random subset */
54
- LEV_AVG_LAST
55
- } LevAveragingType;
56
-
57
- /* Edit operation (atomic).
58
- * This is the `native' atomic edit operation. It differs from the difflib
59
- * one's because it represents a change of one character, not a block. And
60
- * we usually don't care about LEV_EDIT_KEEP, though the functions can handle
61
- * them. The positions are interpreted as at the left edge of a character.
62
- */
63
- typedef struct {
64
- LevEditType type; /* editing operation type */
65
- size_t spos; /* source block position */
66
- size_t dpos; /* destination position */
67
- } LevEditOp;
68
-
69
- /* Edit operation (difflib-compatible).
70
- * This is not `native', but conversion functions exist. These fields exactly
71
- * correspond to the codeops() tuples fields (and this method is also the
72
- * source of the silly OpCode name). Sequences must span over complete
73
- * strings, subsequences are simply edit sequences with more (or larger)
74
- * LEV_EDIT_KEEP blocks.
75
- */
76
- typedef struct {
77
- LevEditType type; /* editing operation type */
78
- size_t sbeg, send; /* source block begin, end */
79
- size_t dbeg, dend; /* destination block begin, end */
80
- } LevOpCode;
81
-
82
- /* Matching block (difflib-compatible). */
83
- typedef struct {
84
- size_t spos;
85
- size_t dpos;
86
- size_t len;
87
- } LevMatchingBlock;
88
-
89
- _LEV_STATIC_PY
90
- size_t
91
- lev_edit_distance(size_t len1,
92
- const lev_byte *string1,
93
- size_t len2,
94
- const lev_byte *string2,
95
- int xcost);
96
-
97
- _LEV_STATIC_PY
98
- size_t
99
- lev_u_edit_distance(size_t len1,
100
- const lev_wchar *string1,
101
- size_t len2,
102
- const lev_wchar *string2,
103
- int xcost);
104
-
105
- _LEV_STATIC_PY
106
- size_t
107
- lev_hamming_distance(size_t len,
108
- const lev_byte *string1,
109
- const lev_byte *string2);
110
-
111
- _LEV_STATIC_PY
112
- size_t
113
- lev_u_hamming_distance(size_t len,
114
- const lev_wchar *string1,
115
- const lev_wchar *string2);
116
-
117
- _LEV_STATIC_PY
118
- double
119
- lev_jaro_ratio(size_t len1,
120
- const lev_byte *string1,
121
- size_t len2,
122
- const lev_byte *string2);
123
-
124
- _LEV_STATIC_PY
125
- double
126
- lev_u_jaro_ratio(size_t len1,
127
- const lev_wchar *string1,
128
- size_t len2,
129
- const lev_wchar *string2);
130
-
131
- _LEV_STATIC_PY
132
- double
133
- lev_jaro_winkler_ratio(size_t len1, const lev_byte *string1,
134
- size_t len2, const lev_byte *string2,
135
- double pfweight);
136
-
137
- _LEV_STATIC_PY
138
- double
139
- lev_u_jaro_winkler_ratio(size_t len1, const lev_wchar *string1,
140
- size_t len2, const lev_wchar *string2,
141
- double pfweight);
142
-
143
- _LEV_STATIC_PY
144
- lev_byte*
145
- lev_greedy_median(size_t n,
146
- const size_t *lengths,
147
- const lev_byte *strings[],
148
- const double *weights,
149
- size_t *medlength);
150
-
151
- _LEV_STATIC_PY
152
- lev_wchar*
153
- lev_u_greedy_median(size_t n,
154
- const size_t *lengths,
155
- const lev_wchar *strings[],
156
- const double *weights,
157
- size_t *medlength);
158
-
159
- _LEV_STATIC_PY
160
- lev_byte*
161
- lev_median_improve(size_t len, const lev_byte *s,
162
- size_t n, const size_t *lengths,
163
- const lev_byte *strings[],
164
- const double *weights,
165
- size_t *medlength);
166
-
167
- _LEV_STATIC_PY
168
- lev_wchar*
169
- lev_u_median_improve(size_t len, const lev_wchar *s,
170
- size_t n, const size_t *lengths,
171
- const lev_wchar *strings[],
172
- const double *weights,
173
- size_t *medlength);
174
-
175
- _LEV_STATIC_PY
176
- lev_byte*
177
- lev_quick_median(size_t n,
178
- const size_t *lengths,
179
- const lev_byte *strings[],
180
- const double *weights,
181
- size_t *medlength);
182
-
183
- _LEV_STATIC_PY
184
- lev_wchar*
185
- lev_u_quick_median(size_t n,
186
- const size_t *lengths,
187
- const lev_wchar *strings[],
188
- const double *weights,
189
- size_t *medlength);
190
-
191
- _LEV_STATIC_PY
192
- lev_byte*
193
- lev_set_median(size_t n,
194
- const size_t *lengths,
195
- const lev_byte *strings[],
196
- const double *weights,
197
- size_t *medlength);
198
-
199
- _LEV_STATIC_PY
200
- size_t
201
- lev_set_median_index(size_t n, const size_t *lengths,
202
- const lev_byte *strings[],
203
- const double *weights);
204
-
205
- _LEV_STATIC_PY
206
- lev_wchar*
207
- lev_u_set_median(size_t n,
208
- const size_t *lengths,
209
- const lev_wchar *strings[],
210
- const double *weights,
211
- size_t *medlength);
212
-
213
- _LEV_STATIC_PY
214
- size_t
215
- lev_u_set_median_index(size_t n, const size_t *lengths,
216
- const lev_wchar *strings[],
217
- const double *weights);
218
-
219
- _LEV_STATIC_PY
220
- double
221
- lev_edit_seq_distance(size_t n1,
222
- const size_t *lengths1,
223
- const lev_byte *strings1[],
224
- size_t n2,
225
- const size_t *lengths2,
226
- const lev_byte *strings2[]);
227
-
228
- _LEV_STATIC_PY
229
- double
230
- lev_u_edit_seq_distance(size_t n1,
231
- const size_t *lengths1,
232
- const lev_wchar *strings1[],
233
- size_t n2,
234
- const size_t *lengths2,
235
- const lev_wchar *strings2[]);
236
-
237
- _LEV_STATIC_PY
238
- double
239
- lev_set_distance(size_t n1,
240
- const size_t *lengths1,
241
- const lev_byte *strings1[],
242
- size_t n2,
243
- const size_t *lengths2,
244
- const lev_byte *strings2[]);
245
-
246
- _LEV_STATIC_PY
247
- double
248
- lev_u_set_distance(size_t n1,
249
- const size_t *lengths1,
250
- const lev_wchar *strings1[],
251
- size_t n2,
252
- const size_t *lengths2,
253
- const lev_wchar *strings2[]);
254
-
255
- _LEV_STATIC_PY
256
- int
257
- lev_editops_check_errors(size_t len1,
258
- size_t len2,
259
- size_t n,
260
- const LevEditOp *ops);
261
-
262
- _LEV_STATIC_PY
263
- int
264
- lev_opcodes_check_errors(size_t len1,
265
- size_t len2,
266
- size_t nb,
267
- const LevOpCode *bops);
268
-
269
- _LEV_STATIC_PY
270
- void
271
- lev_editops_invert(size_t n,
272
- LevEditOp *ops);
273
-
274
- _LEV_STATIC_PY
275
- void
276
- lev_opcodes_invert(size_t nb,
277
- LevOpCode *bops);
278
-
279
- _LEV_STATIC_PY
280
- LevMatchingBlock*
281
- lev_editops_matching_blocks(size_t len1,
282
- size_t len2,
283
- size_t n,
284
- const LevEditOp *ops,
285
- size_t *nmblocks);
286
-
287
- _LEV_STATIC_PY
288
- LevMatchingBlock*
289
- lev_opcodes_matching_blocks(size_t len1,
290
- size_t len2,
291
- size_t nb,
292
- const LevOpCode *bops,
293
- size_t *nmblocks);
294
-
295
- _LEV_STATIC_PY
296
- lev_byte*
297
- lev_editops_apply(size_t len1,
298
- const lev_byte* string1,
299
- size_t len2,
300
- const lev_byte* string2,
301
- size_t n,
302
- const LevEditOp *ops,
303
- size_t *len);
304
-
305
- _LEV_STATIC_PY
306
- lev_wchar*
307
- lev_u_editops_apply(size_t len1,
308
- const lev_wchar* string1,
309
- size_t len2,
310
- const lev_wchar* string2,
311
- size_t n,
312
- const LevEditOp *ops,
313
- size_t *len);
314
-
315
- _LEV_STATIC_PY
316
- lev_byte*
317
- lev_opcodes_apply(size_t len1,
318
- const lev_byte* string1,
319
- size_t len2,
320
- const lev_byte* string2,
321
- size_t nb,
322
- const LevOpCode *bops,
323
- size_t *len);
324
-
325
- _LEV_STATIC_PY
326
- lev_wchar*
327
- lev_u_opcodes_apply(size_t len1,
328
- const lev_wchar* string1,
329
- size_t len2,
330
- const lev_wchar* string2,
331
- size_t nb,
332
- const LevOpCode *bops,
333
- size_t *len);
334
-
335
- _LEV_STATIC_PY
336
- LevEditOp*
337
- lev_editops_find(size_t len1,
338
- const lev_byte *string1,
339
- size_t len2,
340
- const lev_byte *string2,
341
- size_t *n);
342
-
343
- _LEV_STATIC_PY
344
- LevEditOp*
345
- lev_u_editops_find(size_t len1,
346
- const lev_wchar *string1,
347
- size_t len2,
348
- const lev_wchar *string2,
349
- size_t *n);
350
-
351
- _LEV_STATIC_PY
352
- LevEditOp*
353
- lev_opcodes_to_editops(size_t nb,
354
- const LevOpCode *bops,
355
- size_t *n,
356
- int keepkeep);
357
-
358
- _LEV_STATIC_PY
359
- LevOpCode*
360
- lev_editops_to_opcodes(size_t n,
361
- const LevEditOp *ops,
362
- size_t *nb,
363
- size_t len1,
364
- size_t len2);
365
-
366
- _LEV_STATIC_PY
367
- size_t
368
- lev_editops_total_cost(size_t n,
369
- const LevEditOp *ops);
370
-
371
- _LEV_STATIC_PY
372
- size_t
373
- lev_opcodes_total_cost(size_t nb,
374
- const LevOpCode *bops);
375
-
376
- _LEV_STATIC_PY
377
- LevEditOp*
378
- lev_editops_normalize(size_t n,
379
- const LevEditOp *ops,
380
- size_t *nnorm);
381
-
382
- _LEV_STATIC_PY LevEditOp*
383
- lev_editops_subtract(size_t n,
384
- const LevEditOp *ops,
385
- size_t ns,
386
- const LevEditOp *sub,
387
- size_t *nrem);
388
-
389
- /* UNUSED yet */
390
- _LEV_STATIC_PY
391
- void
392
- lev_init_rng(unsigned long int seed);
393
-
394
- #endif /* not LEVENSHTEIN_H */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.9/site-packages/PyYAML-6.0.dist-info/INSTALLER DELETED
@@ -1 +0,0 @@
1
- pip
 
 
.venv/lib/python3.9/site-packages/PyYAML-6.0.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.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.9/site-packages/PyYAML-6.0.dist-info/METADATA DELETED
@@ -1,46 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: PyYAML
3
- Version: 6.0
4
- Summary: YAML parser and emitter for Python
5
- Home-page: https://pyyaml.org/
6
- Author: Kirill Simonov
7
- Author-email: xi@resolvent.net
8
- License: MIT
9
- Download-URL: https://pypi.org/project/PyYAML/
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 :: Implementation :: CPython
29
- Classifier: Programming Language :: Python :: Implementation :: PyPy
30
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
31
- Classifier: Topic :: Text Processing :: Markup
32
- Requires-Python: >=3.6
33
- License-File: LICENSE
34
-
35
- YAML is a data serialization format designed for human readability
36
- and interaction with scripting languages. PyYAML is a YAML parser
37
- and emitter for Python.
38
-
39
- PyYAML features a complete YAML 1.1 parser, Unicode support, pickle
40
- support, capable extension API, and sensible error messages. PyYAML
41
- supports standard YAML tags and provides Python-specific tags that
42
- allow to represent an arbitrary Python object.
43
-
44
- PyYAML is applicable for a broad range of tasks from complex
45
- configuration files to object serialization and persistence.
46
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.9/site-packages/PyYAML-6.0.dist-info/RECORD DELETED
@@ -1,43 +0,0 @@
1
- PyYAML-6.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
2
- PyYAML-6.0.dist-info/LICENSE,sha256=jTko-dxEkP1jVwfLiOsmvXZBAqcoKVQwfT5RZ6V36KQ,1101
3
- PyYAML-6.0.dist-info/METADATA,sha256=QmHx9kGp_0yezQCXYaft4eEFeJ6W4oyFfYwHDLP1kdg,2006
4
- PyYAML-6.0.dist-info/RECORD,,
5
- PyYAML-6.0.dist-info/WHEEL,sha256=IL0iX5XNv1WQZTLN2B4c3dlfH0fGR8_uxbPdaHfu4p8,217
6
- PyYAML-6.0.dist-info/top_level.txt,sha256=rpj0IVMTisAjh_1vG3Ccf9v5jpCQwAz6cD1IVU5ZdhQ,11
7
- _yaml/__init__.py,sha256=04Ae_5osxahpJHa3XBZUAf4wi6XX32gR8D6X6p64GEA,1402
8
- _yaml/__pycache__/__init__.cpython-39.pyc,,
9
- yaml/__init__.py,sha256=NDS7S8XgA72-hY6LRmGzUWTPvzGzjWVrWk-OGA-77AA,12309
10
- yaml/__pycache__/__init__.cpython-39.pyc,,
11
- yaml/__pycache__/composer.cpython-39.pyc,,
12
- yaml/__pycache__/constructor.cpython-39.pyc,,
13
- yaml/__pycache__/cyaml.cpython-39.pyc,,
14
- yaml/__pycache__/dumper.cpython-39.pyc,,
15
- yaml/__pycache__/emitter.cpython-39.pyc,,
16
- yaml/__pycache__/error.cpython-39.pyc,,
17
- yaml/__pycache__/events.cpython-39.pyc,,
18
- yaml/__pycache__/loader.cpython-39.pyc,,
19
- yaml/__pycache__/nodes.cpython-39.pyc,,
20
- yaml/__pycache__/parser.cpython-39.pyc,,
21
- yaml/__pycache__/reader.cpython-39.pyc,,
22
- yaml/__pycache__/representer.cpython-39.pyc,,
23
- yaml/__pycache__/resolver.cpython-39.pyc,,
24
- yaml/__pycache__/scanner.cpython-39.pyc,,
25
- yaml/__pycache__/serializer.cpython-39.pyc,,
26
- yaml/__pycache__/tokens.cpython-39.pyc,,
27
- yaml/_yaml.cpython-39-x86_64-linux-gnu.so,sha256=rzK7lXZ5tGTZtWrxsR_uy6leGkiD01qPp6038wfwI3M,2108336
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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.9/site-packages/PyYAML-6.0.dist-info/WHEEL DELETED
@@ -1,8 +0,0 @@
1
- Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.37.0)
3
- Root-Is-Purelib: false
4
- Tag: cp39-cp39-manylinux_2_5_x86_64
5
- Tag: cp39-cp39-manylinux1_x86_64
6
- Tag: cp39-cp39-manylinux_2_12_x86_64
7
- Tag: cp39-cp39-manylinux2010_x86_64
8
-
 
 
 
 
 
 
 
 
 
.venv/lib/python3.9/site-packages/PyYAML-6.0.dist-info/top_level.txt DELETED
@@ -1,2 +0,0 @@
1
- _yaml
2
- yaml
 
 
 
.venv/lib/python3.9/site-packages/SoundFile-0.10.3.post1.dist-info/INSTALLER DELETED
@@ -1 +0,0 @@
1
- pip
 
 
.venv/lib/python3.9/site-packages/SoundFile-0.10.3.post1.dist-info/LICENSE DELETED
@@ -1,29 +0,0 @@
1
- Copyright (c) 2013, Bastian Bechtold
2
- All rights reserved.
3
-
4
- Redistribution and use in source and binary forms, with or without
5
- modification, are permitted provided that the following conditions are
6
- met:
7
-
8
- * Redistributions of source code must retain the above copyright
9
- notice, this list of conditions and the following disclaimer.
10
- * Redistributions in binary form must reproduce the above copyright
11
- notice, this list of conditions and the following disclaimer in
12
- the documentation and/or other materials provided with the
13
- distribution.
14
- * Neither the name of PySoundFile nor the names
15
- of its contributors may be used to endorse or promote products
16
- derived from this software without specific prior written
17
- permission.
18
-
19
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23
- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.venv/lib/python3.9/site-packages/SoundFile-0.10.3.post1.dist-info/METADATA DELETED
@@ -1,310 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: SoundFile
3
- Version: 0.10.3.post1
4
- Summary: An audio library based on libsndfile, CFFI and NumPy
5
- Home-page: https://github.com/bastibe/PySoundFile
6
- Author: Bastian Bechtold
7
- Author-email: basti@bastibe.de
8
- License: BSD 3-Clause License
9
- Keywords: audio,libsndfile
10
- Platform: any
11
- Classifier: Development Status :: 5 - Production/Stable
12
- Classifier: Intended Audience :: Developers
13
- Classifier: Intended Audience :: Science/Research
14
- Classifier: License :: OSI Approved :: BSD License
15
- Classifier: Natural Language :: English
16
- Classifier: Operating System :: OS Independent
17
- Classifier: Programming Language :: Python
18
- Classifier: Programming Language :: Python :: 3
19
- Classifier: Programming Language :: Python :: 2
20
- Classifier: Programming Language :: Python :: Implementation :: PyPy
21
- Classifier: Programming Language :: Python :: Implementation :: CPython
22
- Classifier: Topic :: Multimedia :: Sound/Audio
23
- Description-Content-Type: text/x-rst
24
- Requires-Dist: cffi (>=1.0)
25
- Provides-Extra: numpy
26
- Requires-Dist: numpy ; extra == 'numpy'
27
-
28
- SoundFile
29
- =========
30
-
31
- |version| |python| |status| |license|
32
-
33
- |contributors| |downloads|
34
-
35
- `SoundFile <https://github.com/bastibe/SoundFile>`__ is an audio
36
- library based on libsndfile, CFFI and NumPy. Full documentation is
37
- available on http://pysoundfile.readthedocs.org/.
38
-
39
- SoundFile can read and write sound files. File reading/writing is
40
- supported through `libsndfile <http://www.mega-nerd.com/libsndfile/>`__,
41
- which is a free, cross-platform, open-source (LGPL) library for reading
42
- and writing many different sampled sound file formats that runs on many
43
- platforms including Windows, OS X, and Unix. It is accessed through
44
- `CFFI <http://cffi.readthedocs.org/>`__, which is a foreign function
45
- interface for Python calling C code. CFFI is supported for CPython 2.6+,
46
- 3.x and PyPy 2.0+. SoundFile represents audio data as NumPy arrays.
47
-
48
- | SoundFile is BSD licensed (BSD 3-Clause License).
49
- | (c) 2013, Bastian Bechtold
50
-
51
-
52
- |open-issues| |closed-issues| |open-prs| |closed-prs|
53
-
54
- .. |contributors| image:: https://img.shields.io/github/contributors/bastibe/soundfile.svg
55
- .. |version| image:: https://img.shields.io/pypi/v/soundfile.svg
56
- .. |python| image:: https://img.shields.io/pypi/pyversions/soundfile.svg
57
- .. |license| image:: https://img.shields.io/github/license/bastibe/soundfile.svg
58
- .. |downloads| image:: https://img.shields.io/pypi/dm/soundfile.svg
59
- .. |open-issues| image:: https://img.shields.io/github/issues/bastibe/soundfile.svg
60
- .. |closed-issues| image:: https://img.shields.io/github/issues-closed/bastibe/soundfile.svg
61
- .. |open-prs| image:: https://img.shields.io/github/issues-pr/bastibe/soundfile.svg
62
- .. |closed-prs| image:: https://img.shields.io/github/issues-pr-closed/bastibe/soundfile.svg
63
- .. |status| image:: https://img.shields.io/pypi/status/soundfile.svg
64
-
65
- Breaking Changes
66
- ----------------
67
-
68
- SoundFile has evolved rapidly during the last few releases. Most
69
- notably, we changed the import name from ``import pysoundfile`` to
70
- ``import soundfile`` in 0.7. In 0.6, we cleaned up many small
71
- inconsistencies, particularly in the the ordering and naming of
72
- function arguments and the removal of the indexing interface.
73
-
74
- In 0.8.0, we changed the default value of ``always_2d`` from ``True``
75
- to ``False``. Also, the order of arguments of the ``write`` function
76
- changed from ``write(data, file, ...)`` to ``write(file, data, ...)``.
77
-
78
- In 0.9.0, we changed the ``ctype`` arguments of the ``buffer_*``
79
- methods to ``dtype``, using the Numpy ``dtype`` notation. The old
80
- ``ctype`` arguments still work, but are now officially deprecated.
81
-
82
- Installation
83
- ------------
84
-
85
- SoundFile depends on the Python packages CFFI and NumPy, and the
86
- system library libsndfile.
87
-
88
- In a modern Python, you can use ``pip install soundfile`` to download
89
- and install the latest release of SoundFile and its dependencies.
90
- On Windows and OS X, this will also install the library libsndfile.
91
- On Linux, you need to install libsndfile using your distribution's
92
- package manager, for example ``sudo apt-get install libsndfile1``.
93
-
94
- If you are running on an unusual platform or if you are using an older
95
- version of Python, you might need to install NumPy and CFFI separately,
96
- for example using the Anaconda_ package manager or the `Unofficial Windows
97
- Binaries for Python Extension Packages <http://www.lfd.uci.edu/~gohlke/pythonlibs/>`_.
98
-
99
- .. _Anaconda: https://www.continuum.io/downloads
100
-
101
- Read/Write Functions
102
- --------------------
103
-
104
- Data can be written to the file using `soundfile.write()`, or read from
105
- the file using `soundfile.read()`. SoundFile can open all file formats
106
- that `libsndfile supports
107
- <http://www.mega-nerd.com/libsndfile/#Features>`__, for example WAV,
108
- FLAC, OGG and MAT files (see `Known Issues <https://github.com/bastibe/SoundFile#known-issues>`__ below about writing OGG files).
109
-
110
- Here is an example for a program that reads a wave file and copies it
111
- into an FLAC file:
112
-
113
- .. code:: python
114
-
115
- import soundfile as sf
116
-
117
- data, samplerate = sf.read('existing_file.wav')
118
- sf.write('new_file.flac', data, samplerate)
119
-
120
- Block Processing
121
- ----------------
122
-
123
- Sound files can also be read in short, optionally overlapping blocks
124
- with `soundfile.blocks()`.
125
- For example, this calculates the signal level for each block of a long
126
- file:
127
-
128
- .. code:: python
129
-
130
- import numpy as np
131
- import soundfile as sf
132
-
133
- rms = [np.sqrt(np.mean(block**2)) for block in
134
- sf.blocks('myfile.wav', blocksize=1024, overlap=512)]
135
-
136
- SoundFile Objects
137
- -----------------
138
-
139
- Sound files can also be opened as `soundfile.SoundFile` objects. Every
140
- SoundFile has a specific sample rate, data format and a set number of
141
- channels.
142
-
143
- If a file is opened, it is kept open for as long as the SoundFile
144
- object exists. The file closes when the object is garbage collected,
145
- but you should use the `soundfile.SoundFile.close()` method or the
146
- context manager to close the file explicitly:
147
-
148
- .. code:: python
149
-
150
- import soundfile as sf
151
-
152
- with sf.SoundFile('myfile.wav', 'r+') as f:
153
- while f.tell() < f.frames:
154
- pos = f.tell()
155
- data = f.read(1024)
156
- f.seek(pos)
157
- f.write(data*2)
158
-
159
- All data access uses frames as index. A frame is one discrete time-step
160
- in the sound file. Every frame contains as many samples as there are
161
- channels in the file.
162
-
163
- RAW Files
164
- ---------
165
-
166
- Pysoundfile can usually auto-detect the file type of sound files. This
167
- is not possible for RAW files, though:
168
-
169
- .. code:: python
170
-
171
- import soundfile as sf
172
-
173
- data, samplerate = sf.read('myfile.raw', channels=1, samplerate=44100,
174
- subtype='FLOAT')
175
-
176
- Note that on x86, this defaults to ``endian='LITTLE'``. If you are
177
- reading big endian data (mostly old PowerPC/6800-based files), you
178
- have to set ``endian='BIG'`` accordingly.
179
-
180
- You can write RAW files in a similar way, but be advised that in most
181
- cases, a more expressive format is better and should be used instead.
182
-
183
- Virtual IO
184
- ----------
185
-
186
- If you have an open file-like object, Pysoundfile can open it just like
187
- regular files:
188
-
189
- .. code:: python
190
-
191
- import soundfile as sf
192
- with open('filename.flac', 'rb') as f:
193
- data, samplerate = sf.read(f)
194
-
195
- Here is an example using an HTTP request:
196
-
197
- .. code:: python
198
-
199
- import io
200
- import soundfile as sf
201
- from urllib.request import urlopen
202
-
203
- url = "http://tinyurl.com/shepard-risset"
204
- data, samplerate = sf.read(io.BytesIO(urlopen(url).read()))
205
-
206
- Note that the above example only works with Python 3.x.
207
- For Python 2.x support, replace the third line with:
208
-
209
- .. code:: python
210
-
211
- from urllib2 import urlopen
212
-
213
- Known Issues
214
- ------------
215
-
216
- Writing to OGG files can result in empty files with certain versions of libsndfile. See `#130 <https://github.com/bastibe/SoundFile/issues/130>`__ for news on this issue.
217
-
218
- News
219
- ----
220
-
221
- 2013-08-27 V0.1.0 Bastian Bechtold:
222
- Initial prototype. A simple wrapper for libsndfile in Python
223
-
224
- 2013-08-30 V0.2.0 Bastian Bechtold:
225
- Bugfixes and more consistency with PySoundCard
226
-
227
- 2013-08-30 V0.2.1 Bastian Bechtold:
228
- Bugfixes
229
-
230
- 2013-09-27 V0.3.0 Bastian Bechtold:
231
- Added binary installer for Windows, and context manager
232
-
233
- 2013-11-06 V0.3.1 Bastian Bechtold:
234
- Switched from distutils to setuptools for easier installation
235
-
236
- 2013-11-29 V0.4.0 Bastian Bechtold:
237
- Thanks to David Blewett, now with Virtual IO!
238
-
239
- 2013-12-08 V0.4.1 Bastian Bechtold:
240
- Thanks to Xidorn Quan, FLAC files are not float32 any more.
241
-
242
- 2014-02-26 V0.5.0 Bastian Bechtold:
243
- Thanks to Matthias Geier, improved seeking and a flush() method.
244
-
245
- 2015-01-19 V0.6.0 Bastian Bechtold:
246
- A big, big thank you to Matthias Geier, who did most of the work!
247
-
248
- - Switched to ``float64`` as default data type.
249
- - Function arguments changed for consistency.
250
- - Added unit tests.
251
- - Added global ``read()``, ``write()``, ``blocks()`` convenience
252
- functions.
253
- - Documentation overhaul and hosting on readthedocs.
254
- - Added ``'x'`` open mode.
255
- - Added ``tell()`` method.
256
- - Added ``__repr__()`` method.
257
-
258
- 2015-04-12 V0.7.0 Bastian Bechtold:
259
- Again, thanks to Matthias Geier for all of his hard work, but also
260
- Nils Werner and Whistler7 for their many suggestions and help.
261
-
262
- - Renamed ``import pysoundfile`` to ``import soundfile``.
263
- - Installation through pip wheels that contain the necessary
264
- libraries for OS X and Windows.
265
- - Removed ``exclusive_creation`` argument to ``write``.
266
- - Added ``truncate()`` method.
267
-
268
- 2015-10-20 V0.8.0 Bastian Bechtold:
269
- Again, Matthias Geier contributed a whole lot of hard work to this
270
- release.
271
-
272
- - Changed the default value of ``always_2d`` from ``True`` to
273
- ``False``.
274
- - Numpy is now optional, and only loaded for ``read`` and
275
- ``write``.
276
- - Added ``SoundFile.buffer_read`` and
277
- ``SoundFile.buffer_read_into`` and ``SoundFile.buffer_write``,
278
- which read/write raw data without involving Numpy.
279
- - Added ``info`` function that returns metadata of a sound file.
280
- - Changed the argument order of the ``write`` function from
281
- ``write(data, file, ...)`` to ``write(file, data, ...)``
282
-
283
- And many more minor bug fixes.
284
-
285
- 2017-02-02 V0.9.0 Bastian Bechtold:
286
- Thank you, Matthias Geier, Tomas Garcia, and Todd, for contributions
287
- for this release.
288
-
289
- - Adds support for ALAC files.
290
- - Adds new member ``__libsndfile_version__``
291
- - Adds number of frames to ``info`` class
292
- - Adds ``dtype`` argument to ``buffer_*`` methods
293
- - Deprecates ``ctype`` argument to ``buffer_*`` methods
294
- - Adds official support for Python 3.6
295
-
296
- And some minor bug fixes.
297
-
298
- 2017-11-12 V0.10.0 Bastian Bechtold:
299
- Thank you, Matthias Geier, Toni Barth, Jon Peirce, Till Hoffmann,
300
- and Tomas Garcia, for contributions to this release.
301
-
302
- - Should now work with cx_freeze.
303
- - Several documentation fixes in the README.
304
- - Removes deprecated ``ctype`` argument in favor of ``dtype`` in ``buffer_*()``.
305
- - Adds ``SoundFile.frames`` in favor of now-deprecated ``__len__()``.
306
- - Improves performance of ``blocks`` and ``SoundFile.blocks()``.
307
- - Improves import time by using CFFI's out of line mode.
308
- - Adds a build script for building distributions.
309
-
310
-