{"id":15443880,"url":"https://github.com/zanderlewis/sitepy","last_synced_at":"2025-04-06T17:29:22.707Z","repository":{"id":233925912,"uuid":"788057254","full_name":"zanderlewis/sitepy","owner":"zanderlewis","description":"A simple, batteries-included web framework","archived":false,"fork":false,"pushed_at":"2024-04-24T15:32:07.000Z","size":110,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-20T22:06:05.000Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pypi.org/project/sitepy/","language":"Python","has_issues":true,"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/zanderlewis.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":"2024-04-17T17:39:21.000Z","updated_at":"2024-05-20T22:06:08.798Z","dependencies_parsed_at":"2024-05-20T22:06:08.032Z","dependency_job_id":"77625b84-8571-4c4a-894e-79e2494d7886","html_url":"https://github.com/zanderlewis/sitepy","commit_stats":null,"previous_names":["wolfthedeveloper/sitepy","zanderlewis/sitepy"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zanderlewis%2Fsitepy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zanderlewis%2Fsitepy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zanderlewis%2Fsitepy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zanderlewis%2Fsitepy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zanderlewis","download_url":"https://codeload.github.com/zanderlewis/sitepy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247521369,"owners_count":20952355,"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":[],"created_at":"2024-10-01T19:37:23.139Z","updated_at":"2025-04-06T17:29:22.675Z","avatar_url":"https://github.com/zanderlewis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sitepy\n\nA simple web framework for Python.\n\n![Alt](https://repobeats.axiom.co/api/embed/951ba2337639530ee37774d8f84233efcc45eb02.svg \"Repobeats analytics image\")\n\n[![Star History Chart](https://api.star-history.com/svg?repos=WolfTheDeveloper/sitepy\u0026type=Date)](https://star-history.com/#WolfTheDeveloper/sitepy\u0026Date)\n\n## Installation\n\nYou can install sitepy with pip:\n\n```sh\npip install sitepy\n```\n\n## Usage\n\nHere's a basic example of a sitepy application:\n\n```python\nfrom sitepy import SitePy\n\napp = SitePy()\n\n@app.route(\"/\", methods=['GET', 'POST'])\ndef index():\n    return \"Hello, world!\"\n\nif __name__ == \"__main__\":\n    app.run()\n```\n\nRender Templates:\n\n```python\nfrom sitepy import SitePy\n\napp = SitePy()\n\n@app.route(\"/\", methods=['GET', 'POST'])\ndef index():\n    someVar = \"Hello, World!\"\n    return app.render_template(\"index.html\", someVar)\n\nif __name__ == \"__main__\":\n    app.run()\n```\n\nThis will start a server on localhost:8080 and respond with \"Hello, world!\" to GET and POST requests at the root URL.\n\n## Features\n\n- Simple routing: Use decorators to define routes.\n\n- Middleware support: Use app.use to add middleware functions.\n\n- Static file serving: Files in the static directory are served at /static.\n\n- Template serving: Files in the templates/ directory will act as a template.\n\n- Built in features for checking profanity, using Postgres, Mysql, and SQLite, using the openai library, and more.\n\n## Built-Ins\n\nTo learn how to use the built-in features, check out the [examples.](examples/)\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n[Apache](sitepy/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzanderlewis%2Fsitepy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzanderlewis%2Fsitepy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzanderlewis%2Fsitepy/lists"}