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.2.tar.gz (13.4 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.2-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: localstorage-1.0.2.tar.gz
  • Upload date:
  • Size: 13.4 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.2.tar.gz
Algorithm Hash digest
SHA256 da05cbf6d235520e4d3dde99a8a6a3930488c8604328a4330399508eacd36cc0
MD5 7fd0d12c2d08b0fd87d2d9c5a36805ad
BLAKE2b-256 e85db35082b87f3beba99954dc57ae3a3f2c1aab379d1fca45502c9d1dac04a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: localstorage-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 12.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 60ac55e369b9687657840c84cc7eb86878c42f474d9c1f274b35df9f1da33bb3
MD5 edf93458fca7ec4d5ea7b35043aed1ff
BLAKE2b-256 ef3aa9829c826944af370a128a0c6d2411dc4c5a0fef38035ad9e8403c74cc82

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