{"id":21457873,"url":"https://github.com/juftin/fastapp","last_synced_at":"2025-08-13T14:19:42.233Z","repository":{"id":38192203,"uuid":"455606527","full_name":"juftin/fastapp","owner":"juftin","description":"HTTP Servers Made Easy - Optimized for ML","archived":false,"fork":false,"pushed_at":"2023-02-01T14:01:22.000Z","size":3548,"stargazers_count":4,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-08T19:08:58.443Z","etag":null,"topics":["asgi","fastapi","machine-learning"],"latest_commit_sha":null,"homepage":"https://juftin.com/fastapp/","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/juftin.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}},"created_at":"2022-02-04T15:53:24.000Z","updated_at":"2024-01-09T22:13:28.000Z","dependencies_parsed_at":"2023-02-18T14:10:14.297Z","dependency_job_id":null,"html_url":"https://github.com/juftin/fastapp","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/juftin/fastapp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juftin%2Ffastapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juftin%2Ffastapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juftin%2Ffastapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juftin%2Ffastapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juftin","download_url":"https://codeload.github.com/juftin/fastapp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juftin%2Ffastapp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265385737,"owners_count":23756728,"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":["asgi","fastapi","machine-learning"],"created_at":"2024-11-23T06:15:42.643Z","updated_at":"2025-07-15T01:31:00.947Z","avatar_url":"https://github.com/juftin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastApp\n\nHTTP Apps Made Easier with FastApp\n\n## Installation\n\n```shell\npip install fastapp\n```\n\n## Using Out the Example Server\n\n```shell\npip install fastapp[example]\n```\n\n```shell\nfastapp serve-debug fastapp.app.example:app\n```\n\n## Using FastApp to build an app\n\nCreate a Python File with Endpoints, we'll call this `main.py`:\n\n```python\nfrom datetime import datetime\n\nfrom fastapp.app import app\n\n\n@app.get(\"/hello\")\ndef custom_endpoint() -\u003e dict:\n    \"\"\"\"\n    This is a Custom API Endpoint\n    \"\"\"\n    return dict(timestamp=datetime.now(),\n                hello=\"world\")\n```\n\nThen, using the `FastApp` CLI we can serve this App:\n\n```shell\nfastapp serve-debug main:app\n```\n\n...or via docker:\n\n```shell\ndocker run --rm -it \\\n    --publish 8080:8080 \\\n    --volume ${PWD}/main.py:/root/fastapp/main.py \\\n    juftin/fastapp:latest \\\n    serve-debug main:app\n```\n\nTest out our new endpoint:\n\n```shell\ncurl \\\n  --request GET \\\n  --header \"Content-Type: application/json\" \\\n  http://localhost:8080/hello\n```\n\nAlternatively, if we want to serve this app using Gunicorn, Nginx, and the UvicornWorker we can use\nthe `serve` command:\n\n```shell\nfastapp serve main:app\n```\n\nI prefer doing this within a docker container so you don't have to run Nginx on the host machine:\n\n```shell\ndocker run --rm -it \\\n    --publish 8080:8080 \\\n    --volume ${PWD}/main.py:/root/fastapp/main.py \\\n    juftin/fastapp:latest \\\n    serve main:app\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuftin%2Ffastapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuftin%2Ffastapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuftin%2Ffastapp/lists"}