Skip to content

tromoSM/LocalStorage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LocalStorage

Localstorage for python with more features

PyPI Downloads

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

About

better localstorage for python with identifiers and support information if the storage file is corrupted.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages