Metadata-Version: 2.4
Name: easysite
Version: 1.0.0
Summary: Launch a local website in just 3 lines of Python. Zero dependencies.
Author-email: Your Name <your@email.com>
License: MIT
Project-URL: Homepage, https://github.com/YOUR_USERNAME/easysite
Project-URL: Repository, https://github.com/YOUR_USERNAME/easysite
Project-URL: Issues, https://github.com/YOUR_USERNAME/easysite/issues
Keywords: web,server,html,local,easy,simple,http
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# EasySite

**Launch a local website in just 3 lines of Python. Zero dependencies.**

## Install

```bash
pip install easysite
```

## Quick Start

### Local mode (only your PC)

```python
import easysite

site = easysite.local()
site.html = "index.html"
site.run()
```

### Router mode (all devices on your Wi-Fi / LAN)

```python
import easysite

site = easysite.router()
site.html = "index.html"
site.run()
```

Open `http://<your-ip>:8080` on your phone or any other device connected to the same router!

### Router with multiple pages

```python
import easysite

site = easysite.router()
site.route("/", "index.html")
site.route("/about", "about.html")
site.run()
```

## What's the difference?

| Mode | Who can access | Bind address |
|------|---------------|-------------|
| `easysite.local()` | Only this computer | `127.0.0.1` |
| `easysite.router()` | All devices on your network | `0.0.0.0` (your router IP) |

## Features

- **3 lines** to launch a site
- **Zero dependencies** — pure Python standard library
- **Auto-detects your IP** and prints it on startup
- **Static file serving** — CSS, JS, images served automatically
- **Router mode** — share your site with phones, tablets, other PCs
- **Multiple pages** — register routes for multi-page sites
- **Colored terminal output** with ASCII banner

## Custom port

```python
site = easysite.router(port=3000)
```

## Output example

```
  ___  __ _ ___ _   _ ___(_) |_ ___
 / _ \/ _` / __| | | / __| | __/ _ \
|  __/ (_| \__ \ |_| \__ \ | ||  __/
 \___|\__,_|___/\__, |___/_|\__\___|
                |___/

  [OK] Site launched successfully!
  Mode: NETWORK (all devices on your router)

  ->  This PC:  http://127.0.0.1:8080
  ->  Network:  http://192.168.1.42:8080

  Your IP: 192.168.1.42
  Anyone on your Wi-Fi/LAN can open the Network link above.
  Press Ctrl+C to stop the server.
```

## License

MIT
