Skip to content

Instantly share code, notes, and snippets.

🙌
Searching for a full-time job !

Léon ROUX Nurrl

🙌
Searching for a full-time job !
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 _():
You can’t perform that action at this time.