Compare commits
	
		
			No commits in common. "main" and "cf8eaaaf83e0bc3497dd1f96afd51728f3f80479" have entirely different histories.
		
	
	
		
			main
			...
			cf8eaaaf83
		
	
		
@ -1,3 +1,4 @@
 | 
				
			|||||||
 | 
					```
 | 
				
			||||||
# lazy_serve
 | 
					# 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.
 | 
					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.
 | 
				
			||||||
@ -6,11 +7,10 @@ A simple, easy-to-use Python package for starting HTTP servers with minimal setu
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
To install lazy_serve, simply use pip:
 | 
					To install lazy_serve, simply use pip:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```bash
 | 
					```sh
 | 
				
			||||||
pip install lazy_serve
 | 
					pip install lazy_serve
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
## Usage
 | 
					## Usage
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Using lazy_serve is straightforward. Here's a basic example:
 | 
					Using lazy_serve is straightforward. Here's a basic example:
 | 
				
			||||||
 | 
				
			|||||||
@ -2,7 +2,6 @@ import os
 | 
				
			|||||||
import signal
 | 
					import signal
 | 
				
			||||||
import subprocess
 | 
					import subprocess
 | 
				
			||||||
import threading
 | 
					import threading
 | 
				
			||||||
import time
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class ServerThread(threading.Thread):
 | 
					class ServerThread(threading.Thread):
 | 
				
			||||||
@ -23,8 +22,6 @@ class ServerThread(threading.Thread):
 | 
				
			|||||||
            self.process.poll()
 | 
					            self.process.poll()
 | 
				
			||||||
            if self.process.returncode is not None:
 | 
					            if self.process.returncode is not None:
 | 
				
			||||||
                break
 | 
					                break
 | 
				
			||||||
            else:
 | 
					 | 
				
			||||||
                time.sleep(0.2)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def stop(self):
 | 
					    def stop(self):
 | 
				
			||||||
        self._stop_event.set()
 | 
					        self._stop_event.set()
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										8
									
								
								makefile
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								makefile
									
									
									
									
									
								
							@ -1,8 +0,0 @@
 | 
				
			|||||||
clean:
 | 
					 | 
				
			||||||
	rm -rf dist/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
build: clean
 | 
					 | 
				
			||||||
	python -m build --sdist --wheel
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
pub: build
 | 
					 | 
				
			||||||
	twine upload dist/*
 | 
					 | 
				
			||||||
							
								
								
									
										10
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								setup.py
									
									
									
									
									
								
							@ -2,13 +2,13 @@ from setuptools import find_packages, setup
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
setup(
 | 
					setup(
 | 
				
			||||||
    name="lazy_serve",
 | 
					    name="lazy_serve",
 | 
				
			||||||
    version="0.2.1",
 | 
					    version="0.2",
 | 
				
			||||||
    description="A simple package for effortlessly starting multiple threaded HTTP servers.",
 | 
					    description="A simple package for effortlessly starting HTTP servers.",
 | 
				
			||||||
    long_description=open("README.md").read(),
 | 
					    long_description=open("README.md").read(),
 | 
				
			||||||
    long_description_content_type="text/markdown",
 | 
					    long_description_content_type="text/markdown",
 | 
				
			||||||
    author="Michael Pilosov",
 | 
					    author="Your Name",
 | 
				
			||||||
    author_email="mm@clfx.cc",
 | 
					    author_email="your.email@example.com",
 | 
				
			||||||
    url="https://git.mlden.com/mm/lazy_serve.git",
 | 
					    url="https://github.com/yourusername/lazy_serve",
 | 
				
			||||||
    packages=find_packages(),
 | 
					    packages=find_packages(),
 | 
				
			||||||
    install_requires=[],
 | 
					    install_requires=[],
 | 
				
			||||||
    python_requires=">=3.6",
 | 
					    python_requires=">=3.6",
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user