Skip to content

Getting a datastore.entity by key name is a pain #81

Closed
@jgeewax

Description

@jgeewax

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('jim', parent='parent key name')

What I currently have to do

key = Key.from_path(['Person', 'jim'])
dataset.get_entity(key)

Metadata

Metadata

Assignees

Labels

api: datastoreIssues related to the Datastore API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions