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 — Datastore narrative example by tseaver · Pull Request #285 · googleapis/google-cloud-python

Conversation

@tseaver

@tseaver tseaver commented Oct 23, 2014

Copy link
Copy Markdown
Contributor

Add an example "expense reporting" application (command-line only), and use it as the basis for a bit of narrative documentation showing how to use the gcloud-python library to a "real-world" app.

Note that the app's scripts actually run, allowing CRUD of hierarchical employee, expense report, and expense item entities: they could be used for further regression testing.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
tseaver added 29 commits October 23, 2014 12:02
@tseaver
Science fiction for expense report example application.
240e9d6
@tseaver
Update science-fiction CLI.
6a913d3
@tseaver
Initial CLI skeleton to support datastore narrative example.
580fb03
@tseaver
PEP8
01d8f95
@tseaver
Suppress two useless PEP8 errors.
6426aba
- E124: closing bracket does not match visual indentation.

- E127: continuation line over-indented for visual indent.

They are over-opinionated, and without sufficient justification from the PEP.
@tseaver
Progress toward sample implementation.
943f9df
@tseaver
Get exp report creation actually working.
e95392e
@tseaver
Use same Oauth envvars as regression tests.
4f8c242
@tseaver
Enforce distinction between creating / updating expense reports.
d9c3af1
@tseaver
Add 'delete' command.
afb287e
@tseaver
Add checks for valid report status to update / delete commands.
e836913
@tseaver
Record metadata (description, created, updated) for expense reports.
ebae693
@tseaver
Make 'review_expenses list' work with live data.
666b6a4
@tseaver
Make 'review_expenses show' work with live data.
578d40a
@tseaver
Housekeeping.
31dd159
@tseaver
Reconcile command output w/ Sphinx.
7da8592
@tseaver
Drop unneeded base exception.
7a58c95
@tseaver
Get 'review_expenses {approve,reject}' working w/ live data.
b209068
@tseaver
Wire in the datastore narrative example.
a98b440
@tseaver
'csv' is not a known highlight syntax.
42ecfe8
@tseaver
Describe top-down flow of creating an expense report from a CSV file.
10e9f9f
@tseaver
Add narrative for 'update_report'.
5090a3b
Tweak 'create_report' to match.
@tseaver
Typos, clarifications.
44812da
@tseaver
Add discussion of 'review_expenses list'.
911ed7c
@tseaver
Require 'employee_id' arg for 'review_expenses show'.
8eadf43
@tseaver
Add discussion of 'review_expenses show'.
7f38c3a
@tseaver
Add discussion of 'review_expenses {approve,reject}'.
239d86f
@tseaver
Cross-ref overview narrative to functional sections.
021b797
@tseaver
Add discussion of 'submit_expenses delete'.
1579110
@tseaver tseaver added the api: datastore Issues related to the Datastore API. label Oct 23, 2014
parthea pushed a commit that referenced this pull request Sep 22, 2023
@gcf-owl-bot
chore(python): add nox session to sort python imports (#285)
b70fe23
Source-Link: googleapis/synthtool@1b71c10
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:00c9d764fd1cd56265f12a5ef4b99a0c9e87cf261018099141e2ca5158890416

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Sep 22, 2023
@gcf-owl-bot
chore(deps): update actions/download-artifact action to v3 (#285)
5df848c
Source-Link: googleapis/synthtool@38e11ad
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:4e1991042fe54b991db9ca17c8fb386e61b22fe4d1472a568bf0fcac85dcf5d3

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Oct 21, 2023
@gcf-owl-bot
chore: use gapic-generator-python 0.63.1 (#365)
4921fca
- [x] Regenerate this pull request now.

docs: add autogenerated code snippets
PiperOrigin-RevId: 426256923

Source-Link: googleapis/googleapis@9ebabfa

Source-Link: googleapis/googleapis-gen@a881752
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTg4MTc1MjYzZTYwYTFkNDVkM2E0NDc4NDg2NTJiMGY2NzBiMmNiOCJ9

Closes: #285
parthea pushed a commit that referenced this pull request Oct 21, 2023
@m-strzelczyk @leahecole
docs(samples): Adding samples for Spot VMs (#285)
28c7502
* docs(samples): Adding samples for Spot VMs

* Fixing tests perhaps

* Update samples/snippets/instances/spot/__init__.py

Co-authored-by: Leah E. Cole <[email protected]>

* Update samples/recipes/instances/spot/__init__.py

Co-authored-by: Leah E. Cole <[email protected]>

Co-authored-by: Leah E. Cole <[email protected]>
parthea pushed a commit that referenced this pull request Oct 21, 2023
@release-please
chore: release 3.6.1 (#285)
e1925bc
🤖 I have created a release \*beep\* \*boop\*
---
### [3.6.1](https://www.github.com/googleapis/python-translate/compare/v3.6.0...v3.6.1) (2021-11-04)


### Bug Fixes

* **deps:** drop packaging dependency ([7924322](https://www.github.com/googleapis/python-translate/commit/79243222e5e16e1b7cb50b9d69862ddf6023ad4f))
* **deps:** require google-api-core >= 1.28.0 ([7924322](https://www.github.com/googleapis/python-translate/commit/79243222e5e16e1b7cb50b9d69862ddf6023ad4f))


### Documentation

* list oneofs in docstring ([7924322](https://www.github.com/googleapis/python-translate/commit/79243222e5e16e1b7cb50b9d69862ddf6023ad4f))
* **samples:** Add Cloud Code tags for API Explorer pilot ([#282](https://www.github.com/googleapis/python-translate/issues/282)) ([3e8df68](https://www.github.com/googleapis/python-translate/commit/3e8df6836f0508fb4c6cd1c4a9f2f39192a01cea))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
parthea added a commit that referenced this pull request Oct 21, 2023
@renovate-bot @parthea @gcf-owl-bot
chore(deps): update all dependencies (#285)
dd890c1
* chore(deps): update all dependencies

* exclude python 3.6 from samples that require pillow9.0.0

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Anthonios Partheniou <[email protected]>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Oct 21, 2023
@renovate-bot
chore(deps): update dependency google-analytics-admin to v0.11.2 (#285)
9b5c45b
parthea pushed a commit that referenced this pull request Oct 21, 2023
@gcf-owl-bot
chore: use gapic generator python 1.4.1 (#285)
6b1aade
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 473833416

Source-Link: googleapis/googleapis@565a550

Source-Link: googleapis/googleapis-gen@1ee1a06
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMWVlMWEwNmM2ZGUzY2E4Yjg0MzU3MmMxZmRlMDU0OGY4NDIzNjk4OSJ9
parthea pushed a commit that referenced this pull request Oct 21, 2023
@gcf-owl-bot
chore: use gapic-generator-python 0.56.2 (#285)
67b7f7a
* chore: update Java and Python dependencies

PiperOrigin-RevId: 408420890

Source-Link: googleapis/googleapis@2921f9f

Source-Link: googleapis/googleapis-gen@6598ca8
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjU5OGNhOGNiYmY1MjI2NzMzYTA5OWM0NTA2NTE4YTVhZjZmZjc0YyJ9

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Oct 22, 2023
@gcf-owl-bot
chore(python): add .github/CODEOWNERS as a templated file (#285)
cb38e0e
Source-Link: googleapis/synthtool@c5026b3
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:0e18b9475fbeb12d9ad4302283171edebb6baf2dfca1bd215ee3b34ed79d95d7

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Oct 22, 2023
@renovate-bot
chore(deps): update dependency google-cloud-trace to v1.8.0 (#285)
998ce4d
parthea pushed a commit that referenced this pull request Sep 18, 2025
@tswast
BUG: Use object dtype for STRING, ARRAY, and STRUCT columns when ther…
dbf487b
…e are zero rows. (#285)

* BUG: Use object dtype for STRING, ARRAY, and STRUCT columns when there are zero rows.

If a there are no rows, the default dtype is used (which is now
float64, must previously have been object).

* Add PR number to changelog.

* Blacken
parthea pushed a commit that referenced this pull request Nov 22, 2025
@yoshi-automation
chore: add license headers (#285)
8b6e5d8
* changes without context

        autosynth cannot find the source of changes triggered by earlier changes in this
        repository, or by version upgrades to tools such as linters.

* chore: Add license headers for python config files

Source-Author: Anthonios Partheniou <[email protected]>
Source-Date: Tue Apr 6 11:32:03 2021 -0400
Source-Repo: googleapis/synthtool
Source-Sha: 5b5bf6d519b2d658d9f2e483d9f6f3d0ba8ee6bc
Source-Link: googleapis/synthtool@5b5bf6d
parthea pushed a commit that referenced this pull request Nov 24, 2025
@gcf-owl-bot
chore: update templated files (#285)
ace5b91
Source-Link: googleapis/synthtool@a37f74c
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:d3de8a02819f65001effcbd3ea76ce97e9bcff035c7a89457f40f892c87c5b32

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Nov 24, 2025
@release-please
chore(main): release 1.7.0 (#285)
b0777c1
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Nov 24, 2025
@gcf-owl-bot
chore(python): Add kokoro configs for python 3.10 samples testing (#285)
e06d26a
Source-Link: googleapis/synthtool@c6e69c4
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:58f73ba196b5414782605236dd0712a73541b44ff2ff4d3a36ec41092dd6fa5b

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Nov 24, 2025
Jim Fulton
fix: in-operator literal binds not handled properly (#285)
4127898
parthea added a commit that referenced this pull request Nov 24, 2025
@gcf-owl-bot @parthea
chore(python): bump idna from 3.4 to 3.7 in .kokoro (#285)
7e0e241
* chore(python): bump idna from 3.4 to 3.7 in .kokoro

Source-Link: googleapis/synthtool@d50980e
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:5a4c19d17e597b92d786e569be101e636c9c2817731f80a5adec56b2aa8fe070

* Apply changes from googleapis/synthtool#1950

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
parthea pushed a commit that referenced this pull request Nov 24, 2025
@gcf-owl-bot
chore(python): fix docs build (#285)
ddaa422
Source-Link: googleapis/synthtool@bef813d
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:94bb690db96e6242b2567a4860a94d48fa48696d092e51b0884a1a2c0a79a407

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea added a commit that referenced this pull request Nov 24, 2025
@parthea @daniel-sanche
chore: add library type to .repo-metadata.json (#285)
fecb4c3
parthea added a commit that referenced this pull request Nov 24, 2025
@parthea
chore: add library type to .repo-metadata.json (#285)
ce47bc1
parthea pushed a commit that referenced this pull request Nov 24, 2025
Chris Rossi
fix: Handle int for DateTimeProperty (#285)
51daf38
In Datastore, projection queries involving entities with DateTime
properties return integer timestamps instead of `datetime.datetime`
objects. This fix handles that case and returns `datetime.datetime`
objects regardless of the query type.

Fixes #261.
parthea added a commit that referenced this pull request Nov 25, 2025
@parthea @daniel-sanche
chore: add library type to .repo-metadata.json (#285)
5d9aa4b
parthea added a commit that referenced this pull request Nov 25, 2025
@parthea
chore: add library type to .repo-metadata.json (#285)
fa73d6d
parthea pushed a commit that referenced this pull request Mar 2, 2026
@renovate-bot
chore(deps): update dependency setuptools to v78 (#285)
5f931c5
parthea pushed a commit that referenced this pull request Mar 6, 2026
@odeke-em
spanner/dbapi: retry every statement in transaction stack
ec663e5
When retrying a transaction that failed, we MUST retry
every single prior statement as well as the current one,
until .commit() or .rollback() are invoked.

Fixes #285
Fixes #296
parthea pushed a commit that referenced this pull request Mar 9, 2026
Ilya Gurov
fix(db_api): revert Mutations API usage (#285)
8bf8623
* fix: revert #233

* update docstrings
parthea pushed a commit that referenced this pull request Mar 9, 2026
@release-please
chore: release 3.3.0 (#263)
8d2417b
🤖 I have created a release \*beep\* \*boop\*
---
## [3.3.0](https://www.github.com/googleapis/python-spanner/compare/v3.2.0...v3.3.0) (2021-03-25)


### Features

* add encryption_info to Database ([#284](https://www.github.com/googleapis/python-spanner/issues/284)) ([2fd0352](https://www.github.com/googleapis/python-spanner/commit/2fd0352f695d7ab85e57d8c4388f42f91cf39435))
* add support for CMEK ([#105](https://www.github.com/googleapis/python-spanner/issues/105)) ([e990ff7](https://www.github.com/googleapis/python-spanner/commit/e990ff70342e7c2e27059e82c8d74cce39eb85d0))
* add support for custom timeout and retry parameters in execute_update method in transactions ([#251](https://www.github.com/googleapis/python-spanner/issues/251)) ([8abaebd](https://www.github.com/googleapis/python-spanner/commit/8abaebd9edac198596e7bd51d068d50147d0391d))
* added retry and timeout params to partition read in database and snapshot class ([#278](https://www.github.com/googleapis/python-spanner/issues/278)) ([1a7c9d2](https://www.github.com/googleapis/python-spanner/commit/1a7c9d296c23dfa7be7b07ea511a4a8fc2c0693f))
* **db_api:** support executing several DDLs separated by semicolon ([#277](https://www.github.com/googleapis/python-spanner/issues/277)) ([801ddc8](https://www.github.com/googleapis/python-spanner/commit/801ddc87434ff9e3c86b1281ebfeac26195c06e8))


### Bug Fixes

* avoid consuming pending null values when merging ([#286](https://www.github.com/googleapis/python-spanner/issues/286)) ([c6cba9f](https://www.github.com/googleapis/python-spanner/commit/c6cba9fbe4c717f1f8e2a97e3f76bfe6b956e55b))
* **db_api:** allow file path for credentials ([#221](https://www.github.com/googleapis/python-spanner/issues/221)) ([1de0284](https://www.github.com/googleapis/python-spanner/commit/1de028430b779a50d38242fe70567e92b560df5a))
* **db_api:** ensure DDL statements are being executed ([#290](https://www.github.com/googleapis/python-spanner/issues/290)) ([baa02ee](https://www.github.com/googleapis/python-spanner/commit/baa02ee1a352f7c509a3e169927cf220913e521f))
* **db_api:** revert Mutations API usage ([#285](https://www.github.com/googleapis/python-spanner/issues/285)) ([e5d4901](https://www.github.com/googleapis/python-spanner/commit/e5d4901e9b7111b39dfec4c56032875dc7c6e74c))


### Documentation

* fix docstring types and typos ([#259](https://www.github.com/googleapis/python-spanner/issues/259)) ([1b0ce1d](https://www.github.com/googleapis/python-spanner/commit/1b0ce1d2986085ce4033cf773eb6c5d3b904473c))
* fix snapshot usage ([#291](https://www.github.com/googleapis/python-spanner/issues/291)) ([eee2181](https://www.github.com/googleapis/python-spanner/commit/eee218164c3177586b73278aa21495280984af89))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
parthea pushed a commit that referenced this pull request Mar 9, 2026
@dandhlee
chore: add comment for snapshotted versions (#285)
42ac994
ohmayr pushed a commit that referenced this pull request Mar 31, 2026
@renovate-bot @ohmayr
chore(deps): update dependency setuptools to v78 (#285)
7995389
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: datastore Issues related to the Datastore API.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@tseaver @dhermes @coveralls @silvolu @beriberikix
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.