{"id":16412686,"url":"https://github.com/tsarchghs/dyluna","last_synced_at":"2025-02-24T07:26:11.987Z","repository":{"id":111185073,"uuid":"145630673","full_name":"tsarchghs/dyluna","owner":"tsarchghs","description":"Micro framework for  building web applications.","archived":false,"fork":false,"pushed_at":"2019-01-06T08:26:06.000Z","size":35,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-06T09:12:35.265Z","etag":null,"topics":["python","web-framework","wsgi"],"latest_commit_sha":null,"homepage":"","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/tsarchghs.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-21T23:33:53.000Z","updated_at":"2019-11-19T22:05:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"7fab62cf-04a1-43c8-ba30-46447552ad26","html_url":"https://github.com/tsarchghs/dyluna","commit_stats":null,"previous_names":["tsarchghs/dyluna"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsarchghs%2Fdyluna","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsarchghs%2Fdyluna/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsarchghs%2Fdyluna/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsarchghs%2Fdyluna/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsarchghs","download_url":"https://codeload.github.com/tsarchghs/dyluna/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240435948,"owners_count":19800873,"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":["python","web-framework","wsgi"],"created_at":"2024-10-11T06:49:32.944Z","updated_at":"2025-02-24T07:26:11.906Z","avatar_url":"https://github.com/tsarchghs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dyluna\r\nA very simple wsgi based python web framework\r\n\r\nExample:\r\n```python\r\napp = Dyluna()\r\n\r\n@app.route\r\ndef hello(environ):\r\n\tif environ.get(\"REQUEST_METHOD\") == \"POST\":\r\n\t\tname = environ[\"POST\"].get(\"name\")\r\n\t\treturn render_template(\"index.html\",{\"name\":name})\r\n\treturn render_template(\"hello.html\")\r\napp.urls.append([\"/hello\",hello])\r\n\r\n@app.route\r\ndef hello(environ,name):\r\n\tcontext = {\"name\":name}\r\n\treturn render_template(\"hello2.html\",context)\r\napp.urls.append([\"/hello/\u003cname\u003e\",hello])\r\n\r\napp.run()\r\n```\r\nhello.html\r\n```html\r\n\u003chtml\u003e\r\n\u003chead\u003e\r\n\t\u003ctitle\u003eHello\u003c/title\u003e\r\n\u003c/head\u003e\r\n\u003cbody\u003e\r\n\t{% if name %}\r\n\t\t\u003ch1\u003eHello, {{name}}\u003c/h1\u003e\r\n\t{% else %}\r\n\t\t\u003cform method=\"POST\"\u003ename: \r\n\t\t\t\u003cinput name=\"name\"\u003e\u003cbr\u003e\r\n\t\t\t\u003cbutton type=\"submit\"\u003eSubmit\u003c/button\u003e\r\n\t\t\u003c/form\u003e\r\n\t{% endif %}\r\n\u003c/body\u003e\r\n\u003c/html\u003e\r\n```\r\nhello2.html\r\n```html\r\n\u003chtml\u003e\r\n\r\n\u003chead\u003e\r\n\t\u003ctitle\u003eHello\u003c/title\u003e\r\n\u003c/head\u003e\r\n\u003cbody\u003e\r\n\t\u003ch1\u003eHello, {{name}}\u003c/h1\u003e\r\n\u003c/body\u003e\r\n\u003c/html\u003e\r\n```\r\nRun the code and visit http://127.0.0.1:8080/\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsarchghs%2Fdyluna","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsarchghs%2Fdyluna","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsarchghs%2Fdyluna/lists"}