Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Hello m building a terminal emulator. And i wanna make my own pip script to install modules and libraries , but idnt knw how, can anyone help me?
-
@MustaphaBen Sorry, I don't understand. Do you want that your script it-self downloads some module? If yes, from where?
-
look bro m making a terminal emulator just like stash.
I wanna make a script that download libraries from the pypi just like pip . i saw the pip.py file in stash but i dont know how to put it on my script -
@MustaphaBen but if you want to use pip of stash, why not use stash completely ?
I did not check pip.py but if it-self uses other stash modules, thus....
-
right . i need to make my own pip but can you help me or can you give me ur email to contact you if ur interested
-
@MustaphaBen never private email in This forum but there are some stash specialists here, I hope they could help you. But I never has heard that somebody used stash modules outside of stash it-self.
-
hhhh lol. thanks man.
-
@MustaphaBen I think you are going to have a hard time making something "better" than stash. If you have improvements, submit a pull request.
Lots of thought went into stash's threading and user interface. You are not going to reproduce tab completion, history, etc using
input
. Various folks worked around various pythonista limitations to get a workingpip
. Etc.If you are interested in this just as an exercise, that's cool. However, writing command line utilities should be done using the
cmd
module -- otherwise your code will quickly deteriorate into a giant morass of if/elif statements that will be impossible to read and harder to debug. -
m doing this just for fun " better than stash " that was just a comment
-
Ok.
Seriously consider reading about the
cmd
module. It makes adding commands much easier.To run external scripts, like pip.py, the
runpy
module let's you "run" a file.stash
's pip as I recall makes use of some modified other modules (setuptools I think), so probably won't work out of the box. -
Thank You, ofc ill read abt the cmd
module