Skip to main content

qyweixin

https://img.shields.io/pypi/v/qyweixin.svg https://travis-ci.org/MoeLove/qyweixin.svg?branch=master https://coveralls.io/repos/MoeLove/qyweixin/badge.svg?branch=master&service=github https://img.shields.io/pypi/dm/qyweixin.svg https://img.shields.io/pypi/wheel/qyweixin.svg https://img.shields.io/pypi/status/qyweixin.svg

Enterprise weixin, interface.

Usage

  • get token

>>> import qyweixin
>>> token = qyweixin.get_token('corpid', 'corpsecret')
>>> token
...
  • push message

>>> import qyweixin
>>> push_msg = qyweixin.WeixinPush()
>>> push_msg.push_text_msg(token=token, agentid=0, content='test msg', touser='test', toparty='test_group', totag='', safe=0)
True
  • upload files

>>> import qyweixin
>>> media_id = qyweixin.upload(token, filename, filepath, filetype)
...

Features

  • push messages

  • uploads media

  • manage media

  • more qyweixin api

Installation

To install qyweixin, simply:

$ pip install qyweixin

Notice

This package on v0.3.0 has one broken api. When the message fails to send, the details are returned.

License

Copyright (C) 2015-2017 TaoBeier

HISTORY

  • 2015.09.27 Start

  • 2015.10.08 Add file upload

  • 2015.11.19 Simple API

  • 2016.11.22 Upgrade to 0.2.2 improve push_message API

Release files for qyweixin 0.3.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 qyweixin 0.3.1
File Size Uploaded
qyweixin-0.3.1.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qyweixin 0.3.1
File Interpreter ABI Platform
qyweixin-0.3.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 12.8 kB

Release files / qyweixin-0.3.1.tar.gz

Download URL qyweixin-0.3.1.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
749e037bb5a48e653afa80338d7c4e7bf0c628c651742009ce2bfd8f32d642dc
BLAKE2b-256 checksum
How to use checksums
7f1cd4aee125a054ad555d239acada6fd92e32be48ad248153031e78885ea228
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / qyweixin-0.3.1-py2.py3-none-any.whl

Download URL qyweixin-0.3.1-py2.py3-none-any.whl
Size 7.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5b622b5cf7c8ad9b61905743f94b928e0d81f706cf384f4034dbf1c85acf2ab6
BLAKE2b-256 checksum
How to use checksums
8857038a4263bf3ed27e762120680c8fcaeed0a14ece3cf02d4db25ceca7363f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

1 release file

0.2.0

2 release files

0.1.3

2 release files

0.1.2

1 release file

0.1.1

1 release file

0.1.0

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