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.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f13b3d04b87976f5508b890bcea3b923df6ef853f3d748fac18b9364a8f7dd8e |
|
MD5 | cc735d22202a89d61b65ba39961a9a01 |
|
BLAKE2b-256 | 7f3909850952fc9d5124eaae899cc61a1d75244fa435d84bf22be41c595219d8 |