Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyliveserver-0.1.3.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyliveserver-0.1.3-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

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

Hashes for pyliveserver-0.1.3.tar.gz
Algorithm Hash digest
SHA256 0846d728f91163c4f2db21a04d97e38301e3a0339c746a5b10d44b1fe498d10a
MD5 b5433674f4e882fbb1a50f5359a75024
BLAKE2b-256 8cc1d82a06c3e9ccd22862b003afc569eeaf26e204b3f35129d1c5fa4e7a652f

See more details on using hashes here.

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

Hashes for pyliveserver-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 90c018c017ccd360153a8872d05a4295124cf8d56fc8a25585ff3548a90f71f4
MD5 ad90ef1b0c29fe3c1167d92d99c75d8b
BLAKE2b-256 4a832cd0191d34a5e73b72e2dc5704d459f9a59971a7779bc202d962f3207120

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page