XcT x AyOuB - Auto-start Flask API service (blocking-by-default fix)
Project description
XcT_x_AyOuB
Auto-start Flask API service.
Install
pip install XcT_x_AyOuB
Usage
Just import the package — the server starts automatically on port 5000:
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 /listGET /statusGET /info?uid=<UID>GET /restartGET /settings(GET/POST)
Environment variables
PORT— server port (default: 5000)XCT_NO_AUTOSTART=1— disable auto-start, callXcT_x_AyOuB.run()manuallyXCT_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
backgroundtoblocking. Previously the daemon thread died as soon as the importing script ended, soimport XcT_x_AyOuBappeared to "do nothing". Now the import call blocks and keeps the server running. - Added startup banner with server URL.
- Better error handling on startup.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xct_x_ayoub-1.0.1.tar.gz
(29.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xct_x_ayoub-1.0.1.tar.gz.
File metadata
- Download URL: xct_x_ayoub-1.0.1.tar.gz
- Upload date:
- Size: 29.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcaf5a7a5ae278eaf70b23078c255efdf1de3f13a8f7f42c03f83d1bfe8487d2
|
|
| MD5 |
b1bba7949695e88df49ce403f3513a86
|
|
| BLAKE2b-256 |
0eca7bdec8cd4176df1fe959ae0c726b7b52f64df10231b611be87263a598d26
|
File details
Details for the file xct_x_ayoub-1.0.1-py3-none-any.whl.
File metadata
- Download URL: xct_x_ayoub-1.0.1-py3-none-any.whl
- Upload date:
- Size: 27.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78958ee4902b4a54b7377e46e7d51a0f3c665847dcf1bf21b29075d1f7b76036
|
|
| MD5 |
eb98ba5a85473e52938eb84369dccbe7
|
|
| BLAKE2b-256 |
63209aab332d6c3724077239597bf1fc46df9cae4ee2e56d95df358f4c834205
|