{"id":13494947,"url":"https://github.com/twisted/klein","last_synced_at":"2025-05-13T19:15:49.914Z","repository":{"id":38325174,"uuid":"3409513","full_name":"twisted/klein","owner":"twisted","description":"werkzeug + twisted.web","archived":false,"fork":false,"pushed_at":"2025-05-06T00:27:39.000Z","size":2651,"stargazers_count":839,"open_issues_count":81,"forks_count":120,"subscribers_count":39,"default_branch":"trunk","last_synced_at":"2025-05-12T04:57:54.857Z","etag":null,"topics":["async","async-python","klein","micro-framework","python","twisted","web-framework"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/twisted.png","metadata":{"files":{"readme":"README.rst","changelog":"NEWS.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2012-02-10T17:55:04.000Z","updated_at":"2025-05-08T01:29:46.000Z","dependencies_parsed_at":"2024-01-18T01:10:13.803Z","dependency_job_id":"4c0d67ee-06f0-424b-b8ea-3e3143c2c7c5","html_url":"https://github.com/twisted/klein","commit_stats":{"total_commits":1990,"total_committers":59,"mean_commits":"33.728813559322035","dds":0.6984924623115578,"last_synced_commit":"04db6d26fd6f8dc749868268518957c8238c09d6"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twisted%2Fklein","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twisted%2Fklein/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twisted%2Fklein/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twisted%2Fklein/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twisted","download_url":"https://codeload.github.com/twisted/klein/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254010822,"owners_count":21999002,"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":["async","async-python","klein","micro-framework","python","twisted","web-framework"],"created_at":"2024-07-31T19:01:29.756Z","updated_at":"2025-05-13T19:15:49.885Z","avatar_url":"https://github.com/twisted.png","language":"Python","readme":"============================\nKlein, a Web Micro-Framework\n============================\n\n.. image:: https://github.com/twisted/klein/workflows/CI/badge.svg?branch=trunk\n    :target: https://github.com/twisted/klein/actions\n    :alt: Build Status\n.. image:: https://codecov.io/github/twisted/klein/coverage.svg?branch=trunk\n    :target: https://codecov.io/github/twisted/klein?branch=trunk\n    :alt: Code Coverage\n.. image:: https://img.shields.io/pypi/pyversions/klein.svg\n    :target: https://pypi.org/project/klein\n    :alt: Python Version Compatibility\n\nKlein is a micro-framework for developing production-ready web services with Python.\nIt is 'micro' in that it has an incredibly small API similar to `Bottle \u003chttps://bottlepy.org/docs/dev/index.html\u003e`_ and `Flask \u003chttps://flask.palletsprojects.com/\u003e`_.\nIt is not 'micro' in that it depends on things outside the standard library.\nThis is primarily because it is built on widely used and well tested components like `Werkzeug \u003chttps://werkzeug.palletsprojects.com/\u003e`_ and `Twisted \u003chttps://twisted.org\u003e`_.\n\nA `Klein bottle \u003chttps://en.wikipedia.org/wiki/Klein_bottle\u003e`_ is an example of a non-orientable surface, and a glass Klein bottle looks like a twisted bottle or twisted flask.\nThis, of course, made it too good of a pun to pass up.\n\nKlein's documentation can be found at `Read The Docs \u003chttps://klein.readthedocs.org\u003e`_.\n\n\nExample\n========\n\nThis is a sample Klein application that returns 'Hello, world!', running on port ``8080``.\n\n.. code-block:: python\n\n    from klein import run, route\n\n    @route('/')\n    def home(request):\n        return 'Hello, world!'\n\n    run(\"localhost\", 8080)\n\n\nContribute\n==========\n\n``klein`` is hosted on `GitHub \u003chttps://github.com/twisted/klein\u003e`_ and is an open source project that welcomes contributions of all kinds from the community, including:\n\n- code patches,\n- `documentation \u003chttps://klein.readthedocs.org/\u003e`_ improvements,\n- `bug reports \u003chttps://github.com/twisted/klein/issues\u003e`_,\n- reviews for `contributed patches \u003chttps://github.com/twisted/klein/pulls\u003e`_.\n\nFor more information about contributing, see `the contributor guidelines \u003chttps://github.com/twisted/klein/tree/trunk/CONTRIBUTING.rst\u003e`_.\n","funding_links":[],"categories":["Python","Others","Web framework for Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwisted%2Fklein","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwisted%2Fklein","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwisted%2Fklein/lists"}