Automatic and internal Pip package management system
Hi, how are you? I'm trying to create a thing, an idea, a thought. This is about the Pip package management system used to install and manage software packages written in the Python programming language. So I wanted it to be automatic. Instead of always typing ... For example pip install example.py Solution What if Python itself had this automatic feature internally? For example impot example1 # runs pip install example.py Case A. If you do not have the module, the module will be inserted. B. If you have the module, check the installed version. Summary It would be a 'package.json, similar to the Nodejs' within Python. Note I expect an answer Thank you for your attention and respect, I'm starting with Python and I have this idea If the community helps and if I can help, it would be an honor for this idea, implementation ^^ Regards, Pedro Guilherme About this Note 1 I tried to get an answer on Github and asked to check it out here. If the discourse is good, we can include it in the Github repository for this new feature or implementation. I'm going to thank Mariatta for this tip. Written message, reply " Thanks for your interest in improving Python. However the devguide is not the right place to discuss the proposed idea. From the sound of it, perhaps distutils-sig? " Here I am... Note 2 The reference at the end is a link about it. It was closed in the python devguide and peps repositories in the issues area. I want more clarification about my thinking. I like to create and think. My little visual projects were thanks to what I found, vi, li, I researched in Stackoverflow, Github, Codepen.io. Note 3 I'm trying to translate the Arduino into Portuguese. Library Brasilino ... ^^ And I'm adapting or suggesting the next words ... to be a bit like English .... It's that Portuguese has a graphic accent and English does not. For example, consider the word 'Sr não = If no' associated with this 'else'. So I'm reading dictionaries to find a word next to English ... without a graphic accent on what is considered in English. Resume Here https://github.com/OtacilioN/Brasilino and see in content 'issues' ^^ Regards, Pedro Guilherme Reference https://github.com/python/devguide/issues/469
Hi Pedro, I think I've seen some code that does this before, but I can't find it now. It's generally regarded as a crazy hack, and I wouldn't recommend anyone use it except as a joke/demo. Some of the reasons: 1. Downloading and running code from the internet if you mistype an import statement is a pretty major security hole. 2. Import names aren't always the same as install names (e.g. 'pip install pyzmq' -> 'import zmq'). There are ways around it (https://pypicontents.readthedocs.io/en/latest/ ), but it's not trivial. 3. Correctly installing a module and then loading it in your running process isn't always easy: what if it requires an updated version of another package you've already imported? 4. Having a separate step where you explicitly install things makes it easier to customise the process of finding and installing them, e.g. if you want to run software on a machine which doesn't have an internet connection. It might be convenient for some use cases to have 'magic' imports that install the package if necessary, but overall it would be unreliable and confusing. There are various efforts to simplify managing dependencies of a project - see e.g. https://pypi.org/project/pipenv/ or https://pypi.org/project/poetry/ . Best wishes, Thomas On Tue, Mar 12, 2019, at 12:30 PM, pedroguilhermealvino@gmail.com wrote:
Hi, how are you?
I'm trying to create a thing, an idea, a thought. This is about the Pip package management system used to install and manage software packages written in the Python programming language.
So I wanted it to be automatic. Instead of always typing ...
For example
pip install example.py Solution What if Python itself had this automatic feature internally?
For example
impot example1 # runs pip install example.py Case
A. If you do not have the module, the module will be inserted. B. If you have the module, check the installed version.
Summary It would be a 'package.json, similar to the Nodejs' within Python.
Note
I expect an answer Thank you for your attention and respect, I'm starting with Python and I have this idea If the community helps and if I can help, it would be an honor for this idea, implementation ^^ Regards, Pedro Guilherme
About this
Note 1
I tried to get an answer on Github and asked to check it out here. If the discourse is good, we can include it in the Github repository for this new feature or implementation. I'm going to thank Mariatta for this tip.
Written message, reply " Thanks for your interest in improving Python. However the devguide is not the right place to discuss the proposed idea. From the sound of it, perhaps distutils-sig? " Here I am...
Note 2
The reference at the end is a link about it. It was closed in the python devguide and peps repositories in the issues area. I want more clarification about my thinking. I like to create and think. My little visual projects were thanks to what I found, vi, li, I researched in Stackoverflow, Github, Codepen.io.
Note 3 I'm trying to translate the Arduino into Portuguese. Library Brasilino ... ^^ And I'm adapting or suggesting the next words ... to be a bit like English .... It's that Portuguese has a graphic accent and English does not. For example, consider the word 'Sr não = If no' associated with this 'else'. So I'm reading dictionaries to find a word next to English ... without a graphic accent on what is considered in English.
Resume Here https://github.com/OtacilioN/Brasilino and see in content 'issues' ^^
Regards, Pedro Guilherme
Reference https://github.com/python/devguide/issues/469 -- Distutils-SIG mailing list -- distutils-sig@python.org To unsubscribe send an email to distutils-sig-leave@python.org https://mail.python.org/mailman3/lists/distutils-sig.python.org/ Message archived at https://mail.python.org/archives/list/distutils-sig@python.org/message/TVCV2...
Hi again Thomas Kluyver, how are you??? Nice, well, better of never? I are better of never and nice too. I hope that you are too as I... lol ^^ You're a smart guy ... Thanks for the answers ... I'll do and think about this ... If I can not or have a result I'm thinking of creating a package.json similar to NodeJS by the Python ... I have no knowledge to make possible, but with you I will search and see this ^^ Regards, your friend... or no Pedro Guilherme Em Ter, 12 de mar de 2019 10:42, Thomas Kluyver <thomas@kluyver.me.uk> escreveu:
Hi Pedro,
I think I've seen some code that does this before, but I can't find it now. It's generally regarded as a crazy hack, and I wouldn't recommend anyone use it except as a joke/demo. Some of the reasons:
1. Downloading and running code from the internet if you mistype an import statement is a pretty major security hole. 2. Import names aren't always the same as install names (e.g. 'pip install pyzmq' -> 'import zmq'). There are ways around it ( https://pypicontents.readthedocs.io/en/latest/ ), but it's not trivial. 3. Correctly installing a module and then loading it in your running process isn't always easy: what if it requires an updated version of another package you've already imported? 4. Having a separate step where you explicitly install things makes it easier to customise the process of finding and installing them, e.g. if you want to run software on a machine which doesn't have an internet connection.
It might be convenient for some use cases to have 'magic' imports that install the package if necessary, but overall it would be unreliable and confusing.
There are various efforts to simplify managing dependencies of a project - see e.g. https://pypi.org/project/pipenv/ or https://pypi.org/project/poetry/ .
Best wishes, Thomas
On Tue, Mar 12, 2019, at 12:30 PM, pedroguilhermealvino@gmail.com wrote:
Hi, how are you?
I'm trying to create a thing, an idea, a thought. This is about the Pip package management system used to install and manage software packages written in the Python programming language.
So I wanted it to be automatic. Instead of always typing ...
For example
pip install example.py Solution What if Python itself had this automatic feature internally?
For example
impot example1 # runs pip install example.py Case
A. If you do not have the module, the module will be inserted. B. If you have the module, check the installed version.
Summary It would be a 'package.json, similar to the Nodejs' within Python.
Note
I expect an answer Thank you for your attention and respect, I'm starting with Python and I have this idea If the community helps and if I can help, it would be an honor for this idea, implementation ^^ Regards, Pedro Guilherme
About this
Note 1
I tried to get an answer on Github and asked to check it out here. If the discourse is good, we can include it in the Github repository for this new feature or implementation. I'm going to thank Mariatta for this tip.
Written message, reply " Thanks for your interest in improving Python. However the devguide is not the right place to discuss the proposed idea. From the sound of it, perhaps distutils-sig? " Here I am...
Note 2
The reference at the end is a link about it. It was closed in the python devguide and peps repositories in the issues area. I want more clarification about my thinking. I like to create and think. My little visual projects were thanks to what I found, vi, li, I researched in Stackoverflow, Github, Codepen.io.
Note 3 I'm trying to translate the Arduino into Portuguese. Library Brasilino ... ^^ And I'm adapting or suggesting the next words ... to be a bit like English .... It's that Portuguese has a graphic accent and English does not. For example, consider the word 'Sr não = If no' associated with this 'else'. So I'm reading dictionaries to find a word next to English ... without a graphic accent on what is considered in English.
Resume Here https://github.com/OtacilioN/Brasilino and see in content 'issues' ^^
Regards, Pedro Guilherme
Reference https://github.com/python/devguide/issues/469 -- Distutils-SIG mailing list -- distutils-sig@python.org To unsubscribe send an email to distutils-sig-leave@python.org https://mail.python.org/mailman3/lists/distutils-sig.python.org/ Message archived at
https://mail.python.org/archives/list/distutils-sig@python.org/message/TVCV2...
Hi I'm better than never this means = I'm good and happy for your answer. This sentence 'I am better than ever' has a double meaning ... I will clarify rsrs ... I wrote here now about this ... So, sorry ... I do not dye thinking ... I saw the error now Regards, Pedro Guilherme ^^ Em Ter, 12 de mar de 2019 10:42, Thomas Kluyver <thomas@kluyver.me.uk> escreveu:
Hi Pedro,
I think I've seen some code that does this before, but I can't find it now. It's generally regarded as a crazy hack, and I wouldn't recommend anyone use it except as a joke/demo. Some of the reasons:
1. Downloading and running code from the internet if you mistype an import statement is a pretty major security hole. 2. Import names aren't always the same as install names (e.g. 'pip install pyzmq' -> 'import zmq'). There are ways around it ( https://pypicontents.readthedocs.io/en/latest/ ), but it's not trivial. 3. Correctly installing a module and then loading it in your running process isn't always easy: what if it requires an updated version of another package you've already imported? 4. Having a separate step where you explicitly install things makes it easier to customise the process of finding and installing them, e.g. if you want to run software on a machine which doesn't have an internet connection.
It might be convenient for some use cases to have 'magic' imports that install the package if necessary, but overall it would be unreliable and confusing.
There are various efforts to simplify managing dependencies of a project - see e.g. https://pypi.org/project/pipenv/ or https://pypi.org/project/poetry/ .
Best wishes, Thomas
On Tue, Mar 12, 2019, at 12:30 PM, pedroguilhermealvino@gmail.com wrote:
Hi, how are you?
I'm trying to create a thing, an idea, a thought. This is about the Pip package management system used to install and manage software packages written in the Python programming language.
So I wanted it to be automatic. Instead of always typing ...
For example
pip install example.py Solution What if Python itself had this automatic feature internally?
For example
impot example1 # runs pip install example.py Case
A. If you do not have the module, the module will be inserted. B. If you have the module, check the installed version.
Summary It would be a 'package.json, similar to the Nodejs' within Python.
Note
I expect an answer Thank you for your attention and respect, I'm starting with Python and I have this idea If the community helps and if I can help, it would be an honor for this idea, implementation ^^ Regards, Pedro Guilherme
About this
Note 1
I tried to get an answer on Github and asked to check it out here. If the discourse is good, we can include it in the Github repository for this new feature or implementation. I'm going to thank Mariatta for this tip.
Written message, reply " Thanks for your interest in improving Python. However the devguide is not the right place to discuss the proposed idea. From the sound of it, perhaps distutils-sig? " Here I am...
Note 2
The reference at the end is a link about it. It was closed in the python devguide and peps repositories in the issues area. I want more clarification about my thinking. I like to create and think. My little visual projects were thanks to what I found, vi, li, I researched in Stackoverflow, Github, Codepen.io.
Note 3 I'm trying to translate the Arduino into Portuguese. Library Brasilino ... ^^ And I'm adapting or suggesting the next words ... to be a bit like English .... It's that Portuguese has a graphic accent and English does not. For example, consider the word 'Sr não = If no' associated with this 'else'. So I'm reading dictionaries to find a word next to English ... without a graphic accent on what is considered in English.
Resume Here https://github.com/OtacilioN/Brasilino and see in content 'issues' ^^
Regards, Pedro Guilherme
Reference https://github.com/python/devguide/issues/469 -- Distutils-SIG mailing list -- distutils-sig@python.org To unsubscribe send an email to distutils-sig-leave@python.org https://mail.python.org/mailman3/lists/distutils-sig.python.org/ Message archived at
https://mail.python.org/archives/list/distutils-sig@python.org/message/TVCV2...
Hey, how are you Thomas Kluyver? demo # -------------------- start-modules: - pip installation example1 - pip installs example2 final modules: # ---------------------------- Small Grammar 1 - 'start-modules' means ':' 2- Symbol ':' means 'pip' 3- Symbol '-' is 'white space / breakline' 4- 'end-modules' is 'end pip install in outside :' summary # ------ Python, Head Install, Modules ----- # start pip install name .... # commandline 'install' + module name # breakline is whitespace or newline too. install .... : # end pip install, command #---- Python, End Head Install, Modules --- How this #-------- Summary, Grammar case A inside ': white space a-zA-Z0-9 whitespace:' add # if add comentary #------- End Summary, Grammar case A #-------- Summary, Grammar case B outside ': add # #------- End Summary, Grammar case B #-------- Summary, Grammar case C Full model inside ': blank space a-zA-Z0-9 blank space # comment:' add # comentary #------- End Summary, Grammar case B see now... my idea # ------------------------------------------------ : install the name .... install the name ..... : import name import name 2 .... ... .. .. ..... .. .. ... # ------------------------------------------------ Best of the package.json? ^^ So I'm thinking about this ... How to solve? Solution I'll write this in Antl4! Question 1 What do you think of creating an internal extra grammar to call the pip.py file to work as a background in Python? Note I made your suggestions ... but I did not like the hack. Regards, Pedro Guilherme.
Thomas Kluyver wrote:
Hi Pedro,
I think I've seen some code that does this before, but I can't find it now. It's generally regarded as a crazy hack, and I wouldn't recommend anyone use it except as a joke/demo. Some of the reasons:
1. Downloading and running code from the internet if you mistype an import statement is a pretty major security hole. 2. Import names aren't always the same as install names (e.g. 'pip install pyzmq' -> 'import zmq'). There are ways around it (https://pypicontents.readthedocs.io/en/latest/ ), but it's not trivial. 3. Correctly installing a module and then loading it in your running process isn't always easy: what if it requires an updated version of another package you've already imported? 4. Having a separate step where you explicitly install things makes it easier to customise the process of finding and installing them, e.g. if you want to run software on a machine which doesn't have an internet connection.
It might be convenient for some use cases to have 'magic' imports that install the package if necessary, but overall it would be unreliable and confusing.
There are various efforts to simplify managing dependencies of a project - see e.g. https://pypi.org/project/pipenv/ or https://pypi.org/project/poetry/ .
Best wishes, Thomas
On Tue, Mar 12, 2019, at 12:30 PM, pedroguilhermealvino(a)gmail.com wrote:
Hi, how are you?
I'm trying to create a thing, an idea, a thought. This is about the Pip package management system used to install and manage software packages written in the Python programming language.
So I wanted it to be automatic. Instead of always typing ...
For example
pip install example.py Solution What if Python itself had this automatic feature internally?
For example
impot example1 # runs pip install example.py Case
A. If you do not have the module, the module will be inserted. B. If you have the module, check the installed version.
Summary It would be a 'package.json, similar to the Nodejs' within Python.
Note
I expect an answer Thank you for your attention and respect, I'm starting with Python and I have this idea If the community helps and if I can help, it would be an honor for this idea, implementation ^^ Regards, Pedro Guilherme
About this
Note 1
I tried to get an answer on Github and asked to check it out here. If the discourse is good, we can include it in the Github repository for this new feature or implementation. I'm going to thank Mariatta for this tip.
Written message, reply " Thanks for your interest in improving Python. However the devguide is not the right place to discuss the proposed idea. From the sound of it, perhaps distutils-sig? " Here I am...
Note 2
The reference at the end is a link about it. It was closed in the python devguide and peps repositories in the issues area. I want more clarification about my thinking. I like to create and think. My little visual projects were thanks to what I found, vi, li, I researched in Stackoverflow, Github, Codepen.io.
Note 3 I'm trying to translate the Arduino into Portuguese. Library Brasilino ... ^^ And I'm adapting or suggesting the next words ... to be a bit like English .... It's that Portuguese has a graphic accent and English does not. For example, consider the word 'Sr não = If no' associated with this 'else'. So I'm reading dictionaries to find a word next to English ... without a graphic accent on what is considered in English.
Resume Here https://github.com/OtacilioN/Brasilino and see in content 'issues' ^^
Regards, Pedro Guilherme
Reference https://github.com/python/devguide/issues/469 -- Distutils-SIG mailing list -- distutils-sig(a)python.org To unsubscribe send an email to distutils-sig-leave(a)python.org https://mail.python.org/mailman3/lists/distutils-sig.python.org/ Message archived at
https://mail.python.org/archives/list/distutils-sig@python.org/message/TV...
There are various efforts to simplify managing dependencies of a project - see e.g. https://pypi.org/project/pipenv/ or https://pypi.org/project/poetry/ .
I try this... but, no working as I like or think or want
participants (3)
-
Pedro Guilherme Alvino Pereira
-
pedroguilhermealvino@gmail.com
-
Thomas Kluyver