Skip to main content

XcT x AyOuB - Auto-start Flask API service

Project description

XcT_x_AyOuB

مكتبة Python تُشغّل خدمة Flask API تلقائياً بمجرد استيرادها.

التثبيت

pip install XcT_x_AyOuB

الاستخدام

import XcT_x_AyOuB

بمجرد استيراد المكتبة، يبدأ سيرفر Flask تلقائياً على البورت 5000 (في الخلفية).

Endpoints

  • GET / — معلومات الخدمة
  • GET /start?uid=<UID> — بدء المهمة
  • GET /stop?uid=<UID> — إيقاف المهمة
  • GET /list — قائمة الأهداف النشطة
  • GET /status — حالة الخدمة
  • GET /info?uid=<UID> — معلومات اللاعب
  • GET /restart — إعادة تشغيل الحسابات
  • GET /settings — قراءة الإعدادات
  • POST /settings — تحديث الإعدادات (JSON)

متغيرات البيئة

  • PORT — تغيير البورت (افتراضي 5000)
  • XCT_NO_AUTOSTART=1 — تعطيل التشغيل التلقائي
  • XCT_AUTOSTART_MODE=blocking — تشغيل blocking بدل background

وضع Blocking (مثلاً للاستضافة)

import os
os.environ["XCT_AUTOSTART_MODE"] = "blocking"
import XcT_x_AyOuB

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.0.tar.gz (28.7 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.0-py3-none-any.whl (27.2 kB view details)

Uploaded Python 3

File details

Details for the file xct_x_ayoub-1.0.0.tar.gz.

File metadata

  • Download URL: xct_x_ayoub-1.0.0.tar.gz
  • Upload date:
  • Size: 28.7 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.0.tar.gz
Algorithm Hash digest
SHA256 df1fe00df1ad0a9f7a504ebd37dc13c047123d1fbd4961d7550cc9a640e9610a
MD5 1aef54f39c57048ec322d8e17f35fe86
BLAKE2b-256 1800241a66ed2fb5e777cf4d2f33ae269badbff41cf29a2c66eef759ba448d22

See more details on using hashes here.

File details

Details for the file xct_x_ayoub-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: xct_x_ayoub-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 27.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a97bad8793cc9b86468cc71095cd15b0bf1dbf1756eb77626b4ca870b2ae06e
MD5 062ac4c7be36930504b38746feef8ac8
BLAKE2b-256 2a99c54ba6d1b7d63eedea71d3ba9e241ad4765953aa34959c01767368d88c3e

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