Basic one way gate between HTTP and XMPP.
Project description
HTTP to XMPP gateway
This is a dumb dumb gateay between HTTP and XMPP:
You POST some text over HTTP, text gets sent over XMPP.
Only one XMPP jid can receive message.
Installation
pip install http-to-xmpp
Setup
It can be configured either via environment variables:
$ export XMPP_DEST_JID=the_human_receiving_messages@the_server.org
$ export XMPP_JID=the_bot_account@the_server.org
$ export XMPP_PASSWORD=the_bot_password
$ http-to-xmpp
or via arguments, but beware of ps
showing your password!
$ http-to-xmpp --xmpp-jid the_bot_account@the_server.org --xmpp-password the_bot_password --xmpp-dest-jid the_human_receiving_messages@the_server.org
HTTP host and port to listen to can be changed using --http-host
and --http-port
, they default to localhost:1985
.
Usage
You just have to send POST requests, to /
on the given host:port
pair so by default, using curl, one can post messages using:
$ curl -XPOST -d Coucou localhost:1985
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
File details
Details for the file http-to-xmpp-0.1.tar.gz
.
File metadata
- Download URL: http-to-xmpp-0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40f83220f2f97240894f0c75f14e940d44fe9a63b6e278e0bcd2b95b800d42f5 |
|
MD5 | 3978edc54dbb5eface4f8c983ac09511 |
|
BLAKE2b-256 | fc6391845ea56b04c4f971f81fdad81d7ad5b917997aaea4dac2370609fc5928 |
File details
Details for the file http_to_xmpp-0.1-py3-none-any.whl
.
File metadata
- Download URL: http_to_xmpp-0.1-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46db8839057d8b9dfae9e296522983871c7da2daf7477cd828519efdffb3bb54 |
|
MD5 | 37c2028f52cfae43110ef584a2a11c71 |
|
BLAKE2b-256 | 5569cc3e6fbedcad0d6b082c583dae3973cee3ad2a84912dc3d20c5506557db6 |