{"id":19614777,"url":"https://github.com/leancloud/python-sdk","last_synced_at":"2025-08-17T20:10:50.185Z","repository":{"id":38360401,"uuid":"26794168","full_name":"leancloud/python-sdk","owner":"leancloud","description":"LeanCloud Python SDK","archived":false,"fork":false,"pushed_at":"2024-07-04T03:42:30.000Z","size":7734,"stargazers_count":98,"open_issues_count":30,"forks_count":37,"subscribers_count":32,"default_branch":"master","last_synced_at":"2025-06-14T08:08:13.724Z","etag":null,"topics":["baas","leancloud","python"],"latest_commit_sha":null,"homepage":"https://leancloud.cn/docs/leanstorage_guide-python.html","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leancloud.png","metadata":{"files":{"readme":"README.md","changelog":"changelog","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-11-18T05:53:41.000Z","updated_at":"2025-02-16T09:46:45.000Z","dependencies_parsed_at":"2024-03-29T03:26:47.119Z","dependency_job_id":"b05950f2-c6c5-4c77-b691-34382b475a8f","html_url":"https://github.com/leancloud/python-sdk","commit_stats":null,"previous_names":[],"tags_count":72,"template":false,"template_full_name":null,"purl":"pkg:github/leancloud/python-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2Fpython-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2Fpython-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2Fpython-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2Fpython-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leancloud","download_url":"https://codeload.github.com/leancloud/python-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2Fpython-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270899582,"owners_count":24664720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["baas","leancloud","python"],"created_at":"2024-11-11T10:53:42.972Z","updated_at":"2025-08-17T20:10:50.138Z","avatar_url":"https://github.com/leancloud.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python-SDK\n\n![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/leancloud/python-sdk/Python%20package/master)\n[![Codecov](https://img.shields.io/codecov/c/github/leancloud/python-sdk.svg)](https://codecov.io/gh/leancloud/python-sdk)\n\nLeanCloud Python SDK\n\n## Install\n\n```bash\npip install leancloud\n```\n\nor\n\n```\neasy_install leancloud\n```\n\nMaybe you need the `sudo` prefix depends on your OS environment.\n\n## Supported Python Versions\n\nPython 2.7.18 and Python 3.6+.\n\n## Generate API document\n\nInstall dependencies:\n\n```sh\npip install Sphinx sphinx_rtd_theme\n```\n\n```sh\ncd apidoc\nmake html\n```\n\n## Run Tests\n\nConfigure the following environment variables:\n\n- `APP_ID`\n- `APP_KEY`\n- `MASTER_KEY`\n- `USE_REGION`\n\nMake sure the following options are configured on the LeanCloud console:\n\n- Data Storage \u003e Settings \u003e Include ACL with objects being queried: **checked**\n- Push Notification \u003e Push notification settings \u003e Prevent clients from sending push notifications: **unchecked**\n- Settings \u003e Security \u003e Service switches \u003e Push notifications: **enabled**\n- Settings \u003e Security \u003e Service switches \u003e SMS: **disabled**\n\nAnd there is a cloud function naming `add` which returns `3` for `add(a=1, b=2)` deployed on the LeanEngine production environment of the application.\nFor example:\n\n```js\nAV.Cloud.define('add', async function (request) {\n    return request.params[\"a\"] + request.params[\"b\"]\n})\n```\n\nInstall dependencies:\n\n```sh\npip install -e .'[test]'\n```\n\nRun tests:\n\n```sh\npython -m nose\n```\n\nRun a single test without swallowing print:\n\n```sh\npython -m nose -v --nocapture tests/test_engine.py:test_lean_engine_error\n```\n\n## Linter and Formatter\n\nCurrently, flake8 (linter) and black (formatter) are used.\nBut we are still exploring.\n\n## Release a New Version\n\n0. Edit `changelog` and `setup.py` (`version`).\n1. Generate API doc.\n2. Commit the changes above and send a pull request.\n3. The maintainer will review and merge the pull request, then create a new release at GitHub web UI.\n4. A new version of the package will be published to PyPI automatically (via GitHub Actions).\n\n## License\n\nLicense: [GNU LGPL](https://www.gnu.org/licenses/lgpl.html).\n\nAuthor: asaka (lan@leancloud.rocks)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleancloud%2Fpython-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleancloud%2Fpython-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleancloud%2Fpython-sdk/lists"}