Storage Engine Documentation 
This project is a POC. Not production ready.
Tests
To run the tests:
$ pip install -r requirements/dev.txt
$ unit2 discover
Installing
It's simple:
$ pip install ga-storage-manager
How it works
In order make ga_storage_manager works you must define at least some env vars:
- STORAGE_MANAGER_ENGINE (required): Defines storage manager's engine.
FILESYSTEMis the only mode supported.
How to use
# -*- coding: utf-8 -*-
import os
from ga_storage_manager import StorageManager
db = StorageManager(storage_manager_engine=StorageManager.STORAGE_MANAGER_ENGINE_MODE_FILESYSTEM,
storage_manager_file_path=os.getenv('DATABASE_PATH',
os.path.join(os.path.dirname(os.path.realpath(__file__)),
os.getenv('DATABASE_NAME', "db.json"))))
db.save({"id": 34, "message": "You shall not pass!"})
db.get(34) # gets the data
db.list() # returns all data
db.delete(34) # deletes the data
Metadata
Release files for ga-storage-manager 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ga-storage-manager-1.0.3.tar.gz | 2.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ga_storage_manager-1.0.3-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 5.8 kB
Release files / ga-storage-manager-1.0.3.tar.gz
| Download URL | ga-storage-manager-1.0.3.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de9b29173d9c21f67c04bfff2883d6691d363e69194f5a0cfa7d7a8a57122f41
|
|
BLAKE2b-256 checksum How to use checksums |
466f457bbae7920d13fd8a96b6920c1d75e555722315638555d23c988d4d0147
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.10
|
Release files / ga_storage_manager-1.0.3-py2-none-any.whl
| Download URL | ga_storage_manager-1.0.3-py2-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
401eb2037f95f5538cbf07a7f79be4c8dbcd5451aadcf77923648a297afbe784
|
|
BLAKE2b-256 checksum How to use checksums |
42ff5b7552e0a81915c7c9490ccf0f2e48d596e210bd640c5e0269066f4c49b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.10
|
Security for ga-storage-manager 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.