Skip to main content

Wechat Template Message Module for Python.

Sandbox

Installation

pip install pywe-template-message

Usage

from pywe_template_message import TemplateMessage, INDUSTRY_LIST, set_industry, get_industry, add_template, get_all_private_template, del_private_template, send_template_message

Method

class TemplateMessage(BaseToken):
    def __init__(self, appid=None, secret=None, token=None, storage=None):
        super(TemplateMessage, self).__init__(appid=appid, secret=secret, token=token, storage=storage)

def set_industry(self, industry_id1, industry_id2, appid=None, secret=None, token=None, storage=None):

def get_industry(self, appid=None, secret=None, token=None, storage=None):

def add_template(self, template_id_short, appid=None, secret=None, token=None, storage=None):

def get_all_private_template(self, appid=None, secret=None, token=None, storage=None):

def del_private_template(self, template_id, appid=None, secret=None, token=None, storage=None):

def send_template_message(self, user_id, template_id, data, url=None, mini_program=None, appid=None, secret=None, token=None, storage=None):

Metadata

Release files for pywe-template-message 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pywe-template-message 1.0.1
File Size Uploaded
pywe-template-message-1.0.1.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pywe-template-message 1.0.1
File Interpreter ABI Platform
pywe_template_message-1.0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 7.1 kB

Release files / pywe-template-message-1.0.1.tar.gz

Download URL pywe-template-message-1.0.1.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
acaaa39fce22c2399cc6c9b52f90915da6e701bb5500d34d8215de11eb2b35e3
BLAKE2b-256 checksum
How to use checksums
0859e265a9de6662588ae14d2f973d32f925b194321c8ccc43412021584a685e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.2

Release files / pywe_template_message-1.0.1-py2.py3-none-any.whl

Download URL pywe_template_message-1.0.1-py2.py3-none-any.whl
Size 3.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f3cf2c7ceea5dcb7514da6215720cf7ce875a017408ff1d6e9e1e49ae188bb4b
BLAKE2b-256 checksum
How to use checksums
bbeece2a6925330a73ab86f09c49ee175ef94d32efc9df3b8534ffe787fef882
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.2

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page