Python-SDK
LeanCloud Python SDK
Install
pip install leancloudor
easy_install leancloud
Maybe you need the sudo prefix depends on your OS environment.
Generate API document
Install dependencies:
pip install Sphinx
pip install sphinx_rtd_themecd apidoc
make htmlRun Tests
Configure the following environment variables:
APP_IDAPP_KEYMASTER_KEYUSE_REGION
Install dependencies:
pip install -e .'[test]'Run tests:
nosetestsLinter and Formatter
Currently, flake8 (linter) and black (formatter) are used. But we are still exploring.
Release a New Version
- Edit
changelogandsetup.py(version). - Generate api doc and commit updates.
- Commit them and send a pull request.
- The maintainer will review and merge the pull request, then create a new release at GitHub web UI.
- A new version of the package will be published to PyPI automatically (via GitHub Actions).
License
License: GNU LGPL.
Author: asaka (lan@leancloud.rocks)