{"id":19715673,"url":"https://github.com/pyx/hyer","last_synced_at":"2025-04-29T20:30:39.819Z","repository":{"id":27912009,"uuid":"31403915","full_name":"pyx/hyer","owner":"pyx","description":"Hyer - Hy enhanced routing","archived":false,"fork":false,"pushed_at":"2016-10-21T10:52:51.000Z","size":28,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-05T19:02:22.468Z","etag":null,"topics":["flask","hy","macros"],"latest_commit_sha":null,"homepage":null,"language":"Hy","has_issues":false,"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/pyx.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-27T04:46:29.000Z","updated_at":"2021-09-23T09:01:07.000Z","dependencies_parsed_at":"2022-07-24T15:32:01.801Z","dependency_job_id":null,"html_url":"https://github.com/pyx/hyer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyx%2Fhyer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyx%2Fhyer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyx%2Fhyer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyx%2Fhyer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyx","download_url":"https://codeload.github.com/pyx/hyer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251578255,"owners_count":21612001,"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":["flask","hy","macros"],"created_at":"2024-11-11T22:39:07.232Z","updated_at":"2025-04-29T20:30:39.563Z","avatar_url":"https://github.com/pyx.png","language":"Hy","funding_links":[],"categories":[],"sub_categories":[],"readme":"==========================\nHyer - Hy enhanced routing\n==========================\n\n\nIntroduction\n============\n\nHyer is a collection of `Hy \u003chttp://hylang.org/\u003e`_ macros\nfor `flask \u003chttp://flask.pocoo.org/\u003e`_\n\n*Okay, show me some code*\n\nFrom :code:`examples/hello/app.hy`\n\n.. code:: hy\n\n  (require hyer.dsl)\n\n  (defn create-app []\n    \"application factory\"\n    (defapplication app []\n      (GET index \"/\"\n        \"Hello world\")\n      (GET greeting \"/\u003cusername\u003e/\"\n        (.format \"Hello, {}!\" username))\n      (GET addition \"/\u003cint:a\u003e+\u003cint:b\u003e/\"\n        (.format \"{} + {} = {}\" a b (+ a b)))))\n\n  (defmain [\u0026rest args]\n    (-\u003e create-app apply .run))\n\nThis is the same code in pure python:\n\n.. code:: python\n\n  from flask import Flask\n\n  def create_app():\n      \"\"\"application factory\"\"\"\n      app = Flask(__name__)\n\n      @app.route('/')\n      def index():\n          return 'Hello world'\n\n      @app.route('/\u003cusername\u003e/')\n      def greeting(username):\n          return 'Hello, {}!'.format(username)\n\n      @app.route('/\u003cint:a\u003e+\u003cint:b\u003e/')\n      def addition(a, b):\n          return '{} + {} = {}'.format(a, b, a + b)\n\n      return app\n\n\n  if __name__ == '__main__':\n      create_app().run()\n\n\nRequirements\n============\n\n- CPython \u003e= 2.7\n- flask\n- hy \u003e= 0.10.1\n\n\nInstallation\n============\n\nInstall from PyPI::\n\n  pip install hyer\n\nIn source directory, run::\n\n  make install\n\n\nLicense\n=======\n\nBSD New, see LICENSE for details.\n\n\nLinks\n=====\n\nDocumentation:\n  http://hyer.readthedocs.org/\n\nIssue Tracker:\n  https://bitbucket.org/pyx/hyer/issues/\n\nSource Package @ PyPI:\n  https://pypi.python.org/pypi/hyer/\n\nMercurial Repository @ bitbucket:\n  https://bitbucket.org/pyx/hyer/\n\nGit Repository @ Github:\n  https://github.com/pyx/hyer/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyx%2Fhyer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyx%2Fhyer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyx%2Fhyer/lists"}