Pleroma chat client in PyQt5
 
 
 
 
Go to file
knotteye 1e1ee7cae5 Update 'README.md' 2021-04-19 19:23:40 -05:00
deb/DEBIAN fix deb/DEBIAN for real this time 2021-04-19 16:34:15 -05:00
.gitignore Better windows build system using pynsist. Add recipe for installer, 2021-04-19 18:11:21 -06:00
COPYING Switch to PyQt5 only 2021-04-17 10:51:56 -05:00
LICENSE Switch to PyQt5 only 2021-04-17 10:51:56 -05:00
Makefile Add .deb target 2021-04-18 19:57:22 -05:00
README.md Update 'README.md' 2021-04-19 19:23:40 -05:00
audiowidget.py Switch to PyQt5 only 2021-04-17 10:51:56 -05:00
fedi.ico Add ico file 2021-04-16 20:25:56 -05:00
fedi.svg Initial commit 2021-04-15 15:16:38 -05:00
installer.cfg Better windows build system using pynsist. Add recipe for installer, 2021-04-19 18:11:21 -06:00
misc.py Switch to PyQt5 only 2021-04-17 10:51:56 -05:00
monkeypatch.py Switch to PyQt5 only 2021-04-17 10:51:56 -05:00
plchat.py Add totp support 2021-04-17 23:34:34 -05:00
pleroma.py Add totp support 2021-04-17 23:34:34 -05:00
send.svg Initial commit 2021-04-15 15:16:38 -05:00
timeconvert.py Switch to PyQt5 only 2021-04-17 10:51:56 -05:00
unread.svg Initial commit 2021-04-15 15:16:38 -05:00
videowidget.py Switch to PyQt5 only 2021-04-17 10:51:56 -05:00
windows.patch Better windows build system using pynsist. Add recipe for installer, 2021-04-19 18:11:21 -06:00

README.md

PlChat - A Pleroma Chat Client

Pleroma chat client

Usage

Run the binary or python plchat.py. Log in to your account on the fediverse and start chatting. If your server runs behind a reverse proxy, it will need to proxy websocket connections.

Installation

Installation instructions for PlChat. If you are looking to package this program or build from source, skip to Building From Source or Packaging down below.

Windows

Download and install the k-lite codec pack. The basic version with default options should work fine.

Download the installer from https://pond.waldn.net/plchat/windows/latest.zip extract the zip file. Other versions can be found at, for example, https://pond.waldn.net/plchat/windows/1.0.1.zip . Run the installer.

Linux

A prepackaged deb file is provided in https://git.waldn.net/git/knotteye/plchat/releases as well as a compiled binary for amd64 linux. If you package plchat for your distro, please let me know and I will add it here.

MacOS

Nuitka does not support cross compilation and I do not have a working MacOS machine or VM, but it should theoretically compile and run just fine. Feel free to message me for support, and I'll be glad to link to your site if you host any binaries you build. A macos binary has been provided by ~am. You can find it on the releases page. Run brew install libmagic before running.

Building From Source or Packaging

PlChat comes with a Makefile for compiling to a binary, but it is of course possible to run the source directly with just python plchat.py. The easiest way to package PlChat is just to make sure the dependencies are installed and write a script that sets the appropriate pythonpath and runs plchat.py. Otherwise you can see below for instructions on building the binary.

Runtime Dependencies

You will need the following libraries: PyQt5, Secret Service (on linux or BSD), libmagic (python-magic-bin from pypi on windows), and some codecs for qtmultimedia. The windows codecs can be found above, and on linux you will need gstreamer and some plugins. On gentoo, sudo emerge media-plugins/gst-plugins-base media-plugins/gst-plugins-good media-plugins/gst-plugins-bad media-plugins/gst-plugins-ugly media-plugins/gst-plugins-neon media-plugins/gst-plugins-soup media-plugins/gst-plugins-libav should do. Other distributions are on your own. And, obviously, a copy of python. Python3.5+ is the only thing I will support but other versions may work. End users will need the same version of python used to compile the binary. Other versions may work but this is what nuitka officially supports.

Building

You will need the following packages from pypi: PyQt5, keyring, notify-py, appdirs, python-magic(or python-magic-bin on windows), python-dateutil, requests, urllib3, and websockets. You will also need all runtime dependencies listed above, as well as nuitka3 and a C compiler. Nuitka supports the following compilers:

  • gcc 5.1+ or g++ 4.4+
  • clang on macOS or BSD
  • MinGW64/Visual Studio 2019+/clang-cl on Windows

Cross compilation is not supported so you will need to compile on the OS and architecture that you are targeting.

Once everything is installed and in your path it should be a simple make && sudo make install to build everything. The resulting binary will have it's own copy of all the python build dependencies, which can then be uninstalled or ignored. You can also make systemlibs if you wish, and the resulting binary will rely on system packages for all python modules listed above as build depencies. Nuitka produces very large binaries. UPX works well if you want to reduce the size.