Skip to main content

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 /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.

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xct_x_ayoub-1.0.1-py3-none-any.whl (27.8 kB view details)

Uploaded Python 3

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

Hashes for xct_x_ayoub-1.0.1.tar.gz
Algorithm Hash digest
SHA256 fcaf5a7a5ae278eaf70b23078c255efdf1de3f13a8f7f42c03f83d1bfe8487d2
MD5 b1bba7949695e88df49ce403f3513a86
BLAKE2b-256 0eca7bdec8cd4176df1fe959ae0c726b7b52f64df10231b611be87263a598d26

See more details on using hashes here.

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

Hashes for xct_x_ayoub-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 78958ee4902b4a54b7377e46e7d51a0f3c665847dcf1bf21b29075d1f7b76036
MD5 eb98ba5a85473e52938eb84369dccbe7
BLAKE2b-256 63209aab332d6c3724077239597bf1fc46df9cae4ee2e56d95df358f4c834205

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page