machineconfig 1.92__py3-none-any.whl ā 1.94__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of machineconfig might be problematic. Click here for more details.
- machineconfig/__init__.py +0 -8
- machineconfig/cluster/__init__.py +0 -0
- machineconfig/cluster/cloud_manager.py +359 -0
- machineconfig/cluster/data_transfer.py +56 -0
- machineconfig/cluster/distribute.py +280 -0
- machineconfig/cluster/file_manager.py +238 -0
- machineconfig/cluster/job_params.py +148 -0
- machineconfig/cluster/loader_runner.py +150 -0
- machineconfig/cluster/remote_machine.py +281 -0
- machineconfig/cluster/script_execution.py +209 -0
- machineconfig/cluster/script_notify_upon_completion.py +63 -0
- machineconfig/cluster/self_ssh.py +59 -0
- machineconfig/cluster/session_managers.py +183 -0
- machineconfig/cluster/templates/__init__.py +0 -0
- machineconfig/cluster/templates/cli_click.py +104 -0
- machineconfig/cluster/templates/cli_gooey.py +119 -0
- machineconfig/cluster/templates/cli_trogon.py +21 -0
- machineconfig/cluster/templates/f.py +4 -0
- machineconfig/cluster/templates/run_cloud.py +52 -0
- machineconfig/cluster/templates/run_cluster.py +69 -0
- machineconfig/cluster/templates/run_remote.py +67 -0
- machineconfig/cluster/templates/utils.py +37 -0
- machineconfig/jobs/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/jobs/linux/msc/lid.sh +26 -0
- machineconfig/jobs/linux/msc/network.sh +39 -0
- machineconfig/jobs/python/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/jobs/python/__pycache__/check_installations.cpython-311.pyc +0 -0
- machineconfig/jobs/python/__pycache__/checkout_version.cpython-311.pyc +0 -0
- machineconfig/jobs/python/__pycache__/python_ve_symlink.cpython-311.pyc +0 -0
- machineconfig/jobs/python/archive/python_tools.txt +12 -0
- machineconfig/jobs/python/check_installations.py +26 -11
- machineconfig/jobs/python/checkout_version.py +24 -13
- machineconfig/jobs/python/create_zellij_template.py +4 -4
- machineconfig/jobs/python/python_cargo_build_share.py +13 -4
- machineconfig/jobs/python/python_ve_symlink.py +15 -4
- machineconfig/jobs/python/vscode/__pycache__/api.cpython-311.pyc +0 -0
- machineconfig/jobs/python/vscode/__pycache__/link_ve.cpython-311.pyc +0 -0
- machineconfig/jobs/python/vscode/api.py +48 -0
- machineconfig/jobs/python/vscode/link_ve.py +64 -0
- machineconfig/jobs/python/vscode/select_interpreter.py +84 -0
- machineconfig/jobs/python/vscode/sync_code.py +60 -0
- machineconfig/jobs/python_custom_installers/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/jobs/python_custom_installers/__pycache__/hx.cpython-311.pyc +0 -0
- machineconfig/jobs/python_custom_installers/archive/ngrok.py +62 -0
- machineconfig/jobs/python_custom_installers/dev/aider.py +37 -0
- machineconfig/jobs/python_custom_installers/dev/alacritty.py +72 -0
- machineconfig/jobs/python_custom_installers/dev/brave.py +67 -0
- machineconfig/jobs/python_custom_installers/dev/bypass_paywall.py +50 -0
- machineconfig/jobs/python_custom_installers/dev/code.py +62 -0
- machineconfig/jobs/python_custom_installers/dev/cursor.py +67 -0
- machineconfig/jobs/python_custom_installers/dev/docker.py +70 -0
- machineconfig/jobs/python_custom_installers/dev/docker_desktop.py +77 -0
- machineconfig/jobs/python_custom_installers/dev/espanso.py +82 -0
- machineconfig/jobs/python_custom_installers/dev/goes.py +59 -0
- machineconfig/jobs/python_custom_installers/dev/lvim.py +76 -0
- machineconfig/jobs/python_custom_installers/dev/nerdfont.py +67 -0
- machineconfig/jobs/python_custom_installers/dev/redis.py +69 -0
- machineconfig/jobs/python_custom_installers/dev/reverse_proxy.md +31 -0
- machineconfig/jobs/python_custom_installers/dev/warp-cli.py +71 -0
- machineconfig/jobs/python_custom_installers/dev/wezterm.py +71 -0
- machineconfig/jobs/python_custom_installers/gh.py +46 -4
- machineconfig/jobs/python_custom_installers/hx.py +103 -18
- machineconfig/jobs/python_custom_installers/scripts/linux/brave.sh +52 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/docker.sh +140 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/docker_start.sh +48 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/edge.sh +47 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/nerdfont.sh +64 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/pgsql.sh +53 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/redis.sh +76 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/timescaledb.sh +91 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/vscode.sh +66 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/warp-cli.sh +77 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/wezterm.sh +43 -0
- machineconfig/jobs/python_generic_installers/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/jobs/python_generic_installers/config.json +267 -0
- machineconfig/jobs/python_generic_installers/dev/config.archive.json +18 -0
- machineconfig/jobs/python_generic_installers/dev/config.json +394 -0
- machineconfig/jobs/python_linux_installers/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/jobs/python_linux_installers/archive/config.json +10 -0
- machineconfig/jobs/python_linux_installers/config.json +74 -0
- machineconfig/jobs/python_linux_installers/dev/config.json +138 -0
- machineconfig/jobs/python_windows_installers/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/jobs/python_windows_installers/archive/file.json +11 -0
- machineconfig/jobs/python_windows_installers/config.json +50 -0
- machineconfig/jobs/python_windows_installers/dev/config.json +3 -0
- machineconfig/jobs/windows/archive/archive_pygraphviz.ps1 +14 -0
- machineconfig/jobs/windows/archive/openssh-server_add_key.ps1 +7 -0
- machineconfig/jobs/windows/archive/openssh-server_copy-ssh-id.ps1 +14 -0
- machineconfig/jobs/windows/start_terminal.ps1 +6 -0
- machineconfig/jobs/windows/startup_file.cmd +2 -0
- machineconfig/profile/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/profile/__pycache__/create.cpython-311.pyc +0 -0
- machineconfig/profile/__pycache__/shell.cpython-311.pyc +0 -0
- machineconfig/profile/create.py +47 -13
- machineconfig/profile/create_hardlinks.py +42 -12
- machineconfig/profile/records/generic/shares.toml +5 -0
- machineconfig/profile/records/linux/apps_summary_report.csv +48 -0
- machineconfig/profile/records/linux/apps_summary_report.md +49 -0
- machineconfig/profile/records/windows/apps_summary_report.csv +1 -0
- machineconfig/profile/records/windows/apps_summary_report.md +2 -0
- machineconfig/profile/shell.py +62 -11
- machineconfig/scripts/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/scripts/cloud/init.sh +128 -0
- machineconfig/scripts/linux/activate_ve +87 -0
- machineconfig/scripts/linux/archive/tmate_conn +12 -0
- machineconfig/scripts/linux/archive/tmate_start +12 -0
- machineconfig/scripts/linux/archive/transfer_wsl_win +5 -0
- machineconfig/scripts/linux/checkout_versions +8 -0
- machineconfig/scripts/linux/choose_wezterm_theme +9 -0
- machineconfig/scripts/linux/cloud_copy +9 -0
- machineconfig/scripts/linux/cloud_manager +8 -0
- machineconfig/scripts/linux/cloud_mount +24 -0
- machineconfig/scripts/linux/cloud_repo_sync +22 -0
- machineconfig/scripts/linux/cloud_sync +24 -0
- machineconfig/scripts/linux/croshell +24 -0
- machineconfig/scripts/linux/devops +24 -0
- machineconfig/scripts/linux/fire +46 -0
- machineconfig/scripts/linux/ftpx +8 -0
- machineconfig/scripts/linux/fzf2g +21 -0
- machineconfig/scripts/linux/fzfag +17 -0
- machineconfig/scripts/linux/fzffg +25 -0
- machineconfig/scripts/linux/fzfg +23 -0
- machineconfig/scripts/linux/fzfrga +21 -0
- machineconfig/scripts/linux/gh_models +11 -0
- machineconfig/scripts/linux/kill_process +10 -0
- machineconfig/scripts/linux/mount_drive +128 -0
- machineconfig/scripts/linux/mount_nfs +62 -0
- machineconfig/scripts/linux/mount_nw_drive +72 -0
- machineconfig/scripts/linux/mount_smb +3 -0
- machineconfig/scripts/linux/programs +21 -0
- machineconfig/scripts/linux/repos +24 -0
- machineconfig/scripts/linux/scheduler +8 -0
- machineconfig/scripts/linux/share_cloud.sh +81 -0
- machineconfig/scripts/linux/share_nfs +49 -0
- machineconfig/scripts/linux/share_smb +1 -0
- machineconfig/scripts/linux/skrg +4 -0
- machineconfig/scripts/linux/start_docker +23 -0
- machineconfig/scripts/linux/start_slidev +23 -0
- machineconfig/scripts/linux/start_terminals +12 -0
- machineconfig/scripts/linux/switch_ip +20 -0
- machineconfig/scripts/linux/url2md +10 -0
- machineconfig/scripts/linux/z_ls +104 -0
- machineconfig/scripts/python/.mypy_cache/.gitignore +2 -0
- machineconfig/scripts/python/.mypy_cache/3.11/@plugins_snapshot.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/__future__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/__future__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_ast.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_ast.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_bz2.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_bz2.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_codecs.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_codecs.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_collections_abc.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_collections_abc.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_compression.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_compression.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_decimal.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_decimal.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_frozen_importlib.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_frozen_importlib.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_frozen_importlib_external.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_frozen_importlib_external.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_io.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_io.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_locale.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_locale.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_stat.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_stat.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_struct.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_struct.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_thread.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_thread.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_typeshed/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_typeshed/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_typeshed/importlib.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_typeshed/importlib.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_warnings.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_warnings.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_weakref.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_weakref.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_weakrefset.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_weakrefset.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/abc.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/abc.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/argparse.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/argparse.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/ast.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/ast.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/binascii.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/binascii.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/builtins.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/builtins.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/bz2.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/bz2.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/calendar.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/calendar.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/codecs.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/codecs.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/collections/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/collections/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/collections/abc.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/collections/abc.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/configparser.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/configparser.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/contextlib.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/contextlib.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/dataclasses.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/dataclasses.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/datetime.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/datetime.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/decimal.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/decimal.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/dis.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/dis.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/_policybase.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/_policybase.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/charset.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/charset.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/contentmanager.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/contentmanager.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/errors.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/errors.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/header.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/header.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/message.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/message.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/policy.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/policy.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/enum.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/enum.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/fnmatch.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/fnmatch.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/functools.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/functools.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/gc.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/gc.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/genericpath.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/genericpath.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/getpass.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/getpass.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/cmd.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/cmd.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/compat.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/compat.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/config.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/config.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/db.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/db.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/diff.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/diff.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/exc.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/exc.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/base.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/base.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/fun.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/fun.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/typ.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/typ.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/util.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/util.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/base.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/base.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/blob.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/blob.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/commit.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/commit.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/fun.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/fun.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/submodule/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/submodule/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/submodule/base.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/submodule/base.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/submodule/root.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/submodule/root.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/submodule/util.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/submodule/util.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/tag.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/tag.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/tree.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/tree.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/util.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/util.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/head.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/head.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/log.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/log.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/reference.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/reference.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/remote.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/remote.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/symbolic.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/symbolic.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/tag.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/tag.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/remote.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/remote.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/repo/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/repo/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/repo/base.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/repo/base.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/repo/fun.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/repo/fun.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/types.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/types.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/util.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/util.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/glob.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/glob.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/gzip.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/gzip.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/_abc.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/_abc.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/_bootstrap.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/_bootstrap.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/_bootstrap_external.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/_bootstrap_external.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/abc.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/abc.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/machinery.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/machinery.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/metadata/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/metadata/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/metadata/_meta.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/metadata/_meta.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/readers.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/readers.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/resources/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/resources/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/resources/_common.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/resources/_common.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/resources/abc.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/resources/abc.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/inspect.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/inspect.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/io.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/io.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/itertools.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/itertools.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/locale.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/locale.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/logging/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/logging/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/mimetypes.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/mimetypes.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/mmap.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/mmap.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/numbers.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/numbers.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/opcode.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/opcode.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/os/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/os/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/os/path.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/os/path.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/pathlib.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/pathlib.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/platform.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/platform.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/posixpath.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/posixpath.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/re.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/re.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/resource.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/resource.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/shlex.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/shlex.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/shutil.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/shutil.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/signal.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/signal.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/src/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/src/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/src/machineconfig/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/src/machineconfig/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/src/machineconfig/scripts/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/src/machineconfig/scripts/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/src/machineconfig/scripts/python/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/src/machineconfig/scripts/python/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/sre_compile.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/sre_compile.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/sre_constants.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/sre_constants.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/sre_parse.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/sre_parse.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/stat.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/stat.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/string.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/string.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/struct.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/struct.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/subprocess.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/subprocess.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/sys/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/sys/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/tarfile.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/tarfile.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/tempfile.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/tempfile.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/textwrap.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/textwrap.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/threading.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/threading.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/time.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/time.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/types.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/types.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/typing.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/typing.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/typing_extensions.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/typing_extensions.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/urllib/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/urllib/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/urllib/parse.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/urllib/parse.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/uuid.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/uuid.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/warnings.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/warnings.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/weakref.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/weakref.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/zipfile/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/zipfile/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/zlib.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/zlib.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/CACHEDIR.TAG +3 -0
- machineconfig/scripts/python/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/cloud_copy.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/cloud_mount.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/cloud_repo_sync.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/cloud_sync.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/croshell.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/devops.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/devops_backup_retrieve.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/devops_devapps_install.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/devops_update_repos.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/fire_jobs.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/gh_models.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/repos.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/url2md.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/viewer.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/vscode_api.cpython-311.pyc +0 -0
- machineconfig/scripts/python/archive/im2text.py +36 -0
- machineconfig/scripts/python/archive/tmate_conn.py +44 -0
- machineconfig/scripts/python/archive/tmate_start.py +48 -0
- machineconfig/scripts/python/choose_wezterm_theme.py +23 -4
- machineconfig/scripts/python/cloud_copy.py +131 -29
- machineconfig/scripts/python/cloud_manager.py +55 -2
- machineconfig/scripts/python/cloud_mount.py +43 -4
- machineconfig/scripts/python/cloud_repo_sync.py +114 -103
- machineconfig/scripts/python/cloud_sync.py +36 -220
- machineconfig/scripts/python/croshell.py +102 -32
- machineconfig/scripts/python/devops.py +143 -42
- machineconfig/scripts/python/devops_add_identity.py +112 -9
- machineconfig/scripts/python/devops_add_ssh_key.py +170 -15
- machineconfig/scripts/python/devops_backup_retrieve.py +132 -14
- machineconfig/scripts/python/devops_devapps_install.py +33 -11
- machineconfig/scripts/python/devops_update_repos.py +36 -29
- machineconfig/scripts/python/dotfile.py +8 -3
- machineconfig/scripts/python/fire_jobs.py +145 -289
- machineconfig/scripts/python/ftpx.py +76 -18
- machineconfig/scripts/python/get_zellij_cmd.py +14 -0
- machineconfig/scripts/python/gh_models.py +72 -25
- machineconfig/scripts/python/helpers/__init__.py +0 -0
- machineconfig/scripts/python/helpers/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/scripts/python/helpers/__pycache__/cloud_helpers.cpython-311.pyc +0 -0
- machineconfig/scripts/python/helpers/__pycache__/helpers2.cpython-311.pyc +0 -0
- machineconfig/scripts/python/helpers/__pycache__/helpers4.cpython-311.pyc +0 -0
- machineconfig/scripts/python/helpers/cloud_helpers.py +134 -0
- machineconfig/scripts/python/helpers/helpers2.py +149 -0
- machineconfig/scripts/python/helpers/helpers4.py +178 -0
- machineconfig/scripts/python/helpers/helpers5.py +50 -0
- machineconfig/scripts/python/helpers/repo_sync_helpers.py +126 -0
- machineconfig/scripts/python/mount_nfs.py +46 -15
- machineconfig/scripts/python/mount_nw_drive.py +22 -10
- machineconfig/scripts/python/mount_ssh.py +28 -12
- machineconfig/scripts/python/onetimeshare.py +23 -15
- machineconfig/scripts/python/pomodoro.py +38 -24
- machineconfig/scripts/python/repos.py +29 -32
- machineconfig/scripts/python/scheduler.py +19 -18
- machineconfig/scripts/python/snapshot.py +14 -6
- machineconfig/scripts/python/start_slidev.py +24 -32
- machineconfig/scripts/python/start_terminals.py +23 -10
- machineconfig/scripts/python/viewer.py +53 -0
- machineconfig/scripts/python/viewer_template.py +140 -0
- machineconfig/scripts/python/wifi_conn.py +20 -12
- machineconfig/scripts/python/wsl_windows_transfer.py +18 -10
- machineconfig/scripts/windows/activate_ve.ps1 +54 -0
- machineconfig/scripts/windows/archive/gource2vid.ps1 +14 -0
- machineconfig/scripts/windows/archive/im2text.ps1 +27 -0
- machineconfig/scripts/windows/archive/secure_pull.ps1 +46 -0
- machineconfig/scripts/windows/archive/secure_push.ps1 +85 -0
- machineconfig/scripts/windows/archive/tmate_conn.ps1 +7 -0
- machineconfig/scripts/windows/checkout_version.ps1 +6 -0
- machineconfig/scripts/windows/choose_wezterm_theme.ps1 +20 -0
- machineconfig/scripts/windows/cloud_copy.ps1 +17 -0
- machineconfig/scripts/windows/cloud_manager.ps1 +8 -0
- machineconfig/scripts/windows/cloud_mount.ps1 +25 -0
- machineconfig/scripts/windows/cloud_repo_sync.ps1 +8 -0
- machineconfig/scripts/windows/cloud_sync.ps1 +21 -0
- machineconfig/scripts/windows/croshell.ps1 +40 -0
- machineconfig/scripts/windows/devops.ps1 +32 -0
- machineconfig/scripts/windows/dotfile.ps1 +9 -0
- machineconfig/scripts/windows/fire.ps1 +33 -0
- machineconfig/scripts/windows/ftpx.ps1 +5 -0
- machineconfig/scripts/windows/fzfb.ps1 +3 -0
- machineconfig/scripts/windows/fzfg.ps1 +2 -0
- machineconfig/scripts/windows/fzfrga.bat +20 -0
- machineconfig/scripts/windows/gpt.ps1 +23 -0
- machineconfig/scripts/windows/grep.ps1 +2 -0
- machineconfig/scripts/windows/kill_process.ps1 +8 -0
- machineconfig/scripts/windows/mount_nfs.ps1 +44 -0
- machineconfig/scripts/windows/mount_nw.ps1 +9 -0
- machineconfig/scripts/windows/mount_smb.ps1 +2 -0
- machineconfig/scripts/windows/mount_ssh.ps1 +17 -0
- machineconfig/scripts/windows/nano.ps1 +3 -0
- machineconfig/scripts/windows/neofetch.ps1 +2 -0
- machineconfig/scripts/windows/pomodoro.ps1 +8 -0
- machineconfig/scripts/windows/py2exe.ps1 +12 -0
- machineconfig/scripts/windows/reload_path.ps1 +3 -0
- machineconfig/scripts/windows/repos.ps1 +27 -0
- machineconfig/scripts/windows/scheduler.ps1 +6 -0
- machineconfig/scripts/windows/share_cloud.cmd +34 -0
- machineconfig/scripts/windows/share_nfs.ps1 +0 -0
- machineconfig/scripts/windows/share_smb.ps1 +22 -0
- machineconfig/scripts/windows/snapshot.ps1 +5 -0
- machineconfig/scripts/windows/start_slidev.ps1 +21 -0
- machineconfig/scripts/windows/start_terminals.ps1 +22 -0
- machineconfig/scripts/windows/unlock_bitlocker.ps1 +10 -0
- machineconfig/scripts/windows/utils/op_script_delete.ps1 +7 -0
- machineconfig/scripts/windows/wifi_conn.ps1 +7 -0
- machineconfig/scripts/windows/wsl_rdp_windows_port_forwarding.ps1 +46 -0
- machineconfig/scripts/windows/wsl_ssh_windows_port_forwarding.ps1 +76 -0
- machineconfig/scripts/windows/wsl_windows_transfer.ps1 +7 -0
- machineconfig/settings/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/settings/broot/br.sh +51 -0
- machineconfig/settings/broot/brootcd.ps1 +32 -0
- machineconfig/settings/broot/conf.toml +5 -0
- machineconfig/settings/glow/glow.yml +11 -0
- machineconfig/settings/gromit-mpx/gromit-mpx.cfg +34 -0
- machineconfig/settings/helix/config.toml +27 -0
- machineconfig/settings/helix/languages.toml +22 -0
- machineconfig/settings/keras/keras.json +6 -0
- machineconfig/settings/keyboard/espanso/config/default.yml +45 -0
- machineconfig/settings/keyboard/espanso/match/base.yml +57 -0
- machineconfig/settings/keyboard/kanata/kanata.kbd +0 -0
- machineconfig/settings/lf/linux/autocall/delete.sh +0 -0
- machineconfig/settings/lf/linux/autocall/on-cd.sh +0 -0
- machineconfig/settings/lf/linux/autocall/on-quit.sh +0 -0
- machineconfig/settings/lf/linux/autocall/open.sh +0 -0
- machineconfig/settings/lf/linux/autocall/paste.sh +0 -0
- machineconfig/settings/lf/linux/autocall/pre-cd.sh +0 -0
- machineconfig/settings/lf/linux/autocall/rename.sh +0 -0
- machineconfig/settings/lf/linux/colors +196 -0
- machineconfig/settings/lf/linux/exe/cleaner.sh +7 -0
- machineconfig/settings/lf/linux/exe/fzf_nano.sh +16 -0
- machineconfig/settings/lf/linux/exe/leftpane_previewer.sh +5 -0
- machineconfig/settings/lf/linux/exe/lfcd.sh +32 -0
- machineconfig/settings/lf/linux/exe/previewer.sh +37 -0
- machineconfig/settings/lf/linux/exe/previewer_archive.sh +155 -0
- machineconfig/settings/lf/linux/icons +357 -0
- machineconfig/settings/lf/linux/lfrc +226 -0
- machineconfig/settings/lf/windows/autocall/delete.ps1 +0 -0
- machineconfig/settings/lf/windows/autocall/on-cd.ps1 +0 -0
- machineconfig/settings/lf/windows/autocall/on-quit.ps1 +0 -0
- machineconfig/settings/lf/windows/autocall/open.ps1 +0 -0
- machineconfig/settings/lf/windows/autocall/paste.ps1 +0 -0
- machineconfig/settings/lf/windows/autocall/pre-cd.ps1 +0 -0
- machineconfig/settings/lf/windows/autocall/rename.ps1 +0 -0
- machineconfig/settings/lf/windows/cd_tere.ps1 +4 -0
- machineconfig/settings/lf/windows/cd_zoxide.ps1 +4 -0
- machineconfig/settings/lf/windows/cd_zoxide2.ps1 +4 -0
- machineconfig/settings/lf/windows/colors +159 -0
- machineconfig/settings/lf/windows/fzf_edit.ps1 +6 -0
- machineconfig/settings/lf/windows/icons +357 -0
- machineconfig/settings/lf/windows/leftpane_previewer.ps1 +3 -0
- machineconfig/settings/lf/windows/lfcd.ps1 +35 -0
- machineconfig/settings/lf/windows/lfrc +133 -0
- machineconfig/settings/lf/windows/mkdir.ps1 +3 -0
- machineconfig/settings/lf/windows/mkfile.ps1 +3 -0
- machineconfig/settings/lf/windows/previewer.ps1 +7 -0
- machineconfig/settings/lf/windows/tst.ps1 +1 -0
- machineconfig/settings/linters/.flake8 +24 -0
- machineconfig/settings/linters/.mypy.ini +29 -0
- machineconfig/settings/linters/.pylintrc +91 -0
- machineconfig/settings/linters/.ruff.toml +77 -0
- machineconfig/settings/linters/.ruff_cache/.gitignore +2 -0
- machineconfig/settings/linters/.ruff_cache/CACHEDIR.TAG +1 -0
- machineconfig/settings/lvim/linux/config.lua +0 -0
- machineconfig/settings/lvim/windows/archive/config_additional.lua +39 -0
- machineconfig/settings/lvim/windows/lua/user/custom_config.lua +13 -0
- machineconfig/settings/mprocs/windows/mprocs.yaml +55 -0
- machineconfig/settings/mprocs/windows/other +12 -0
- machineconfig/settings/pistol/pistol.conf +8 -0
- machineconfig/settings/presenterm/config.yaml +76 -0
- machineconfig/settings/procs/.procs.toml +142 -0
- machineconfig/settings/pudb/pudb.cfg +25 -0
- machineconfig/settings/rofi/config.rasi +4 -0
- machineconfig/settings/rofi/config_default.rasi +147 -0
- machineconfig/settings/shells/alacritty/alacritty.toml +40 -0
- machineconfig/settings/shells/alacritty/alacritty.yml +0 -0
- machineconfig/settings/shells/bash/.inputrc +3 -0
- machineconfig/settings/shells/bash/init.sh +66 -0
- machineconfig/settings/shells/hyper/.hyper.js +201 -0
- machineconfig/settings/shells/ipy/profiles/default/__init__.py +0 -0
- machineconfig/settings/shells/ipy/profiles/default/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/settings/shells/ipy/profiles/default/startup/__init__.py +0 -0
- machineconfig/settings/shells/ipy/profiles/default/startup/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/settings/shells/ipy/profiles/default/startup/__pycache__/playext.cpython-311.pyc +0 -0
- machineconfig/settings/shells/ipy/profiles/default/startup/playext.py +83 -0
- machineconfig/settings/shells/kitty/kitty.conf +1476 -0
- machineconfig/settings/shells/nushell/config.nu +36 -0
- machineconfig/settings/shells/nushell/env.nu +13 -0
- machineconfig/settings/shells/pwsh/init.ps1 +88 -0
- machineconfig/settings/shells/pwsh/profile.ps1 +0 -0
- machineconfig/settings/shells/starship/starship.toml +58 -0
- machineconfig/settings/shells/vtm/settings.xml +297 -0
- machineconfig/settings/shells/wezterm/wezterm.lua +193 -0
- machineconfig/settings/shells/wt/settings.json +526 -0
- machineconfig/settings/streamlit/config.toml +22 -0
- machineconfig/settings/svim/linux/init.toml +48 -0
- machineconfig/settings/svim/windows/init.toml +48 -0
- machineconfig/settings/tere/terecd.ps1 +8 -0
- machineconfig/settings/tere/terecd.sh +8 -0
- machineconfig/settings/tmux/.tmate.conf +3 -0
- machineconfig/settings/tmux/.tmux.conf +6 -0
- machineconfig/settings/wsl/.wslconfig +35 -0
- machineconfig/settings/yazi/keymap.toml +0 -0
- machineconfig/settings/yazi/theme.toml +0 -0
- machineconfig/settings/yazi/yazi.toml +4 -0
- machineconfig/settings/zed/settings.json +35 -0
- machineconfig/settings/zellij/commands/monitor +9 -0
- machineconfig/settings/zellij/commands/standard_panes +33 -0
- machineconfig/settings/zellij/config.kdl +295 -0
- machineconfig/settings/zellij/config.orig.kdl +295 -0
- machineconfig/settings/zellij/layouts/hist +13 -0
- machineconfig/settings/zellij/layouts/panes.kdl +20 -0
- machineconfig/settings/zellij/layouts/st.kdl +21 -0
- machineconfig/settings/zellij/layouts/st2.kdl +59 -0
- machineconfig/settings/zellij/layouts/stacked_panes.kdl +11 -0
- machineconfig/setup_linux/nix/cli_installation.sh +166 -0
- machineconfig/setup_linux/others/mint_keyboard_shortcuts.sh +30 -0
- machineconfig/setup_linux/others/openssh-server_add_pub_key.sh +60 -0
- machineconfig/setup_linux/web_shortcuts/all.sh +53 -0
- machineconfig/setup_linux/web_shortcuts/ascii_art.sh +100 -0
- machineconfig/setup_linux/web_shortcuts/croshell.sh +66 -0
- machineconfig/setup_linux/web_shortcuts/interactive.sh +241 -0
- machineconfig/setup_linux/web_shortcuts/ssh.sh +64 -0
- machineconfig/setup_linux/web_shortcuts/update_system.sh +55 -0
- machineconfig/setup_windows/others/docker.ps1 +7 -0
- machineconfig/setup_windows/others/obs.ps1 +4 -0
- machineconfig/setup_windows/web_shortcuts/all.ps1 +18 -0
- machineconfig/setup_windows/web_shortcuts/ascii_art.ps1 +36 -0
- machineconfig/setup_windows/web_shortcuts/croshell.ps1 +16 -0
- machineconfig/setup_windows/web_shortcuts/interactive.ps1 +200 -0
- machineconfig/setup_windows/web_shortcuts/ssh.ps1 +11 -0
- machineconfig/setup_windows/wt_and_pwsh/install_fonts.ps1 +27 -0
- machineconfig/setup_windows/wt_and_pwsh/set_pwsh_theme.py +12 -2
- machineconfig/setup_windows/wt_and_pwsh/set_wt_settings.py +45 -9
- machineconfig/utils/ai/__init__.py +0 -0
- machineconfig/utils/ai/browser_user_wrapper.py +51 -0
- machineconfig/utils/ai/generate_file_checklist.py +74 -0
- machineconfig/utils/ai/url2md.py +75 -0
- machineconfig/utils/installer.py +101 -253
- machineconfig/utils/installer_utils/__init__.py +0 -0
- machineconfig/utils/installer_utils/installer_abc.py +100 -0
- machineconfig/utils/installer_utils/installer_class.py +253 -0
- machineconfig/utils/procs.py +69 -16
- machineconfig/utils/scheduling.py +47 -13
- machineconfig/utils/utils.py +39 -371
- machineconfig/utils/utils_code.py +82 -0
- machineconfig/utils/utils_links.py +88 -0
- machineconfig/utils/utils_options.py +163 -0
- machineconfig/utils/utils_path.py +151 -0
- machineconfig/utils/ve.py +37 -225
- machineconfig/utils/ve_utils/ve1.py +111 -0
- machineconfig/utils/ve_utils/ve2.py +142 -0
- {machineconfig-1.92.dist-info ā machineconfig-1.94.dist-info}/METADATA +25 -21
- machineconfig-1.94.dist-info/RECORD +710 -0
- {machineconfig-1.92.dist-info ā machineconfig-1.94.dist-info}/WHEEL +1 -1
- machineconfig-1.92.dist-info/LICENSE +0 -201
- machineconfig-1.92.dist-info/RECORD +0 -70
- {machineconfig-1.92.dist-info ā machineconfig-1.94.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
"""Pomodoro
|
|
3
2
|
"""
|
|
4
3
|
|
|
@@ -6,36 +5,51 @@ from crocodile.toolbox import Log, install_n_import, Scheduler, P
|
|
|
6
5
|
import time
|
|
7
6
|
from datetime import datetime
|
|
8
7
|
|
|
9
|
-
|
|
10
8
|
def pomodoro(work: int = 25, rest: int = 5, repeats: int = 4):
|
|
9
|
+
print("\n" + "=" * 50)
|
|
10
|
+
print("š
Welcome to the Pomodoro Timer")
|
|
11
|
+
print("=" * 50 + "\n")
|
|
12
|
+
|
|
11
13
|
logger = Log(name="pomodoro", file=False, stream=True)
|
|
14
|
+
|
|
12
15
|
def loop(sched: Scheduler):
|
|
13
|
-
speak("Alright, time to start working...")
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
speak("Alright, time to start working...")
|
|
17
|
+
print("\nā³ Work session started! Stay focused.")
|
|
18
|
+
start = datetime.now()
|
|
19
|
+
_ = sched
|
|
20
|
+
while (diff := work - ((datetime.now() - start).seconds / 60)) > 0:
|
|
21
|
+
logger.debug(f"š¼ Keep working. Time Left: {round(diff)} minutes")
|
|
22
|
+
time.sleep(60 * 1)
|
|
23
|
+
|
|
24
|
+
speak("Now, it's time to take a break.")
|
|
25
|
+
print("\nā Break time! Relax and recharge.")
|
|
26
|
+
start = datetime.now()
|
|
27
|
+
while (diff := rest - ((datetime.now() - start).seconds / 60)) > 0:
|
|
28
|
+
logger.critical(f"šļø Keep resting. Time Left: {round(diff)} minutes")
|
|
29
|
+
time.sleep(60 * 1)
|
|
30
|
+
|
|
17
31
|
def speak(txt: str):
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return Scheduler(routine=loop, max_cycles=repeats, logger=logger, wait="0.1m").run()
|
|
32
|
+
print(f"š Speaking: {txt}")
|
|
33
|
+
install_n_import("gtts").gTTS(txt, lang='en', tld='com.au').save(tmp := P.tmpfile(suffix=".mp3"))
|
|
34
|
+
time.sleep(0.5)
|
|
35
|
+
pyglet = install_n_import("pyglet")
|
|
36
|
+
pyglet.resource.path = [tmp.parent.to_str()]
|
|
37
|
+
pyglet.resource.reindex()
|
|
38
|
+
pyglet.resource.media(tmp.name).play()
|
|
26
39
|
|
|
40
|
+
def beep(duration: int = 1, frequency: int = 3000):
|
|
41
|
+
print(f"š Beeping with duration {duration}s and frequency {frequency}Hz")
|
|
42
|
+
try:
|
|
43
|
+
import winsound
|
|
44
|
+
except ImportError:
|
|
45
|
+
__import__("os").system(f'beep -f {frequency} -l {1000 * duration}')
|
|
46
|
+
else:
|
|
47
|
+
winsound.Beep(frequency, 1000 * duration) # type: ignore
|
|
27
48
|
|
|
28
|
-
|
|
29
|
-
# parser = argparse.ArgumentParser(description='FTP client')
|
|
30
|
-
#
|
|
31
|
-
# parser.add_argument("machine", help=f"machine ssh address", default="")
|
|
32
|
-
# parser.add_argument("file", help="file/folder path.", default="")
|
|
33
|
-
# # FLAGS
|
|
34
|
-
# parser.add_argument("--recursive", "-r", help="Send recursively.", action="store_true") # default is False
|
|
35
|
-
# parser.add_argument("--zipFirst", "-z", help="Zip before sending.", action="store_true") # default is False
|
|
36
|
-
#
|
|
37
|
-
# args = parser.parse_args()
|
|
49
|
+
_ = beep
|
|
38
50
|
|
|
51
|
+
print("\nšÆ Starting the Pomodoro routine...")
|
|
52
|
+
return Scheduler(routine=loop, max_cycles=repeats, logger=logger, wait="0.1m").run()
|
|
39
53
|
|
|
40
54
|
if __name__ == '__main__':
|
|
41
55
|
pomodoro()
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
"""Repos
|
|
3
2
|
|
|
4
3
|
# TODO use gh api user --jq '.login' to get the username and use it to clone the repos.
|
|
@@ -7,14 +6,13 @@ in the event that username@github.com is not mentioned in the remote url.
|
|
|
7
6
|
"""
|
|
8
7
|
|
|
9
8
|
from rich import print as pprint
|
|
10
|
-
from machineconfig.utils.utils import
|
|
9
|
+
from machineconfig.utils.utils import write_shell_script_to_default_program_path, CONFIG_PATH, DEFAULTS_PATH
|
|
11
10
|
from crocodile.file_management import P, Read, Save
|
|
12
11
|
from crocodile.core import randstr
|
|
13
12
|
import argparse
|
|
14
13
|
from dataclasses import dataclass
|
|
15
14
|
from enum import Enum
|
|
16
15
|
from typing import Optional, Any
|
|
17
|
-
# tm = Terminal()
|
|
18
16
|
|
|
19
17
|
|
|
20
18
|
class GitAction(Enum):
|
|
@@ -37,48 +35,51 @@ def git_action(path: P, action: GitAction, mess: Optional[str] = None, r: bool=F
|
|
|
37
35
|
try:
|
|
38
36
|
repo = Repo(str(path), search_parent_directories=False)
|
|
39
37
|
except InvalidGitRepositoryError:
|
|
40
|
-
pprint(f"Skipping {path} because it is not a git repository.")
|
|
38
|
+
pprint(f"ā ļø Skipping {path} because it is not a git repository.")
|
|
41
39
|
if r:
|
|
42
40
|
prgs = [git_action(path=sub_path, action=action, mess=mess, r=r) for sub_path in path.search()]
|
|
43
41
|
return "\n".join(prgs)
|
|
44
42
|
else: return "\necho 'skipped because not a git repo'\n\n"
|
|
45
43
|
|
|
46
44
|
program = f'''
|
|
47
|
-
echo '>>>>>>>>> {action}'
|
|
45
|
+
š§ echo '>>>>>>>>> {action}'
|
|
48
46
|
cd '{path}'
|
|
49
47
|
'''
|
|
50
48
|
if action == GitAction.commit:
|
|
51
49
|
if mess is None: mess = "auto_commit_" + randstr()
|
|
52
50
|
program += f'''
|
|
53
|
-
git add .; git commit -am "{mess}"
|
|
51
|
+
š git add .; git commit -am "{mess}"
|
|
54
52
|
'''
|
|
55
53
|
if action == GitAction.push or action == GitAction.pull:
|
|
56
|
-
# remotes = tm.run(f"cd {path}; git remote", shell="powershell").op.split("\n")
|
|
57
54
|
action_name = "pull" if action == GitAction.pull else "push"
|
|
58
|
-
cmds = [f'echo "
|
|
55
|
+
cmds = [f'echo "š {action_name.capitalize()}ing from {remote.url}" ; git {action_name} {remote.name} {repo.active_branch.name}' for remote in repo.remotes]
|
|
59
56
|
program += '\n' + '\n'.join(cmds) + '\n'
|
|
60
57
|
program = program + '''
|
|
61
|
-
echo ""; echo ""
|
|
58
|
+
ā
echo ""; echo ""
|
|
62
59
|
'''
|
|
63
60
|
return program
|
|
64
61
|
|
|
65
62
|
|
|
66
63
|
def main():
|
|
64
|
+
print("\n" + "=" * 50)
|
|
65
|
+
print("š Welcome to the Repository Manager")
|
|
66
|
+
print("=" * 50 + "\n")
|
|
67
|
+
|
|
67
68
|
parser = argparse.ArgumentParser(description='REPO MANAGER')
|
|
68
69
|
# POSITIONAL
|
|
69
|
-
parser.add_argument("directory", help="
|
|
70
|
+
parser.add_argument("directory", help="š Folder containing repos to record or a specs JSON file to follow.", default="")
|
|
70
71
|
# FLAGS
|
|
71
|
-
parser.add_argument("--push", help="
|
|
72
|
-
parser.add_argument("--pull", help="
|
|
73
|
-
parser.add_argument("--commit", help="
|
|
74
|
-
parser.add_argument("--all", help="
|
|
75
|
-
parser.add_argument("--record", help="
|
|
76
|
-
parser.add_argument("--clone", help="
|
|
77
|
-
parser.add_argument("--checkout", help="Check out to versions
|
|
78
|
-
parser.add_argument("--checkout_to_branch", help="
|
|
79
|
-
parser.add_argument("--recursive", "-r", help="
|
|
72
|
+
parser.add_argument("--push", help="š Push changes.", action="store_true")
|
|
73
|
+
parser.add_argument("--pull", help="ā¬ļø Pull changes.", action="store_true")
|
|
74
|
+
parser.add_argument("--commit", help="š¾ Commit changes.", action="store_true")
|
|
75
|
+
parser.add_argument("--all", help="š Pull, commit, and push changes.", action="store_true")
|
|
76
|
+
parser.add_argument("--record", help="š Record repositories.", action="store_true")
|
|
77
|
+
parser.add_argument("--clone", help="š„ Clone repositories from record.", action="store_true")
|
|
78
|
+
parser.add_argument("--checkout", help="š Check out to versions provided in a JSON file.", action="store_true")
|
|
79
|
+
parser.add_argument("--checkout_to_branch", help="š Check out to the main branch.", action="store_true")
|
|
80
|
+
parser.add_argument("--recursive", "-r", help="š Recursive flag.", action="store_true")
|
|
80
81
|
# OPTIONAL
|
|
81
|
-
parser.add_argument("--cloud", "-c", help="
|
|
82
|
+
parser.add_argument("--cloud", "-c", help="āļø Cloud storage option.", default=None)
|
|
82
83
|
args = parser.parse_args()
|
|
83
84
|
|
|
84
85
|
if args.directory == "": repos_root = P.home().joinpath("code") # it is a positional argument, can never be empty.
|
|
@@ -86,16 +87,16 @@ def main():
|
|
|
86
87
|
|
|
87
88
|
program = ""
|
|
88
89
|
if args.record:
|
|
90
|
+
print("\nš Recording repositories...")
|
|
89
91
|
res = record_repos(repos_root=str(repos_root))
|
|
90
|
-
pprint("Recorded repositories:\n", res)
|
|
92
|
+
pprint("ā
Recorded repositories:\n", res)
|
|
91
93
|
save_path = CONFIG_PATH.joinpath("repos").joinpath(repos_root.rel2home()).joinpath("repos.json")
|
|
92
|
-
# Save.pickle(obj=res, path=save_path)
|
|
93
94
|
Save.json(obj=res, path=save_path, indent=4)
|
|
94
|
-
pprint(f"Result
|
|
95
|
+
pprint(f"š Result saved at {P(save_path)}")
|
|
95
96
|
if args.cloud is not None: P(save_path).to_cloud(rel2home=True, cloud=args.cloud)
|
|
96
97
|
program += """\necho '>>>>>>>>> Finished Recording'\n"""
|
|
97
98
|
elif args.clone or args.checkout or args.checkout_to_branch:
|
|
98
|
-
|
|
99
|
+
print("\nš„ Cloning or checking out repositories...")
|
|
99
100
|
program += """\necho '>>>>>>>>> Cloning Repos'\n"""
|
|
100
101
|
if not repos_root.exists() or repos_root.stem != 'repos.json': # user didn't pass absolute path to pickle file, but rather expected it to be in the default save location
|
|
101
102
|
repos_root = CONFIG_PATH.joinpath("repos").joinpath(repos_root.rel2home()).joinpath("repos.json")
|
|
@@ -109,16 +110,15 @@ def main():
|
|
|
109
110
|
repos_root.from_cloud(cloud=cloud, rel2home=True)
|
|
110
111
|
assert (repos_root.exists() and repos_root.name == 'repos.json') or args.cloud is not None, f"Path {repos_root} does not exist and cloud was not passed. You can't clone without one of them."
|
|
111
112
|
program += install_repos(specs_path=str(repos_root), clone=args.clone, checkout_to_recorded_commit=args.checkout, checkout_to_branch=args.checkout_to_branch)
|
|
112
|
-
# elif args.checkout is not None:
|
|
113
|
-
|
|
114
113
|
elif args.all or args.commit or args.pull or args.push:
|
|
114
|
+
print("\nš Performing Git actions on repositories...")
|
|
115
115
|
for a_path in repos_root.search("*"):
|
|
116
116
|
program += f"""echo "{("Handling " + str(a_path)).center(80, "-")}" """
|
|
117
117
|
if args.pull or args.all: program += git_action(path=a_path, action=GitAction.pull, r=args.recursive)
|
|
118
118
|
if args.commit or args.all: program += git_action(a_path, action=GitAction.commit, r=args.recursive)
|
|
119
119
|
if args.push or args.all: program += git_action(a_path, action=GitAction.push, r=args.recursive)
|
|
120
|
-
else: program = "echo '
|
|
121
|
-
|
|
120
|
+
else: program = "echo 'ā No action specified. Try passing --push, --pull, --commit, or --all.'"
|
|
121
|
+
write_shell_script_to_default_program_path(program=program, desc="Script to update repos", preserve_cwd=True, display=True, execute=False)
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
def record_repos(repos_root: str, r: bool=True) -> list[dict[str, Any]]:
|
|
@@ -147,7 +147,6 @@ def record_a_repo(path: P, search_parent_directories: bool=False, preferred_remo
|
|
|
147
147
|
try: commit = repo.head.commit.hexsha
|
|
148
148
|
except ValueError: # look at https://github.com/gitpython-developers/GitPython/issues/1016
|
|
149
149
|
print(f"ā ļø Failed to get latest commit of {repo}")
|
|
150
|
-
# cmd = "git config --global -add safe.directory"
|
|
151
150
|
commit = None
|
|
152
151
|
try: current_branch = repo.head.reference.name # same as repo.active_branch.name
|
|
153
152
|
except TypeError:
|
|
@@ -174,16 +173,14 @@ def install_repos(specs_path: str, clone: bool=True, checkout_to_recorded_commit
|
|
|
174
173
|
remote_url = repo["remotes"][preferred_remote]
|
|
175
174
|
else:
|
|
176
175
|
print(f"ā ļø `{preferred_remote=}` not found in {repo['remotes']}.")
|
|
177
|
-
# preferred_remote = None
|
|
178
176
|
program += f"\ncd {parent_dir.collapseuser().as_posix()}; git clone {remote_url} --origin {remote_name}"
|
|
179
177
|
program += f"\ncd {parent_dir.collapseuser().as_posix()}/{repo['name']}; git remote set-url {remote_name} {remote_url}"
|
|
180
|
-
# the new url-setting to ensure that account name before `@` was not lost (git clone ignores it): https://thisismygitrepo@github.com/thisismygitrepo/crocodile.git
|
|
181
178
|
program += f"\ncd {parent_dir.collapseuser().as_posix()}/{repo['name']}; git remote add {remote_name} {remote_url}"
|
|
182
179
|
if checkout_to_recorded_commit:
|
|
183
180
|
commit = repo['version']['commit']
|
|
184
181
|
if isinstance(commit, str): program += f"\ncd {parent_dir.collapseuser().as_posix()}/{repo['name']}; git checkout {commit}"
|
|
185
182
|
else: print(f"Skipping {repo['parent_dir']} because it doesn't have a commit recorded. Found {commit}")
|
|
186
|
-
break
|
|
183
|
+
break
|
|
187
184
|
if checkout_to_branch:
|
|
188
185
|
program += f"\ncd {parent_dir.collapseuser().as_posix()}/{repo['name']}; git checkout {repo['current_branch']}"
|
|
189
186
|
break
|
|
@@ -1,52 +1,53 @@
|
|
|
1
|
-
|
|
2
1
|
"""cli for scheduler
|
|
3
2
|
"""
|
|
4
3
|
|
|
5
4
|
from machineconfig.utils.scheduling import P, Report, DEFAULT_CONFIG, read_task_from_dir, main
|
|
6
5
|
|
|
7
|
-
|
|
8
6
|
def main_parse():
|
|
9
7
|
import argparse
|
|
8
|
+
print("\n" + "=" * 50)
|
|
9
|
+
print("š
Welcome to the Scheduler CLI")
|
|
10
|
+
print("=" * 50 + "\n")
|
|
11
|
+
|
|
10
12
|
parser = argparse.ArgumentParser(description='Run tasks.')
|
|
11
|
-
parser.add_argument('root', type=str, default=None, help='Root directory of tasks.')
|
|
12
|
-
parser.add_argument('--ignore_conditions', "-i", action='store_true', help='Ignore conditions for running tasks.', default=False)
|
|
13
|
-
parser.add_argument('--report', "-R", action='store_true', help='Print report.', default=False)
|
|
14
|
-
parser.add_argument('--create_task', "-c", action='store_true', help='Add default config.', default=False)
|
|
15
|
-
# print(parser)
|
|
13
|
+
parser.add_argument('root', type=str, default=None, help='š Root directory of tasks.')
|
|
14
|
+
parser.add_argument('--ignore_conditions', "-i", action='store_true', help='š« Ignore conditions for running tasks.', default=False)
|
|
15
|
+
parser.add_argument('--report', "-R", action='store_true', help='š Print report.', default=False)
|
|
16
|
+
parser.add_argument('--create_task', "-c", action='store_true', help='š Add default config.', default=False)
|
|
16
17
|
args = parser.parse_args()
|
|
17
18
|
|
|
18
19
|
tmp = P(args.root).expanduser().absolute()
|
|
19
|
-
if P(args.root).joinpath(".scheduler").exists():
|
|
20
|
+
if P(args.root).joinpath(".scheduler").exists():
|
|
20
21
|
root = P(args.root).joinpath(".scheduler")
|
|
21
|
-
|
|
22
|
+
elif tmp.name == ".scheduler":
|
|
22
23
|
root = tmp
|
|
23
24
|
else:
|
|
24
25
|
root = tmp.joinpath(".scheduler").create()
|
|
25
|
-
|
|
26
|
-
print(f"ā
Running tasks in {root}")
|
|
26
|
+
|
|
27
|
+
print(f"\nā
Running tasks in {root}\n")
|
|
27
28
|
|
|
28
29
|
if args.report:
|
|
30
|
+
print("š Generating report...")
|
|
29
31
|
reports: list[Report] = [Report.from_path(read_task_from_dir(x).report_path) for x in P(root).search("*").filter(lambda path: path.joinpath("task.py").exists())]
|
|
30
32
|
import pandas as pd
|
|
31
33
|
df_res = pd.DataFrame([r.__dict__ for r in reports])
|
|
32
|
-
# root.joinpath("task_report.md").write_text(df_res.to_markdown(), encoding="utf-8")
|
|
33
34
|
print(df_res.to_markdown())
|
|
34
|
-
|
|
35
|
+
print("\nā
Report generated successfully!\n")
|
|
35
36
|
return None
|
|
36
37
|
|
|
37
38
|
if args.create_task:
|
|
38
|
-
task_name = input("Enter task name: ")
|
|
39
|
+
task_name = input("š Enter task name: ")
|
|
39
40
|
task_root = root.joinpath(task_name).create(exist_ok=False)
|
|
40
|
-
# assert not root.joinpath("config.ini").exists(), f"Config file already exists in {root}"
|
|
41
41
|
task_root.joinpath("config.ini").write_text(DEFAULT_CONFIG, encoding="utf-8")
|
|
42
|
-
task_root.joinpath("task.py").write_text(
|
|
42
|
+
task_root.joinpath("task.py").write_text("""
|
|
43
43
|
# Scheduler Task.
|
|
44
44
|
""")
|
|
45
|
-
print(f"ā
Task {task_name} created in {task_root}. Head there and edit the config.ini file & task.py file
|
|
45
|
+
print(f"\nā
Task '{task_name}' created in {task_root}. Head there and edit the config.ini file & task.py file.\n")
|
|
46
46
|
return None
|
|
47
47
|
|
|
48
|
+
print("š Executing tasks...")
|
|
48
49
|
main(root=root.to_str(), ignore_conditions=args.ignore_conditions)
|
|
49
|
-
|
|
50
|
+
print("š All tasks executed successfully!\n")
|
|
50
51
|
|
|
51
52
|
if __name__ == "__main__":
|
|
52
53
|
main_parse()
|
|
@@ -1,21 +1,29 @@
|
|
|
1
|
-
|
|
2
1
|
from crocodile.msc.odds import capture_from_webcam
|
|
3
2
|
from crocodile.meta import Terminal
|
|
4
3
|
import argparse
|
|
5
4
|
|
|
6
|
-
|
|
7
5
|
def main():
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
print("\n" + "=" * 50)
|
|
7
|
+
print("šø Welcome to the Snapshot Tool")
|
|
8
|
+
print("=" * 50 + "\n")
|
|
9
|
+
|
|
10
|
+
parser = argparse.ArgumentParser(description='š· Capture snapshots using your webcam.')
|
|
11
|
+
parser.add_argument("--to_text", "-t", help="š Convert the snapshot to text using OCR.", action="store_true")
|
|
10
12
|
args = parser.parse_args()
|
|
11
13
|
|
|
14
|
+
print("š· Capturing image from webcam...")
|
|
12
15
|
img_path = capture_from_webcam(show=False, wait=False, save=True)
|
|
16
|
+
print(f"ā
Image captured and saved at: {img_path}\n")
|
|
17
|
+
|
|
13
18
|
if args.to_text:
|
|
19
|
+
print("š Converting image to text using Tesseract OCR...")
|
|
14
20
|
q = Terminal().run(f"cd ~/AppData/Local/Tesseract-OCR; pytesseract '{img_path}'", shell="pwsh").capture().op
|
|
21
|
+
print("š Extracted Text:")
|
|
22
|
+
print("-" * 50)
|
|
15
23
|
print(q)
|
|
24
|
+
print("-" * 50 + "\n")
|
|
16
25
|
else:
|
|
17
|
-
print(
|
|
18
|
-
|
|
26
|
+
print("š Image saved successfully. No text extraction requested.\n")
|
|
19
27
|
|
|
20
28
|
if __name__ == '__main__':
|
|
21
29
|
main()
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
|
|
2
1
|
"""
|
|
3
2
|
slidev
|
|
4
3
|
"""
|
|
5
4
|
|
|
6
5
|
from machineconfig.utils.utils import CONFIG_PATH, PROGRAM_PATH, print_code
|
|
7
6
|
from crocodile.meta import Terminal, P
|
|
8
|
-
# from crocodile.environment import get_network_addresses
|
|
9
7
|
import subprocess
|
|
10
8
|
import platform
|
|
11
9
|
|
|
12
|
-
|
|
13
10
|
PORT_DEFAULT = 3030
|
|
14
11
|
|
|
15
|
-
|
|
16
12
|
SLIDEV_REPO = CONFIG_PATH.joinpath(".cache/slidev")
|
|
17
13
|
if not SLIDEV_REPO.joinpath("components").exists():
|
|
18
|
-
|
|
14
|
+
print("š¦ Initializing Slidev repository...")
|
|
19
15
|
Terminal(stderr=subprocess.PIPE, stdin=subprocess.PIPE, stdout=subprocess.PIPE).run(f"cd {SLIDEV_REPO.parent};npm init slidev@latest")
|
|
20
|
-
|
|
16
|
+
print("ā
Slidev repository initialized successfully!\n")
|
|
21
17
|
|
|
22
18
|
def jupyter_to_markdown(file: P):
|
|
23
19
|
op_dir = file.parent.joinpath("presentation")
|
|
20
|
+
print("š Converting Jupyter notebook to markdown...")
|
|
24
21
|
|
|
25
22
|
# https://nbconvert.readthedocs.io/en/latest/nbconvert_library.html
|
|
26
23
|
# from nbconvert.exporters.markdown import MarkdownExporter
|
|
@@ -36,32 +33,32 @@ def jupyter_to_markdown(file: P):
|
|
|
36
33
|
Terminal().run(cmd, shell="powershell").print()
|
|
37
34
|
cmd = f"jupyter nbconvert --to html --no-prompt --no-input --output-dir {op_dir} {file}"
|
|
38
35
|
Terminal().run(cmd, shell="powershell").print()
|
|
39
|
-
# cmd = f"jupyter nbconvert --to pdf --no-prompt --no-input --output-dir {op_dir} {file}"
|
|
40
|
-
# Terminal().run(cmd, shell="powershell").print()
|
|
41
|
-
|
|
42
36
|
|
|
43
37
|
op_file = op_dir.joinpath("slides_raw.md")
|
|
44
|
-
slide_separator =
|
|
38
|
+
slide_separator = '\n\n---\n\n'
|
|
45
39
|
md = op_file.read_text().replace('\n\n\n\n', slide_separator)
|
|
46
|
-
md = slide_separator.join([item for item in md.split(slide_separator) if bool(item.strip())])
|
|
40
|
+
md = slide_separator.join([item for item in md.split(slide_separator) if bool(item.strip())])
|
|
47
41
|
op_file.with_name("slides.md").write_text(md)
|
|
48
|
-
|
|
42
|
+
print(f"ā
Conversion completed! Check the results at: {op_dir}\n")
|
|
49
43
|
|
|
44
|
+
return op_dir
|
|
50
45
|
|
|
51
46
|
def main() -> None:
|
|
52
47
|
import argparse
|
|
53
48
|
|
|
49
|
+
print("\n" + "=" * 50)
|
|
50
|
+
print("š„ Welcome to the Slidev Presentation Tool")
|
|
51
|
+
print("=" * 50 + "\n")
|
|
54
52
|
|
|
55
53
|
parser = argparse.ArgumentParser()
|
|
56
|
-
parser.add_argument("-d", "--directory", default=None, help="Directory of the report")
|
|
57
|
-
parser.add_argument("-j", "--jupyter-file", default=None, help="Jupyter notebook file to convert to slides. If not provided, slides.md is used.")
|
|
58
|
-
# parser.add_argument("--port", default=PORT_DEFAULT, help=f"Port to serve the report, default to {PORT_DEFAULT}")
|
|
54
|
+
parser.add_argument("-d", "--directory", default=None, help="š Directory of the report.")
|
|
55
|
+
parser.add_argument("-j", "--jupyter-file", default=None, help="š Jupyter notebook file to convert to slides. If not provided, slides.md is used.")
|
|
59
56
|
args = parser.parse_args()
|
|
60
57
|
|
|
61
|
-
# port = args.port
|
|
62
58
|
port = PORT_DEFAULT
|
|
63
59
|
|
|
64
60
|
if args.jupyter_file is not None:
|
|
61
|
+
print("š Jupyter file provided. Converting to markdown...")
|
|
65
62
|
report_dir = jupyter_to_markdown(P(args.jupyter_file))
|
|
66
63
|
else:
|
|
67
64
|
if args.directory is None:
|
|
@@ -69,8 +66,8 @@ def main() -> None:
|
|
|
69
66
|
else:
|
|
70
67
|
report_dir = P(args.directory)
|
|
71
68
|
|
|
72
|
-
assert report_dir.exists(), f"{report_dir} does not exist"
|
|
73
|
-
assert report_dir.is_dir(), f"{report_dir} is not a directory"
|
|
69
|
+
assert report_dir.exists(), f"ā Directory {report_dir} does not exist."
|
|
70
|
+
assert report_dir.is_dir(), f"ā {report_dir} is not a directory."
|
|
74
71
|
|
|
75
72
|
md_file = report_dir.joinpath("slides.md")
|
|
76
73
|
if not md_file.exists():
|
|
@@ -78,33 +75,28 @@ def main() -> None:
|
|
|
78
75
|
if len(res) == 1:
|
|
79
76
|
md_file = res.list[0]
|
|
80
77
|
else:
|
|
81
|
-
raise FileNotFoundError(f"slides.md not found in {report_dir}")
|
|
78
|
+
raise FileNotFoundError(f"ā slides.md not found in {report_dir}")
|
|
82
79
|
|
|
80
|
+
print("š Copying files to Slidev repository...")
|
|
83
81
|
report_dir.search().apply(lambda x: x.copy(folder=SLIDEV_REPO, overwrite=True))
|
|
84
82
|
if md_file.name != "slides.md":
|
|
85
83
|
SLIDEV_REPO.joinpath(md_file.name).with_name(name="slides.md", inplace=True, overwrite=True)
|
|
86
84
|
|
|
87
|
-
# from machineconfig.utils.utils import check_tool_exists
|
|
88
|
-
# check_tool_exists(tool_name="slidev", install_script="npm i -g @slidev/cli")
|
|
89
|
-
|
|
90
85
|
import socket
|
|
91
|
-
try:
|
|
86
|
+
try:
|
|
87
|
+
local_ip_v4 = socket.gethostbyname(socket.gethostname() + ".local")
|
|
92
88
|
except Exception:
|
|
93
|
-
print("Warning: Could not get local_ip_v4. This
|
|
89
|
+
print("ā ļø Warning: Could not get local_ip_v4. This might be due to running in a WSL instance.")
|
|
94
90
|
local_ip_v4 = socket.gethostbyname(socket.gethostname())
|
|
95
91
|
|
|
96
|
-
print(
|
|
97
|
-
print(f"
|
|
98
|
-
print(f"
|
|
99
|
-
|
|
100
|
-
# program: str=f"cd {SLIDEV_REPO}; slidev --port {port} --remote 0.0.0.0; cd {P.cwd()}"
|
|
92
|
+
print("š Presentation will be served at:")
|
|
93
|
+
print(f" - http://{platform.node()}:{port}")
|
|
94
|
+
print(f" - http://localhost:{port}")
|
|
95
|
+
print(f" - http://{local_ip_v4}:{port}\n")
|
|
101
96
|
|
|
102
|
-
# The recommended approach is do `npm init slidev@latest` in the directory where you want to create the presentation
|
|
103
|
-
# Then you can do the following:
|
|
104
97
|
program = "npm run dev slides.md -- --remote"
|
|
105
98
|
PROGRAM_PATH.write_text(program)
|
|
106
99
|
print_code(code=program, lexer="bash", desc="Run the following command to start the presentation")
|
|
107
100
|
|
|
108
|
-
|
|
109
101
|
if __name__ == '__main__':
|
|
110
102
|
main()
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
"""Script to start terminals on windows and wsl
|
|
3
2
|
"""
|
|
4
3
|
|
|
@@ -23,6 +22,7 @@ THIS_MACHINE_HOSTNAME_WSL = f"{THIS_MACHINE_HOSTNAME}wsl"
|
|
|
23
22
|
|
|
24
23
|
|
|
25
24
|
def main_windows_and_wsl(window: int, hosts: list[str], orientation: ORIENTATION_TYPE = "vertical", mprocs: bool=False):
|
|
25
|
+
print("\nš§ Configuring terminal layout for Windows and WSL...")
|
|
26
26
|
orientation_oposite = "horizontal" if orientation == "vertical" else "vertical"
|
|
27
27
|
orientation_swap = "up" if orientation == "horizontal" else "left"
|
|
28
28
|
orientation_opposite_move_focus = "up" if orientation_oposite == "horizontal" else "left"
|
|
@@ -34,6 +34,7 @@ def main_windows_and_wsl(window: int, hosts: list[str], orientation: ORIENTATION
|
|
|
34
34
|
size = 0.3
|
|
35
35
|
known_hosts = get_ssh_hosts()
|
|
36
36
|
if len(hosts) == 1:
|
|
37
|
+
print("š„ļø Single host detected. Configuring layout...")
|
|
37
38
|
if "wsl" in hosts[0] or f"{hosts[0]}wsl" in known_hosts: # its a windows machine with wsl
|
|
38
39
|
host_wind = hosts[0] if "wsl" not in hosts[0] else hosts[0].split("wsl")[0]
|
|
39
40
|
host_linux = f"{host_wind}wsl"
|
|
@@ -44,6 +45,7 @@ wt --window {window} --title {hosts[0]} powershell -Command "ssh {host_linux} {s
|
|
|
44
45
|
cmd = f"""wt --window {window} --title {hosts[0]} powershell -Command "ssh {hosts[0]} {ssh_cmd}" `; split-pane --{orientation} --title {hosts[0]}wsl --size 0.1 powershell """
|
|
45
46
|
|
|
46
47
|
elif len(hosts) > 1:
|
|
48
|
+
print("š„ļø Multiple hosts detected. Configuring layout...")
|
|
47
49
|
pane_cmd = f'powershell -Command "ssh {hosts[0]} {ssh_cmd}" ' if hosts[0] != THIS_MACHINE else ''
|
|
48
50
|
cmd = f"""wt --window {window} --title {hosts[0]} {pane_cmd} """
|
|
49
51
|
for a_host in hosts[1:]:
|
|
@@ -57,20 +59,26 @@ wt --window {window} --title {hosts[0]} powershell -Command "ssh {host_linux} {s
|
|
|
57
59
|
else: tmp = f"move-focus {orientation_opposite_move_focus}" if idx % 2 == 1 else f"move-focus {orientation_opposite_move_focus_other}"
|
|
58
60
|
cmd += f"""{sep} {tmp} split-pane --{orientation} --title {a_host}wsl --size {size} {pane_cmd} """
|
|
59
61
|
cmd += f"""{sep} swap-pane {orientation_swap} """
|
|
60
|
-
else: raise NotImplementedError(f"len(hosts) = {len(hosts)}. Only 1 or 2 hosts are supported.")
|
|
62
|
+
else: raise NotImplementedError(f"ā len(hosts) = {len(hosts)}. Only 1 or 2 hosts are supported.")
|
|
63
|
+
print("ā
Terminal layout configured successfully!\n")
|
|
61
64
|
return cmd
|
|
62
65
|
|
|
63
66
|
|
|
64
67
|
def main():
|
|
65
68
|
import argparse
|
|
69
|
+
print("\n" + "=" * 50)
|
|
70
|
+
print("š„ļø Welcome to the Terminal Starter Tool")
|
|
71
|
+
print("=" * 50 + "\n")
|
|
72
|
+
|
|
66
73
|
parser = argparse.ArgumentParser()
|
|
67
|
-
parser.add_argument("--panes", "-p", type=int, help="The number of panes to open", default=4)
|
|
68
|
-
parser.add_argument("--vertical", "-V", action="store_true", help="Switch orientation to vertical from default horizontal")
|
|
69
|
-
parser.add_argument("--window", "-w", type=int, help="The window
|
|
70
|
-
parser.add_argument("--hosts", "-H", type=str, nargs="*", help="The hosts to connect to", default=None)
|
|
74
|
+
parser.add_argument("--panes", "-p", type=int, help="š² The number of panes to open.", default=4)
|
|
75
|
+
parser.add_argument("--vertical", "-V", action="store_true", help="āļø Switch orientation to vertical from default horizontal.")
|
|
76
|
+
parser.add_argument("--window", "-w", type=int, help="šŖ The window ID to use.", default=0) # 0 refers to this window.
|
|
77
|
+
parser.add_argument("--hosts", "-H", type=str, nargs="*", help="š The hosts to connect to.", default=None)
|
|
71
78
|
args = parser.parse_args()
|
|
72
79
|
|
|
73
80
|
if args.panes:
|
|
81
|
+
print("š² Configuring panes...")
|
|
74
82
|
cmd = f"wt --window {args.window} --colorScheme '{next(THEMES_ITER)}' pwsh -NoExit -Command '{next(INIT_COMMANDS_ITER)}' "
|
|
75
83
|
cmd += f" `; new-tab --colorScheme '{next(THEMES_ITER)}' --profile pwsh --title 't2' --tabColor '#f59218' "
|
|
76
84
|
cmd += f" `; new-tab --colorScheme '{next(THEMES_ITER)}' --profile pwsh --title 't3' --tabColor '#009999' "
|
|
@@ -81,17 +89,22 @@ def main():
|
|
|
81
89
|
cmd += f" `; move-focus up split-pane --vertical --size {next(SIZE_ITER)} --colorScheme '{next(THEMES_ITER)}' pwsh -NoExit -Command '{next(INIT_COMMANDS_ITER)}' "
|
|
82
90
|
|
|
83
91
|
else:
|
|
84
|
-
if args.hosts is None:
|
|
92
|
+
if args.hosts is None:
|
|
93
|
+
print("š No hosts provided. Displaying options...")
|
|
94
|
+
hosts = display_options(msg="Select hosts:", options=get_ssh_hosts() + [THIS_MACHINE], multi=True, fzf=True)
|
|
85
95
|
else:
|
|
86
|
-
print("Using provided hosts", args.hosts)
|
|
96
|
+
print("š Using provided hosts:", args.hosts)
|
|
87
97
|
hosts = args.hosts
|
|
88
98
|
assert isinstance(hosts, list)
|
|
89
99
|
cmd = main_windows_and_wsl(window=args.window, hosts=hosts, orientation="vertical" if args.vertical else "horizontal")
|
|
90
100
|
|
|
101
|
+
print("\nš Generated Command:")
|
|
102
|
+
print("-" * 50)
|
|
91
103
|
print(cmd)
|
|
92
|
-
|
|
93
|
-
|
|
104
|
+
print("-" * 50 + "\n")
|
|
105
|
+
|
|
94
106
|
PROGRAM_PATH.write_text(cmd)
|
|
107
|
+
print("ā
Command saved successfully!\n")
|
|
95
108
|
|
|
96
109
|
|
|
97
110
|
if __name__ == '__main__':
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
from pathlib import Path
|
|
2
|
+
from crocodile.file_management import Save, P
|
|
3
|
+
from plotly import graph_objects as go
|
|
4
|
+
import plotly.express as px
|
|
5
|
+
from typing import Callable, Iterable, Any, Optional
|
|
6
|
+
|
|
7
|
+
def default_get_figure(data: Any) -> go.Figure:
|
|
8
|
+
print("š Generating default figure using Plotly...")
|
|
9
|
+
return px.line(data)
|
|
10
|
+
|
|
11
|
+
default_streamlit_config = """
|
|
12
|
+
|
|
13
|
+
[server]
|
|
14
|
+
headless = true
|
|
15
|
+
port = 4614
|
|
16
|
+
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
def run(data: Optional[Iterable[Any]], data_path: Optional[str],
|
|
20
|
+
get_figure: Optional[Callable[[Any], go.Figure]]):
|
|
21
|
+
print("\n" + "=" * 50)
|
|
22
|
+
print("šļø Welcome to the Data Viewer Tool")
|
|
23
|
+
print("=" * 50 + "\n")
|
|
24
|
+
|
|
25
|
+
print("š Preparing viewer application...")
|
|
26
|
+
code = P(__file__).parent.joinpath("viewer_template.py").read_text(encoding='utf-8')
|
|
27
|
+
|
|
28
|
+
code_dir = P.tmpdir(prefix="viewer")
|
|
29
|
+
code_dir.joinpath(".streamlit").mkdir(parents=True, exist_ok=False)
|
|
30
|
+
code_dir.joinpath(".streamlit/config.toml").write_text(default_streamlit_config, encoding='utf-8')
|
|
31
|
+
|
|
32
|
+
if data_path is None:
|
|
33
|
+
print("š¾ Saving data to temporary path...")
|
|
34
|
+
data_path = Save.pickle(obj=data, path=code_dir.joinpath("data.pkl"))
|
|
35
|
+
|
|
36
|
+
code = code.replace("""data_path = \"get_figure_placeholder.pkl\" """, f"""data_path = r"{data_path}" """)
|
|
37
|
+
|
|
38
|
+
import inspect
|
|
39
|
+
if get_figure is None:
|
|
40
|
+
print("š Using default figure generation function.")
|
|
41
|
+
get_figure = default_get_figure
|
|
42
|
+
|
|
43
|
+
code_func = inspect.getsource(get_figure)
|
|
44
|
+
code_parts = code.split("# get_figure_placeholder")
|
|
45
|
+
code = code_parts[0] + code_func + f"""\nget_figure = {get_figure.__name__}""" + code_parts[-1]
|
|
46
|
+
|
|
47
|
+
code_path = code_dir.joinpath("viewer_app.py")
|
|
48
|
+
Path(code_path).write_text(code, encoding='utf-8')
|
|
49
|
+
|
|
50
|
+
print("ā
Viewer application prepared successfully!")
|
|
51
|
+
print(f"š Application files saved to: {code_dir}\n")
|
|
52
|
+
|
|
53
|
+
return code_path
|