LeanCloud Python SDK
pip install leancloud
or
easy_install leancloud
Maybe you need the sudo
prefix depends on your OS environment.
Python 2.7 and Python 3.5+.
Install dependencies:
pip install Sphinx
pip install sphinx_rtd_theme
cd apidoc
make html
Configure the following environment variables:
APP_ID
APP_KEY
MASTER_KEY
USE_REGION
Install dependencies:
pip install -e .'[test]'
Run tests:
python -m nose
Run a single test without swallowing print:
python -m nose -v --nocapture tests/test_engine.py:test_lean_engine_error
Currently, flake8 (linter) and black (formatter) are used. But we are still exploring.
- Edit
changelog
andsetup.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: GNU LGPL.
Author: asaka ([email protected])