8000 python-docs-samples/ at main · amit2014/python-docs-samples · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"path":" ","repo":{"id":763637368,"defaultBranch":"main","name":"python-docs-samples","ownerLogin":"amit2014","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2024-02-26T16:56:37.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/3458888?v=4","public":true,"private":false,"isOrgOwned":false},"currentUser":null,"refInfo":{"name":"main","listCacheKey":"v0:1708966604.6876001","canEdit":false,"refType":"branch","currentOid":"c8b148d74afd98cf2a4b8a39f1c23cf4ef8a2aab"},"tree":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":".kokoro","path":".kokoro","contentType":"directory"},{"name":"appengine","path":"appengine","contentType":"directory"},{"name":"asset/snippets","path":"asset/snippets","contentType":"directory","hasSimplifiedPath":true},{"name":"auth","path":"auth","contentType":"directory"},{"name":"automl","path":"automl","contentType":"directory"},{"name":"batch","path":"batch","contentType":"directory"},{"name":"bigquery-connection/snippets","path":"bigquery-connection/snippets","contentType":"directory","hasSimplifiedPath":true},{"name":"bigquery-datatransfer/snippets","path":"bigquery-datatransfer/snippets","contentType":"directory","hasSimplifiedPath":true},{"name":"bigquery-migration/snippets","path":"bigquery-migration/snippets","contentType":"directory","hasSimplifiedPath":true},{"name":"bigquery-reservation/snippets","path":"bigquery-reservation/snippets","contentType":"directory","hasSimplifiedPath":true},{"name":"bigquery","path":"bigquery","contentType":"directory"},{"name":"bigquery_storage/to_dataframe","path":"bigquery_storage/to_dataframe","contentType":"directory","hasSimplifiedPath":true},{"name":"billing","path":"billing","contentType":"directory"},{"name":"blog","path":"blog","contentType":"directory"},{"name":"cdn","path":"cdn","contentType":"directory"},{"name":"cloud-media-livestream/keypublisher","path":"cloud-media-livestream/keypublisher","contentType":"directory","hasSimplifiedPath":true},{"name":"cloud-sql","path":"cloud-sql","contentType":"directory"},{"name":"cloud_scheduler/snippets","path":"cloud_scheduler/snippets","contentType":"directory","hasSimplifiedPath":true},{"name":"cloud_tasks","path":"cloud_tasks","contentType":"directory"},{"name":"cloudbuild","path":"cloudbuild","contentType":"directory"},{"name":"composer","path":"composer","contentType":"directory"},{"name":"compute","path":"compute","contentType":"directory"},{"name":"contact-center-insights/snippets","path":"contact-center-insights/snippets","contentType":"directory","hasSimplifiedPath":true},{"name":"container","path":"container","contentType":"directory"},{"name":"containeranalysis/snippets","path":"containeranalysis/snippets","contentType":"directory","hasSimplifiedPath":true},{"name":"contentwarehouse","path":"contentwarehouse","contentType":"directory"},{"name":"datacatalog","path":"datacatalog","contentType":"directory"},{"name":"dataflow","path":"dataflow","contentType":"directory"},{"name":"datalabeling","path":"datalabeling","contentType":"directory"},{"name":"dataproc","path":"dataproc","contentType":"directory"},{"name":"datastore","path":"datastore","contentType":"directory"},{"name":"dialogflow-cx","path":"dialogflow-cx","contentType":"directory"},{"name":"dialogflow","path":"dialogflow","contentType":"directory"},{"name":"discoveryengine","path":"discoveryengine","contentType":"directory"},{"name":"dlp","path":"dlp","contentType":"directory"},{"name":"dns/api","path":"dns/api","contentType":"directory","hasSimplifiedPath":true},{"name":"documentai","path":"documentai","contentType":"directory"},{"name":"endpoints","path":"endpoints","contentType":"directory"},{"name":"enterpriseknowledgegraph","path":"enterpriseknowledgegraph","contentType":"directory"},{"name":"error_reporting","path":"error_reporting","contentType":"directory"},{"name":"eventarc","path":"eventarc","contentType":"directory"},{"name":"firestore","path":"firestore","contentType":"directory"},{"name":"functions","path":"functions","contentType":"directory"},{"name":"generative_ai","path":"generative_ai","contentType":"directory"},{"name":"healthcare/api-client","path":"healthcare/api-client","contentType":"directory","hasSimplifiedPath":true},{"name":"iam","path":"iam","contentType":"directory"},{"name":"iap","path":"iap","contentType":"directory"},{"name":"iot","path":"iot","contentType":"directory"},{"name":"jobs","path":"jobs","contentType":"directory"},{"name":"kms","path":"kms","contentType":"directory"},{"name":"kubernetes_engine","path":"kubernetes_engine","contentType":"directory"},{"name":"language","path":"language","contentType":"directory"},{"name":"logging","path":"logging","contentType":"directory"},{"name":"media-translation","path":"media-translation","contentType":"directory"},{"name":"media","path":"media","contentType":"directory"},{"name":"media_cdn","path":"media_cdn","contentType":"directory"},{"name":"memorystore/redis","path":"memorystore/redis","contentType":"directory","hasSimplifiedPath":true},{"name":"ml_engine","path":"ml_engine","contentType":"directory"},{"name":"monitoring","path":"monitoring","contentType":"directory"},{"name":"notebooks","path":"notebooks","contentType":"directory"},{"name":"opencensus","path":"opencensus","contentType":"directory"},{"name":"optimization/snippets","path":"optimization/snippets","contentType":"directory","hasSimplifiedPath":true},{"name":"people-and-planet-ai","path":"people-and-planet-ai","contentType":"directory"},{"name":"practice-folder","path":"practice-folder","contentType":"directory"},{"name":"privateca/snippets","path":"privateca/snippets","contentType":"directory","hasSimplifiedPath":true},{"name":"profiler","path":"profiler","contentType":"directory"},{"name":"pubsub","path":"pubsub","contentType":"directory"},{"name":"pubsublite/spark-connector","path":"pubsublite/spark-connector","contentType":"directory","hasSimplifiedPath":true},{"name":"recaptcha_enterprise","path":"recaptcha_enterprise","contentType":"directory"},{"name":"retail/interactive-tutorials","path":"retail/interactive-tutorials","contentType":"directory","hasSimplifiedPath":true},{"name":"run","path":"run","contentType":"directory"},{"name":"scripts","path":"scripts","contentType":"directory"},{"name":"secretmanager","path":"secretmanager","contentType":"directory"},{"name":"securitycenter","path":"securitycenter","contentType":"directory"},{"name":"service_extensions","path":"service_extensions","contentType":"directory"},{"name":"servicedirectory","path":"servicedirectory","contentType":"directory"},{"name":"spanner","path":"spanner","contentType":"directory"},{"name":"speech","path":"speech","contentType":"directory"},{"name":"storage","path":"storage","contentType":"directory"},{"name":"storagetransfer","path":"storagetransfer","contentType":"directory"},{"name":"tables","path":"tables","contentType":"directory"},{"name":"talent","path":"talent","contentType":"directory"},{"name":"testing","path":"testing","contentType":"directory"},{"name":"texttospeech/snippets","path":"texttospeech/snippets","contentType":"directory","hasSimplifiedPath":true},{"name":"trace","path":"trace","contentType":"directory"},{"name":"translate/samples","path":"translate/samples","contentType":"directory","hasSimplifiedPath":true},{"name":"video","path":"video","contentType":"directory"},{"name":"videointelligence/samples","path":"videointelligence/samples","contentType":"directory","hasSimplifiedPath":true},{"name":"vision","path":"vision","contentType":"directory"},{"name":"vmwareengine","path":"vmwareengine","contentType":"directory"},{"name":"webrisk/snippets","path":"webrisk/snippets","contentType":"directory","hasSimplifiedPath":true},{"name":"workflows/cloud-client","path":"workflows/cloud-client","contentType":"directory","hasSimplifiedPath":true},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".repo-metadata.json","path":".repo-metadata.json","contentType":"file"},{"name":".trampolinerc","path":".trampolinerc","contentType":"file"},{"name":".trampolinerc_tmpl","path":".trampolinerc_tmpl","contentType":"file"},{"name":"AUTHORING_GUIDE.md","path":"AUTHORING_GUIDE.md","contentType":"file"},{"name":"CODE_OF_CONDUCT.md","path":"CODE_OF_CONDUCT.md","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"MAC_SETUP.md","path":"MAC_SETUP.md","contentType":"file"},{"name":"Makefile","path":"Makefile","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"SECURITY.md","path":"SECURITY.md","contentType":"file"},{"name":"favicon.ico","path":"favicon.ico","contentType":"file"},{"name":"noxfile-template.py","path":"noxfile-template.py","contentType":"file"},{"name":"noxfile_config.py","path":"noxfile_config.py","contentType":"file"},{"name":"owlbot.py","path":"owlbot.py","contentType":"file"},{"name":"pytest.ini","path":"pytest.ini","contentType":"file"},{"name":"renovate.json","path":"renovate.json","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"README.md","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eGoogle Cloud Platform Python Samples\u003c/h1\u003e\u003ca id=\"user-content-google-cloud-platform-python-samples\" class=\"anchor\" aria-label=\"Permalink: Google Cloud Platform Python Samples\" href=\"#google-cloud-platform-python-samples\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003ePython samples for \u003ca href=\"https://cloud.google.com/\" rel=\"nofollow\"\u003eGoogle Cloud Platform products\u003c/a\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://storage.googleapis.com/cloud-devrel-public/python-docs-samples/badges/py-2.7.html\" rel=\"nofollow\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/7f201d63597a471b5c451e8b5d17f333e69b09a32fc5a212c088524c65b70bbe/68747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f636c6f75642d64657672656c2d7075626c69632f707974686f6e2d646f63732d73616d706c65732f6261646765732f70792d322e372e737667\" alt=\"Build Status\" data-canonical-src=\"https://storage.googleapis.com/cloud-devrel-public/python-docs-samples/badges/py-2.7.svg\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e \u003ca href=\"https://storage.googleapis.com/cloud-devrel-public/python-docs-samples/badges/py-3.8.html\" rel=\"nofollow\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/4996214c7f4d91a880cb482e03a75830a97ea744f9f1cfe18ca2f6af9532e916/68747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f636c6f75642d64657672656c2d7075626c69632f707974686f6e2d646f63732d73616d706c65732f6261646765732f70792d332e382e737667\" alt=\"Build Status\" data-canonical-src=\"https://storage.googleapis.com/cloud-devrel-public/python-docs-samples/badges/py-3.8.svg\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e \u003ca href=\"https://storage.googleapis.com/cloud-devrel-public/python-docs-samples/badges/py-3.9.html\" rel=\"nofollow\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/30b9b00948c4f2484cf9227e7937a4ff5db851b1db5cfcb5b917218b20123a1c/68747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f636c6f75642d64657672656c2d7075626c69632f707974686f6e2d646f63732d73616d706c65732f6261646765732f70792d332e392e737667\" alt=\"Build Status\" data-canonical-src=\"https://storage.googleapis.com/cloud-devrel-public/python-docs-samples/badges/py-3.9.svg\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e \u003ca href=\"https://storage.googleapis.com/cloud-devrel-public/python-docs-samples/badges/py-3.10.html\" rel=\"nofollow\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/e5749fe0241c403ce3bd971f0efd66bed80d7f75acb7ea9d0b9f17ab87d203ff/68747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f636c6f75642d64657672656c2d7075626c69632f707974686f6e2d646f63732d73616d706c65732f6261646765732f70792d3331302e737667\" alt=\"Build Status\" data-canonical-src=\"https://storage.googleapis.com/cloud-devrel-public/python-docs-samples/badges/py-310.svg\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e \u003ca href=\"https://storage.googleapis.com/cloud-devrel-public/python-docs-samples/badges/py-3.11.html\" rel=\"nofollow\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/1968157052609ca2923e4aa5ba4679cd252dfdf10714a8eec35de2c48867148b/68747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f636c6f75642d64657672656c2d7075626c69632f707974686f6e2d646f63732d73616d706c65732f6261646765732f70792d3331312e737667\" alt=\"Build Status\" data-canonical-src=\"https://storage.googleapis.com/cloud-devrel-public/python-docs-samples/badges/py-311.svg\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eGoogle Cloud Samples\u003c/h2\u003e\u003ca id=\"user-content-google-cloud-samples\" class=\"anchor\" aria-label=\"Permalink: Google Cloud Samples\" href=\"#google-cloud-samples\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eCheck out some of the samples found on this repository on the \u003ca href=\"https://cloud.google.com/docs/samples?l=python\" rel=\"nofollow\"\u003eGoogle Cloud Samples\u003c/a\u003e page.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eSetup\u003c/h2\u003e\u003ca id=\"user-content-setup\" class=\"anchor\" aria-label=\"Permalink: Setup\" href=\"#setup\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003col dir=\"auto\"\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eInstall \u003ca href=\"https://cloud.google.com/python/setup\" rel=\"nofollow\"\u003e\u003ccode\u003epip\u003c/code\u003e and \u003ccode\u003evirtualenv\u003c/code\u003e\u003c/a\u003e if you do not already have them.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eClone this repository:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003egit clone https://github.com/GoogleCloudPlatform/python-docs-samples.git\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eObtain authentication credentials.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eCreate local credentials by running the following command and following the\noauth2 flow (read more about the command \u003ca href=\"https://cloud.google.com/sdk/gcloud/reference/beta/auth/application-default/login\" rel=\"nofollow\"\u003ehere\u003c/a\u003e):\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"gcloud auth application-default login\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003egcloud auth application-default login\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eRead more about \u003ca href=\"https://cloud.google.com/docs/authentication#projects_and_resources\" rel=\"nofollow\"\u003eGoogle Cloud Platform Authentication\u003c/a\u003e.\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eHow to run a sample\u003c/h2\u003e\u003ca id=\"user-content-how-to-run-a-sample\" class=\"anchor\" aria-label=\"Permalink: How to run a sample\" href=\"#how-to-run-a-sample\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003col dir=\"auto\"\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eChange directory to one of the sample folders, e.g. \u003ccode\u003elogging/cloud-client\u003c/code\u003e:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"cd logging/cloud-client/\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003ecd logging/cloud-client/\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eCreate a virtualenv. Samples are compatible with Python 3.6+.\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"python3 -m venv env\nsource env/bin/activate\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003epython3 -m venv env\nsource env/bin/activate\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eInstall the dependencies needed to run the samples.\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"pip install -r requirements.txt\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003epip install -r requirements.txt\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eRun the sample:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"python snippets.py\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003epython snippets.py\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eContributing\u003c/h2\u003e\u003ca id=\"user-content-contributing\" class=\"anchor\" aria-label=\"Permalink: Contributing\" href=\"#contributing\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eContributions welcome! See the \u003ca href=\"/amit2014/python-docs-samples/blob/main/CONTRIBUTING.md\"\u003eContributing Guide\u003c/a\u003e.\u003c/p\u003e\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"Google Cloud Platform Python Samples","anchor":"google-cloud-platform-python-samples","htmlText":"Google Cloud Platform Python Samples"},{"level":2,"text":"Google Cloud Samples","anchor":"google-cloud-samples","htmlText":"Google Cloud Samples"},{"level":2,"text":"Setup","anchor":"setup","htmlText":"Setup"},{"level":2,"text":"How to run a sample","anchor":"how-to-run-a-sample","htmlText":"How to run a sample"},{"level":2,"text":"Contributing","anchor":"contributing","htmlText":"Contributing"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Famit2014%2Fpython-docs-samples%2Ftree%2Fmain%2F%2520"}},"totalCount":111,"showBranchInfobar":true},"fileTree":{"":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":".kokoro","path":".kokoro","contentType":"directory"},{"name":"appengine","path":"appengine","contentType":"directory"},{"name":"asset","path":"asset","contentType":"directory"},{"name":"auth","path":"auth","contentType":"directory"},{"name":"automl","path":"automl","contentType":"directory"},{"name":"batch","path":"batch","contentType":"directory"},{"name":"bigquery-connection","path":"bigquery-connection","contentType":"directory"},{"name":"bigquery-datatransfer","path":"bigquery-datatransfer","contentType":"directory"},{"name":"bigquery-migration","path":"bigquery-migration","contentType":"directory"},{"name":"bigquery-reservation","path":"bigquery-reservation","contentType":"directory"},{"name":"bigquery","path":"bigquery","contentType":"directory"},{"name":"bigquery_storage","path":"bigquery_storage","contentType":"directory"},{"name":"billing","path":"billing","contentType":"directory"},{"name":"blog","path":"blog","contentType":"directory"},{"name":"cdn","path":"cdn","contentType":"directory"},{"name":"cloud-media-livestream","path":"cloud-media-livestream","contentType":"directory"},{"name":"cloud-sql","path":"cloud-sql","contentType":"directory"},{"name":"cloud_scheduler","path":"cloud_scheduler","contentType":"directory"},{"name":"cloud_tasks","path":"cloud_tasks","contentType":"directory"},{"name":"cloudbuild","path":"cloudbuild","contentType":"directory"},{"name":"composer","path":"composer","contentType":"directory"},{"name":"compute","path":"compute","contentType":"directory"},{"name":"contact-center-insights","path":"contact-center-insights","contentType":"directory"},{"name":"container","path":"container","contentType":"directory"},{"name":"containeranalysis","path":"containeranalysis","contentType":"directory"},{"name":"contentwarehouse","path":"contentwarehouse","contentType":"directory"},{"name":"datacatalog","path":"datacatalog","contentType":"directory"},{"name":"dataflow","path":"dataflow","contentType":"directory"},{"name":"datalabeling","path":"datalabeling","contentType":"directory"},{"name":"dataproc","path":"dataproc","contentType":"directory"},{"name":"datastore","path":"datastore","contentType":"directory"},{"name":"dialogflow-cx","path":"dialogflow-cx","contentType":"directory"},{"name":"dialogflow","path":"dialogflow","contentType":"directory"},{"name":"discoveryengine","path":"discoveryengine","contentType":"directory"},{"name":"dlp","path":"dlp","contentType":"directory"},{"name":"dns","path":"dns","contentType":"directory"},{"name":"documentai","path":"documentai","contentType":"directory"},{"name":"endpoints","path":"endpoints","contentType":"directory"},{"name":"enterpriseknowledgegraph","path":"enterpriseknowledgegraph","contentType":"directory"},{"name":"error_reporting","path":"error_reporting","contentType":"directory"},{"name":"eventarc","path":"eventarc","contentType":"directory"},{"name":"firestore","path":"firestore","contentType":"directory"},{"name":"functions","path":"functions","contentType":"directory"},{"name":"generative_ai","path":"generative_ai","contentType":"directory"},{"name":"healthcare","path":"healthcare","contentType":"directory"},{"name":"iam","path":"iam","contentType":"directory"},{"name":"iap","path":"iap","contentType":"directory"},{"name":"iot","path":"iot","contentType":"directory"},{"name":"jobs","path":"jobs","contentType":"directory"},{"name":"kms","path":"kms","contentType":"directory"},{"name":"kubernetes_engine","path":"kubernetes_engine","contentType":"directory"},{"name":"language","path":"language","contentType":"directory"},{"name":"logging","path":"logging","contentType":"directory"},{"name":"media-translation","path":"media-translation","contentType":"directory"},{"name":"media","path":"media","contentType":"directory"},{"name":"media_cdn","path":"media_cdn","contentType":"directory"},{"name":"memorystore","path":"memorystore","contentType":"directory"},{"name":"ml_engine","path":"ml_engine","contentType":"directory"},{"name":"monitoring","path":"monitoring","contentType":"directory"},{"name":"notebooks","path":"notebooks","contentType":"directory"},{"name":"opencensus","path":"opencensus","contentType":"directory"},{"name":"optimization","path":"optimization","contentType":"directory"},{"name":"people-and-planet-ai","path":"people-and-planet-ai","contentType":"directory"},{"name":"practice-folder","path":"practice-folder","contentType":"directory"},{"name":"privateca","path":"privateca","contentType":"directory"},{"name":"profiler","path":"profiler","contentType":"directory"},{"name":"pubsub","path":"pubsub","contentType":"directory"},{"name":"pubsublite","path":"pubsublite","contentType":"directory"},{"name":"recaptcha_enterprise","path":"recaptcha_enterprise","contentType":"directory"},{"name":"retail","path":"retail","contentType":"directory"},{"name":"run","path":"run","contentType":"directory"},{"name":"scripts","path":"scripts","contentType":"directory"},{"name":"secretmanager","path":"secretmanager","contentType":"directory"},{"name":"securitycenter","path":"securitycenter","contentType":"directory"},{"name":"service_extensions","path":"service_extensions","contentType":"directory"},{"name":"servicedirectory","path":"servicedirectory","contentType":"directory"},{"name":"spanner","path":"spanner","contentType":"directory"},{"name":"speech","path":"speech","contentType":"directory"},{"name":"storage","path":"storage","contentType":"directory"},{"name":"storagetransfer","path":"storagetransfer","contentType":"directory"},{"name":"tables","path":"tables","contentType":"directory"},{"name":"talent","path":"talent","contentType":"directory"},{"name":"testing","path":"testing","contentType":"directory"},{"name":"texttospeech","path":"texttospeech","contentType":"directory"},{"name":"trace","path":"trace","contentType":"directory"},{"name":"translate","path":"translate","contentType":"directory"},{"name":"video","path":"video","contentType":"directory"},{"name":"videointelligence","path":"videointelligence","contentType":"directory"},{"name":"vision","path":"vision","contentType":"directory"},{"name":"vmwareengine","path":"vmwareengine","contentType":"directory"},{"name":"webrisk","path":"webrisk","contentType":"directory"},{"name":"workflows","path":"workflows","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".repo-metadata.json","path":".repo-metadata.json","contentType":"file"},{"name":".trampolinerc","path":".trampolinerc","contentType":"file"},{"name":".trampolinerc_tmpl","path":".trampolinerc_tmpl","contentType":"file"},{"name":"AUTHORING_GUIDE.md","path":"AUTHORING_GUIDE.md","contentType":"file"},{"name":"CODE_OF_CONDUCT.md","path":"CODE_OF_CONDUCT.md","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"MAC_SETUP.md","path":"MAC_SETUP.md","contentType":"file"},{"name":"Makefile","path":"Makefile","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"SECURITY.md","path":"SECURITY.md","contentType":"file"},{"name":"favicon.ico","path":"favicon.ico","contentType":"file"},{"name":"noxfile-template.py","path":"noxfile-template.py","contentType":"file"},{"name":"noxfile_config.py","path":"noxfile_config.py","contentType":"file"},{"name":"owlbot.py","path":"owlbot.py","contentType":"file"},{"name":"pytest.ini","path":"pytest.ini","contentType":"file"},{"name":"renovate.json","path":"renovate.json","contentType":"file"}],"totalCount":111}},"fileTreeProcessingTime":11.824474,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/amit2014/python-docs-samples/branches":{"post":"hgZ0EADNAby89CbuRcA4hHgs88yBjCdI4ZjSw9mKNdHlEPKR4nbCswP-kM8O_w3I7s5hpzqNBUO2HlLcNRnB2w"},"/amit2014/python-docs-samples/branches/fetch_and_merge/main":{"post":"4xvGnhTtnFaawPbq8TyVAQcAe5HB4Nd6RIjrwjLkmApbOicg9ruUqYE5zcfjLdLzUxMVUjT6lVs3H_kZpBKaAw"},"/amit2014/python-docs-samples/branches/fetch_and_merge/main?discard_changes=true":{"post":"g5cvJC7GqcBQt80cAiUqIKtjwmvYcu-3-tI-BMXXkPk7ts6azJChP0tO9jEQNG3S_3CsqC1orZaJRSzfUyGS8A"}}},"title":"python-docs-samples/ at main · amit2014/python-docs-samples","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-7d7eb7c71814.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1ae9fa256942.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true,"github_models_repo_integration":false}}}
0