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.

Source Distribution

wxcloudsdk-0.0.8.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wxcloudsdk-0.0.8-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file wxcloudsdk-0.0.8.tar.gz.

File metadata

  • Download URL: wxcloudsdk-0.0.8.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3

File hashes

Hashes for wxcloudsdk-0.0.8.tar.gz
Algorithm Hash digest
SHA256 c3e7843cf50f792a777d67bdc84591a6bc940b1097f11d275573099e4882efdb
MD5 bac286710e4798f769830dd31c2d5475
BLAKE2b-256 c6320a22f7cef4e77f2d55ad037843506985fe72e80cfc9c69d5b711507f6c8c

See more details on using hashes here.

File details

Details for the file wxcloudsdk-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: wxcloudsdk-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3

File hashes

Hashes for wxcloudsdk-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 46e605eadabd1d539d3edd4e7c516445ffde11d4d1eb98f1a5fe3949d08d0f5d
MD5 2577026922333ac16b7e5e5ef89daf0e
BLAKE2b-256 17c1c48ec0ec19631b6886a30af87657c0be2e27ac3e5a6f1a455ce6c173f916

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page