Code Monkey home page Code Monkey logo

python-sdk's Introduction

Python-SDK

Build Status Python3 Support Codecov

LeanCloud Python SDK

Install

pip install leancloud

or

easy_install leancloud

Maybe you need the sudo prefix depends on your OS environment.

Supported Python Versions

Python 2.7 and Python 3.5+.

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:

python -m nose

Run a single test without swallowing print:

python -m nose -v --nocapture tests/test_engine.py:test_lean_engine_error

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. Generate api doc and commit updates.
  3. Commit them and send a pull request.
  4. The maintainer will review and merge the pull request, then create a new release at GitHub web UI.
  5. A new version of the package will be published to PyPI automatically (via GitHub Actions).

License

License: GNU LGPL.

Author: asaka ([email protected])

python-sdk's People

Contributors

aisk avatar azalea avatar chaim007 avatar dionysusg avatar dlmyb avatar feisuzhu avatar iceber avatar jinke18 avatar johndeng avatar juvenn avatar jwfing avatar killme2008 avatar leeyeh avatar lord63 avatar lupintheforth avatar nervouna avatar pyup-bot avatar sdjcw avatar weakish avatar ym avatar yongbo avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.