{"id":17967856,"url":"https://github.com/simonprickett/google-cloud-functions-python","last_synced_at":"2025-03-25T08:31:30.709Z","repository":{"id":149219180,"uuid":"142519400","full_name":"simonprickett/google-cloud-functions-python","owner":"simonprickett","description":"Google Cloud Functions Python Runtime Demo","archived":false,"fork":false,"pushed_at":"2018-07-27T04:44:35.000Z","size":5,"stargazers_count":12,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T00:01:40.566Z","etag":null,"topics":["google-cloud","google-cloud-function","google-cloud-functions","google-cloud-platform","python","python-3","python3","serverless","serverless-functions"],"latest_commit_sha":null,"homepage":"https://simonprickett.dev/","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/simonprickett.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}},"created_at":"2018-07-27T02:47:17.000Z","updated_at":"2023-10-18T09:43:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"c5bc4307-20a5-43eb-a459-e133406e921e","html_url":"https://github.com/simonprickett/google-cloud-functions-python","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/simonprickett%2Fgoogle-cloud-functions-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonprickett%2Fgoogle-cloud-functions-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonprickett%2Fgoogle-cloud-functions-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonprickett%2Fgoogle-cloud-functions-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonprickett","download_url":"https://codeload.github.com/simonprickett/google-cloud-functions-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245426295,"owners_count":20613325,"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":["google-cloud","google-cloud-function","google-cloud-functions","google-cloud-platform","python","python-3","python3","serverless","serverless-functions"],"created_at":"2024-10-29T14:09:53.790Z","updated_at":"2025-03-25T08:31:30.688Z","avatar_url":"https://github.com/simonprickett.png","language":"Python","readme":"# Google Cloud Functions Python Runtime Demo\n\nDemo Google Cloud Function showing use of the Python 3 runtime.  [Read my tutorial on Medium](https://medium.com/@simon_prickett/writing-google-cloud-functions-with-python-3-49ac2e5c8cb3).\n\n## Deployment\n\n```\n$ gcloud components update\n$ gcloud components install beta\n$ gcloud beta functions deploy getUserDetails --runtime python37 --trigger-http --project \u003cprojectId\u003e\n```\n\nWhere `\u003cprojectId\u003e` is your Google Cloud project ID.\n\n## Testing\n\nPoint a browser at:\n\n```\nhttps://\u003cregion\u003e-\u003cprojectId\u003e.cloudfunctions.net/getUserDetails\n```\n\nWhere:\n\n* `\u003cregion\u003e` is the Google Cloud region that you deployed to (e.g. `us-central1`)\n* `\u003cprojectId\u003e` is your Google Cloud project ID\n\n(the full URL that you need will be displayed in the output of the `gcloud` command when deploying the function).\n\nYou should see JSON representing a random user object pulled from the API that looks something like:\n\n```\n{\n  \"cell\": \"0911-857-4769\", \n  \"dob\": {\n    \"age\": 64, \n    \"date\": \"1954-01-11T01:37:49Z\"\n  }, \n  \"email\": \"محمدامين.پارسا@example.com\", \n  \"gender\": \"male\", \n  \"generator\": \"google-cloud-function\", \n  \"id\": {\n    \"name\": \"\", \n    \"value\": null\n  }, \n  \"location\": {\n    \"city\": \"ایلام\", \n    \"coordinates\": {\n      \"latitude\": \"32.1895\", \n      \"longitude\": \"-138.2377\"\n    }, \n    \"postcode\": 41995, \n    \"state\": \"کرمانشاه\", \n    \"street\": \"206 دکتر مفتح\", \n    \"timezone\": {\n      \"description\": \"Ekaterinburg, Islamabad, Karachi, Tashkent\", \n      \"offset\": \"+5:00\"\n    }\n  }, \n  \"login\": {\n    \"md5\": \"c83471713279d94cb2a33a4b03a456cd\", \n    \"password\": \"lacrosse\", \n    \"salt\": \"B9vhBXeE\", \n    \"sha1\": \"09ff43c271437499467aab431df1bc522e1574a9\", \n    \"sha256\": \"f39c50bf339b6dd973e3dfdea0ddee451fc90cc5adb7580c8f386a2c9f2ff304\", \n    \"username\": \"orangeelephant750\", \n    \"uuid\": \"bcb042d5-7f52-47c1-b883-b296268bec07\"\n  }, \n  \"name\": {\n    \"first\": \"محمدامين\", \n    \"last\": \"پارسا\"\", \n    \"title\": \"mr\"\n  }, \n  \"nat\": \"IR\", \n  \"phone\": \"014-57870431\", \n  \"picture\": {\n    \"large\": \"https://randomuser.me/api/portraits/men/40.jpg\", \n    \"medium\": \"https://randomuser.me/api/portraits/med/men/40.jpg\", \n    \"thumbnail\": \"https://randomuser.me/api/portraits/thumb/men/40.jpg\"\n  }, \n  \"registered\": {\n    \"age\": 6, \n    \"date\": \"2011-10-26T06:05:55Z\"\n  }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonprickett%2Fgoogle-cloud-functions-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonprickett%2Fgoogle-cloud-functions-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonprickett%2Fgoogle-cloud-functions-python/lists"}