From 3b5dcfc081d30d4b5db914d4dd286edef859ad94 Mon Sep 17 00:00:00 2001 From: GirlInPurple Date: Sat, 26 Aug 2023 22:22:28 -0400 Subject: [PATCH] pip package new file: .gitignore new file: packages/pip.py --- .gitignore | 2 ++ main.py | 3 +-- packages/__pycache__/builtin.cpython-311.pyc | Bin 1129 -> 6999 bytes packages/__pycache__/netget.cpython-311.pyc | Bin 736 -> 1073 bytes packages/netget.py | 3 ++- packages/pakk.conf | 2 +- packages/pip.py | 23 +++++++++++++++++++ 7 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 .gitignore create mode 100644 packages/pip.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5a560a4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +\__pycache__ +\pakk.conf \ No newline at end of file diff --git a/main.py b/main.py index b136b32..8469bc1 100644 --- a/main.py +++ b/main.py @@ -6,8 +6,7 @@ from inspect import isfunction import random import time import ast -if os.name != 'nt': - import readline +#import readline import threading diff --git a/packages/__pycache__/builtin.cpython-311.pyc b/packages/__pycache__/builtin.cpython-311.pyc index 18b8d49f6f161595b9f3c8e75b80ae3649934f66..231d389bed1bd0bf8ac4549b9642deb3d0a14b5d 100644 GIT binary patch literal 6999 zcmb_heQZ7czseg2TIV#mqq-lGe zb8W|VfOTxgH_v&__jArY=lA^1&3j(2i$M7H&;BZJt0m+wm?#FZpnN_D%2gs0nTwGj zE9Qncg^csXsxm(zpiU)LOBfPZEDnh*whh^2L9xrC;y5eHw#(v>B-<~OA*bw6>}Ppd zf*hCZgdDf*0_l<6tkeV2D{})R?EMV8?>G6lW;!MnRUI8uOgmMyX&R4kSXKx&h|!eK zhe2E=PNJ2S%3QiERcHZ`PHsT{2c@#g6bDltAlnE>UT4~Q;dL^@h57zfE)?cX+Z2t0 zRpNLe8V_?6S53v9LaX~DUBj=c3RQ=}Of5Ftqo@;FVrqC$p_8Xxe|mB>8Xuk-jZDB? z)Zw?LqcJTSe`e}}DJqe33F?MEyx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HoXCldP3=?l`s zrGf&Q#M%l%cIESJQ3j@eN=lH#z!;B^-AiXeDV}{?O%RmlN?QJj8Wrg*!FGcF Q#8N*+*MYvOVKqJR7kTY)aR2}S diff --git a/packages/__pycache__/netget.cpython-311.pyc b/packages/__pycache__/netget.cpython-311.pyc index 74eeb1c75f71eda3e5035c004df050a56b64b932..c2c5902c0bb37c61c2e832d0cf5763ac34991ef5 100644 GIT binary patch literal 1073 zcmaJ;&1(}u6rb7M>`s!VpBSnKooGNJw6%y>qzY;Uy;PwJwx)+Av)0(nZaTXmHf$k6 z4?zk>P+BNLPZjCKf1&;b8_6Lo1O)L=4-)7l^yJ&LNn=sp&i>x#y!p+WkC8|SflPn? z$$nvkzWYvFgd=1BJQ(YUA%=A{cc}3kW`ZU>6PUOv&4~=ppoFyNZ21`N1 zjwoP>@b5o?=sL2yat^Zn%#k=~8*)3H{5H_oX;VS?zqJf6wmR{F?*2^pvm=Hp%peCb z@pSu8w1UBxx_luBd4_ahMRdfiE`FUY$ia?qlAYiA0S!!T{i%)FtSDoZF{Aj{K+?TNZ(c#>c1k#^P# z-_K-CZr|nHVjq^4b6t5N3+YGd}#6k=;Ke)ssa?z4=Gr> z`2I>c|90}-WJRJ?iMkT4E1}Z0SI(+aUizvGyUK8#MBLuX6*68W<1QJmk=~O0Ei_P$ ztz9bKsr5z6OKXMVy@sF!Vl^^U3j1G;^t_3@j+9dy6BQD#lDOMm&3ZW6KsYdV40RG( z3%Y|N8y5gzZA~2N3K^}EQMYR~Bpisf_?)W{S|!x&TFqwD8ib4O4xPC*hIYr|w-e%* zXg?s#wg(cP2&48SJ#E>oQG7!C5JkKn;DAhKOqSENn>-4x|IF46fQE=MZpaAt6??nC ShTM;1<*5b&^-tiZpu=yiFY=K9 literal 736 zcmah_L2DC16n?WaN!FAY6_pAerg(~n(p)M?@nR1ivw|X-uK>{`QE(Gl}Z`VzQ6k=t`UGA z8JQXV<4ji3*#`lF2xyWfB_IqzU1&^C(jYlE8irt!zA;2$$Qn%0XHYAqMNfuJ8TPAz z?X>Nt)XUSrD0_V)EjfOtV|&6u^|>+hGWE$PgnbAvot~AS9)n7P%SS^nS+I?Dg15E^=(n3D*JUx^Qh}PcG&Vg zor!SH&sUuL)(b6_wsasp$6A-V9r}UwT&m8~m)2~y)^xVZ!LG_Ab10&tA0rIlXQ}-0 z-iK%y#oceE#iX=&YF3iVD@SJi*sLdJ{j7X7UfR1mcz9C18F%;kgGZ;#96pKf#5+ff zA2XiJ)&$?fDWrz4Q>u5hT0ovMx23~e^b4pf7*SP(b91fZi=HbVs2fPLf#}x=V@e1) iA(xVc+Xp)bTM5)~ox%0we`{PUk)?Qj40!w#a{b>&yR7N} diff --git a/packages/netget.py b/packages/netget.py index abe3538..0a1b32c 100644 --- a/packages/netget.py +++ b/packages/netget.py @@ -5,9 +5,10 @@ import os, sys def netget(command: list): - #print(command, len(command)) + print(command, len(command)) if len(command) != 2: print("comand requires [ url ] [ path ]") + return url = command[0] location = command[1] diff --git a/packages/pakk.conf b/packages/pakk.conf index 8b2e945..3723315 100644 --- a/packages/pakk.conf +++ b/packages/pakk.conf @@ -1 +1 @@ -[['builtin', 'packages.builtin', ['echo', 'ls', 'rm', 'clear', 'cd', 'll']], ['nano', 'packages.nano', ['nano']]] \ No newline at end of file +[['builtin', 'packages.builtin', ['echo', 'ls', 'rm', 'clear', 'cd', 'll']], ['nano', 'packages.nano', ['nano']], ['netget', 'packages.netget', ['netget']], ['pip', 'packages.pip', ['pip']]] \ No newline at end of file diff --git a/packages/pip.py b/packages/pip.py new file mode 100644 index 0000000..dad2025 --- /dev/null +++ b/packages/pip.py @@ -0,0 +1,23 @@ +#["pip", "packages.pip", ["pip"]] +# Made By Blurple +import os, sys + + +def pip(command: list): + + print(command, len(command)) + if len(command) != 1: + print("comand requires [ package_name ] [ args (optional) ] ") + return + + package = command[0] + try: + from pip._internal import main as pipmain + pipmain(['install', {package}]) + except ImportError: + os.system(f"pip install {package}") + + except: + print("cannot download") + +# im trying to make a pip command so i can install from in the app \ No newline at end of file