Title: Creating entities doesn't let me specify "just a Kind" · Issue #703 · googleapis/google-cloud-python · GitHub
Open Graph Title: Creating entities doesn't let me specify "just a Kind" · Issue #703 · googleapis/google-cloud-python
X Title: Creating entities doesn't let me specify "just a Kind" · Issue #703 · googleapis/google-cloud-python
Description: To create a new Product entity, I have to do the following from gcloud import datastore product = datastore.Entity(key=datastore.Key('Product')) This seems unnecessarily long to me. How about from gcloud import datastore product = datast...
Open Graph Description: To create a new Product entity, I have to do the following from gcloud import datastore product = datastore.Entity(key=datastore.Key('Product')) This seems unnecessarily long to me. How about from ...
X Description: To create a new Product entity, I have to do the following from gcloud import datastore product = datastore.Entity(key=datastore.Key('Product')) This seems unnecessarily long to me. How abo...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/703
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Creating entities doesn't let me specify \"just a Kind\"","articleBody":"To create a new Product entity, I have to do the following\n\n``` python\nfrom gcloud import datastore\nproduct = datastore.Entity(key=datastore.Key('Product'))\n```\n\nThis seems unnecessarily long to me. How about\n\n``` python\nfrom gcloud import datastore\nproduct = datastore.Entity('Product')\n```\n\nor\n\n``` python\nfrom gcloud import datastore\nproduct = datastore.Entity.from_kind('Product')\n```\n\nor\n\n``` python\nfrom gcloud import datastore\nproduct = datastore.Kind('Product')\n```\n","author":{"url":"https://github.com/jgeewax","@type":"Person","name":"jgeewax"},"datePublished":"2015-03-12T11:04:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":15},"url":"https://github.com/703/google-cloud-python/issues/703"}
| 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:448f8d20-3270-3a8c-df17-5dbb6308d7fa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF96:2E76EF:B96771:10A1B6E:6A4E499B |
| html-safe-nonce | 8cf5ebfa9ca28ba2ca5cc48321b74d203ec3f2b1a590ca124d8552d88a7ee30d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjk2OjJFNzZFRjpCOTY3NzE6MTBBMUI2RTo2QTRFNDk5QiIsInZpc2l0b3JfaWQiOiI4MzcwNTc4NjY1Mzc3Nzc4MDc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 77fcdb56ef6dc9578c23f6f4607ed1398d870dcdc89a1740eb436f9c22ae95ba |
| hovercard-subject-tag | issue:60802344 |
| 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/703/issue_layout |
| twitter:image | https://opengraph.githubassets.com/962ff6870ec65a3ac287012fa21477b1daca8cbf1838331485931f7b9a561e3d/googleapis/google-cloud-python/issues/703 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/962ff6870ec65a3ac287012fa21477b1daca8cbf1838331485931f7b9a561e3d/googleapis/google-cloud-python/issues/703 |
| og:image:alt | To create a new Product entity, I have to do the following from gcloud import datastore product = datastore.Entity(key=datastore.Key('Product')) This seems unnecessarily long to me. How about from ... |
| 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 | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| 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 | e8506f6d0538364886e3f0153c154c410965e70d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width