Title: Getting a datastore.entity by key name is a pain · Issue #81 · googleapis/google-cloud-python · GitHub
Open Graph Title: Getting a datastore.entity by key name is a pain · Issue #81 · googleapis/google-cloud-python
X Title: Getting a datastore.entity by key name is a pain · Issue #81 · googleapis/google-cloud-python
Description: If I know I have a person named Jim, and I want to get Jim, I can't do a look-up by path. What I'd like to do dataset.get_entity(['Person', 'jim']) or dataset.entity('Person').get('jim') (or with an ancestor) dataset.entity('Person').get...
Open Graph Description: If I know I have a person named Jim, and I want to get Jim, I can't do a look-up by path. What I'd like to do dataset.get_entity(['Person', 'jim']) or dataset.entity('Person').get('jim') (or with a...
X Description: If I know I have a person named Jim, and I want to get Jim, I can't do a look-up by path. What I'd like to do dataset.get_entity(['Person', 'jim']) or dataset.entity('Pe...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/81
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Getting a datastore.entity by key name is a pain","articleBody":"If I know I have a person named Jim, and I want to get Jim, I can't do a look-up by path.\n\nWhat I'd like to do\n\n``` python\ndataset.get_entity(['Person', 'jim'])\n```\n\nor\n\n``` python\ndataset.entity('Person').get('jim')\n```\n\n(or with an ancestor)\n\n``` python\ndataset.entity('Person').get('jim', parent='parent key name')\n```\n\nWhat I currently have to do\n\n``` python\nkey = Key.from_path(['Person', 'jim'])\ndataset.get_entity(key)\n```\n","author":{"url":"https://github.com/jgeewax","@type":"Person","name":"jgeewax"},"datePublished":"2014-04-21T13:58:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/81/google-cloud-python/issues/81"}
| 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:e4e8b8b9-088c-c2fe-1eaf-05f2efeddf35 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CAAE:102756:2F6A74A:42C5797:6A4F8041 |
| html-safe-nonce | cc2c9349ad207d4bdefd57a8ff68e959679289d91bf7f257751fc7e86fa0d03c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQUFFOjEwMjc1NjoyRjZBNzRBOjQyQzU3OTc6NkE0RjgwNDEiLCJ2aXNpdG9yX2lkIjoiMjA0NTY4OTI2NTU1NjI1ODg4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2c81478b7a601b42b7365e5db045cbd342fbc79a0ae485f3b807407f885162b5 |
| hovercard-subject-tag | issue:31897002 |
| 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/google-cloud-python/81/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d847df14340c4b8afe7ad4be2407f0c751f1415579164065ce77a409359f4e0f/googleapis/google-cloud-python/issues/81 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d847df14340c4b8afe7ad4be2407f0c751f1415579164065ce77a409359f4e0f/googleapis/google-cloud-python/issues/81 |
| og:image:alt | If I know I have a person named Jim, and I want to get Jim, I can't do a look-up by path. What I'd like to do dataset.get_entity(['Person', 'jim']) or dataset.entity('Person').get('jim') (or with a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jgeewax |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| 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 | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width