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 Distributions
Built Distribution
Hashes for localStoragePy-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7d54952b8c3de91cb745ccd1c4b286e362ab85df7fb50114a4a578b210a5ff6 |
|
MD5 | 3e21bdb806169f002c8183c8e7f3af89 |
|
BLAKE2b-256 | 7cb9effe09b6932e52c69276e15604145463c4251308964fa3d092678f19d802 |