machineconfig 5.32__py3-none-any.whl → 5.33__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/jobs/installer/custom_dev/dubdb_adbc.py +30 -0
- machineconfig/scripts/python/croshell.py +1 -1
- machineconfig/scripts/python/helpers_fire/fire_agents_help_launch.py +3 -3
- machineconfig/utils/code.py +5 -3
- machineconfig/utils/files/headers.py +5 -3
- {machineconfig-5.32.dist-info → machineconfig-5.33.dist-info}/METADATA +1 -1
- {machineconfig-5.32.dist-info → machineconfig-5.33.dist-info}/RECORD +10 -9
- {machineconfig-5.32.dist-info → machineconfig-5.33.dist-info}/WHEEL +0 -0
- {machineconfig-5.32.dist-info → machineconfig-5.33.dist-info}/entry_points.txt +0 -0
- {machineconfig-5.32.dist-info → machineconfig-5.33.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
from machineconfig.utils.schemas.installer.installer_types import InstallerData
|
|
5
|
+
from typing import Optional
|
|
6
|
+
|
|
7
|
+
installer_data: InstallerData = {
|
|
8
|
+
"appName": "libduckdb.so",
|
|
9
|
+
"repoURL": "https://github.com/duckdb/duckdb",
|
|
10
|
+
"doc": "🗃️ An in-process SQL OLAP database management system",
|
|
11
|
+
"fileNamePattern": {
|
|
12
|
+
"amd64": {
|
|
13
|
+
"linux": "libduckdb-linux-amd64.zip",
|
|
14
|
+
"macos": None,
|
|
15
|
+
"windows": None
|
|
16
|
+
},
|
|
17
|
+
"arm64": {
|
|
18
|
+
"linux": "libduckdb-linux-arm64.zip",
|
|
19
|
+
"macos": None,
|
|
20
|
+
"windows": None
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def main(installer_data: InstallerData, version: Optional[str]) -> None:
|
|
27
|
+
_ = version
|
|
28
|
+
from machineconfig.utils.installer import Installer
|
|
29
|
+
installer = Installer(installer_data)
|
|
30
|
+
installer.install(version=None)
|
|
@@ -144,7 +144,7 @@ from pathlib import Path
|
|
|
144
144
|
fire_line = f"uv run --python 3.13 --with machineconfig[plot] {interpreter} {interactivity} {profile} {str(pyfile)}"
|
|
145
145
|
|
|
146
146
|
from machineconfig.utils.code import run_shell_script
|
|
147
|
-
run_shell_script(fire_line)
|
|
147
|
+
run_shell_script(fire_line, clean_env=True)
|
|
148
148
|
|
|
149
149
|
|
|
150
150
|
def arg_parser() -> None:
|
|
@@ -77,9 +77,9 @@ sleep 0.1
|
|
|
77
77
|
api_keys = get_api_keys(provider=provider)
|
|
78
78
|
api_key = api_keys[idx % len(api_keys)] if len(api_keys) > 0 else None
|
|
79
79
|
cmd = fire_crush(api_key=api_key, prompt_path=prompt_path, machine=machine, repo_root=repo_root, model=model, provider=provider)
|
|
80
|
-
case "q":
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
# case "q":
|
|
81
|
+
# from machineconfig.scripts.python.helpers_fire.fire_q import fire_q
|
|
82
|
+
# cmd = fire_q(api_key="", prompt_path=prompt_path, machine=machine)
|
|
83
83
|
case _:
|
|
84
84
|
raise ValueError(f"Unsupported agent type: {agent}")
|
|
85
85
|
|
machineconfig/utils/code.py
CHANGED
|
@@ -98,7 +98,7 @@ def print_code(code: str, lexer: str, desc: str, subtitle: str = ""):
|
|
|
98
98
|
console.print(Panel(Syntax(code=code, lexer=lexer), title=f"📄 {desc}", subtitle=subtitle), style="bold red")
|
|
99
99
|
|
|
100
100
|
|
|
101
|
-
def run_shell_script(script: str, display_script: bool = True):
|
|
101
|
+
def run_shell_script(script: str, display_script: bool = True, clean_env: bool = False):
|
|
102
102
|
import tempfile
|
|
103
103
|
if platform.system() == "Windows":
|
|
104
104
|
suffix = ".ps1"
|
|
@@ -114,12 +114,14 @@ def run_shell_script(script: str, display_script: bool = True):
|
|
|
114
114
|
from rich.syntax import Syntax
|
|
115
115
|
console.print(Panel(Syntax(code=script, lexer=lexer), title=f"📄 shell script @ {temp_script_path}", subtitle="shell script being executed"), style="bold red")
|
|
116
116
|
|
|
117
|
+
env = {} if clean_env else None
|
|
118
|
+
|
|
117
119
|
if platform.system() == "Windows":
|
|
118
120
|
import subprocess
|
|
119
|
-
proc = subprocess.run(f'powershell -ExecutionPolicy Bypass -File "{temp_script_path}"', check=True, shell=True)
|
|
121
|
+
proc = subprocess.run(f'powershell -ExecutionPolicy Bypass -File "{temp_script_path}"', check=True, shell=True, env=env)
|
|
120
122
|
elif platform.system() == "Linux" or platform.system() == "Darwin":
|
|
121
123
|
import subprocess
|
|
122
|
-
proc = subprocess.run(f"bash {str(temp_script_path)}", check=True, shell=True)
|
|
124
|
+
proc = subprocess.run(f"bash {str(temp_script_path)}", check=True, shell=True, env=env)
|
|
123
125
|
else:
|
|
124
126
|
raise NotImplementedError(f"Platform {platform.system()} not supported.")
|
|
125
127
|
# console.print(f"✅ [green]Script executed successfully:[/green] [blue]{temp_script_path}[/blue]")
|
|
@@ -55,9 +55,11 @@ def print_logo(logo: str):
|
|
|
55
55
|
avail_boxes = is_executable_in_path("boxes")
|
|
56
56
|
avail_figlet = is_executable_in_path("figlet")
|
|
57
57
|
if avail_cowsay and avail_lolcat and avail_boxes and avail_figlet:
|
|
58
|
-
_dynamic_art = random.choice([True, True, True, True, False])
|
|
59
|
-
if _dynamic_art: character_or_box_color(logo=logo)
|
|
60
|
-
else:
|
|
58
|
+
# _dynamic_art = random.choice([True, True, True, True, False])
|
|
59
|
+
# if _dynamic_art: character_or_box_color(logo=logo)
|
|
60
|
+
# else:
|
|
61
|
+
# print(Path(random.choice(glob.glob(str(Path(__file__).parent.joinpath("art", "*"))))).read_text())
|
|
62
|
+
character_or_box_color(logo=logo)
|
|
61
63
|
else:
|
|
62
64
|
print("\n" + "🚫 " + "-" * 70 + " 🚫")
|
|
63
65
|
install_cmd = "devops install --group TerminalEyeCandy" if platform.system() == "Linux" else "brew install cowsay lolcat boxes figlet"
|
|
@@ -56,6 +56,7 @@ machineconfig/jobs/installer/custom_dev/brave.py,sha256=kHgGRwgKrvpIlGzmdnWO6HJn
|
|
|
56
56
|
machineconfig/jobs/installer/custom_dev/bypass_paywall.py,sha256=ZF8yF2srljLChe1tOw_fEsalOkts4RpNwlzX9GtWh2g,1888
|
|
57
57
|
machineconfig/jobs/installer/custom_dev/code.py,sha256=0Hb4ToMLQX4WWyG4xfUEJMTwN01ad5VZGogu3Llqtbc,2480
|
|
58
58
|
machineconfig/jobs/installer/custom_dev/cursor.py,sha256=3xoFAYFdZqurSHXeEG-vbG0KU1TNQpBMaMgL1eW6X4k,4326
|
|
59
|
+
machineconfig/jobs/installer/custom_dev/dubdb_adbc.py,sha256=okeKEVhgijS_iG-53StyzUJkPcSfIuI7HddJ0u4flds,829
|
|
59
60
|
machineconfig/jobs/installer/custom_dev/espanso.py,sha256=H1rZb4xnjs72lL0_mB0M4d7NrDyVv1sAG3NOkOrCB64,4137
|
|
60
61
|
machineconfig/jobs/installer/custom_dev/goes.py,sha256=SIRkpzkCeWMof0BnPuoEJy3KHNkVZs8J5DnoZJXb9TY,2130
|
|
61
62
|
machineconfig/jobs/installer/custom_dev/lvim.py,sha256=2-wbh_IClTFcFkSYk9EsRiv88-isSNIVX6dNZ1L5m8Q,2985
|
|
@@ -128,7 +129,7 @@ machineconfig/scripts/linux/z_ls,sha256=ATZtu0ccN3AKvAOxkwLq1xgQjJ3en5byEWJ3Q8af
|
|
|
128
129
|
machineconfig/scripts/python/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
129
130
|
machineconfig/scripts/python/agents.py,sha256=KVMf9lL1xAiFb0QfM9hV_GwUWzOymt_ALE8VG81aBJo,10200
|
|
130
131
|
machineconfig/scripts/python/cloud.py,sha256=kRH9Pt1yEkASFskIVEgRmkidrksdkgv2-bBmjLSxzSo,814
|
|
131
|
-
machineconfig/scripts/python/croshell.py,sha256=
|
|
132
|
+
machineconfig/scripts/python/croshell.py,sha256=4XIqEFmYCGn_CpeeAaN-1hBAwwWLQR0PKxBFNRvP2j0,6475
|
|
132
133
|
machineconfig/scripts/python/devops.py,sha256=3mG-4RlF9vzcfXO7ISsxwRICQpJRR8JMqxtxKLE70fs,1822
|
|
133
134
|
machineconfig/scripts/python/devops_navigator.py,sha256=iR6HAYt0TA7efV_g6Lr9gPczN6mqvS0V5hShD1x-9R8,29537
|
|
134
135
|
machineconfig/scripts/python/fire_jobs.py,sha256=UxMkQ8WqxmZx_u1gn9LV_Cn4FjbCAtuWUWupZl1UkUI,13486
|
|
@@ -191,7 +192,7 @@ machineconfig/scripts/python/devops_helpers/devops_backup_retrieve.py,sha256=nK4
|
|
|
191
192
|
machineconfig/scripts/python/devops_helpers/devops_status.py,sha256=C1akn6mGteBVV9CiQnUX6H32ehnCgMdCyNgojXVQeqA,23287
|
|
192
193
|
machineconfig/scripts/python/devops_helpers/devops_update_repos.py,sha256=dtBh9mNNJEukyV47Cug98S0hvG9e1U43B0EQSeNtvvs,9394
|
|
193
194
|
machineconfig/scripts/python/helpers_fire/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
194
|
-
machineconfig/scripts/python/helpers_fire/fire_agents_help_launch.py,sha256=
|
|
195
|
+
machineconfig/scripts/python/helpers_fire/fire_agents_help_launch.py,sha256=RAee8ethEIxyQpRKqe6u9NwIOKWTspAF-nzmPap6a5k,5506
|
|
195
196
|
machineconfig/scripts/python/helpers_fire/fire_agents_help_search.py,sha256=qIfSS_su2YJ1Gb0_lu4cbjlJlYMBw0v52NTGiSrGjk8,2991
|
|
196
197
|
machineconfig/scripts/python/helpers_fire/fire_agents_helper_types.py,sha256=b3_EaG_rGuRxTuVmKZVbY-tawsfrNP3tvPNaNgZ9ohs,1069
|
|
197
198
|
machineconfig/scripts/python/helpers_fire/fire_agents_load_balancer.py,sha256=mpqx3uaQdBXYieuvhdK-qsvLepf9oIMo3pwPj9mSEDI,1079
|
|
@@ -392,7 +393,7 @@ machineconfig/setup_windows/wt_and_pwsh/__init__.py,sha256=47DEQpj8HBSa-_TImW-5J
|
|
|
392
393
|
machineconfig/setup_windows/wt_and_pwsh/set_wt_settings.py,sha256=ogxJnwpdcpH7N6dFJu95UCNoGYirZKQho_3X0F_hmXs,6791
|
|
393
394
|
machineconfig/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
394
395
|
machineconfig/utils/accessories.py,sha256=W_9dLzjwNTW5JQk_pe3B2ijQ1nA2-8Kdg2r7VBtzgQs,4340
|
|
395
|
-
machineconfig/utils/code.py,sha256=
|
|
396
|
+
machineconfig/utils/code.py,sha256=0sAlozPgbbGwNE0sksK1XiBMyfCBtBt5d_6ExL1K9_8,6489
|
|
396
397
|
machineconfig/utils/installer.py,sha256=ZnhW_gRmGlq5uXwzNvIn-x1vXuOJxkzVqjNu188f37s,10465
|
|
397
398
|
machineconfig/utils/io.py,sha256=3axJBhNZCZiWJbzBvF7keDjCmqnbSKtoTnyDtq1I5BE,2871
|
|
398
399
|
machineconfig/utils/links.py,sha256=GQExBsMoxewOhwIrNdERuzk9HVKcmWgNUGO-RzPMS6M,22588
|
|
@@ -414,7 +415,7 @@ machineconfig/utils/cloud/onedrive/setup_oauth.py,sha256=ZTVkqgrwbV_EoPvyT8dyOTU
|
|
|
414
415
|
machineconfig/utils/cloud/onedrive/transaction.py,sha256=m-aNcnWj_gfZVvJOSpkdIqjZxU_3nXx2CA-qKbQgP3I,26232
|
|
415
416
|
machineconfig/utils/files/ascii_art.py,sha256=cNJaJC07vx94fS44-tzgfbfBeCwXVrgpnWGBLUnfC38,5212
|
|
416
417
|
machineconfig/utils/files/dbms.py,sha256=xJTg6H_AvZWsduuDaSs4_KdUu__rO8LXrE_hrcXTgNM,17203
|
|
417
|
-
machineconfig/utils/files/headers.py,sha256=
|
|
418
|
+
machineconfig/utils/files/headers.py,sha256=F-sudsZ1JyAcmZNO4FdcyhoClbCdb2vMlqceT36zfhE,3717
|
|
418
419
|
machineconfig/utils/files/read.py,sha256=R1bvIIdiFX9N0JyzUISqVfewYFq30cY3z0kqSlKGtuA,4566
|
|
419
420
|
machineconfig/utils/files/ouch/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
420
421
|
machineconfig/utils/files/ouch/decompress.py,sha256=7qPaEkMerBBXzeZyFn8hLODHZJv1aty-yGgwBxLgVys,1413
|
|
@@ -427,8 +428,8 @@ machineconfig/utils/schemas/fire_agents/fire_agents_input.py,sha256=Xbi59rU35AzR
|
|
|
427
428
|
machineconfig/utils/schemas/installer/installer_types.py,sha256=QClRY61QaduBPJoSpdmTIdgS9LS-RvE-QZ-D260tD3o,1214
|
|
428
429
|
machineconfig/utils/schemas/layouts/layout_types.py,sha256=TcqlZdGVoH8htG5fHn1KWXhRdPueAcoyApppZsPAPto,2020
|
|
429
430
|
machineconfig/utils/schemas/repos/repos_types.py,sha256=ECVr-3IVIo8yjmYmVXX2mnDDN1SLSwvQIhx4KDDQHBQ,405
|
|
430
|
-
machineconfig-5.
|
|
431
|
-
machineconfig-5.
|
|
432
|
-
machineconfig-5.
|
|
433
|
-
machineconfig-5.
|
|
434
|
-
machineconfig-5.
|
|
431
|
+
machineconfig-5.33.dist-info/METADATA,sha256=HrFrUFDbEj0yvarH5SepTjuBvN6gS2RV5J_-E_JeteQ,2495
|
|
432
|
+
machineconfig-5.33.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
433
|
+
machineconfig-5.33.dist-info/entry_points.txt,sha256=z7b9guivf0GSKUG6b8ALgbDoRg2LuPfkGP_p-PxgX9g,469
|
|
434
|
+
machineconfig-5.33.dist-info/top_level.txt,sha256=porRtB8qms8fOIUJgK-tO83_FeH6Bpe12oUVC670teA,14
|
|
435
|
+
machineconfig-5.33.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|