{"id":21581551,"url":"https://github.com/thoughtscript/more_python_api_2024","last_synced_at":"2025-12-30T21:02:57.279Z","repository":{"id":237574470,"uuid":"794736006","full_name":"Thoughtscript/more_python_api_2024","owner":"Thoughtscript","description":"Experiments with Serverless and Containerized Python Apps","archived":false,"fork":false,"pushed_at":"2024-12-29T22:32:54.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T08:14:31.986Z","etag":null,"topics":["aws","docker","docker-compose","fastapi","postgres","postgres-jsonb","python","serverless"],"latest_commit_sha":null,"homepage":"","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/Thoughtscript.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-01T20:58:21.000Z","updated_at":"2024-12-29T22:32:57.000Z","dependencies_parsed_at":"2024-12-29T23:20:02.422Z","dependency_job_id":"32b24779-2111-44cf-915f-0eebca0faa3e","html_url":"https://github.com/Thoughtscript/more_python_api_2024","commit_stats":null,"previous_names":["thoughtscript/more_python_api","thoughtscript/more_python_api_2024"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Thoughtscript/more_python_api_2024","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Fmore_python_api_2024","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Fmore_python_api_2024/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Fmore_python_api_2024/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Fmore_python_api_2024/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thoughtscript","download_url":"https://codeload.github.com/Thoughtscript/more_python_api_2024/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Fmore_python_api_2024/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28132549,"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","status":"online","status_checked_at":"2025-12-30T02:00:05.476Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["aws","docker","docker-compose","fastapi","postgres","postgres-jsonb","python","serverless"],"created_at":"2024-11-24T14:12:54.150Z","updated_at":"2025-12-30T21:02:57.244Z","avatar_url":"https://github.com/Thoughtscript.png","language":"Python","readme":"# more_python_api\n\n[![](https://img.shields.io/badge/Python-3.12.3-yellow.svg)](https://www.python.org/downloads/) [![](https://img.shields.io/badge/Docker-blue.svg)](https://www.docker.com/) [![](https://img.shields.io/badge/postgres-16.2-blue.svg)](https://hub.docker.com/_/postgres/) [![](https://img.shields.io/badge/serverless-offline-salmon.svg)](https://www.serverless.com/plugins/serverless-offline) \n\nRun the following from the root dir:\n\n```bash\ndocker-compose up\n\n# If using Docker Compose Engine V2:\ndocker compose up\n```\n\n## Serverless\n\nExpands on some great examples from: https://github.com/dstilesr/sls-docker-python/blob/master/Dockerfile and https://github.com/aztecweb/docker-serverless-offline.\n\n1. Updates the config.\n2. Adds Python dependencies.\n3. Some `sls` CLI flags have changed.\n4. Adds a Database connection to the example.\n\n* `http://localhost:3001/dev/psqljson` - returns JSON interpolation\n* `http://localhost:3001/dev/examples` - returns Examples list from within a Python Serverless function.\n* `http://localhost:3001/dev/otherapi` - calls another API deployment (common in layered microservice apps) and returns the retreived value. \n\n## Fast API\n\n* `http://localhost:8001/examples`\n* `http://localhost:8001/` - test/heartbeat endpoint for debugging Docker.\n\n## Postgres\n\n1. The DB will execute scripts in [init_json_sql.sql](postgres/init_json_sql.sql) on initialization.\n2. These primarily showcase how to use postgres JSON functionalities (\"NoSQL in SQL\") and non-rectangular **Record Sets**.\n\n## Resources and Links\n\n1. https://realpython.com/fastapi-python-web-apis/\n2. https://github.com/dstilesr/sls-docker-python/blob/master/Dockerfile\n3. https://github.com/aztecweb/docker-serverless-offline\n4. https://www.serverless.com/plugins/serverless-offline\n5. https://stackoverflow.com/questions/40741282/cannot-use-requests-module-on-aws-lambda\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtscript%2Fmore_python_api_2024","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthoughtscript%2Fmore_python_api_2024","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtscript%2Fmore_python_api_2024/lists"}