diff --git a/agentic_env/bin/Activate.ps1 b/agentic_env/bin/Activate.ps1 new file mode 100644 index 0000000..b49d77b --- /dev/null +++ b/agentic_env/bin/Activate.ps1 @@ -0,0 +1,247 @@ +<# +.Synopsis +Activate a Python virtual environment for the current PowerShell session. + +.Description +Pushes the python executable for a virtual environment to the front of the +$Env:PATH environment variable and sets the prompt to signify that you are +in a Python virtual environment. Makes use of the command line switches as +well as the `pyvenv.cfg` file values present in the virtual environment. + +.Parameter VenvDir +Path to the directory that contains the virtual environment to activate. The +default value for this is the parent of the directory that the Activate.ps1 +script is located within. + +.Parameter Prompt +The prompt prefix to display when this virtual environment is activated. By +default, this prompt is the name of the virtual environment folder (VenvDir) +surrounded by parentheses and followed by a single space (ie. '(.venv) '). + +.Example +Activate.ps1 +Activates the Python virtual environment that contains the Activate.ps1 script. + +.Example +Activate.ps1 -Verbose +Activates the Python virtual environment that contains the Activate.ps1 script, +and shows extra information about the activation as it executes. + +.Example +Activate.ps1 -VenvDir C:\Users\MyUser\Common\.venv +Activates the Python virtual environment located in the specified location. + +.Example +Activate.ps1 -Prompt "MyPython" +Activates the Python virtual environment that contains the Activate.ps1 script, +and prefixes the current prompt with the specified string (surrounded in +parentheses) while the virtual environment is active. + +.Notes +On Windows, it may be required to enable this Activate.ps1 script by setting the +execution policy for the user. You can do this by issuing the following PowerShell +command: + +PS C:\> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser + +For more information on Execution Policies: +https://go.microsoft.com/fwlink/?LinkID=135170 + +#> +Param( + [Parameter(Mandatory = $false)] + [String] + $VenvDir, + [Parameter(Mandatory = $false)] + [String] + $Prompt +) + +<# Function declarations --------------------------------------------------- #> + +<# +.Synopsis +Remove all shell session elements added by the Activate script, including the +addition of the virtual environment's Python executable from the beginning of +the PATH variable. + +.Parameter NonDestructive +If present, do not remove this function from the global namespace for the +session. + +#> +function global:deactivate ([switch]$NonDestructive) { + # Revert to original values + + # The prior prompt: + if (Test-Path -Path Function:_OLD_VIRTUAL_PROMPT) { + Copy-Item -Path Function:_OLD_VIRTUAL_PROMPT -Destination Function:prompt + Remove-Item -Path Function:_OLD_VIRTUAL_PROMPT + } + + # The prior PYTHONHOME: + if (Test-Path -Path Env:_OLD_VIRTUAL_PYTHONHOME) { + Copy-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME -Destination Env:PYTHONHOME + Remove-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME + } + + # The prior PATH: + if (Test-Path -Path Env:_OLD_VIRTUAL_PATH) { + Copy-Item -Path Env:_OLD_VIRTUAL_PATH -Destination Env:PATH + Remove-Item -Path Env:_OLD_VIRTUAL_PATH + } + + # Just remove the VIRTUAL_ENV altogether: + if (Test-Path -Path Env:VIRTUAL_ENV) { + Remove-Item -Path env:VIRTUAL_ENV + } + + # Just remove VIRTUAL_ENV_PROMPT altogether. + if (Test-Path -Path Env:VIRTUAL_ENV_PROMPT) { + Remove-Item -Path env:VIRTUAL_ENV_PROMPT + } + + # Just remove the _PYTHON_VENV_PROMPT_PREFIX altogether: + if (Get-Variable -Name "_PYTHON_VENV_PROMPT_PREFIX" -ErrorAction SilentlyContinue) { + Remove-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Scope Global -Force + } + + # Leave deactivate function in the global namespace if requested: + if (-not $NonDestructive) { + Remove-Item -Path function:deactivate + } +} + +<# +.Description +Get-PyVenvConfig parses the values from the pyvenv.cfg file located in the +given folder, and returns them in a map. + +For each line in the pyvenv.cfg file, if that line can be parsed into exactly +two strings separated by `=` (with any amount of whitespace surrounding the =) +then it is considered a `key = value` line. The left hand string is the key, +the right hand is the value. + +If the value starts with a `'` or a `"` then the first and last character is +stripped from the value before being captured. + +.Parameter ConfigDir +Path to the directory that contains the `pyvenv.cfg` file. +#> +function Get-PyVenvConfig( + [String] + $ConfigDir +) { + Write-Verbose "Given ConfigDir=$ConfigDir, obtain values in pyvenv.cfg" + + # Ensure the file exists, and issue a warning if it doesn't (but still allow the function to continue). + $pyvenvConfigPath = Join-Path -Resolve -Path $ConfigDir -ChildPath 'pyvenv.cfg' -ErrorAction Continue + + # An empty map will be returned if no config file is found. + $pyvenvConfig = @{ } + + if ($pyvenvConfigPath) { + + Write-Verbose "File exists, parse `key = value` lines" + $pyvenvConfigContent = Get-Content -Path $pyvenvConfigPath + + $pyvenvConfigContent | ForEach-Object { + $keyval = $PSItem -split "\s*=\s*", 2 + if ($keyval[0] -and $keyval[1]) { + $val = $keyval[1] + + # Remove extraneous quotations around a string value. + if ("'""".Contains($val.Substring(0, 1))) { + $val = $val.Substring(1, $val.Length - 2) + } + + $pyvenvConfig[$keyval[0]] = $val + Write-Verbose "Adding Key: '$($keyval[0])'='$val'" + } + } + } + return $pyvenvConfig +} + + +<# Begin Activate script --------------------------------------------------- #> + +# Determine the containing directory of this script +$VenvExecPath = Split-Path -Parent $MyInvocation.MyCommand.Definition +$VenvExecDir = Get-Item -Path $VenvExecPath + +Write-Verbose "Activation script is located in path: '$VenvExecPath'" +Write-Verbose "VenvExecDir Fullname: '$($VenvExecDir.FullName)" +Write-Verbose "VenvExecDir Name: '$($VenvExecDir.Name)" + +# Set values required in priority: CmdLine, ConfigFile, Default +# First, get the location of the virtual environment, it might not be +# VenvExecDir if specified on the command line. +if ($VenvDir) { + Write-Verbose "VenvDir given as parameter, using '$VenvDir' to determine values" +} +else { + Write-Verbose "VenvDir not given as a parameter, using parent directory name as VenvDir." + $VenvDir = $VenvExecDir.Parent.FullName.TrimEnd("\\/") + Write-Verbose "VenvDir=$VenvDir" +} + +# Next, read the `pyvenv.cfg` file to determine any required value such +# as `prompt`. +$pyvenvCfg = Get-PyVenvConfig -ConfigDir $VenvDir + +# Next, set the prompt from the command line, or the config file, or +# just use the name of the virtual environment folder. +if ($Prompt) { + Write-Verbose "Prompt specified as argument, using '$Prompt'" +} +else { + Write-Verbose "Prompt not specified as argument to script, checking pyvenv.cfg value" + if ($pyvenvCfg -and $pyvenvCfg['prompt']) { + Write-Verbose " Setting based on value in pyvenv.cfg='$($pyvenvCfg['prompt'])'" + $Prompt = $pyvenvCfg['prompt']; + } + else { + Write-Verbose " Setting prompt based on parent's directory's name. (Is the directory name passed to venv module when creating the virtual environment)" + Write-Verbose " Got leaf-name of $VenvDir='$(Split-Path -Path $venvDir -Leaf)'" + $Prompt = Split-Path -Path $venvDir -Leaf + } +} + +Write-Verbose "Prompt = '$Prompt'" +Write-Verbose "VenvDir='$VenvDir'" + +# Deactivate any currently active virtual environment, but leave the +# deactivate function in place. +deactivate -nondestructive + +# Now set the environment variable VIRTUAL_ENV, used by many tools to determine +# that there is an activated venv. +$env:VIRTUAL_ENV = $VenvDir + +if (-not $Env:VIRTUAL_ENV_DISABLE_PROMPT) { + + Write-Verbose "Setting prompt to '$Prompt'" + + # Set the prompt to include the env name + # Make sure _OLD_VIRTUAL_PROMPT is global + function global:_OLD_VIRTUAL_PROMPT { "" } + Copy-Item -Path function:prompt -Destination function:_OLD_VIRTUAL_PROMPT + New-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Description "Python virtual environment prompt prefix" -Scope Global -Option ReadOnly -Visibility Public -Value $Prompt + + function global:prompt { + Write-Host -NoNewline -ForegroundColor Green "($_PYTHON_VENV_PROMPT_PREFIX) " + _OLD_VIRTUAL_PROMPT + } + $env:VIRTUAL_ENV_PROMPT = $Prompt +} + +# Clear PYTHONHOME +if (Test-Path -Path Env:PYTHONHOME) { + Copy-Item -Path Env:PYTHONHOME -Destination Env:_OLD_VIRTUAL_PYTHONHOME + Remove-Item -Path Env:PYTHONHOME +} + +# Add the venv to the PATH +Copy-Item -Path Env:PATH -Destination Env:_OLD_VIRTUAL_PATH +$Env:PATH = "$VenvExecDir$([System.IO.Path]::PathSeparator)$Env:PATH" diff --git a/agentic_env/bin/activate b/agentic_env/bin/activate new file mode 100644 index 0000000..25436fe --- /dev/null +++ b/agentic_env/bin/activate @@ -0,0 +1,69 @@ +# This file must be used with "source bin/activate" *from bash* +# you cannot run it directly + +deactivate () { + # reset old environment variables + if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then + PATH="${_OLD_VIRTUAL_PATH:-}" + export PATH + unset _OLD_VIRTUAL_PATH + fi + if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then + PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}" + export PYTHONHOME + unset _OLD_VIRTUAL_PYTHONHOME + fi + + # This should detect bash and zsh, which have a hash command that must + # be called to get it to forget past commands. Without forgetting + # past commands the $PATH changes we made may not be respected + if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then + hash -r 2> /dev/null + fi + + if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then + PS1="${_OLD_VIRTUAL_PS1:-}" + export PS1 + unset _OLD_VIRTUAL_PS1 + fi + + unset VIRTUAL_ENV + unset VIRTUAL_ENV_PROMPT + if [ ! "${1:-}" = "nondestructive" ] ; then + # Self destruct! + unset -f deactivate + fi +} + +# unset irrelevant variables +deactivate nondestructive + +VIRTUAL_ENV="/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env" +export VIRTUAL_ENV + +_OLD_VIRTUAL_PATH="$PATH" +PATH="$VIRTUAL_ENV/bin:$PATH" +export PATH + +# unset PYTHONHOME if set +# this will fail if PYTHONHOME is set to the empty string (which is bad anyway) +# could use `if (set -u; : $PYTHONHOME) ;` in bash +if [ -n "${PYTHONHOME:-}" ] ; then + _OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}" + unset PYTHONHOME +fi + +if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then + _OLD_VIRTUAL_PS1="${PS1:-}" + PS1="(agentic_env) ${PS1:-}" + export PS1 + VIRTUAL_ENV_PROMPT="(agentic_env) " + export VIRTUAL_ENV_PROMPT +fi + +# This should detect bash and zsh, which have a hash command that must +# be called to get it to forget past commands. Without forgetting +# past commands the $PATH changes we made may not be respected +if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then + hash -r 2> /dev/null +fi diff --git a/agentic_env/bin/activate.csh b/agentic_env/bin/activate.csh new file mode 100644 index 0000000..938d207 --- /dev/null +++ b/agentic_env/bin/activate.csh @@ -0,0 +1,26 @@ +# This file must be used with "source bin/activate.csh" *from csh*. +# You cannot run it directly. +# Created by Davide Di Blasi . +# Ported to Python 3.3 venv by Andrew Svetlov + +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' + +# Unset irrelevant variables. +deactivate nondestructive + +setenv VIRTUAL_ENV "/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env" + +set _OLD_VIRTUAL_PATH="$PATH" +setenv PATH "$VIRTUAL_ENV/bin:$PATH" + + +set _OLD_VIRTUAL_PROMPT="$prompt" + +if (! "$?VIRTUAL_ENV_DISABLE_PROMPT") then + set prompt = "(agentic_env) $prompt" + setenv VIRTUAL_ENV_PROMPT "(agentic_env) " +endif + +alias pydoc python -m pydoc + +rehash diff --git a/agentic_env/bin/activate.fish b/agentic_env/bin/activate.fish new file mode 100644 index 0000000..3daa4f3 --- /dev/null +++ b/agentic_env/bin/activate.fish @@ -0,0 +1,69 @@ +# This file must be used with "source /bin/activate.fish" *from fish* +# (https://fishshell.com/); you cannot run it directly. + +function deactivate -d "Exit virtual environment and return to normal shell environment" + # reset old environment variables + if test -n "$_OLD_VIRTUAL_PATH" + set -gx PATH $_OLD_VIRTUAL_PATH + set -e _OLD_VIRTUAL_PATH + end + if test -n "$_OLD_VIRTUAL_PYTHONHOME" + set -gx PYTHONHOME $_OLD_VIRTUAL_PYTHONHOME + set -e _OLD_VIRTUAL_PYTHONHOME + end + + if test -n "$_OLD_FISH_PROMPT_OVERRIDE" + set -e _OLD_FISH_PROMPT_OVERRIDE + # prevents error when using nested fish instances (Issue #93858) + if functions -q _old_fish_prompt + functions -e fish_prompt + functions -c _old_fish_prompt fish_prompt + functions -e _old_fish_prompt + end + end + + set -e VIRTUAL_ENV + set -e VIRTUAL_ENV_PROMPT + if test "$argv[1]" != "nondestructive" + # Self-destruct! + functions -e deactivate + end +end + +# Unset irrelevant variables. +deactivate nondestructive + +set -gx VIRTUAL_ENV "/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env" + +set -gx _OLD_VIRTUAL_PATH $PATH +set -gx PATH "$VIRTUAL_ENV/bin" $PATH + +# Unset PYTHONHOME if set. +if set -q PYTHONHOME + set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME + set -e PYTHONHOME +end + +if test -z "$VIRTUAL_ENV_DISABLE_PROMPT" + # fish uses a function instead of an env var to generate the prompt. + + # Save the current fish_prompt function as the function _old_fish_prompt. + functions -c fish_prompt _old_fish_prompt + + # With the original prompt function renamed, we can override with our own. + function fish_prompt + # Save the return status of the last command. + set -l old_status $status + + # Output the venv prompt; color taken from the blue of the Python logo. + printf "%s%s%s" (set_color 4B8BBE) "(agentic_env) " (set_color normal) + + # Restore the return status of the previous command. + echo "exit $old_status" | . + # Output the original/"old" prompt. + _old_fish_prompt + end + + set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV" + set -gx VIRTUAL_ENV_PROMPT "(agentic_env) " +end diff --git a/agentic_env/bin/agenticseek b/agentic_env/bin/agenticseek new file mode 100755 index 0000000..fa4c105 --- /dev/null +++ b/agentic_env/bin/agenticseek @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'agenticSeek==0.1.0','console_scripts','agenticseek' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'agenticSeek==0.1.0' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('agenticSeek==0.1.0', 'console_scripts', 'agenticseek')()) diff --git a/agentic_env/bin/convert-caffe2-to-onnx b/agentic_env/bin/convert-caffe2-to-onnx new file mode 100755 index 0000000..c829467 --- /dev/null +++ b/agentic_env/bin/convert-caffe2-to-onnx @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'torch==2.5.1','console_scripts','convert-caffe2-to-onnx' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'torch==2.5.1' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('torch==2.5.1', 'console_scripts', 'convert-caffe2-to-onnx')()) diff --git a/agentic_env/bin/convert-onnx-to-caffe2 b/agentic_env/bin/convert-onnx-to-caffe2 new file mode 100755 index 0000000..422b233 --- /dev/null +++ b/agentic_env/bin/convert-onnx-to-caffe2 @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'torch==2.5.1','console_scripts','convert-onnx-to-caffe2' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'torch==2.5.1' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('torch==2.5.1', 'console_scripts', 'convert-onnx-to-caffe2')()) diff --git a/agentic_env/bin/csv2rdf b/agentic_env/bin/csv2rdf new file mode 100755 index 0000000..9d09590 --- /dev/null +++ b/agentic_env/bin/csv2rdf @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'rdflib==7.1.3','console_scripts','csv2rdf' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'rdflib==7.1.3' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('rdflib==7.1.3', 'console_scripts', 'csv2rdf')()) diff --git a/agentic_env/bin/csvw2datasette b/agentic_env/bin/csvw2datasette new file mode 100755 index 0000000..b416afc --- /dev/null +++ b/agentic_env/bin/csvw2datasette @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'csvw==3.5.1','console_scripts','csvw2datasette' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'csvw==3.5.1' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('csvw==3.5.1', 'console_scripts', 'csvw2datasette')()) diff --git a/agentic_env/bin/csvw2json b/agentic_env/bin/csvw2json new file mode 100755 index 0000000..65d9454 --- /dev/null +++ b/agentic_env/bin/csvw2json @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'csvw==3.5.1','console_scripts','csvw2json' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'csvw==3.5.1' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('csvw==3.5.1', 'console_scripts', 'csvw2json')()) diff --git a/agentic_env/bin/csvw2markdown b/agentic_env/bin/csvw2markdown new file mode 100755 index 0000000..6991023 --- /dev/null +++ b/agentic_env/bin/csvw2markdown @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'csvw==3.5.1','console_scripts','csvw2markdown' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'csvw==3.5.1' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('csvw==3.5.1', 'console_scripts', 'csvw2markdown')()) diff --git a/agentic_env/bin/csvw2sqlite b/agentic_env/bin/csvw2sqlite new file mode 100755 index 0000000..66e3589 --- /dev/null +++ b/agentic_env/bin/csvw2sqlite @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'csvw==3.5.1','console_scripts','csvw2sqlite' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'csvw==3.5.1' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('csvw==3.5.1', 'console_scripts', 'csvw2sqlite')()) diff --git a/agentic_env/bin/csvwdescribe b/agentic_env/bin/csvwdescribe new file mode 100755 index 0000000..943fa3f --- /dev/null +++ b/agentic_env/bin/csvwdescribe @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'csvw==3.5.1','console_scripts','csvwdescribe' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'csvw==3.5.1' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('csvw==3.5.1', 'console_scripts', 'csvwdescribe')()) diff --git a/agentic_env/bin/csvwvalidate b/agentic_env/bin/csvwvalidate new file mode 100755 index 0000000..72b1e15 --- /dev/null +++ b/agentic_env/bin/csvwvalidate @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'csvw==3.5.1','console_scripts','csvwvalidate' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'csvw==3.5.1' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('csvw==3.5.1', 'console_scripts', 'csvwvalidate')()) diff --git a/agentic_env/bin/distro b/agentic_env/bin/distro new file mode 100755 index 0000000..448fc86 --- /dev/null +++ b/agentic_env/bin/distro @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'distro==1.9.0','console_scripts','distro' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'distro==1.9.0' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('distro==1.9.0', 'console_scripts', 'distro')()) diff --git a/agentic_env/bin/dotenv b/agentic_env/bin/dotenv new file mode 100755 index 0000000..0f76a29 --- /dev/null +++ b/agentic_env/bin/dotenv @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'python-dotenv==1.0.0','console_scripts','dotenv' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'python-dotenv==1.0.0' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('python-dotenv==1.0.0', 'console_scripts', 'dotenv')()) diff --git a/agentic_env/bin/f2py b/agentic_env/bin/f2py new file mode 100755 index 0000000..1ab1972 --- /dev/null +++ b/agentic_env/bin/f2py @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'numpy==1.26.4','console_scripts','f2py' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'numpy==1.26.4' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('numpy==1.26.4', 'console_scripts', 'f2py')()) diff --git a/agentic_env/bin/flask b/agentic_env/bin/flask new file mode 100755 index 0000000..67c62b9 --- /dev/null +++ b/agentic_env/bin/flask @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'flask==3.1.0','console_scripts','flask' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'flask==3.1.0' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('flask==3.1.0', 'console_scripts', 'flask')()) diff --git a/agentic_env/bin/httpx b/agentic_env/bin/httpx new file mode 100755 index 0000000..5005eb1 --- /dev/null +++ b/agentic_env/bin/httpx @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'httpx==0.28.1','console_scripts','httpx' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'httpx==0.28.1' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('httpx==0.28.1', 'console_scripts', 'httpx')()) diff --git a/agentic_env/bin/huggingface-cli b/agentic_env/bin/huggingface-cli new file mode 100755 index 0000000..aa527d5 --- /dev/null +++ b/agentic_env/bin/huggingface-cli @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'huggingface-hub==0.29.2','console_scripts','huggingface-cli' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'huggingface-hub==0.29.2' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('huggingface-hub==0.29.2', 'console_scripts', 'huggingface-cli')()) diff --git a/agentic_env/bin/iptest b/agentic_env/bin/iptest new file mode 100755 index 0000000..b448654 --- /dev/null +++ b/agentic_env/bin/iptest @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==7.16.1','console_scripts','iptest' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'ipython==7.16.1' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('ipython==7.16.1', 'console_scripts', 'iptest')()) diff --git a/agentic_env/bin/iptest3 b/agentic_env/bin/iptest3 new file mode 100755 index 0000000..2097f09 --- /dev/null +++ b/agentic_env/bin/iptest3 @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==7.16.1','console_scripts','iptest3' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'ipython==7.16.1' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('ipython==7.16.1', 'console_scripts', 'iptest3')()) diff --git a/agentic_env/bin/ipython b/agentic_env/bin/ipython new file mode 100755 index 0000000..963dbc7 --- /dev/null +++ b/agentic_env/bin/ipython @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==7.16.1','console_scripts','ipython' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'ipython==7.16.1' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('ipython==7.16.1', 'console_scripts', 'ipython')()) diff --git a/agentic_env/bin/ipython3 b/agentic_env/bin/ipython3 new file mode 100755 index 0000000..da3fbe2 --- /dev/null +++ b/agentic_env/bin/ipython3 @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'ipython==7.16.1','console_scripts','ipython3' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'ipython==7.16.1' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('ipython==7.16.1', 'console_scripts', 'ipython3')()) diff --git a/agentic_env/bin/isympy b/agentic_env/bin/isympy new file mode 100755 index 0000000..55e2c4c --- /dev/null +++ b/agentic_env/bin/isympy @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'sympy==1.13.1','console_scripts','isympy' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'sympy==1.13.1' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('sympy==1.13.1', 'console_scripts', 'isympy')()) diff --git a/agentic_env/bin/jsonschema b/agentic_env/bin/jsonschema new file mode 100755 index 0000000..77ed66b --- /dev/null +++ b/agentic_env/bin/jsonschema @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'jsonschema==4.23.0','console_scripts','jsonschema' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'jsonschema==4.23.0' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('jsonschema==4.23.0', 'console_scripts', 'jsonschema')()) diff --git a/agentic_env/bin/markdown-it b/agentic_env/bin/markdown-it new file mode 100755 index 0000000..205380b --- /dev/null +++ b/agentic_env/bin/markdown-it @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'markdown-it-py==3.0.0','console_scripts','markdown-it' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'markdown-it-py==3.0.0' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('markdown-it-py==3.0.0', 'console_scripts', 'markdown-it')()) diff --git a/agentic_env/bin/normalizer b/agentic_env/bin/normalizer new file mode 100755 index 0000000..c49192a --- /dev/null +++ b/agentic_env/bin/normalizer @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'charset-normalizer==3.4.1','console_scripts','normalizer' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'charset-normalizer==3.4.1' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('charset-normalizer==3.4.1', 'console_scripts', 'normalizer')()) diff --git a/agentic_env/bin/num2words b/agentic_env/bin/num2words new file mode 100755 index 0000000..42e146c --- /dev/null +++ b/agentic_env/bin/num2words @@ -0,0 +1,95 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python +# -*- coding: utf-8 -*- +# Copyright (c) 2003, Taro Ogawa. All Rights Reserved. +# Copyright (c) 2013, Savoir-faire Linux inc. All Rights Reserved. + +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +# MA 02110-1301 USA + +"""num2words: convert numbers into words. + +Usage: + num2words [options] + num2words --list-languages + num2words --list-converters + num2words --help + +Arguments: + Number you want to convert into words + +Options: + -L --list-languages Show all languages. + -C --list-converters Show all converters. + -l --lang= Output language [default: en]. + -t --to= Output converter [default: cardinal]. + -h --help Show this message. + -v --version Show version. + +Examples: + $ num2words 10001 + ten thousand and one + + $ num2words 24,120.10 + twenty-four thousand, one hundred and twenty point one + + $ num2words 24,120.10 -l es + veinticuatro mil ciento veinte punto uno + + $num2words 2.14 -l es --to currency + dos euros con catorce céntimos +""" + +from __future__ import print_function, unicode_literals +import os +import sys +from docopt import docopt +import num2words + +__version__ = "0.5.14" +__license__ = "LGPL" + + +def get_languages(): + return sorted(list(num2words.CONVERTER_CLASSES.keys())) + + +def get_converters(): + return sorted(list(num2words.CONVERTES_TYPES)) + + +def main(): + version = "{}=={}".format(os.path.basename(__file__), __version__) + args = docopt(__doc__, argv=None, help=True, version=version, options_first=False) + if args["--list-languages"]: + for lang in get_languages(): + sys.stdout.write(lang) + sys.stdout.write(os.linesep) + sys.exit(0) + if args["--list-converters"]: + for cvt in get_converters(): + sys.stdout.write(cvt) + sys.stdout.write(os.linesep) + sys.exit(0) + try: + words = num2words.num2words(args[''], lang=args['--lang'], to=args['--to']) + sys.stdout.write(words + os.linesep) + sys.exit(0) + except Exception as err: + sys.stderr.write(str(args[''])) + sys.stderr.write(str(err) + os.linesep) + sys.stderr.write(__doc__) + sys.exit(1) + + +if __name__ == '__main__': + main() diff --git a/agentic_env/bin/numba b/agentic_env/bin/numba new file mode 100755 index 0000000..10230eb --- /dev/null +++ b/agentic_env/bin/numba @@ -0,0 +1,8 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python +# -*- coding: UTF-8 -*- +from __future__ import print_function, division, absolute_import + +from numba.misc.numba_entry import main + +if __name__ == "__main__": + main() diff --git a/agentic_env/bin/openai b/agentic_env/bin/openai new file mode 100755 index 0000000..eddffd3 --- /dev/null +++ b/agentic_env/bin/openai @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'openai==1.61.1','console_scripts','openai' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'openai==1.61.1' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('openai==1.61.1', 'console_scripts', 'openai')()) diff --git a/agentic_env/bin/phonemize b/agentic_env/bin/phonemize new file mode 100755 index 0000000..610f342 --- /dev/null +++ b/agentic_env/bin/phonemize @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'phonemizer-fork==3.3.2','console_scripts','phonemize' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'phonemizer-fork==3.3.2' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('phonemizer-fork==3.3.2', 'console_scripts', 'phonemize')()) diff --git a/agentic_env/bin/pip b/agentic_env/bin/pip new file mode 100755 index 0000000..02c94d5 --- /dev/null +++ b/agentic_env/bin/pip @@ -0,0 +1,8 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from pip._internal.cli.main import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/agentic_env/bin/pip3 b/agentic_env/bin/pip3 new file mode 100755 index 0000000..02c94d5 --- /dev/null +++ b/agentic_env/bin/pip3 @@ -0,0 +1,8 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from pip._internal.cli.main import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/agentic_env/bin/pip3.10 b/agentic_env/bin/pip3.10 new file mode 100755 index 0000000..02c94d5 --- /dev/null +++ b/agentic_env/bin/pip3.10 @@ -0,0 +1,8 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from pip._internal.cli.main import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/agentic_env/bin/pybabel b/agentic_env/bin/pybabel new file mode 100755 index 0000000..efaa0d4 --- /dev/null +++ b/agentic_env/bin/pybabel @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'babel==2.17.0','console_scripts','pybabel' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'babel==2.17.0' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('babel==2.17.0', 'console_scripts', 'pybabel')()) diff --git a/agentic_env/bin/pygmentize b/agentic_env/bin/pygmentize new file mode 100755 index 0000000..1c13b91 --- /dev/null +++ b/agentic_env/bin/pygmentize @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'pygments==2.19.1','console_scripts','pygmentize' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'pygments==2.19.1' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('pygments==2.19.1', 'console_scripts', 'pygmentize')()) diff --git a/agentic_env/bin/pypinyin b/agentic_env/bin/pypinyin new file mode 100755 index 0000000..4d58301 --- /dev/null +++ b/agentic_env/bin/pypinyin @@ -0,0 +1,8 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from pypinyin.__main__ import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/agentic_env/bin/python b/agentic_env/bin/python new file mode 120000 index 0000000..80bd101 --- /dev/null +++ b/agentic_env/bin/python @@ -0,0 +1 @@ +/Users/mlg/miniforge3/bin/python \ No newline at end of file diff --git a/agentic_env/bin/python3 b/agentic_env/bin/python3 new file mode 120000 index 0000000..d8654aa --- /dev/null +++ b/agentic_env/bin/python3 @@ -0,0 +1 @@ +python \ No newline at end of file diff --git a/agentic_env/bin/python3.10 b/agentic_env/bin/python3.10 new file mode 120000 index 0000000..d8654aa --- /dev/null +++ b/agentic_env/bin/python3.10 @@ -0,0 +1 @@ +python \ No newline at end of file diff --git a/agentic_env/bin/rdf2dot b/agentic_env/bin/rdf2dot new file mode 100755 index 0000000..d453ba1 --- /dev/null +++ b/agentic_env/bin/rdf2dot @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'rdflib==7.1.3','console_scripts','rdf2dot' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'rdflib==7.1.3' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('rdflib==7.1.3', 'console_scripts', 'rdf2dot')()) diff --git a/agentic_env/bin/rdfgraphisomorphism b/agentic_env/bin/rdfgraphisomorphism new file mode 100755 index 0000000..7bb7f25 --- /dev/null +++ b/agentic_env/bin/rdfgraphisomorphism @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'rdflib==7.1.3','console_scripts','rdfgraphisomorphism' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'rdflib==7.1.3' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('rdflib==7.1.3', 'console_scripts', 'rdfgraphisomorphism')()) diff --git a/agentic_env/bin/rdfpipe b/agentic_env/bin/rdfpipe new file mode 100755 index 0000000..8420b2b --- /dev/null +++ b/agentic_env/bin/rdfpipe @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'rdflib==7.1.3','console_scripts','rdfpipe' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'rdflib==7.1.3' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('rdflib==7.1.3', 'console_scripts', 'rdfpipe')()) diff --git a/agentic_env/bin/rdfs2dot b/agentic_env/bin/rdfs2dot new file mode 100755 index 0000000..f9ec6ca --- /dev/null +++ b/agentic_env/bin/rdfs2dot @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'rdflib==7.1.3','console_scripts','rdfs2dot' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'rdflib==7.1.3' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('rdflib==7.1.3', 'console_scripts', 'rdfs2dot')()) diff --git a/agentic_env/bin/segments b/agentic_env/bin/segments new file mode 100755 index 0000000..8aab7c7 --- /dev/null +++ b/agentic_env/bin/segments @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'segments==2.3.0','console_scripts','segments' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'segments==2.3.0' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('segments==2.3.0', 'console_scripts', 'segments')()) diff --git a/agentic_env/bin/spacy b/agentic_env/bin/spacy new file mode 100755 index 0000000..e8e684e --- /dev/null +++ b/agentic_env/bin/spacy @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'spacy==3.8.4','console_scripts','spacy' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'spacy==3.8.4' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('spacy==3.8.4', 'console_scripts', 'spacy')()) diff --git a/agentic_env/bin/torchfrtrace b/agentic_env/bin/torchfrtrace new file mode 100755 index 0000000..d4d038b --- /dev/null +++ b/agentic_env/bin/torchfrtrace @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'torch==2.5.1','console_scripts','torchfrtrace' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'torch==2.5.1' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('torch==2.5.1', 'console_scripts', 'torchfrtrace')()) diff --git a/agentic_env/bin/torchrun b/agentic_env/bin/torchrun new file mode 100755 index 0000000..a2cfa9e --- /dev/null +++ b/agentic_env/bin/torchrun @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'torch==2.5.1','console_scripts','torchrun' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'torch==2.5.1' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('torch==2.5.1', 'console_scripts', 'torchrun')()) diff --git a/agentic_env/bin/tqdm b/agentic_env/bin/tqdm new file mode 100755 index 0000000..1d7f4f9 --- /dev/null +++ b/agentic_env/bin/tqdm @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'tqdm==4.67.1','console_scripts','tqdm' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'tqdm==4.67.1' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('tqdm==4.67.1', 'console_scripts', 'tqdm')()) diff --git a/agentic_env/bin/transformers-cli b/agentic_env/bin/transformers-cli new file mode 100755 index 0000000..a1c3a14 --- /dev/null +++ b/agentic_env/bin/transformers-cli @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'transformers==4.48.3','console_scripts','transformers-cli' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'transformers==4.48.3' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('transformers==4.48.3', 'console_scripts', 'transformers-cli')()) diff --git a/agentic_env/bin/typer b/agentic_env/bin/typer new file mode 100755 index 0000000..4d95c64 --- /dev/null +++ b/agentic_env/bin/typer @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'typer==0.15.2','console_scripts','typer' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'typer==0.15.2' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('typer==0.15.2', 'console_scripts', 'typer')()) diff --git a/agentic_env/bin/weasel b/agentic_env/bin/weasel new file mode 100755 index 0000000..15e2721 --- /dev/null +++ b/agentic_env/bin/weasel @@ -0,0 +1,33 @@ +#!/Users/mlg/Documents/A-project/AI/Agents/agenticSeek/agentic_env/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'weasel==0.4.1','console_scripts','weasel' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'weasel==0.4.1' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('weasel==0.4.1', 'console_scripts', 'weasel')()) diff --git a/agentic_env/pyvenv.cfg b/agentic_env/pyvenv.cfg new file mode 100644 index 0000000..c55b506 --- /dev/null +++ b/agentic_env/pyvenv.cfg @@ -0,0 +1,3 @@ +home = /Users/mlg/miniforge3/bin +include-system-site-packages = false +version = 3.10.12 diff --git a/agentic_env/share/man/man1/isympy.1 b/agentic_env/share/man/man1/isympy.1 new file mode 100644 index 0000000..0ff9661 --- /dev/null +++ b/agentic_env/share/man/man1/isympy.1 @@ -0,0 +1,188 @@ +'\" -*- coding: us-ascii -*- +.if \n(.g .ds T< \\FC +.if \n(.g .ds T> \\F[\n[.fam]] +.de URL +\\$2 \(la\\$1\(ra\\$3 +.. +.if \n(.g .mso www.tmac +.TH isympy 1 2007-10-8 "" "" +.SH NAME +isympy \- interactive shell for SymPy +.SH SYNOPSIS +'nh +.fi +.ad l +\fBisympy\fR \kx +.if (\nx>(\n(.l/2)) .nr x (\n(.l/5) +'in \n(.iu+\nxu +[\fB-c\fR | \fB--console\fR] [\fB-p\fR ENCODING | \fB--pretty\fR ENCODING] [\fB-t\fR TYPE | \fB--types\fR TYPE] [\fB-o\fR ORDER | \fB--order\fR ORDER] [\fB-q\fR | \fB--quiet\fR] [\fB-d\fR | \fB--doctest\fR] [\fB-C\fR | \fB--no-cache\fR] [\fB-a\fR | \fB--auto\fR] [\fB-D\fR | \fB--debug\fR] [ +-- | PYTHONOPTIONS] +'in \n(.iu-\nxu +.ad b +'hy +'nh +.fi +.ad l +\fBisympy\fR \kx +.if (\nx>(\n(.l/2)) .nr x (\n(.l/5) +'in \n(.iu+\nxu +[ +{\fB-h\fR | \fB--help\fR} +| +{\fB-v\fR | \fB--version\fR} +] +'in \n(.iu-\nxu +.ad b +'hy +.SH DESCRIPTION +isympy is a Python shell for SymPy. It is just a normal python shell +(ipython shell if you have the ipython package installed) that executes +the following commands so that you don't have to: +.PP +.nf +\*(T< +>>> from __future__ import division +>>> from sympy import * +>>> x, y, z = symbols("x,y,z") +>>> k, m, n = symbols("k,m,n", integer=True) + \*(T> +.fi +.PP +So starting isympy is equivalent to starting python (or ipython) and +executing the above commands by hand. It is intended for easy and quick +experimentation with SymPy. For more complicated programs, it is recommended +to write a script and import things explicitly (using the "from sympy +import sin, log, Symbol, ..." idiom). +.SH OPTIONS +.TP +\*(T<\fB\-c \fR\*(T>\fISHELL\fR, \*(T<\fB\-\-console=\fR\*(T>\fISHELL\fR +Use the specified shell (python or ipython) as +console backend instead of the default one (ipython +if present or python otherwise). + +Example: isympy -c python + +\fISHELL\fR could be either +\&'ipython' or 'python' +.TP +\*(T<\fB\-p \fR\*(T>\fIENCODING\fR, \*(T<\fB\-\-pretty=\fR\*(T>\fIENCODING\fR +Setup pretty printing in SymPy. By default, the most pretty, unicode +printing is enabled (if the terminal supports it). You can use less +pretty ASCII printing instead or no pretty printing at all. + +Example: isympy -p no + +\fIENCODING\fR must be one of 'unicode', +\&'ascii' or 'no'. +.TP +\*(T<\fB\-t \fR\*(T>\fITYPE\fR, \*(T<\fB\-\-types=\fR\*(T>\fITYPE\fR +Setup the ground types for the polys. By default, gmpy ground types +are used if gmpy2 or gmpy is installed, otherwise it falls back to python +ground types, which are a little bit slower. You can manually +choose python ground types even if gmpy is installed (e.g., for testing purposes). + +Note that sympy ground types are not supported, and should be used +only for experimental purposes. + +Note that the gmpy1 ground type is primarily intended for testing; it the +use of gmpy even if gmpy2 is available. + +This is the same as setting the environment variable +SYMPY_GROUND_TYPES to the given ground type (e.g., +SYMPY_GROUND_TYPES='gmpy') + +The ground types can be determined interactively from the variable +sympy.polys.domains.GROUND_TYPES inside the isympy shell itself. + +Example: isympy -t python + +\fITYPE\fR must be one of 'gmpy', +\&'gmpy1' or 'python'. +.TP +\*(T<\fB\-o \fR\*(T>\fIORDER\fR, \*(T<\fB\-\-order=\fR\*(T>\fIORDER\fR +Setup the ordering of terms for printing. The default is lex, which +orders terms lexicographically (e.g., x**2 + x + 1). You can choose +other orderings, such as rev-lex, which will use reverse +lexicographic ordering (e.g., 1 + x + x**2). + +Note that for very large expressions, ORDER='none' may speed up +printing considerably, with the tradeoff that the order of the terms +in the printed expression will have no canonical order + +Example: isympy -o rev-lax + +\fIORDER\fR must be one of 'lex', 'rev-lex', 'grlex', +\&'rev-grlex', 'grevlex', 'rev-grevlex', 'old', or 'none'. +.TP +\*(T<\fB\-q\fR\*(T>, \*(T<\fB\-\-quiet\fR\*(T> +Print only Python's and SymPy's versions to stdout at startup, and nothing else. +.TP +\*(T<\fB\-d\fR\*(T>, \*(T<\fB\-\-doctest\fR\*(T> +Use the same format that should be used for doctests. This is +equivalent to '\fIisympy -c python -p no\fR'. +.TP +\*(T<\fB\-C\fR\*(T>, \*(T<\fB\-\-no\-cache\fR\*(T> +Disable the caching mechanism. Disabling the cache may slow certain +operations down considerably. This is useful for testing the cache, +or for benchmarking, as the cache can result in deceptive benchmark timings. + +This is the same as setting the environment variable SYMPY_USE_CACHE +to 'no'. +.TP +\*(T<\fB\-a\fR\*(T>, \*(T<\fB\-\-auto\fR\*(T> +Automatically create missing symbols. Normally, typing a name of a +Symbol that has not been instantiated first would raise NameError, +but with this option enabled, any undefined name will be +automatically created as a Symbol. This only works in IPython 0.11. + +Note that this is intended only for interactive, calculator style +usage. In a script that uses SymPy, Symbols should be instantiated +at the top, so that it's clear what they are. + +This will not override any names that are already defined, which +includes the single character letters represented by the mnemonic +QCOSINE (see the "Gotchas and Pitfalls" document in the +documentation). You can delete existing names by executing "del +name" in the shell itself. You can see if a name is defined by typing +"'name' in globals()". + +The Symbols that are created using this have default assumptions. +If you want to place assumptions on symbols, you should create them +using symbols() or var(). + +Finally, this only works in the top level namespace. So, for +example, if you define a function in isympy with an undefined +Symbol, it will not work. +.TP +\*(T<\fB\-D\fR\*(T>, \*(T<\fB\-\-debug\fR\*(T> +Enable debugging output. This is the same as setting the +environment variable SYMPY_DEBUG to 'True'. The debug status is set +in the variable SYMPY_DEBUG within isympy. +.TP +-- \fIPYTHONOPTIONS\fR +These options will be passed on to \fIipython (1)\fR shell. +Only supported when ipython is being used (standard python shell not supported). + +Two dashes (--) are required to separate \fIPYTHONOPTIONS\fR +from the other isympy options. + +For example, to run iSymPy without startup banner and colors: + +isympy -q -c ipython -- --colors=NoColor +.TP +\*(T<\fB\-h\fR\*(T>, \*(T<\fB\-\-help\fR\*(T> +Print help output and exit. +.TP +\*(T<\fB\-v\fR\*(T>, \*(T<\fB\-\-version\fR\*(T> +Print isympy version information and exit. +.SH FILES +.TP +\*(T<\fI${HOME}/.sympy\-history\fR\*(T> +Saves the history of commands when using the python +shell as backend. +.SH BUGS +The upstreams BTS can be found at \(lahttps://github.com/sympy/sympy/issues\(ra +Please report all bugs that you find in there, this will help improve +the overall quality of SymPy. +.SH "SEE ALSO" +\fBipython\fR(1), \fBpython\fR(1) diff --git a/ai_workfolder/a.txt b/ai_workfolder/a.txt new file mode 100644 index 0000000..2b31011 --- /dev/null +++ b/ai_workfolder/a.txt @@ -0,0 +1 @@ +hey \ No newline at end of file diff --git a/ai_workfolder/read b/ai_workfolder/read new file mode 100644 index 0000000..16cfb30 --- /dev/null +++ b/ai_workfolder/read @@ -0,0 +1 @@ +toto.txt diff --git a/ai_workfolder/toto.txt b/ai_workfolder/toto.txt new file mode 100644 index 0000000..a0daffb --- /dev/null +++ b/ai_workfolder/toto.txt @@ -0,0 +1 @@ +'izjzfojzfo \ No newline at end of file diff --git a/config.ini b/config.ini index 199bc9b..78fcb05 100644 --- a/config.ini +++ b/config.ini @@ -7,5 +7,5 @@ agent_name = Friday recover_last_session = True save_session = False speak = True -listen = False +listen = True work_dir = /Users/mlg/Documents/A-project/AI/Agents/agenticSeek/ai_workfolder \ No newline at end of file diff --git a/exemples/find_file.png b/exemples/find_file.png deleted file mode 100644 index 11be4fc..0000000 Binary files a/exemples/find_file.png and /dev/null differ diff --git a/exemples/search_and_planner.png b/exemples/search_and_planner.png deleted file mode 100644 index 8fced31..0000000 Binary files a/exemples/search_and_planner.png and /dev/null differ diff --git a/media/exemples/basic_web_search.png b/media/exemples/basic_web_search.png new file mode 100644 index 0000000..c1eaab2 Binary files /dev/null and b/media/exemples/basic_web_search.png differ diff --git a/media/exemples/files_interaction.png b/media/exemples/files_interaction.png new file mode 100644 index 0000000..ac57958 Binary files /dev/null and b/media/exemples/files_interaction.png differ diff --git a/media/exemples/find_files.png b/media/exemples/find_files.png new file mode 100644 index 0000000..d5b4406 Binary files /dev/null and b/media/exemples/find_files.png differ diff --git a/exemples/whale_readme.jpg b/media/whale_readme.jpg similarity index 100% rename from exemples/whale_readme.jpg rename to media/whale_readme.jpg diff --git a/requirements.txt b/requirements.txt index 361411b..97e15e6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,8 +13,10 @@ flask==3.1.0 soundfile==0.13.1 protobuf==3.20.3 termcolor==2.5.0 +ipython==9.0.2 gliclass==0.1.8 -huggingface-hub==0.26.3 +pyaudio==0.2.14 +librosa==0.10.2.post1 # if use chinese ordered_set pypinyin diff --git a/setup.py b/setup.py index 8727892..b5f3076 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,9 @@ setup( "protobuf==3.20.3", "termcolor==2.5.0", "gliclass==0.1.8", - "huggingface-hub==0.26.3" + "ipython==7.16.1", + "pyaudio-0.2.14", + "librosa==0.10.2.post1" ], extras_require={ "chinese": [ diff --git a/sources/agents/agent.py b/sources/agents/agent.py index fa5d7d2..37205c3 100644 --- a/sources/agents/agent.py +++ b/sources/agents/agent.py @@ -3,10 +3,13 @@ from typing import Tuple, Callable from abc import abstractmethod import os import random +import time from sources.memory import Memory from sources.utility import pretty_print +random.seed(time.time()) + class executorResult: """ A class to store the result of a tool execution. @@ -106,7 +109,6 @@ class Agent(): if speech_module is None: return messages = ["Please be patient sir, I am working on it.", - "At it, sir. In the meantime, how about a joke?", "Computing... I recommand you have a coffee while I work.", "Hold on, I’m crunching numbers.", "Working on it sir, please let me think."] diff --git a/sources/agents/casual_agent.py b/sources/agents/casual_agent.py index b603317..314c3b8 100644 --- a/sources/agents/casual_agent.py +++ b/sources/agents/casual_agent.py @@ -18,22 +18,23 @@ class CasualAgent(Agent): "file_finder": FileFinder(), "bash": BashInterpreter() } - self.role = "talking, advices and philosophical" + self.role = "talking, advices, events and philosophical" def process(self, prompt, speech_module) -> str: complete = False - exec_success = False self.memory.push('user', prompt) self.wait_message(speech_module) while not complete: - if exec_success: - complete = True animate_thinking("Thinking...", color="status") answer, reasoning = self.llm_request() exec_success, _ = self.execute_modules(answer) answer = self.remove_blocks(answer) self.last_answer = answer + complete = True + for tool in self.tools.values(): + if tool.found_executable_blocks(): + complete = False # AI read results and continue the conversation return answer, reasoning if __name__ == "__main__": diff --git a/sources/agents/code_agent.py b/sources/agents/code_agent.py index ca49b7f..13e2d20 100644 --- a/sources/agents/code_agent.py +++ b/sources/agents/code_agent.py @@ -32,6 +32,7 @@ class CoderAgent(Agent): animate_thinking("Thinking...", color="status") self.wait_message(speech_module) answer, reasoning = self.llm_request() + animate_thinking("Executing code...", color="status") exec_success, _ = self.execute_modules(answer) answer = self.remove_blocks(answer) self.last_answer = answer diff --git a/sources/agents/file_agent.py b/sources/agents/file_agent.py index 3f69ac1..cc16adb 100644 --- a/sources/agents/file_agent.py +++ b/sources/agents/file_agent.py @@ -30,6 +30,10 @@ class FileAgent(Agent): exec_success, _ = self.execute_modules(answer) answer = self.remove_blocks(answer) self.last_answer = answer + complete = True + for name, tool in self.tools.items(): + if tool.found_executable_blocks(): + complete = False # AI read results and continue the conversation return answer, reasoning if __name__ == "__main__": diff --git a/sources/agents/planner_agent.py b/sources/agents/planner_agent.py index d82b4e9..aaafc3a 100644 --- a/sources/agents/planner_agent.py +++ b/sources/agents/planner_agent.py @@ -81,6 +81,9 @@ class PlannerAgent(Agent): speech_module.speak(f"I will {task_name}. I assigned the {task['agent']} agent to the task.") try: self.agents[task['agent'].lower()].process(agent_prompt, None) + pretty_print(f"-- Agent answer ---\n\n", color="output") + self.agents[task['agent'].lower()].show_answer() + pretty_print(f"\n\n", color="output") except Exception as e: pretty_print(f"Error: {e}", color="failure") speech_module.speak(f"I encountered an error: {e}") diff --git a/sources/router.py b/sources/router.py index 8db0ec3..2ebd991 100644 --- a/sources/router.py +++ b/sources/router.py @@ -80,7 +80,7 @@ if __name__ == "__main__": Hey could you search the web for the latest news on the stock market ? """, """ - hey can you give dating advice ? + hey can you give give a list of the files in the current directory ? """, """ Make a cool game to illustrate the current relation between USA and europe diff --git a/sources/text_to_speech.py b/sources/text_to_speech.py index 13ba1a4..6bc4527 100644 --- a/sources/text_to_speech.py +++ b/sources/text_to_speech.py @@ -40,8 +40,7 @@ class Speech(): ) for i, (gs, ps, audio) in enumerate(generator): audio_file = 'sample.wav' - print(audio_file) - display(Audio(data=audio, rate=24000, autoplay=i==0)) + display(Audio(data=audio, rate=24000, autoplay=i==0), display_id=False) sf.write(audio_file, audio, 24000) # save each audio file if platform.system().lower() != "windows": subprocess.call(["afplay", audio_file]) diff --git a/sources/tools/PyInterpreter.py b/sources/tools/PyInterpreter.py index 8d47bda..2c250c9 100644 --- a/sources/tools/PyInterpreter.py +++ b/sources/tools/PyInterpreter.py @@ -1,5 +1,6 @@ import sys +import os import re from io import StringIO @@ -25,10 +26,15 @@ class PyInterpreter(Tools): return "Code rejected by user." stdout_buffer = StringIO() sys.stdout = stdout_buffer + global_vars = { + '__builtins__': __builtins__, + 'os': os, + 'sys': sys, + } code = '\n\n'.join(codes) try: try: - buffer = exec(code) + buffer = exec(code, global_vars) if buffer is not None: output = buffer + '\n' except Exception as e: diff --git a/sources/tools/fileFinder.py b/sources/tools/fileFinder.py index 715b343..273356c 100644 --- a/sources/tools/fileFinder.py +++ b/sources/tools/fileFinder.py @@ -62,7 +62,6 @@ class FileFinder(Tools): file_path = None excluded_files = [".pyc", ".o", ".so", ".a", ".lib", ".dll", ".dylib", ".so", ".git"] for root, dirs, files in os.walk(directory_path): - print(f"Root: {root}, Files: {files}") for file in files: if any(excluded_file in file for excluded_file in excluded_files): continue diff --git a/sources/tools/tools.py b/sources/tools/tools.py index c6856e0..92acaba 100644 --- a/sources/tools/tools.py +++ b/sources/tools/tools.py @@ -39,6 +39,7 @@ class Tools(): self.messages = [] self.config = configparser.ConfigParser() self.current_dir = self.create_work_dir() + self.excutable_blocks_found = False def check_config_dir_validity(self): """ @@ -129,6 +130,14 @@ class Tools(): print(f"Saving code block to: {save_path}") with open(os.path.join(directory, save_path_file), 'w') as f: f.write(block) + + def found_executable_blocks(self): + """ + Check if executable blocks were found. + """ + tmp = self.excutable_blocks_found + self.excutable_blocks_found = False + return tmp def load_exec_block(self, llm_text: str) -> tuple[list[str], str | None]: """ @@ -178,6 +187,7 @@ class Tools(): if ':' in content.split('\n')[0]: save_path = content.split('\n')[0].split(':')[1] content = content[content.find('\n')+1:] + self.excutable_blocks_found = True code_blocks.append(content) start_index = end_pos + len(end_tag) return code_blocks, save_path diff --git a/sources/tools/webSearch.py b/sources/tools/webSearch.py index 2411902..4544d1f 100644 --- a/sources/tools/webSearch.py +++ b/sources/tools/webSearch.py @@ -6,9 +6,13 @@ import dotenv dotenv.load_dotenv() if __name__ == "__main__": + import sys + sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) + from utility import animate_thinking, pretty_print from tools import Tools else: from sources.tools.tools import Tools + from sources.utility import animate_thinking, pretty_print class webSearch(Tools): def __init__(self, api_key: str = None): @@ -24,6 +28,7 @@ class webSearch(Tools): return "Error: No SerpApi key provided." for block in blocks: query = block.strip() + pretty_print(f"Searching for: {query}", color="status") if not query: return "Error: No search query provided." @@ -32,19 +37,21 @@ class webSearch(Tools): params = { "q": query, "api_key": self.api_key, - "num": 1, + "num": 100, "output": "json" } response = requests.get(url, params=params) response.raise_for_status() data = response.json() + results = [] if "organic_results" in data and len(data["organic_results"]) > 0: - first_result = data["organic_results"][0] - title = first_result.get("title", "No title") - snippet = first_result.get("snippet", "No snippet available") - link = first_result.get("link", "No link available") - return f"Title: {title}\nSnippet: {snippet}\nLink: {link}" + for result in data["organic_results"][:50]: + title = result.get("title", "No title") + snippet = result.get("snippet", "No snippet available") + link = result.get("link", "No link available") + results.append(f"Title: {title}\nSnippet: {snippet}\nLink: {link}") + return "\n\n".join(results) else: return "No results found for the query." except requests.RequestException as e: @@ -65,6 +72,6 @@ class webSearch(Tools): if __name__ == "__main__": search_tool = webSearch(api_key=os.getenv("SERPAPI_KEY")) query = "when did covid start" - result = search_tool.execute(query, safety=True) + result = search_tool.execute([query], safety=True) feedback = search_tool.interpreter_feedback(result) print(feedback) \ No newline at end of file diff --git a/sources/utility.py b/sources/utility.py index 7b7d696..a9a29c0 100644 --- a/sources/utility.py +++ b/sources/utility.py @@ -2,6 +2,9 @@ from colorama import Fore from termcolor import colored import platform +import threading +import itertools +import time def pretty_print(text, color = "info"): @@ -49,44 +52,41 @@ def pretty_print(text, color = "info"): color = "default" print(colored(text, color_map[color])) -def animate_thinking(text="thinking...", color="status", duration=2): +def animate_thinking(text, color="status", duration=2): """ - Display an animated "thinking..." indicator. - + Display an animated "thinking..." indicator in a separate thread. Args: - text (str): Text to display (default: "thinking...") - color (str): Color for the text (matches pretty_print colors) + text (str): Text to display + color (str): Color for the text duration (float): How long to animate in seconds """ - import time - import itertools + def _animate(): + color_map = { + "success": (Fore.GREEN, "green"), + "failure": (Fore.RED, "red"), + "status": (Fore.LIGHTGREEN_EX, "light_green"), + "code": (Fore.LIGHTBLUE_EX, "light_blue"), + "warning": (Fore.YELLOW, "yellow"), + "output": (Fore.LIGHTCYAN_EX, "cyan"), + "default": (Fore.RESET, "black"), + "info": (Fore.CYAN, "cyan") + } - color_map = { - "success": (Fore.GREEN, "green"), - "failure": (Fore.RED, "red"), - "status": (Fore.LIGHTGREEN_EX, "light_green"), - "code": (Fore.LIGHTBLUE_EX, "light_blue"), - "warning": (Fore.YELLOW, "yellow"), - "output": (Fore.LIGHTCYAN_EX, "cyan"), - "default": (Fore.RESET, "black"), - "info": (Fore.CYAN, "cyan") - } + fore_color, term_color = color_map[color] + spinner = itertools.cycle(['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏']) + end_time = time.time() + duration - if color not in color_map: - color = "info" - - fore_color, term_color = color_map[color] - spinner = itertools.cycle(['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏']) - end_time = time.time() + duration - - while time.time() < end_time: - symbol = next(spinner) - if platform.system().lower() != "windows": - print(f"\r{fore_color}{symbol} {text}{Fore.RESET}", end="", flush=True) - else: - print(colored(f"\r{symbol} {text}", term_color), end="", flush=True) - time.sleep(0.1) - print() + while time.time() < end_time: + symbol = next(spinner) + if platform.system().lower() != "windows": + print(f"\r{fore_color}{symbol} {text}{Fore.RESET}", end="", flush=True) + else: + print(colored(f"\r{symbol} {text}", term_color), end="", flush=True) + time.sleep(0.1) + print() + animation_thread = threading.Thread(target=_animate) + animation_thread.daemon = True + animation_thread.start() def timer_decorator(func): """