Wechat Media Module for Python.
Project description
Wechat Media Module for Python.
Sandbox
Installation
pip install pywe-media
Usage
from pywe_media import Media, media_download, media_upload
Method
class Media(BaseToken): def __init__(self, appid=None, secret=None, token=None, storage=None): super(Media, self).__init__(appid=appid, secret=secret, token=token, storage=storage) def upload(self, media_type='image', media_file=None, appid=None, secret=None, token=None, storage=None): def download(self, media_id, hd=False, appid=None, secret=None, token=None, storage=None):
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pywe-media-1.0.7.tar.gz
(2.4 kB
view details)
Built Distribution
File details
Details for the file pywe-media-1.0.7.tar.gz
.
File metadata
- Download URL: pywe-media-1.0.7.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.8 CPython/2.7.12+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f59f4e5657124888687f38d1b6e22472a3b64ceaaf392acf18dc03ec72f81f0 |
|
MD5 | ba263e7e4547ee766267af1e1b154542 |
|
BLAKE2b-256 | db443d9a0b856f3d53f35635cb6edd6f792eb5b070774d931ce164a3f2eed15e |
File details
Details for the file pywe_media-1.0.7-py2.py3-none-any.whl
.
File metadata
- Download URL: pywe_media-1.0.7-py2.py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.8 CPython/2.7.12+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b61cbdfec231f4939aa39bc8e3782db4cdc76f728c575581a9050c4494e23486 |
|
MD5 | 853b378206a33093ae6ce2e4be41c313 |
|
BLAKE2b-256 | dcad8e3f1db6ecf1769f0745d1d396159bd5fbbb4a8432b3b4656e36952b9a4a |