GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Creating a new datastore.entity with a key name is a pain · Issue #82 · googleapis/google-cloud-python

Creating a new datastore.entity with a key name is a pain #82

New issue
Copy link
New issue
Copy link
Closed
Closed
Creating a new datastore.entity with a key name is a pain#82
Copy link
Assignees
dhermes
Labels
api: datastoreIssues related to the Datastore API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@jgeewax
jgeewax
opened on Apr 21, 2014
Issue body actions

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 = Key.from_path(['Person', 'jim']).dataset(dataset)
entity = dataset.entity('Person').key(key)
entity['age'] = 80
entity.save()

This is a whole bunch of extra wiring I really shouldn't need to deal with.

Activity

Next
  1. jgeewax
    added
    enhancement
    on Apr 21, 2014
  2. dhermes commented on Jan 3, 2015

    @dhermes
    dhermes
    on Jan 3, 2015
    Contributor
    More actions

    #488 combined with the new ease of creating Key via #451 will make this possible. Will close out #484 when complete.

    Now construction easy via:

    datastore.set_default_dataset()
    entity = Entity(key=Key('Person', 'jim'))
    entity['age'] = 80

    Future PRs may even allow specifying age=80 in the constructor.

  3. dhermes
    closed this as completedon Jan 3, 2015
  4. jgeewax
    modified the milestone: This milestone has been deleted on Jan 30, 2015
  5. JustinBeckwith
    assigned
    dhermes
    on Feb 1, 2021
  6. vchudnov-g
    added a commit that references this issue on Apr 19, 2023

    chore: Bump gapic-generator-python version to 1.3.0 (#82)

    b43e217
  7. parthea
    added 2 commits that reference this issue on Apr 20, 2023

    chore: Migrate code from googleapis/python-ids into packages/google-c…

    90d8f68

    chore: use gapic-generator-python 0.62.1 (#82)

    77a1733
  8. vchudnov-g
    added 3 commits that reference this issue on May 8, 2023

    feat: bump release level to production/stable (#82)

    e677c06

    chore: release 1.0.0 (#94)

    d21daf9

    chore(migration): Migrate code from googleapis/python-domains into pa…

    9d913ad
  9. parthea
    added 2 commits that reference this issue on May 31, 2023

    chore(python): disable dependency dashboard (#82)

    d942e5a

    chore(bazel): update protobuf to v3.21.3 (#82)

    5e40a00
  10. 89 remaining items

  11. parthea
    added 10 commits that reference this issue on Nov 24, 2025

    ci(python): run lint / unit tests as GH actions (#82)

    7dd6c5b

    chore: release 1.5.0 (#82)

    0f01ac8

    Fetch table and column descriptions (#82)

    c11defa

    build(python): enable flakybot on library unit and system tests (#82)

    0bcbe88

    fix: address failing tests with pandas 1.5.0 (#82)

    497df99

    chore(main): release 0.4.0 (#62)

    b92361f

    chore: reference main branch of google-cloud-python (#82)

    1d70c7c

    r/Datastore/"Error Reporting" (#82)

    6f0d868

    chore: release 2.0.0 (#82)

    021c7ac

    Add ID token verification helpers. (#82)

    da9eb64
  12. parthea
    added 5 commits that reference this issue on Mar 2, 2026

    Renovate: preserve semver ranges. (#82)

    02629d0

    dbapi: use sentinel type TimestampStr type to indicate Spanner.TIMESTAMP

    385162d

    feat: support table hints (#82)

    749f752

    docs(storage): add documentation for blob and bucket name property (#89)

    ae9b0d4

    fix: update backup timeouts (via synth) (#82)

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

Metadata

Metadata

Assignees

  • @dhermes
    dhermes

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.