{"id":25480285,"url":"https://github.com/rohit1024/postgres-python-connector","last_synced_at":"2025-06-10T14:35:18.664Z","repository":{"id":267759350,"uuid":"895369944","full_name":"Rohit1024/postgres-python-connector","owner":"Rohit1024","description":"Connect Python Application on Cloud Run to Cloud SQL database using Language Connector","archived":false,"fork":false,"pushed_at":"2024-12-12T08:27:11.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-12T09:28:48.739Z","etag":null,"topics":["cloud-sql","connection-pool","flask-application","language-connector","pg8000","python3"],"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/Rohit1024.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-11-28T04:43:51.000Z","updated_at":"2024-12-12T08:59:12.000Z","dependencies_parsed_at":"2024-12-12T09:29:27.474Z","dependency_job_id":"b64c0d59-6a3f-4c75-9927-46400ffc738e","html_url":"https://github.com/Rohit1024/postgres-python-connector","commit_stats":null,"previous_names":["rohit1024/postgres-python-connector"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rohit1024%2Fpostgres-python-connector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rohit1024%2Fpostgres-python-connector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rohit1024%2Fpostgres-python-connector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rohit1024%2Fpostgres-python-connector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rohit1024","download_url":"https://codeload.github.com/Rohit1024/postgres-python-connector/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239498997,"owners_count":19648957,"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":["cloud-sql","connection-pool","flask-application","language-connector","pg8000","python3"],"created_at":"2025-02-18T15:39:02.851Z","updated_at":"2025-02-18T15:39:03.611Z","avatar_url":"https://github.com/Rohit1024.png","language":"Python","readme":"\n# Connect a Python application on Cloud Run to a Cloud SQL for PostgreSQL database\n\nUsing [Cloud SQL Python connector](https://github.com/GoogleCloudPlatform/cloud-sql-python-connector/tree/main) to securely connect your Python application to your Cloud SQL database. \n\nThis repository will demonstrate how to connect a Python application on Cloud Run to a Cloud SQL for PostgreSQL database securely with a service account using IAM Authentication.\n\n\n## Environment Variables\n\nTo run this project, you will need to add the following environment variables to your .env file\n\n`INSTANCE_CONNECTION_NAME` = \"{PROJECT_ID}:{REGION}:{INSTANCE_NAME}\"\n\n`DB_USER` = \"sql-client-service-account@{PROJECT_ID}.iam\"\n\n`DB_PASS` = (optional, if followed the `cloudsql.iam_authentication`)\n\n`PRIVATE_IP` = (conditional) if true it will use PRIVATE_IP is not set it will use PUBLIC_IP to connect to Cloud SQL\n\n`DB_NAME` = your-database\n\n\n## Supported Articles\n\n[Connect a Python application on Cloud Run to a Cloud SQL for PostgreSQL database](https://medium.com/@kellenjohn175/how-to-guides-gcp-cloudsql-iam-%E8%BA%AB%E4%BB%BD%E9%A9%97%E8%AD%89%E6%95%B4%E5%90%88%E4%B8%A6%E4%BD%BF%E7%94%A8-cloud-sql-connector-%E8%A8%AA%E5%95%8F%E8%B3%87%E6%96%99%E5%BA%AB-python-24b502e9bfd4)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohit1024%2Fpostgres-python-connector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frohit1024%2Fpostgres-python-connector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohit1024%2Fpostgres-python-connector/lists"}