semvec/pypi-packages huggingface dataset:
testando_pypi_www 0.0.2
A test package for PyPI publishing
License: MIT
Requires Python: >=3.13
Keywords: 3Wtoolkit, example, pypi

# my_test_pypi_www

A test package for PyPI publishing demonstration.

## Installation

```bash
pip install my_test_pypi_www
```

## Usage

```python
from my_test_pypi_www import my_func

my_func()
```

## Development

To install in development mode:

```bash
pip install -e .
```

## Building and Publishing

1. Build the package:
```bash
python -m build
```

2. Upload to PyPI (you'll need to create an account first):
```bash
python -m twine upload dist/*
```

## License

MIT License
flask-gateway 0.1.0a0
A Flask-based reverse proxy server for routing to sub-Flask apps
License: MIT
Requires Python: >=3.7

# Flask Gateway

Flask Gateway is a lightweight Flask-based reverse proxy server that lets you host multiple independent Flask services under distinct path prefixes. I've found it useful for serving multiple local tools through a single public endpoint (e.g., via `ngrok`) by acting as a gateway.

---

## 🚀 Installation

You can install Flask Gateway directly from PyPI:

```bash
pip install flask-gateway
```

Alternatively, you can download a release archive and install it manually:

```bash
pip install flask-gateway-x.y.z.tar.gz
```

Or install from source:

```bash
git clone https://github.com/yourusername/flask-gateway.git
cd flask-gateway
pip install .
```

---

## 🧭 Usage

### 🔌 Start the gateway server

```bash
flask-gateway serve --port 9999 --targets examples/targets.json
```

- The `targets.json` file defines which local Flask apps are proxied and where they are routed.
- Example format:

```json
{
  "myapp": {
    "label": "My App",
    "pathPrefix": "/myapp",
    "target": "http://127.0.0.1:5001"
  },
  ...
}
```

---

## 🛠️ Making your Flask apps gateway-compatible

To support routing under a path prefix (e.g., `/myapp/`) **without breaking standalone usage**, add this snippet:

```python
try:
    from flask_gateway.patch import gateway_patch
    app = gateway_patch(app)
except ImportError:
    pass  # fallback for standalone usage
```

✅ This ensures your app works both as:

- A standalone Flask server (`python app.py`)
- A proxied service under a path like `/myapp/` via Flask Gateway

---

## 📁 Example Services

See the `examples/` directory for sample Flask apps you can proxy through the gateway.

To run them:

```bash
python examples/someapp/app.py
```

Then launch the gateway with:

```bash
flask-gateway serve --targets examples/targets.json
```

Visit:

- `http://localhost:9999/someapp/`

---

## 📄 License

MIT © Adil Rahman