All Projects → lgrahl → threema-msgapi-sdk-python

lgrahl / threema-msgapi-sdk-python

Licence: MIT license
Threema Gateway Message SDK for Python

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to threema-msgapi-sdk-python

Springcloud
springCloud学习
Stars: ✭ 251 (+578.38%)
Mutual labels:  gateway
fast-proxy
Node.js framework agnostic library that enables you to forward an http request to another HTTP server. Supported protocols: HTTP, HTTPS, HTTP2
Stars: ✭ 141 (+281.08%)
Mutual labels:  gateway
tuyagateway
Local Python Gateway for Tuya devices
Stars: ✭ 102 (+175.68%)
Mutual labels:  gateway
Springcloudlearning
《史上最简单的Spring Cloud教程源码》
Stars: ✭ 16,218 (+43732.43%)
Mutual labels:  gateway
payum-ecpay
The Payum extension. 綠界金流
Stars: ✭ 13 (-64.86%)
Mutual labels:  gateway
node-lumi-aqara
Control your Xiaomi Smart Home devices with this Lumi Aqara library
Stars: ✭ 45 (+21.62%)
Mutual labels:  gateway
Mbusd
Open-source Modbus TCP to Modbus RTU (RS-232/485) gateway.
Stars: ✭ 233 (+529.73%)
Mutual labels:  gateway
GatewayService
GatewayService (Ocelot).
Stars: ✭ 19 (-48.65%)
Mutual labels:  gateway
SmartGW
Domain based VPN Gateway/Proxy for all devices
Stars: ✭ 49 (+32.43%)
Mutual labels:  gateway
api-gateway
Node.js API gateway that works as single entry point for all clients in a MicroService architecture pattern.
Stars: ✭ 26 (-29.73%)
Mutual labels:  gateway
gateway
A high-performance API Gateway with middlewares, supporting HTTP and gRPC protocols.
Stars: ✭ 520 (+1305.41%)
Mutual labels:  gateway
citrix-adc-aws-cloudformation
Citrix ADC (Formerly Netscaler) templates and scripts for AWS deployment
Stars: ✭ 11 (-70.27%)
Mutual labels:  gateway
consul-api-gateway
The Consul API Gateway is a dedicated ingress solution for intelligently routing traffic to applications running on a Consul Service Mesh.
Stars: ✭ 88 (+137.84%)
Mutual labels:  gateway
Davmail
DavMail POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange and Office 365 Gateway - Synced with main subversion repository at
Stars: ✭ 250 (+575.68%)
Mutual labels:  gateway
kong-init
Declarative configuration tool for Kong
Stars: ✭ 38 (+2.7%)
Mutual labels:  gateway
S3auth
Amazon S3 HTTP Basic Auth Gateway
Stars: ✭ 249 (+572.97%)
Mutual labels:  gateway
QUaModbusClient
Modbus to OPC UA Gateway
Stars: ✭ 38 (+2.7%)
Mutual labels:  gateway
GateWay
🥗OpenIoTHub Gateway for mobile(网关移动应用)
Stars: ✭ 25 (-32.43%)
Mutual labels:  gateway
LogiEM
面向Elasticsearch研发与运维人员,围绕集群、索引构建的零侵入、多租户的Elasticsearch GUI管控平台
Stars: ✭ 209 (+464.86%)
Mutual labels:  gateway
go-zero
A cloud-native Go microservices framework with cli tool for productivity.
Stars: ✭ 23,294 (+62856.76%)
Mutual labels:  gateway

Threema Gateway API

Travis codecov

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 venv to create an isolated Python environment:

$ pyvenv venv

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

$ source venv/bin/activate

While the virtual environment is active, all packages installed using pip will be installed into this environment.

To deactivate the virtual environment, just run:

$ deactivate

If you want easier handling of your virtualenvs, you might also want to take a look at virtualenvwrapper.

Installation

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

Install the module by running:

$ pip install threema.gateway

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

Command Line Usage

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

$ threema-gateway --help

Examples

You can find a few example scripts in the examples/ directory.

Note that most of them need to be adjusted to at least add your gateway ID credentials before they run successfully.

Feature Levels

Level Text Capabilities Image File Credits
1 X        
2 X X X X  
3 X X X X X

You can see the implemented feature level by invoking the following command:

$ threema-gateway version

Contributing

If you want to contribute to this project, you should install the optional dev requirements of the project in an editable environment:

$ git clone https://github.com/lgrahl/threema-msgapi-sdk-python.git
$ cd threema-msgapi-sdk-python
$ pip install -e .[dev]

Before creating a pull request, it is recommended to run the following commands to check for code style violations (flake8), optimise imports (isort) and run the project's tests:

$ flake8 .
$ isort .
$ py.test

You should also run the type checker that might catch some additional bugs:

$ mypy setup.py tests examples threema

Reporting Security Issues

Please report security issues directly to one or both of the following contacts:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].