Skip to main content

A blazing-fast, ultra-lightweight Python CLI tool for live-reloading web content.

Project description

Reloadify 🚀

Welcome to Reloadify! A super-fast, feather-light Python tool that automatically reloads your HTML, CSS, and JavaScript files in the browser while you code. Say goodbye to manual refreshing! 👋

🌟 Features

  • ⚡ Blazing Fast: Built for speed and efficiency.
  • 🤏 Ultra-Lightweight: No heavy dependencies, just pure performance.
  • 🔄 Live Reloading: Instantly see your changes in the browser.
  • 🛠️ Customizable: Easily configure the file, directory, and port.

📦 Installation

Getting started is as easy as pie! Just open your terminal and run:

pip install reloadify

🚀 Usage

Once installed, navigate to your project's folder and let the magic happen!

reloadify [FILE]
  • [FILE] (optional): This is your main HTML file. If you don't specify one, reloadify will search the current directory and all subdirectories for .html files. If multiple .html files are found, it will prompt you to select one. If only one is found, it will be served automatically.

⚙️ Options

You can customize reloadify to fit your needs:

  • -d, --directory <PATH>: Tell reloadify which specific folder to watch for changes.

    Example:

    # Watch the 'src' folder for changes
    reloadify -d ./src
    
  • -p, --port <PORT>: Choose a custom port to run the server on. The default is 4005.

    Example:

    # Run on port 8000
    reloadify -p 8000
    
  • -t, --timeout <SECONDS>: Automatically shut down the server after a specified number of seconds.

    Example:

    # Shut down after 60 seconds
    reloadify -t 60
    

✨ Examples

Here are a few ways you can use reloadify:

  • Serve index.html and watch its folder (the default way):

    reloadify
    
  • Serve a specific HTML file and watch its folder:

    reloadify my_app/index.html
    
  • Serve index.html but watch a different folder for changes:

    reloadify index.html -d ./src
    
  • Serve index.html on a different port:

    reloadify -p 8080
    

🌐 Connect with Me!

🤝 Contributing

Contributions are welcome! If you'd like to help improve reloadify, please follow these steps:

  1. Fork the repository.
  2. Create a new branch.
  3. Set up a virtual environment:
    python -m venv venv
    source venv/bin/activate
    
  4. Install the dependencies:
    pip install -r requirements.txt
    
  5. Make your changes.
  6. Run the tests:
    pytest
    
  7. Submit a pull request.

📝 License

This project is licensed under the MIT License. See the LICENSE file for details.


Made with ❤️ by LousyBook & Gemini.

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

reloadify-0.1.15.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

reloadify-0.1.15-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file reloadify-0.1.15.tar.gz.

File metadata

  • Download URL: reloadify-0.1.15.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for reloadify-0.1.15.tar.gz
Algorithm Hash digest
SHA256 3b6bf59fa88ecfabbd9a6a21073d6d4c134fe7618c4080e3c2a9645db2aff43c
MD5 8722cb0f0835600f0b00f604db9b17dd
BLAKE2b-256 f0d1ab3104e44d79537a63137849a4781baa5ae852983f213d5057400fddcf54

See more details on using hashes here.

File details

Details for the file reloadify-0.1.15-py3-none-any.whl.

File metadata

  • Download URL: reloadify-0.1.15-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for reloadify-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 61cf2fed44178110b84191f075f7a63579656d852b75a78983ea143691828a61
MD5 90565a2475bc27993f88539ee2ca5eb7
BLAKE2b-256 2f4141aa9f00cac59cc375e7672c287864dc2fdb9fee805b50656f9de8573906

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