Skip to main content
Help us improve Python packaging – donate today!

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

Project Description

logo

logo

Package Updates CI Coverage CodeHealth License README

  • What if no one accept your PR ?
  • What if lib upgrade their dependency ?
  • What if you got a brand new requirement ?
forgive

forgive

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

ForgiveDB is a small, independent database, 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

Release history Release notifications

This version
History Node

1.0.0

History Node

0.0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
forgive-1.0.0.linux-x86_64.tar.gz (3.2 kB) Copy SHA256 hash SHA256 Source None Jul 30, 2017
forgive-1.0.0-py3-none-any.whl (4.5 kB) Copy SHA256 hash SHA256 Wheel py3 Jul 30, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page