Skip to main content

Interface for Tencent enterprise weixin.

Project description


Enterprise weixin, interface.


  • 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)
  • upload files
>>> import qyweixin
>>> media_id = qyweixin.upload(token, filename, filepath, filetype)


  • push messages
  • uploads media
  • manage media
  • more qyweixin api


To install qyweixin, simply:

$ pip install qyweixin


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


Copyright (C) 2015-2017 TaoBeier


  • 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

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for qyweixin, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size qyweixin-0.3.1-py2.py3-none-any.whl (7.2 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size qyweixin-0.3.1.tar.gz (5.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page