A package to manage XMPP server events and provide custom handlers for GET and POST stanzas.
Project description
Viyu XMPP Server
Overview
Viyu XMPP Server is a Python-based server built on slixmpp to handle custom XMPP events. It provides an easy way to manage GET and POST stanzas with customizable handlers for real-time communication applications.
Features
- Handles XMPP sessions and events.
- Provides custom GET and POST handlers.
- Secure connection with SSL support (with optional certificate verification).
- Easy-to-extend for additional XMPP stanzas.
Installation
-
Clone the repository:
git clone https://github.com/yourusername/viyu-package.git cd viyu-package
-
Install the package:
pip install .
Usage
Running the XMPP Server
Create an instance of ViyuXmppServer with your JID and password, and start the server:
from viyu_xmpp.server import ViyuXmppServer
xmpp = ViyuXmppServer("user@domain", "password")
xmpp.connect()
xmpp.process()
Adding Custom Handlers
Define and register custom event handlers for GET and POST stanzas:
# Add a GET handler
xmpp.add_get("event_name", lambda: {"status": "success", "data": "Hello, GET!"})
# Add a POST handler
xmpp.add_post("event_name", lambda: {"status": "success", "message": "Hello, POST!"})
Sample Configuration
You can extend the server's functionality by modifying the event handlers and plugins as required.
Dependencies
- Python >= 3.6
slixmppcryptography
Contributing
Contributions are welcome! Please submit a pull request or create an issue for any bugs or feature requests.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contact
For any questions or support, contact TRIYOM SOFTWARES PVT LTD at admin@triyom.in.
Project Links
- Source Code: GitHub Repository
- Bug Tracker: Issues
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
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 viyu_xmpp-0.0.1.tar.gz.
File metadata
- Download URL: viyu_xmpp-0.0.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29df0b02187eb661b6c16e39fbf0f224b933b7fba42a18010d7b431afa68706c
|
|
| MD5 |
836a8c742519df21a0efb1031aa30802
|
|
| BLAKE2b-256 |
7679715617c669c975609d08d0c6956be244b4c35f6a359c262e863bd947062d
|
File details
Details for the file viyu_xmpp-0.0.1-py3-none-any.whl.
File metadata
- Download URL: viyu_xmpp-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5fe79edcee6bde74f3676f4029550417eae114adf5911643eef14dd6456adb9
|
|
| MD5 |
ffae5f0f205c0cc042f013b5422bd8e9
|
|
| BLAKE2b-256 |
6542d4af6958e52977f910bb6e306f9d576c1580fbf0e1ae4b3efca1ef57c922
|