Skip to content

Instantly share code, notes, and snippets.

Avatar
:bowtie:

Léon ROUX Nurrl

:bowtie:
View GitHub Profile
@Nurrl
Nurrl / main.py
Last active Jun 26, 2020
Transactionnal decorator for Python & GCP Datastore
View main.py
from google.cloud import datastore
from .transactionnal import transactionnal
client = datastore.Client('<project-id>', '<namespace>')
key = <get a key somehow>
##
# > @transactionnal(client)
# > def _():