{"id":15642162,"url":"https://github.com/cosmic-cortex/fastapi-ml-quickstart","last_synced_at":"2025-06-10T17:39:02.235Z","repository":{"id":215784530,"uuid":"235329699","full_name":"cosmic-cortex/fastAPI-ML-quickstart","owner":"cosmic-cortex","description":null,"archived":false,"fork":false,"pushed_at":"2020-01-28T16:02:20.000Z","size":2529,"stargazers_count":65,"open_issues_count":1,"forks_count":36,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-02T02:20:24.277Z","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/cosmic-cortex.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}},"created_at":"2020-01-21T11:45:48.000Z","updated_at":"2024-09-20T18:50:50.000Z","dependencies_parsed_at":"2024-01-06T14:57:01.346Z","dependency_job_id":null,"html_url":"https://github.com/cosmic-cortex/fastAPI-ML-quickstart","commit_stats":null,"previous_names":["cosmic-cortex/fastapi-ml-quickstart"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmic-cortex%2FfastAPI-ML-quickstart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmic-cortex%2FfastAPI-ML-quickstart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmic-cortex%2FfastAPI-ML-quickstart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmic-cortex%2FfastAPI-ML-quickstart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cosmic-cortex","download_url":"https://codeload.github.com/cosmic-cortex/fastAPI-ML-quickstart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223779728,"owners_count":17201287,"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-03T11:55:03.547Z","updated_at":"2024-11-09T03:14:28.143Z","avatar_url":"https://github.com/cosmic-cortex.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fastAPI ML quickstart\n\n## Project setup\n1. Create the virtual environment.\n```\nvirtualenv /path/to/venv --python=/path/to/python3\n```\nYou can find out the path to your `python3` interpreter with the command `which python3`.\n\n2. Activate the environment and install dependencies.\n```\nsource /path/to/venv/bin/activate\npip install -r requirements.txt\n```\n\n3. Launch the service\n```\nuvicorn api.main:app\n```\n\n## Posting requests locally\nWhen the service is running, try\n```\n127.0.0.1/docs\n```\nor \n```\ncurl\n```\n\n## Deployment with Docker\n1. Build the Docker image\n```\ndocker build --file Dockerfile --tag fastapi-ml-quickstart .\n```\n\n2. Running the Docker image\n```\ndocker run -p 8000:8000 fastapi-ml-quickstart\n```\n\n3. Entering into the Docker image\n```\ndocker run -it --entrypoint /bin/bash fastapi-ml-quickstart\n```\n\n## docker-compose\n1. Launching the service\n```\ndocker-compose up\n```\nThis command looks for the `docker-compose.yaml` configuration file. If you want to use another configuration file,\nit can be specified with the `-f` switch. For example  \n\n2. Testing\n```\ndocker-compose -f docker-compose.test.yaml up --abort-on-container-exit --exit-code-from fastapi-ml-quickstart\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmic-cortex%2Ffastapi-ml-quickstart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcosmic-cortex%2Ffastapi-ml-quickstart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmic-cortex%2Ffastapi-ml-quickstart/lists"}