Title: Creating a new datastore.entity with a key name is a pain · Issue #82 · googleapis/google-cloud-python · GitHub
Open Graph Title: Creating a new datastore.entity with a key name is a pain · Issue #82 · googleapis/google-cloud-python
X Title: Creating a new datastore.entity with a key name is a pain · Issue #82 · googleapis/google-cloud-python
Description: If I know I want to create a new Person named jim, it's a huge pain to get a handle on this entity. What I would like to do: entity = dataset.entity(['Person', 'jim']) entity['age'] = 80 entity.save() What I currently have to do: key = K...
Open Graph Description: If I know I want to create a new Person named jim, it's a huge pain to get a handle on this entity. What I would like to do: entity = dataset.entity(['Person', 'jim']) entity['age'] = 80 entity.sav...
X Description: If I know I want to create a new Person named jim, it's a huge pain to get a handle on this entity. What I would like to do: entity = dataset.entity(['Person', 'jim']) entity[...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/82
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Creating a new datastore.entity with a key name is a pain","articleBody":"If I know I want to create a new Person named `jim`, it's a huge pain to get a handle on this entity.\n\nWhat I would like to do:\n\n``` python\nentity = dataset.entity(['Person', 'jim'])\nentity['age'] = 80\nentity.save()\n```\n\nWhat I currently have to do:\n\n``` python\nkey = Key.from_path(['Person', 'jim']).dataset(dataset)\nentity = dataset.entity('Person').key(key)\nentity['age'] = 80\nentity.save()\n```\n\nThis is a whole bunch of extra wiring I really shouldn't need to deal with.\n","author":{"url":"https://github.com/jgeewax","@type":"Person","name":"jgeewax"},"datePublished":"2014-04-21T14:01:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/82/google-cloud-python/issues/82"}
| 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:e952a3a1-38ad-f656-a3eb-a725dcdb8a9c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E45A:3C3A87:397914:4F17EF:6A4D3852 |
| html-safe-nonce | 955e3ec5a4f741a46d4b6e606c9625aeffd43f1a5a6d0a9f6dc493bb5415a4ca |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDVBOjNDM0E4NzozOTc5MTQ6NEYxN0VGOjZBNEQzODUyIiwidmlzaXRvcl9pZCI6Ijc5MDUwNDg4NTY2NzYzNTAwMzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 29b4bc1cec9b637242abc66a9968931c7ad8b87de47824bbe2aec3781f13c98d |
| hovercard-subject-tag | issue:31897102 |
| 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/82/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c4d6e7602376ad558df1353239e62e9f58f4c6001198960d046295767faee5c9/googleapis/google-cloud-python/issues/82 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c4d6e7602376ad558df1353239e62e9f58f4c6001198960d046295767faee5c9/googleapis/google-cloud-python/issues/82 |
| og:image:alt | If I know I want to create a new Person named jim, it's a huge pain to get a handle on this entity. What I would like to do: entity = dataset.entity(['Person', 'jim']) entity['age'] = 80 entity.sav... |
| 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 | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| 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 | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width