{"id":33230159,"url":"https://github.com/sontek/tomb_routes","last_synced_at":"2025-11-21T11:03:03.547Z","repository":{"id":25872572,"uuid":"29312727","full_name":"sontek/tomb_routes","owner":"sontek","description":"Simple utility library around pyramid routing","archived":false,"fork":true,"pushed_at":"2015-06-24T15:37:56.000Z","size":123,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-28T00:35:23.699Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"TombProject/tomb_routes","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sontek.png","metadata":{"files":{"readme":"README.rst","changelog":"ChangeLog","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":"2015-01-15T18:56:31.000Z","updated_at":"2015-01-23T07:41:08.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sontek/tomb_routes","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/sontek/tomb_routes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sontek%2Ftomb_routes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sontek%2Ftomb_routes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sontek%2Ftomb_routes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sontek%2Ftomb_routes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sontek","download_url":"https://codeload.github.com/sontek/tomb_routes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sontek%2Ftomb_routes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285603343,"owners_count":27200013,"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-11-21T02:00:06.175Z","response_time":61,"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":[],"created_at":"2025-11-16T17:00:42.349Z","updated_at":"2025-11-21T11:03:03.542Z","avatar_url":"https://github.com/sontek.png","language":"Python","funding_links":[],"categories":["Other"],"sub_categories":[],"readme":"tomb_routes\n=================================\n\n.. image:: https://img.shields.io/pypi/v/tomb_routes.svg\n    :target: https://pypi.python.org/pypi/tomb_routes\n\n.. image:: https://img.shields.io/travis/tomborine/tomb_routes.svg\n    :target: https://travis-ci.org/tomborine/tomb_routes\n\n\nIntro\n=================================\n\nA set of simple defaults for Pyramid_ routing.\n\nPyramid's `URL dispatch`_ has separate concepts for **routes** and **views**.\nThis gives additional flexibility in that you can one route map to multiple\nviews, using different predicates (e.g.: predicates depending on `Accept`\nheader, whether request is XHR or not, etc.). In many applications, this\nflexibility is not needed and having both **routes** and **views** adds a bit\nof complexity and duplication, and reduces DRYness. This module implements some\neasy-to-use mechanisms that create a route and a view in one step, resulting in\nsimpler, easier to understand code. This kind of makes Pyramid's routing look a\nbit more like Flask_, albeit without Flask's controversial `thread locals`_.\n\nYou can use ``simple_route`` as a decorator:\n\n.. code-block:: python\n\n    from tomb_routes import simple_route\n    from pyramid.response import Response\n\n    @simple_route('/hello/{name}')\n    def my_route(request, name):\n        return Response('Hello %s' % name)\n\nor you can use it from the configurator:\n\n.. code-block:: python\n\n    config.include('tomb_routes')\n    config.add_simple_route(\n        '/hello/{name}', view_callable,\n        renderer='json'\n     )\n\n\nInspirations\n=========================\n\nFrameworks with very simple routing (including so-called \"microframeworks\") are\nnothing new. Here are a few in the Python world:\n\n- minion_\n- Klein_\n- Flask_\n\nPyramid is a very powerful and extensible web framework and it's a framework\nthat we love, but sometimes we want very simple routing. This package brings\nthe simplified routing from microframeworks to Pyramid, so we can have our cake\nand eat it too.\n\n\n.. _Pyramid: http://www.trypyramid.com/\n.. _URL dispatch: http://docs.pylonsproject.org/docs/pyramid/en/latest/narr/urldispatch.html\n.. _minion: https://pypi.python.org/pypi/minion\n.. _Klein: https://github.com/Twisted/Klein\n.. _Flask: http://flask.pocoo.org/\n.. _thread locals: http://flask.pocoo.org/docs/latest/design/#thread-locals\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsontek%2Ftomb_routes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsontek%2Ftomb_routes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsontek%2Ftomb_routes/lists"}