{"id":18488842,"url":"https://github.com/samk13/python-fast-api","last_synced_at":"2025-10-07T00:55:51.554Z","repository":{"id":45953667,"uuid":"424019999","full_name":"Samk13/Python-fast-api","owner":"Samk13","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-21T09:09:48.000Z","size":166,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-16T22:27:05.540Z","etag":null,"topics":["python"],"latest_commit_sha":null,"homepage":"https://sam-arbid-fastapi.herokuapp.com/docs","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Samk13.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-02T22:37:18.000Z","updated_at":"2022-01-10T09:31:34.000Z","dependencies_parsed_at":"2022-09-10T20:00:37.033Z","dependency_job_id":null,"html_url":"https://github.com/Samk13/Python-fast-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samk13%2FPython-fast-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samk13%2FPython-fast-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samk13%2FPython-fast-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samk13%2FPython-fast-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Samk13","download_url":"https://codeload.github.com/Samk13/Python-fast-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254036813,"owners_count":22003655,"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"],"created_at":"2024-11-06T12:52:56.930Z","updated_at":"2025-10-07T00:55:46.517Z","avatar_url":"https://github.com/Samk13.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white)](https://github.com/pre-commit/pre-commit)\n[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat\u0026labelColor=ef8336)](https://pycqa.github.io/isort/)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg?style=flat\u0026labelColor=ef8336)](https://github.com/psf/black)\n\n\n# Fast API for Python\n\n## setup:\n\nmake sure the venv is activated\nrun:\n\n```bash\nvenv/Scripts/activate.bat\n\nmac:\n    source venv/Script/activate\n```\n\nto deactivate the venv:\ndeactivate\n\n---\n\nIf you get errors with pip not found:\nsolution:\n\n```bash\npython -m ensurepip\n```\n\n\n\nto remove the **pycache** folder:\n[link](http://www.randallkent.com/2010/04/30/gitignore-not-working/)\n[github](https://github.com/martinohanlon/flightlight/issues/1)\n\n```zsh\ngit rm -r --cached . \u0026\u0026 git add . \u0026\u0026 git commit -m \"fixing .gitignore\"\n```\n\n# Postman:\nsetup environment variable:\n\nnext to header and body, choose \"Tests\" paste the following:\n`pm.environment.set(\"JWT\", pm.response.json().access_token);`\nthis will set the environment variable JWT to the value of the access_token\nyou can set the variable in Environment left tab in Postman\n- you can also set URL variable and replace your URL with `{{url}}`\n\n## Setup Alembic:\n[Setup Alembic](https://youtu.be/0sOvCWFmrtA?t=38242)\n\n## run migration on heroku postgres db:\nIf you are on windows machine:\nYou should not use gitbas to run the commends, instead use powershell or cmd as follows:\n```bash\nheroku run \"alembic upgrade head\"\n```\n\u003e Make sure after installing Heroku cli to close your terminal and restart VS code.\n\n\n## Access postgres db from ssh:\n### [setup postgres config to be accessed with ssh](https://youtu.be/0sOvCWFmrtA?t=44246)\n\n---\n### [Auto reboot app on restart setup service](https://youtu.be/0sOvCWFmrtA?t=46455)\n---\n### [Auto reboot app on restart](https://youtu.be/0sOvCWFmrtA?t=47042)\n---\n### [Setup Nginx](https://youtu.be/0sOvCWFmrtA?t=47088)\n---\n\n### [Setup HTTPS](https://youtu.be/0sOvCWFmrtA?t=47445)\n---\n### [Setup SSL](https://youtu.be/0sOvCWFmrtA?t=47723)\n---\n### [Setup Firewall](https://youtu.be/0sOvCWFmrtA?t=48013)\n---\n### [Setup app using Docker](https://youtu.be/0sOvCWFmrtA?t=48380)\n---\n### [Setup Docker compose](https://youtu.be/0sOvCWFmrtA?t=49121)\n---\n### [Optimize Docker for production](https://youtu.be/0sOvCWFmrtA?t=50942)\n---\n### [Deal with authentication testing](https://youtu.be/0sOvCWFmrtA?t=59311)\n---\n\n\n\nflags:\npytest --disable-warnings -\u003e disable warnings\npytest -v -\u003e verbose\npytest -s -\u003e show output\npytest -x -\u003e exit on first failure\npytest -v -rP -\u003e Captured stdout calls like print statements\n\n\n[my Horuku](https://sam-arbid-fastapi.herokuapp.com/docs)\n\n\n\n# Start the Server:\n```zsh\nuvicorn app.main:app --reload\n```\n\n# run tests:\n```zsh\npytest -v -rP\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamk13%2Fpython-fast-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamk13%2Fpython-fast-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamk13%2Fpython-fast-api/lists"}