Skip to content

rugk/threema-msgapi-sdk-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Threema Gateway API

threema-gateway is a Python 3 module for the Threema gateway service. This API can be used to send and receive text messages to and from any Threema user.

Note

On machines where Python 3 is not the default Python runtime, you should use pip3 instead of pip.

Prerequisites

$ sudo apt-get install python3 python3-pip

We recommend using the virtualenv package to create an isolated Python environment:

$ sudo pip install virtualenv
$ virtualenv -p python3 threema-gateway-venv

You can switch into the created virtual environment threema-gateway-venv by running this command:

$ source threema-gateway-venv/bin/activate

To deactivate the virtual environment, just run:

$ deactivate

Installation

If you are using a virtual environment, activate it first.

Install the module by running:

$ pip install git+https://github.com/threema-ch/msgapi-sdk-python.git

The dependency libnacl will be installed automatically. However, you may need to install libsodium for libnacl to work.

Command Line Usage

The file threema-gateway provides a command line interface for the Threema gateway. Run the following command to see usage information:

$ ./threema-gateway --help

About

Gateway MsgApi SDK - Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%