Skip to main content

A simple package for effortlessly starting HTTP servers.

Project description

# lazy_serve

A simple, easy-to-use Python package for starting HTTP servers with minimal setup. Ideal for serving static files in development environments or for lightweight file sharing.

## Installation

To install lazy_serve, simply use pip:

pip install lazy_serve



## Usage

Using lazy_serve is straightforward. Here's a basic example:

```python
import lazy_serve as lz

if __name__ == "__main__":
    servers = [(8080, "~/server1/out/"), (8081, "~/server2/out/")]
    lz.serve(servers)

This code will start HTTP servers on ports 8080 and 8081, serving files from ~/server1/out/ and ~/server2/out/ respectively.

Features

  • Easy to Use: Start a server in just a few lines of code.
  • Flexible: Serve any directory by simply specifying its path.
  • Concurrent Servers: Run multiple servers at once, each on its own port.

Requirements

  • Python 3.6 or higher

Contributing

Contributions to lazy_serve are welcome! Please follow these steps to contribute:

  1. Fork the repository.
  2. Create a new branch for your feature.
  3. Add your feature or bug fix.
  4. Run the tests to ensure everything is working.
  5. Submit a pull request.

License

This project is licensed under the MIT License.

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

lazy_serve-0.2.post3.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

lazy_serve-0.2.post3-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file lazy_serve-0.2.post3.tar.gz.

File metadata

  • Download URL: lazy_serve-0.2.post3.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for lazy_serve-0.2.post3.tar.gz
Algorithm Hash digest
SHA256 c1269261cfa66464b62504b831277069c91c7af6e63a401fd159f799ece81c3a
MD5 757b05aa95e907983a50acb0b9ef8b00
BLAKE2b-256 1094cf4b2d084a21623929b672b0382a2f0d6cd81e926804a4c4a5cde3ae8822

See more details on using hashes here.

File details

Details for the file lazy_serve-0.2.post3-py3-none-any.whl.

File metadata

File hashes

Hashes for lazy_serve-0.2.post3-py3-none-any.whl
Algorithm Hash digest
SHA256 034ede42ec119d5ec1482a35eecf024e8dd7cb9839df10d5385ae325f1601c1f
MD5 998df32235d85cbc3bb3bb1bf7358c24
BLAKE2b-256 d0e05f23c500c64a6fe13ac7a6a0ade2a2ecbcd82240bdea8558f205a384b386

See more details on using hashes here.

Supported by

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