Skip to main content

A Python XMPP server

Reason this release was yanked:

Not yet to deploy

Project description

https://img.shields.io/pypi/v/pyjabber.svg https://img.shields.io/travis/dinothor/pyjabber.svg Documentation Status

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 -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ pyjabber

Quick start

from pyjabber import Server

my_server = Server()
my_server.start()
class Server(
    host                : str = "localhost",
    client_port         : int = 5222,
    server_port         : int = 5223,
    connection_timeout  : int = 60
)

A formated logger can be added, in order to retrive the messages from the INFO, DEBUG and ERROR levels

2024-05-03 11:45:51.229 | INFO     | pyjabber.server:run_server:52 - Starting server...
2024-05-03 11:45:51.231 | INFO     | pyjabber.server:run_server:73 - Server is listening clients on ('127.0.0.1', 5222)
2024-05-03 11:45:51.231 | INFO     | pyjabber.server:run_server:75 - Server started...

Features

Status

Description

TLS

Implemented

v1.2, with localhost certificate included

SASL

Implemented

PLAIN

Roster

Implemented

CRUD avaliable

Presence

Not implemented

Working on it

Plugins

Status

Description

XEP-0077

IMPLEMENTED

XEP-0199

IMPLEMENTED

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

pyjabber-0.1.0.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file pyjabber-0.1.0.tar.gz.

File metadata

  • Download URL: pyjabber-0.1.0.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.6

File hashes

Hashes for pyjabber-0.1.0.tar.gz
Algorithm Hash digest
SHA256 eb02aec50cf3d6265b7b250ede26fde306685df42118306b603504e7468436b1
MD5 c86246299296f79e29ec8c5912b68e37
BLAKE2b-256 f7ae590b9f4809c4618efe0ee648f58181e6c36522eac627e852ebd63ab37f01

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyjabber-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d7d146ed03fd91aba5da82be6317cb45c55e24c3bf7f84b28dfa918fa228c42
MD5 3f83523a3b6e8b0f999d18fb7329ec24
BLAKE2b-256 3c02b37a29932c9b9cce2c3f2efaeb1aa3c050f23f2aae8c5ec2ea2cb922754a

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