Un servidor local con recarga automática para desarrollo de sitios estáticos.
Project description
PyLiveServer
1.description 2.dependencies 3.how to use
description
This is a small script written in python aimed at those who use nvim, helix or the zed code editor on Linux OS. This will allow you to serve files in the web development process and see the changes in your preferred browser in real time. This file includes the languages commonly used in web development (html, css, js, json, images extensions).
dependencies
Linux systems already have python3 installed by default. You just need to use the venv module to create a virtual environment, activate it and install pyliveserver.
use example
open a terminal in the root directory of your project.
1.[create and activate the virtual environment]
python3 -m venv venv
#activate virtual environment
source venv/bin/activate
# you should see (venv) in your terminal
2.[install pyliveserver]
pip install pyliveserver
#now you can use pyliveserver
pyls
3.[try it]
This should open filedialog in the home folder of your system. Select the folder you want to serve and your browser will open. Now you can edit and see the changes in real time!
4.[deactivate virtual environment]
#terminal
deactivate
don`t forget to add venv in your .gitignore file before commiting!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyliveserver-0.1.3.tar.gz.
File metadata
- Download URL: pyliveserver-0.1.3.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0846d728f91163c4f2db21a04d97e38301e3a0339c746a5b10d44b1fe498d10a
|
|
| MD5 |
b5433674f4e882fbb1a50f5359a75024
|
|
| BLAKE2b-256 |
8cc1d82a06c3e9ccd22862b003afc569eeaf26e204b3f35129d1c5fa4e7a652f
|
File details
Details for the file pyliveserver-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pyliveserver-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90c018c017ccd360153a8872d05a4295124cf8d56fc8a25585ff3548a90f71f4
|
|
| MD5 |
ad90ef1b0c29fe3c1167d92d99c75d8b
|
|
| BLAKE2b-256 |
4a832cd0191d34a5e73b72e2dc5704d459f9a59971a7779bc202d962f3207120
|