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:
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:
- Fork the repository.
- Create a new branch for your feature.
- Add your feature or bug fix.
- Run the tests to ensure everything is working.
- Submit a pull request.
License
This project is licensed under the MIT License.
Metadata
Release files for lazy-serve 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lazy_serve-0.2.1.tar.gz | 1.7 kB | Without provenance | Details for lazy_serve-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lazy_serve-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for lazy_serve-0.2.1-py3-none-any.whl |
Total release size: 3.5 kB
Release files / lazy_serve-0.2.1.tar.gz
| Download URL | lazy_serve-0.2.1.tar.gz |
|---|---|
| Size | 1.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
48cf9d9bedb11d25aea1d12fea8786fe5f806a0b67c1cea24c92b162f6d58841
|
|
BLAKE2b-256 checksum How to use checksums |
44adaf7f8d1cefbb11ddae9e30325856b6d713e6124802acacbbcbac04cf17ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Release files / lazy_serve-0.2.1-py3-none-any.whl
| Download URL | lazy_serve-0.2.1-py3-none-any.whl |
|---|---|
| Size | 1.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9577a1395a0684860d3d9f9add6ee60528fac856842d011ab78d83d500ba607c
|
|
BLAKE2b-256 checksum How to use checksums |
528007e620e1ef4a960f207214d4e6deee9f0fc4b9d21b26348d0ca7e6640187
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Security for lazy-serve 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.