Metadata-Version: 2.4
Name: XcT-x-AyOuB
Version: 1.0.1
Summary: XcT x AyOuB - Auto-start Flask API service (blocking-by-default fix)
Author: XcT x AyOuB
License: MIT
Keywords: flask,api,xct,ayoub
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: flask>=2.0
Requires-Dist: requests
Requires-Dist: urllib3
Requires-Dist: pyjwt
Requires-Dist: pycryptodome
Requires-Dist: protobuf
Requires-Dist: protobuf-decoder
Requires-Dist: psutil

# XcT_x_AyOuB

Auto-start Flask API service.

## Install

```bash
pip install XcT_x_AyOuB
```

## Usage

Just import the package — the server starts automatically on port 5000:

```python
import XcT_x_AyOuB
```

The process stays alive (blocking mode). Press `Ctrl+C` to stop.

### Endpoints

- `GET /start?uid=<UID>`
- `GET /stop?uid=<UID>`
- `GET /list`
- `GET /status`
- `GET /info?uid=<UID>`
- `GET /restart`
- `GET /settings` (GET/POST)

### Environment variables

- `PORT` — server port (default: 5000)
- `XCT_NO_AUTOSTART=1` — disable auto-start, call `XcT_x_AyOuB.run()` manually
- `XCT_AUTOSTART_MODE=background` — run in a daemon thread (only useful if your script does its own blocking work afterwards)

## Changelog

### 1.0.1
- **Fixed**: default auto-start mode changed from `background` to `blocking`.
  Previously the daemon thread died as soon as the importing script ended,
  so `import XcT_x_AyOuB` appeared to "do nothing". Now the import call
  blocks and keeps the server running.
- Added startup banner with server URL.
- Better error handling on startup.
