{"id":20405634,"url":"https://github.com/nitrictech/python-sdk","last_synced_at":"2025-08-20T06:32:31.824Z","repository":{"id":45149708,"uuid":"309530545","full_name":"nitrictech/python-sdk","owner":"nitrictech","description":"Python SDK for Nitric","archived":false,"fork":false,"pushed_at":"2024-12-04T04:58:19.000Z","size":1123,"stargazers_count":18,"open_issues_count":2,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-12-13T23:56:11.987Z","etag":null,"topics":["ai","cloud","machine-learning","nitric","python","sdk","serverless"],"latest_commit_sha":null,"homepage":"https://nitric.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nitrictech.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2020-11-03T00:36:07.000Z","updated_at":"2024-12-05T22:54:25.000Z","dependencies_parsed_at":"2024-03-26T23:24:16.586Z","dependency_job_id":"19084b62-80c9-4a0e-b69a-453300b58c95","html_url":"https://github.com/nitrictech/python-sdk","commit_stats":{"total_commits":213,"total_committers":7,"mean_commits":"30.428571428571427","dds":0.5352112676056338,"last_synced_commit":"5b398146e215a1d1714408d2aa6f8db57f71d7cf"},"previous_names":[],"tags_count":102,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrictech%2Fpython-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrictech%2Fpython-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrictech%2Fpython-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrictech%2Fpython-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nitrictech","download_url":"https://codeload.github.com/nitrictech/python-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230400615,"owners_count":18219831,"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","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":["ai","cloud","machine-learning","nitric","python","sdk","serverless"],"created_at":"2024-11-15T05:12:14.390Z","updated_at":"2024-12-19T08:08:06.513Z","avatar_url":"https://github.com/nitrictech.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://nitric.io\"\u003e\n    \u003cimg src=\"docs/assets/nitric-logo.svg\" width=\"120\" alt=\"Nitric Logo\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch2 align=\"center\"\u003e\n  Build \u003ca href=\"https://nitric.io\"\u003enitric\u003c/a\u003e applications with Python\n\u003c/h2\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://actions-badge.atrox.dev/nitrictech/python-sdk/goto?ref=main\"\u003e\u003cimg alt=\"Build Status\" src=\"https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fnitrictech%2Fpython-sdk%2Fbadge%3Fref%3Dmain\u0026style=for-the-badge\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://codecov.io/gh/nitrictech/python-sdk\"\u003e\n    \u003cimg alt=\"Codecov\" src=\"https://img.shields.io/codecov/c/gh/nitrictech/python-sdk?style=for-the-badge\u0026token=SBFRNSZ4ZF\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://pypi.org/project/nitric\"\u003e\n    \u003cimg alt=\"Version\" src=\"https://img.shields.io/pypi/v/nitric?style=for-the-badge\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://pypi.org/project/nitric\"\u003e\n    \u003cimg alt=\"Downloads/week\" src=\"https://img.shields.io/pypi/dw/nitric?style=for-the-badge\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://nitric.io/chat\"\u003e\u003cimg alt=\"Discord\" src=\"https://img.shields.io/discord/955259353043173427?label=discord\u0026style=for-the-badge\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nThe Python SDK supports the use of the [Nitric](https://nitric.io) framework with Python 3.11+. For more information check out the main [Nitric repo](https://github.com/nitrictech/nitric).\n\nPython SDKs provide an infrastructure-from-code style that lets you define resources in code. You can also write the functions that support the logic behind APIs, subscribers and schedules.\n\nYou can request the type of access you need to resources such as publishing for topics, without dealing directly with IAM or policy documents.\n\n- Reference Documentation: https://nitric.io/docs/reference/python\n- Guides: https://nitric.io/docs/guides/python\n\n## Usage\n\n### Starting a new project\n\nInstall the [Nitric CLI](https://nitric.io/docs/getting-started/installation), then generate your project:\n\n```bash\nnitric new hello-world py-starter\n```\n\n### Add to an existing project\n\nFirst of all, you need to install the library:\n\n**pip**\n\n```bash\npip3 install nitric\n```\n\n**pipenv**\n\n```\npipenv install nitric\n```\n\nThen you're able to import the library and create cloud resources:\n\n```python\nfrom nitric.resources import api, bucket\nfrom nitric.application import Nitric\nfrom nitric.context import HttpContext\n\npublicApi = api(\"public\")\nuploads = bucket(\"uploads\").allow(\"write\")\n\n@publicApi.get(\"/upload\")\nasync def upload(ctx: HttpContext):\n    photo = uploads.file(\"images/photo.jpg\")\n\n    url = await photo.upload_url()\n\n    ctx.res.body = {\"url\": url}\n\nNitric.run()\n```\n\n## Learn more\n\nLearn more by checking out the [Nitric documentation](https://nitric.io/docs).\n\n## Get in touch:\n\n- Join us on [Discord](https://nitric.io/chat)\n\n- Ask questions in [GitHub discussions](https://github.com/nitrictech/nitric/discussions)\n\n- Find us on [Twitter](https://twitter.com/nitric_io)\n\n- Send us an [email](mailto:maintainers@nitric.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitrictech%2Fpython-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitrictech%2Fpython-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitrictech%2Fpython-sdk/lists"}