Skip to main content

Wechat miniprogram http api tools

Project description

This package is maintained by Typing Catliuchunyao0321@gmail.com.

This package is useful for WeChat miniprogram development, especially cloud apis.

API usage

pip install wxcloudsdk

demo.py

from wxcloudsdk import file_manager

file_manager.upload_file(a, b, c...)

get_md5: (title)

Return a md5 code by passing in a string. Useful for creating file names with strings instead of Chinese names.

upload_file: (token, env_id, cloud_path, cloud_dir, local_path)

Upload a file to the specified path on wx cloud storage.

rebuild: (file_path, env_id, token, collection_name)

Refresh a collection by removing and rebuilding. NOTICE that you must upload the data file to the cloud storage first. The file path must be a cloud file path, not local.

Modify api urls by assignment when WeChat team update them

Default:

UPLOAD_API = "https://api.weixin.qq.com/tcb/uploadfile"
COLLECTION_DELETE_API = "https://api.weixin.qq.com/tcb/databasecollectiondelete"
COLLECTION_ADD_API = "https://api.weixin.qq.com/tcb/databasecollectionadd"
COLLECTION_MIGRATE_API = "https://api.weixin.qq.com/tcb/databasemigrateimport"

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 wxcloudsdk, version 0.0.8
Filename, size File type Python version Upload date Hashes
Filename, size wxcloudsdk-0.0.8-py3-none-any.whl (6.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size wxcloudsdk-0.0.8.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page