Skip to main content

Localstorage for python with more tools

Project description

LocalStorage

Localstorage for python with more features


Installation

pip install localstorage

Usage (example)

import localstorage

# Create localstorage file if doesnt exist
if localstorage.LocalstorageFileExists('example.localstorage'):
 localstorage.load('example.localstorage')
else:
 localstorage.load(localstorage.CreateLocalstorageFile('example.localstorage'))

# Set Item
localstorage.setItem('Example',"123")
# Get item
print(localstorage.getItem('Example'))

# Clear all items in storage
localstorage.clear()

# Debugging
localstorage.LocalStorageSettings(debugging=True) # set this before other functions to debug correctly

Features

  • support info if the file is unreadable
  • identifier
  • full control over which file contains the data
  • change encoding
  • add metadata (supportlink,supportmail,identifier)

About

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

localstorage-1.0.3.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

localstorage-1.0.3-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file localstorage-1.0.3.tar.gz.

File metadata

  • Download URL: localstorage-1.0.3.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for localstorage-1.0.3.tar.gz
Algorithm Hash digest
SHA256 91812e76eb2e6d277bf9f6cd2ca8f908c846ef06556c4c2915a969f5e8e6e473
MD5 b198eb1753e9e2823f41a7fefa65c329
BLAKE2b-256 4deee92620a1ac444c08d360441e89fcea4dd13897b427b97e97af27cb6fb4c7

See more details on using hashes here.

File details

Details for the file localstorage-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: localstorage-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for localstorage-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 87f8e7345066008221526ca7614d672612b0246fbe131d75ffcfba0daae60d89
MD5 437c46599248aa2d1fe548450dd56422
BLAKE2b-256 d1020fe2af179ecb6324de54ceba5223b0d6bdafd01d44d5173c27e69fee9857

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page