Pylocalstorage
A package to store data on the hard disk (HD) and make it available to all Python applications running locally!
Version based on the pickle module. The pickle module implements binary protocols for serializing and de-serializing a Python object structure.
Installation
Simply install pylocalstorage package from PyPI
$ pip install pylocalstorage
Examples
>>> from pylocalstorage import LocalStorage
>>> ls = LocalStorage()
>>> ls.setItem("name", "David")
>>> ls.setItem("age", 29)
>>> ls.setItem("address", {"country": "Brazil", "city": "Manaus"})
>>> ls.length
3
>>> ls.setItem("name", "David Ferreira")
>>> ls.getItem("name")
'David Ferreira'
>>> ls.removeItem("name")
>>> import numpy as np
>>> ls.setItem("array", np.zeros((1080, 1920, 3), dtype=np.uint8))
>>> for i in range(ls.length):
... print(ls.key(i))
...
'address'
'age'
'array'
>>> ls.clear()
>>> ls.length
0
Metadata
Release files for pylocalstorage 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pylocalstorage-1.4.0.tar.gz | 3.6 kB | Details |
Release files / pylocalstorage-1.4.0.tar.gz
| Download URL | pylocalstorage-1.4.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e8bebb5bdb88aa4975b4e73d5ab88f8d67818d50aee0880c5cba5555b1cc368
|
|
BLAKE2b-256 checksum How to use checksums |
a3daae5a85f7d9de18b311db21ddda45523963d1fe94f70bab2d6e479dca94b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.11
|