{"id":15567326,"url":"https://github.com/wsanchez/sample-klein-app","last_synced_at":"2026-02-19T01:32:28.965Z","repository":{"id":57463748,"uuid":"72682923","full_name":"wsanchez/sample-klein-app","owner":"wsanchez","description":"Sample Twisted Klein Application","archived":false,"fork":false,"pushed_at":"2017-06-02T00:09:17.000Z","size":130,"stargazers_count":3,"open_issues_count":9,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-17T13:29:54.353Z","etag":null,"topics":["klein","twisted"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wsanchez.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-02T21:28:50.000Z","updated_at":"2020-02-07T21:31:23.000Z","dependencies_parsed_at":"2022-09-17T08:30:50.318Z","dependency_job_id":null,"html_url":"https://github.com/wsanchez/sample-klein-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wsanchez/sample-klein-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wsanchez%2Fsample-klein-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wsanchez%2Fsample-klein-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wsanchez%2Fsample-klein-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wsanchez%2Fsample-klein-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wsanchez","download_url":"https://codeload.github.com/wsanchez/sample-klein-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wsanchez%2Fsample-klein-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272294442,"owners_count":24908819,"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-27T02:00:09.397Z","response_time":76,"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":["klein","twisted"],"created_at":"2024-10-02T17:10:44.436Z","updated_at":"2025-10-14T20:09:37.538Z","avatar_url":"https://github.com/wsanchez.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Sample Klein App\n================\n\n.. image:: https://api.travis-ci.org/wsanchez/sample-klein-app.svg?branch=master\n    :target: https://travis-ci.org/wsanchez/sample-klein-app\n    :alt: Build Status\n.. image:: https://codecov.io/github/wsanchez/sample-klein-app/coverage.svg?branch=master\n    :target: https://codecov.io/github/wsanchez/sample-klein-app?branch=master\n    :alt: Code Coverage\n.. image:: https://requires.io/github/wsanchez/sample-klein-app/requirements.svg?branch=master\n    :target: https://requires.io/github/wsanchez/sample-klein-app/requirements/?branch=master\n    :alt: Requirements Status\n\nA sample application in Python, using the Klein_ web framework.\n\nKlein is a lightweight web framework, similar to Flask_ or Bottle_.\nThe primary differentiator for Klein is that it is built on the Twisted_\nframework, which enables one to write *asynchronous* applications.\n\nThis sample application attempts to demonstrate a few things:\n\n  * Basic usage of Klein.\n    See hello.py_.\n  * Using URL path components as arguments.\n    See math.py_.\n  * Use of ``handle_errors`` to catch exceptions and respond with an\n    appropriate error.\n    See math.py_.\n  * Composition of Klein applications.\n    See composite.py_.\n  * Using Twisted to write asynchronous code using ``async``/``await``.\n    See dns.py_.\n\n.. ------------------------------------------------------------------------- ..\n\n.. _composite.py: src/sample_klein_app/application/composite.py\n.. _dns.py: src/sample_klein_app/application/dns.py\n.. _hello.py: src/sample_klein_app/application/hello.py\n.. _math.py: src/sample_klein_app/application/math.py\n\n.. _Bottle: http://bottlepy.org/\n.. _Flask: http://flask.pocoo.org/\n.. _Klein: https://github.com/twisted/klein/\n.. _Twisted: http://twistedmatrix.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwsanchez%2Fsample-klein-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwsanchez%2Fsample-klein-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwsanchez%2Fsample-klein-app/lists"}