Finalizing a project in python [duplicate]

1

I have some doubts about the projects created in python.

If I create a program and need to pass it to someone else, will I need the other computer to have python installed and all the libs I got from outside?

How do I leave the program as an executable for others to access more easily and in a way that they can not make changes?

I am using sqlite3 as a database in this program I am doing and I want to know if there is a way to leave the database without typing it out, just by the program.

I want to learn python sockets and django and if anyone has any indication, please do!

    
asked by anonymous 01.12.2017 / 00:21

1 answer

1

Python is an interpreted language, so it needs an interpreter, which comes with the Python package; However, there is a way to make your file an executable, independent of the operating system; For this action there are some tools, and I can tell you what I use for my scripts, which is "py2exe", which despite the name, has version compatible with Python 3. I have a great link that will help you in this task: a href="http://pypi.python.org/pypi/py2exe/"> Link to the py2exe tutorial (it is in English but this is easily solved with the translator that comes in Google Chrome). As far as Socket is concerned, there's a great link to let you know: Socket Link . As far as Django is concerned I have here a good link to show you: Django Link . In the sqlite3 question, yes it is possible, but try to delve deeper into this library through studies, so you will know how to handle the same better.

I hope I have helped! Big hug Thomas!

    
01.12.2017 / 01:58