A familiar API from the Web, adapted to storing data locally with Python.
Project description
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-url')
(replaceyour-app-url
with whatever you want (excluding: path separators/ \
or other disallowed characters in file name for your intended platform)) -
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.
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
Built Distribution
Hashes for localStoragePy-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eefe37a26b202e50d31924ae93e8ff4dad3657875f4f396c6472f574aabb3699 |
|
MD5 | e7f24560149c5262d606c6b4b9c5cba2 |
|
BLAKE2b-256 | 105c78b704416c447e12a4fe9c54c9d64a01fe7dc067ba2ce3be4907337a76bb |