{"id":44331450,"url":"https://github.com/devsecblueprint/python-fastapi","last_synced_at":"2026-02-11T10:06:12.612Z","repository":{"id":277464395,"uuid":"927526145","full_name":"devsecblueprint/python-fastapi","owner":"devsecblueprint","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-17T01:58:13.000Z","size":91,"stargazers_count":1,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-17T15:32:33.430Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/devsecblueprint.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,"zenodo":null}},"created_at":"2025-02-05T05:17:06.000Z","updated_at":"2025-04-17T01:57:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"063b5150-ed4d-4cf6-8f84-838eee85afde","html_url":"https://github.com/devsecblueprint/python-fastapi","commit_stats":null,"previous_names":["devsecblueprint/python-fastapi"],"tags_count":0,"template":true,"template_full_name":"devsecblueprint/gcp-python-fastapi","purl":"pkg:github/devsecblueprint/python-fastapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsecblueprint%2Fpython-fastapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsecblueprint%2Fpython-fastapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsecblueprint%2Fpython-fastapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsecblueprint%2Fpython-fastapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devsecblueprint","download_url":"https://codeload.github.com/devsecblueprint/python-fastapi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devsecblueprint%2Fpython-fastapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29331652,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T06:13:03.264Z","status":"ssl_error","status_checked_at":"2026-02-11T06:12:55.843Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-02-11T10:06:10.754Z","updated_at":"2026-02-11T10:06:12.607Z","avatar_url":"https://github.com/devsecblueprint.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python FastAPI\n\nThis project sets up a simple FastAPI application (with some vulnerabilites) within a Docker container. It uses the official Python runtime and includes all necessary configurations to deploy a FastAPI app with Docker. The container will expose the app on port 80 and automatically run the FastAPI app on startup.\n\n## Requirements\n\n- Docker\n- Python 3.12+\n- FastAPI\n- Uvicorn\n\n## Features\n\n- **Dockerized FastAPI application**: A containerized setup for easy deployment.\n- **Python 3.12.5 runtime**: Uses the latest stable Python version as a base.\n- **Efficient package installation**: Installs required dependencies via `requirements.txt`.\n\n## Project Structure\n\n```bash\ngcp-python-fastapi/\n├── Dockerfile\n├── requirements.txt\n├── main.py  # FastAPI app entry point\n└── ...\n```\n\n- **Dockerfile**: Configures the Docker container for the FastAPI app.\n- **requirements.txt**: Specifies the required Python dependencies for the application.\n- **main.py**: The entry point for the FastAPI application (Make sure to include this file in the project structure).\n\n## Setup and Installation\n\n### 1. Clone the repository\n\nIf you haven't cloned the project yet, use the following command:\n\n```bash\ngit clone https://github.com/your-username/python-fastapi.git\ncd python-fastapi\n```\n\n### 2. Build the Docker image\n\nTo build the Docker image, run the following command in the root of the project directory:\n\n```bash\ndocker build -t python-fastapi .\n```\n\n### 3. Run the Docker container\n\nAfter the image is built, run the container:\n\n```bash\ndocker run -d -p 80:80 python-fastapi\n```\n\nThis command will run the FastAPI app on port 80 of your localhost.\n\n### 4. Access the app\n\nOnce the container is running, you can access the FastAPI application by navigating to:\n\n```\nhttp://localhost:80\n```\n\n## Dependencies\n\nThe project uses the following Python packages, which are listed in the `requirements.txt` file:\n\n- `fastapi`: The core framework for building the API.\n- `uvicorn`: ASGI server to run the FastAPI application.\n\nTo install dependencies locally, use the following:\n\n```bash\npip install -r requirements.txt\n```\n\n## Notes\n\n- This setup assumes that your FastAPI app’s entry point is `main.py`, and the FastAPI application instance is named `app`. If your app is structured differently, you may need to modify the `CMD` directive in the Dockerfile accordingly.\n- The container will expose the application on port 80. If you want to use a different port, adjust the `EXPOSE` and `CMD` directives in the Dockerfile.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevsecblueprint%2Fpython-fastapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevsecblueprint%2Fpython-fastapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevsecblueprint%2Fpython-fastapi/lists"}