Messaging and Real-time Communication SDK for Python

Estimated reading time: 2 minutes

mesibo Python API is an open-source real-time communication library. The entire source code for the python package can be found at our GitHub repo mesibo Python API

Supported Platforms

mesibo Pythons APIs are tested on the following platforms.

  • RedHat 8.x / Rocky Linux 8.5 / CentOS 7.x and 8.x / Oracle Linux 8
  • Ubuntu 22.04 and 20.04 (should work on Debian too)
  • Mac OS - both X86_64 and Arm64 (M1) versions
  • Raspberry Pi 3 and 4 (64-bit)

Send us an email if your platform (except Windows) is not supported.

Requirements

The only prerequisite for installing mesibo is Python. You can then use pip to install mesibo or you can download source code and build it.

mesibo now only supports Python3. Note that, Python2 is deprecated and hence you should use Python3 mesibo APIs.

  • Python 3.x (3.6.x or newer)

Installing mesibo Python package using pip

To install the mesibo python library use pip or pip3

$ sudo python -m pip3 install mesibo

or

$ sudo python -m pip install mesibo

To upgrade,

$ sudo python -m pip3 install mesibo -U

Additional Steps for the First Run

mesibo Python module will try to copy platform specific library file mesibo.so during the first run. In case it is not able to copy due to the permissions, it will raise an exception with the exact command to copy file which you need to execute.

mesibo requires following file to be copied. Execute the following command to copy and try again:

sudo /bin/cp -f /Library/Python/3.x/site-packages/mesibo/clib/darwin/x86_64/3.x/_mesibo.so /Library/Python/3.x/site-packages/mesibo/_mesibo.so

Importing Mesibo

Once you have installed mesibo Python package sucessfully, you should be able to use mesibo in Python as follows:

import mesibo
from mesibo import MesiboListener

Checkout the tutorial Write your First mesibo Enabled Application - Python

[OPTIONAL] Installing mesibo Python package from source

Alternatively, you can build and install the package by downloading the source code from the GitHub repo.

Download the source files from mesibo Python repo on GitHub

git clone https://github.com/mesibo/python.git

You will find the following directory structure:

|-- examples 
|-- setup.py
|-- src

To build the mesibo Python package from source

sudo python setup.py build 

To build and install the mesibo Python package from source

sudo python setup.py install
chat sdk for python, messaging sdk for python, mesibo python sdk, open source messaging sdk, chat app sdk, python chat sdk