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
File details
Details for the file retirable_resources-0.1.9.tar.gz
.
File metadata
- Download URL: retirable_resources-0.1.9.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b62c77a1f855dde66d92b4547ae27db9183dfcf78e4c3ec78984eacea0b61d03 |
|
MD5 | aa70b059c731e4ade8b8ab92d47a1516 |
|
BLAKE2b-256 | e9e37507cdb80d6bc6fdd14456f3f9d3caa48813382b8f8ced38d998b44e0e56 |