Skip to content

djun/python-sdk

Repository files navigation

Python-SDK

Build StatusPython3 SupportCodecov

LeanCloud Python SDK

Install

pip install leancloud

or

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_theme
cd apidoc make html

Run Tests

Configure the following environment variables:

  • APP_ID
  • APP_KEY
  • MASTER_KEY
  • USE_REGION

Install dependencies:

pip install -e .'[test]'

Run tests:

nosetests

Linter and Formatter

Currently, flake8 (linter) and black (formatter) are used. But we are still exploring.

Release a New Version

  1. Edit changelog and setup.py (version).
  2. Commit them and send a pull request.
  3. The maintainer will review and merge the pull request, then create a new release at GitHub web UI.
  4. A new version of the package will be published to PyPI automatically (via GitHub Actions).

License

License: GNU LGPL.

Author: asaka ([email protected])

About

LeanCloud Python SDK

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python94.9%
  • Makefile2.6%
  • Batchfile2.5%