Skip to main content

Convenience wrapper for exonware-xwbots - provides 'import xwbots' alias

Project description

xwbots

Multi-platform bot framework. Single API for Telegram, Discord, Slack; commands, lifecycle, crash recovery; integration with xwstorage, xwauth, xwentity, xwaction, xwai. Per project docs.

Full features and examples: README_LONG.md.

Company: eXonware.com · Author: eXonware Backend Team · Email: connect@exonware.com

Status Python License


📦 Install

pip install exonware-xwbots
# Optional: [lazy] or [full]
pip install exonware-xwbots[lazy]
pip install exonware-xwbots[full]

🚀 Quick start

For Telegram, use xwchat directly (xwbots does not ship a platform adapter; xwchat owns the transport):

from exonware.xwchat import Telegram as TelegramChatProvider

provider = TelegramChatProvider(api_token="your-telegram-key")
provider.set_message_handler(lambda ctx: "Hello!")  # or wire an XWBotCommand
import asyncio
asyncio.run(provider.start_listening())

See examples/ for Karizma and Parrot bots that wire xwchat + command handlers.


✨ What you get

Area What's in it
Platforms Telegram via xwchat (use xwchat's provider directly; see examples).
Commands Command framework; xwaction integration; role-based access (xwauth).
Lifecycle Start, stop, restart; crash recovery.
Ecosystem xwstorage, xwauth, xwentity, xwaction, xwai.

🛠️ Development (editable xwchat)

XWBots uses xwchat for Telegram. To work on both with live changes:

  • Recommended (exonware repo): From repo root, run the shared venv script so the xwbots .venv gets all xw libs (including xwchat) in editable mode:

    python scripts/venvs/setup_venvs.py --packages-only
    

    Then activate xwbots/.venv and use it; xwchat will be installed as -e ../xwchat.

  • If you created xwbots' venv manually: Ensure xwchat is editable in the current environment:

    # From exonware repo root or from xwbots
    python xwbots/scripts/ensure_editable_xwchat.py
    

📖 Docs and tests


📜 License and links

MIT — see LICENSE. Homepage: https://exonware.com · Repository: https://github.com/exonware/xwbots

⏱️ Async Support

  • xwbots includes asynchronous execution paths in production code.
  • Source validation: 56 async def definitions and 28 await usages under src/.
  • Use async APIs for I/O-heavy or concurrent workloads to improve throughput and responsiveness.

Version: 0.0.1.8 | Updated: 13-Apr-2026

Built with ❤️ by eXonware.com - Revolutionizing Python Development Since 2025

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

xwbots-0.0.1.8.tar.gz (33.7 kB view details)

Uploaded Source

Built Distribution

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

xwbots-0.0.1.8-py3-none-any.whl (38.9 kB view details)

Uploaded Python 3

File details

Details for the file xwbots-0.0.1.8.tar.gz.

File metadata

  • Download URL: xwbots-0.0.1.8.tar.gz
  • Upload date:
  • Size: 33.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for xwbots-0.0.1.8.tar.gz
Algorithm Hash digest
SHA256 c82a90e07aff4df0c5c6811f8c3920038ee1a0fa80afbf1ef09f1e3ac201aedc
MD5 2bbf5515a8a51395932414a247a94fe8
BLAKE2b-256 095bc182d14099ef40f3a5d67e4dbe6620a0e646c6cc4c60a8b5b7f7cfc5e21c

See more details on using hashes here.

File details

Details for the file xwbots-0.0.1.8-py3-none-any.whl.

File metadata

  • Download URL: xwbots-0.0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 38.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for xwbots-0.0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 98d951743c86dd69a5b0d6e4d6bca669caf15085729d00f27a1d89fe2ca2846e
MD5 cea0ea90eefc36cfa94cd28d9cac7a72
BLAKE2b-256 5f98bb1d7ca5d1f587334edd5938d7cc10b14248b8757ba24b245e02b5d905f6

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