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:
$ http-to-xmpp --xmpp-jid bot_account@the_server.org --xmpp-password "$(pass bot_account@the_server.org)" --xmpp-dest-jid human_account@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
Metadata
Release files for http-to-xmpp 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| http-to-xmpp-0.2.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| http_to_xmpp-0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.1 kB
Release files / http-to-xmpp-0.2.tar.gz
| Download URL | http-to-xmpp-0.2.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cedd96a5768749b6ec841e411e3f531fa9a26ba71c0f180c3f6915f96557632b
|
|
BLAKE2b-256 checksum How to use checksums |
2c28cb29a3046ac49e1562601f97b33672f1b039909b7fda3a2add86d040cc24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / http_to_xmpp-0.2-py3-none-any.whl
| Download URL | http_to_xmpp-0.2-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
232825e888975ae1fbb158d78fe222b7a7c2f77b8036063fb5371fc8e605eb8b
|
|
BLAKE2b-256 checksum How to use checksums |
05d1772184e2b0153e4caacd3878a3dbe560989e6c1de6d364273efe480f3c47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|