Title: standardize samples directory layout · Issue #790 · googleapis/python-bigquery · GitHub
Open Graph Title: standardize samples directory layout · Issue #790 · googleapis/python-bigquery
X Title: standardize samples directory layout · Issue #790 · googleapis/python-bigquery
Description: We have an odd mix of sample locations: docs/snippets.py -- the original location, not very copy-pasteable / browsable lots of samples in samples/*.py, but the test drivers are in samples/tests/ samples/snippets/*.py samples/geography/*....
Open Graph Description: We have an odd mix of sample locations: docs/snippets.py -- the original location, not very copy-pasteable / browsable lots of samples in samples/*.py, but the test drivers are in samples/tests/ sa...
X Description: We have an odd mix of sample locations: docs/snippets.py -- the original location, not very copy-pasteable / browsable lots of samples in samples/*.py, but the test drivers are in samples/tests/ sa...
Opengraph URL: https://github.com/googleapis/python-bigquery/issues/790
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"standardize samples directory layout","articleBody":"We have an odd mix of sample locations:\r\n\r\n- `docs/snippets.py` -- the original location, not very copy-pasteable / browsable\r\n- lots of samples in `samples/*.py`, but the test drivers are in `samples/tests/`\r\n- `samples/snippets/*.py`\r\n- `samples/geography/*.py`\r\n\r\nTo align with the infrastructure in https://github.com/googleapis/synthtool/tree/master/synthtool/gcp/templates/python_samples, the goal is to have:\r\n\r\n- `samples/snippets/` -- these samples just require the `google-cloud-bigquery` library \r\n- `samples/geography/` -- require extra dependencies for working with geography data\r\n- `sample/pandas/` -- require extra dependencies for working with pandas dataframes\r\n- more??? -- possibly a directory for the user-based authentication samples\r\n\r\nTo avoid breaking cloud.google.com docs, this needs to be done in several steps:\r\n\r\n1. Copy samples to correct location\r\n2. Update docs (Googler must do this)\r\n3. Delete duplicate samples in old location\r\n\r\nTowards: https://github.com/googleapis/python-bigquery/issues/366 (use templated noxfile) and ~https://github.com/googleapis/python-bigquery/issues/765 (blacken samples using templated noxfile(s))~","author":{"url":"https://github.com/tswast","@type":"Person","name":"tswast"},"datePublished":"2021-07-21T18:14:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/790/python-bigquery/issues/790"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0e60269c-39b5-2328-fc70-55edb0b92e73 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9662:1A1F1B:1358840:1ACD767:6A4EA401 |
| html-safe-nonce | 8accaa21f370fffbcd7059f6e581d93a3693cdda0865c6649d633c9bba7e57e6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjYyOjFBMUYxQjoxMzU4ODQwOjFBQ0Q3Njc6NkE0RUE0MDEiLCJ2aXNpdG9yX2lkIjoiNzMyNzU4NjIzNDUzMTc1MDkxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5259aafdf05322c9bf6eebf0068e46803f1d13e1de4bfb2c812a0564b5b6fb67 |
| hovercard-subject-tag | issue:949975519 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-bigquery/790/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c888d17e8c85ef86bbbf2dd0515d164df68ae6fdf5f4b1146064eb23b4c31e16/googleapis/python-bigquery/issues/790 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c888d17e8c85ef86bbbf2dd0515d164df68ae6fdf5f4b1146064eb23b4c31e16/googleapis/python-bigquery/issues/790 |
| og:image:alt | We have an odd mix of sample locations: docs/snippets.py -- the original location, not very copy-pasteable / browsable lots of samples in samples/*.py, but the test drivers are in samples/tests/ sa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tswast |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-bigquery git https://github.com/googleapis/python-bigquery.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 226992475 |
| octolytics-dimension-repository_nwo | googleapis/python-bigquery |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 226992475 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-bigquery |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width