localStoragePy
A familiar API from the Web, adapted to storing data locally with Python.
Get started
-
Install using PyPi:
$ pip3 install localStoragePy -
Import into your project:
from localStoragePy import localStoragePy -
Setup localStorage:
localStorage = localStoragePy('your-app-namespace', 'your-storage-backend')
-
your-app-namespace: whatever you want (example:me.jkelol111.mypythonapp) excluding path separators/ \or other disallowed characters in file name for your intended platform -
your-storage-backend: your preferred storage backend (sqliteby default).- Available storage backends:
text: text files for each storage item.sqlite: a single database for all storage items.json: a single JSON file for all storage items.
- Available storage backends:
- Use your typical localStorage syntax to store/read your strings:
-
localStorage.getItem(item) -
localStorage.setItem(item, value) -
localStorage.removeItem(item) -
localStorage.clear()
It's that familiar and simple.
When is this useful?
-
When you want to store tiny strings for your app...
-
Or your app's configuration in JSON...
Etcetra.
Metadata
Release files for localStoragePy 0.2.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 | Actions |
|---|---|---|---|---|
| localStoragePy-0.2.3.tar.gz | 3.5 kB | Without provenance | Details for localStoragePy-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| localStoragePy-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for localStoragePy-0.2.3-py3-none-any.whl |
Total release size: 8.1 kB
Release files / localStoragePy-0.2.3.tar.gz
| Download URL | localStoragePy-0.2.3.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4446afc2df066f2dde33430a0fd9416d86515f798346fc9aa16a11f615f20d7e
|
|
BLAKE2b-256 checksum How to use checksums |
d33ffae8e6790ec592b15838dc1cef03693da01cab42e88b358fd2315346eb38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1
|
Release files / localStoragePy-0.2.3-py3-none-any.whl
| Download URL | localStoragePy-0.2.3-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bcaaf07a5cbaab65c34cc4532a685b2a44243979d089d8d37a9c612ac743c0bf
|
|
BLAKE2b-256 checksum How to use checksums |
8bf07667a4946744de78acafa3ad9def1421d5a7b0ec821e5f37af2386ea2834
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1
|
Security for localStoragePy 0.2.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.