Skip to content

Coding should be simple and fun. Certainly I will choose ForgiveDB.

License

Notifications You must be signed in to change notification settings

hui-z/ForgiveDB

Repository files navigation

logo

Package Updates Travis Codecov CodeHealth License README

  • What if no one accepts your PR ?
  • What if a lib upgrades their dependencies ?
  • What if you get a brand new requirement ?

forgive

lowdb is written in JavaScript, tinydb is not that tiny. ForgiveDB is your destiny.

ForgiveDB is a tiny database with no depencencies, supports in-memory or json-file storage.

Installation

Use pip. Oh you should learn it.

pip install forgive

Usage

Code is the best document. (Because we are not good at writing documents.)

from forgive import ForgiveDB

file_db = ForgiveDB('/some/path')
# file_db = ForgiveDB(r'C:\\some\\path')  # windows
file_db.set('key', 'value')
value = file_db.get('key')
default_value = file_db.get('no-such-key', 'default-value')

# Or in memory
memory_db = ForgiveDB()
memory_db.set(ForgiveDB, 'simple and interesting')
memory_db.get(ForgiveDB)  # simple and interesting

About

Coding should be simple and fun. Certainly I will choose ForgiveDB.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •  

Languages