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 localStorage as lc
-
Setup localStorage:
localStorage = lc('your-app-url')
(replaceyour-app-url
with whatever you want) -
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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1571dbb9cca8e8ce90627e30b28cdba5de6e3c040e1601db3ed3ecbe8e3aea6c |
|
MD5 | fff56e48e9e0dcb41338ec230fd79644 |
|
BLAKE2b-256 | 4532cea2d2c1349ccf0b16236c349769dad8561389c8c829613ab28b44555354 |