Skip to main content

localStoragePy

HitCount PyPI Travis (.org) GitHub issues PyPI - License

A familiar API from the Web, adapted to storing data locally with Python.

Get started

  1. Install using PyPi: $ pip3 install localStoragePy

  2. Import into your project: from localStoragePy import localStoragePy

  3. Setup localStorage: localStorage = localStoragePy('your-app-namespace', 'your-storage-backend')

  • your-app-namespace: whatever you want (example: me.jkelol111.mypythonapp) excluding path separators / \ or other disallowed characters in file name for your intended platform

  • your-storage-backend: your preferred storage backend (sqlite by default).

    • Available storage backends:
      • text: text files for each storage item.
      • sqlite: a single database for all storage items.
      • json: a single JSON file for all storage items.
  1. 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.

Release files for localStoragePy 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for localStoragePy 0.2.3
File Size Uploaded
localStoragePy-0.2.3.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for localStoragePy 0.2.3
File Interpreter ABI Platform
localStoragePy-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 8.1 kB

Release files / localStoragePy-0.2.3.tar.gz

Download URL localStoragePy-0.2.3.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4446afc2df066f2dde33430a0fd9416d86515f798346fc9aa16a11f615f20d7e
BLAKE2b-256 checksum
How to use checksums
d33ffae8e6790ec592b15838dc1cef03693da01cab42e88b358fd2315346eb38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

Release files / localStoragePy-0.2.3-py3-none-any.whl

Download URL localStoragePy-0.2.3-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bcaaf07a5cbaab65c34cc4532a685b2a44243979d089d8d37a9c612ac743c0bf
BLAKE2b-256 checksum
How to use checksums
8bf07667a4946744de78acafa3ad9def1421d5a7b0ec821e5f37af2386ea2834
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.7

2 release files

0.1.6

1 release file

0.1.5

1 release file

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page