Python - HTTP server & Modules

 

Python - Running a simple local HTTP server


C:\> python -m http.server

Start the server from URL http://127.0.0.1:8000/

Note: By default, this will run the contents of the directory on a local web server, on port 8000.

If you want to change the port use the command python -m http.server 8080.



How to change the directory path

C:\> python -m http.server 8000 --bind localhost --directory C:\MyDirectory


--bind localhost: allow access from the local host.

Python Module Index


https://docs.python.org/3/py-modindex.html


psutil

Cross-platform lib for process and system monitoring in Python.

$pip install psutil

https://pypi.org/project/psutil/


PyInstaller

PyInstaller bundles a Python application and all its dependencies into a single package.

$ pip install PyInstaller

https://pypi.org/project/PyInstaller/


auto-py-to-exe

Converts .py to .exe using a simple graphical interface.

$ pip install auto-py-to-exe

https://pypi.org/project/auto-py-to-exe/


Previous Post Next Post