Skip to main content

A Python XMPP server

Project description

https://img.shields.io/pypi/v/pyjabber.svg Python 3.8 to 3.12 Build Status Coverage Status Documentation Status Monthly downloads Total downloads

PyJabber is a server for Jabber/XMPP entirely written in Python, with minimal reliance on external libraries.
It strives to provide a simple, lightweight, and comprehensible codebase, featuring a modular structure that facilitates extension through the implementation of necessary XEPs for specific use cases.
While initially designed to fulfill the requirements of the multi-agent system SPADE, it can be easily customized to suit any other purpose.

Installation

pip install pyjabber

Quick start

from pyjabber import Server

my_server = Server()
my_server.start()

or

pyjabber --help
Usage: pyjabber [OPTIONS]

Options:
  --host TEXT               Host name  [default: <HOSTNAME>]
  --client_port INTEGER     Server-to-client port  [default: 5222]
  --server_port INTEGER     Server-to-server port  [default: 5269]
  --family [ipv4|ipv6]      (ipv4 / ipv6)  [default: ipv4]
  --tls1_3                  Enables TLSv1_3
  --timeout INTEGER         Timeout for connection  [default: 60]
  --log_level [INFO|DEBUG]  Log level alert  [default: INFO]
  --log_path TEXT           Path to log dumpfile
  -D, --debug               Enables debug mode in Asyncio
  --help                    Show this message and exit.

Features

Status

Description

TLS

Implemented

v1.2 + v1.3. Hostname certificate autogenerated with CA supplied

SASL

Implemented

PLAIN, EXTERNAL (s2s)

Roster

Implemented

CRUD avaliable

Presence

Implemented (local bound)

Subscribe, Unsubscribed, Initial presence and Unavailable

Plugins

Status

Description

XEP-0077

IMPLEMENTED

In Band Registration

XEP-0199

IMPLEMENTED

Ping

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pyjabber-0.1.4-py3-none-any.whl (1.0 MB view details)

Uploaded Python 3

File details

Details for the file pyjabber-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: pyjabber-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.6

File hashes

Hashes for pyjabber-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 242c288d78ec0c562294bd6f8b80d55810331f681435730d6c3dfafadb28aca3
MD5 175d995b470ead79267347d5b2bc0981
BLAKE2b-256 5aff7376f5ad19278d5ae5fb3c7b9e74f2dfca2b0e9e1cc68291515ee19b87d9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page