Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


A server for serving and rendering files in localhost + some interesting options

In the name of Allah


This is a web-based file explorer and its root path is your ~/Pylocalhost directory. It is useful for serving HTML files,Ajax,PHP and every thing that needs a webserver.Its file explorer has a sweet GUI.Its simple and lightweight! Enjoy! โœ”๏ธ

GUI 404

We try to make it better. You can help us too! How? By submitting your issues (if you have) or making pull requests!


Before installtion you need: nginx & git

If you don't have them try installing theme (Exmaple for Ubuntu):

$ sudo apt install nginx git

If you want Pylocalhost to serve and render PHP files you will also need php-fpm Version 7.0 or higher(Exmaple for Ubuntu):

$ sudo apt install php8.0 php8.0-fpm

$ sudo systemctl enable --now php8.0-fpm

Installation (Beta version)

๐Ÿ‘‰ NOTE: The version below is unstable(Beta) --> Click Here for the latest stable version (1.6.1) ๐Ÿ‘ˆ

Download file which is in the repository.

You can get it from terminal using wget:

$ wget --no-dns-cache

After that just run the file with python 3:

$ python3

In some OSs may be you must type python instead of python3

Then run the file(it will be created once you ran with python 3 under sudo:

$ sudo python3

It will show you details. If installation was unsuccessful please submit an issue including details and your system info.



$ sudo pylh enable

And then:

$ sudo pylh start

Then go to http://pylh

It will show you anything which is in ~/Pylocalhost and always it will start automatically when you turn your computer on โœ”๏ธ

Just this! โœ”๏ธ

This descriptions are for starting using PyLocalHost. In user manual page(which is in PyLocalHost) you can learn using PyLocalHosts futures and options.


To be honest, the installer is uninstaller and insaller! So follow the installion process to update the software!

And then run:(to prevent possible problems):

$ sudo pylh restart


Used tools:

  • Python
    • Flask
    • Jinja
    • WTForms
    • GUnicorn
    • mwx
  • HTML
  • CSS
  • JavaScript
    • JSON
  • Bash script
  • Nginx
  • CodeMirror

Made by an Iranian ๐Ÿ‡ฎ๐Ÿ‡ท

Be comfortable to submit pull requests and issues โœ”๏ธ