Skip to content

Creating entities doesn't let me specify "just a Kind" #703

Description

@jgeewax

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 = datastore.Entity('Product')

or

from gcloud import datastore
product = datastore.Entity.from_kind('Product')

or

from gcloud import datastore
product = datastore.Kind('Product')

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

api: datastoreIssues related to the Datastore API.priority: p2Moderately-important priority. Fix may not be included in next release.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions