Merge pull request #1 from GirlInPurple/main

pip package
This commit is contained in:
OusmBlueNinja 2023-08-26 21:25:56 -05:00 committed by GitHub
commit e81534f745
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 29 additions and 4 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
\__pycache__
\pakk.conf

View File

@ -6,8 +6,7 @@ from inspect import isfunction
import random
import time
import ast
if os.name != 'nt':
import readline
#import readline
import threading

View File

@ -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]

View File

@ -1 +1 @@
[['builtin', 'packages.builtin', ['echo', 'ls', 'rm', 'clear', 'cd', 'll']], ['nano', 'packages.nano', ['nano']]]
[['builtin', 'packages.builtin', ['echo', 'ls', 'rm', 'clear', 'cd', 'll']], ['nano', 'packages.nano', ['nano']], ['netget', 'packages.netget', ['netget']], ['pip', 'packages.pip', ['pip']]]

23
packages/pip.py Normal file
View File

@ -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