Retirable resources for Firestore.
Project description
# Retirable resources
A Python library for using Google Cloud Firestore to manage resources have a lifecycle: creation -> use -> retirement.
During “use”, each resource can be used for different purposes by a set of “owners”. Each owner can retire their use of the resource independently of other owners. When all owners have retired a resource, it is automatically retired.
## Testing
Run the emulator with firebase emulators:start –project foo
Then run the tests with python -m unittest
## TODO
Script up running the emmulator, and passing its port to the test script
emulators:exec *scriptpath*
see <https://firebase.google.com/docs/emulator-suite/install_and_configure> also useful: <https://firebase.google.com/docs/emulator-suite/connect_firestore#web>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for retirable_resources-0.1.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c3272d0795496c73dc65ad4c3fa0cff0cc29c725e7d3c109cbdb9b883f70f37 |
|
MD5 | 46cd682d3730fe574cee7854260c7c23 |
|
BLAKE2b-256 | 32482e6f283a71a25e982449d97a4b163cd11292e1322192fe81684df663236e |