{"id":21252912,"url":"https://github.com/kevinhellos/pyx","last_synced_at":"2025-03-15T05:41:38.082Z","repository":{"id":207808346,"uuid":"720150257","full_name":"kevinhellos/pyx","owner":"kevinhellos","description":"Python web development framework","archived":false,"fork":false,"pushed_at":"2023-11-18T14:27:40.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T21:08:57.235Z","etag":null,"topics":["python-web-development","webdev"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kevinhellos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-11-17T17:25:41.000Z","updated_at":"2024-09-13T06:01:16.000Z","dependencies_parsed_at":"2024-06-03T21:24:53.528Z","dependency_job_id":null,"html_url":"https://github.com/kevinhellos/pyx","commit_stats":null,"previous_names":["iskevinlemon/pyx","kevinhellos/pyx"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinhellos%2Fpyx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinhellos%2Fpyx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinhellos%2Fpyx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinhellos%2Fpyx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevinhellos","download_url":"https://codeload.github.com/kevinhellos/pyx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243690128,"owners_count":20331727,"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-development","webdev"],"created_at":"2024-11-21T03:49:17.864Z","updated_at":"2025-03-15T05:41:38.050Z","avatar_url":"https://github.com/kevinhellos.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Overview of pyx\npyx (Python eXtra) is a Python web framework that aims to make web development much simpler.\n\n# Running locally\nClone this repo and run \u003ccode\u003emain.py\u003c/code\u003e.\u003cbr/\u003e\nVisit \u003ccode\u003elocalhost:3000\u003c/code\u003e\n\n# pyx project structure\n\u003cpre\u003e\n\u003cb\u003epyx_project\u003c/b\u003e\n├──pyx              # library for pyx\n│  ├──core.py       # core functions for pyx\n└──views            # folder for all your HTML pages\n│  ├──index.html    # default page\n│  ├──error.html    # error 404 page\n└──main.py          # app controller/ logic\n\u003c/pre\u003e\n\n# Simple pyx app\n```py\n# main.py\n\nfrom pyx.core import start_server\n\nport = 3000\n\n# Specify the data as dictionary\ndata = {\n    # Custom defined data\n    \"page_title\": \"Welcome to pyx\",\n    \"fruit\": \"apple\",\n    \"car\": \"toyota\",\n\n    # Error pages\n    \"not_found_error_message\": \"The page you have requested cannot be found\",\n    \"forbidden_error_message\": \"You do not have permission to access this page\"\n}\n\n# Start the server with the specified port and pass in the data dictionary\nstart_server(port, data)\n```\n\n```html\n\u003c!-- error.html--\u003e\n\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\n    \u003cmeta charset=\"UTF-8\"\u003e\n    \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\u003e\n    \u003ctitle\u003eError\u003c/title\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003ch1\u003eError 404\u003c/h1\u003e\n    \u003c!-- error message from main.py --\u003e\n    \u003ch1\u003e{error_message}\u003c/h1\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinhellos%2Fpyx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinhellos%2Fpyx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinhellos%2Fpyx/lists"}