{"id":23385477,"url":"https://github.com/hui-z/forgivedb","last_synced_at":"2026-02-18T03:31:37.964Z","repository":{"id":57431901,"uuid":"96213166","full_name":"hui-z/ForgiveDB","owner":"hui-z","description":"Coding should be simple and fun. Certainly I will choose ForgiveDB.","archived":false,"fork":false,"pushed_at":"2020-04-02T02:21:56.000Z","size":115,"stargazers_count":66,"open_issues_count":0,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-09T16:49:29.496Z","etag":null,"topics":["database","json-database","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hui-z.png","metadata":{"files":{"readme":"README.cn.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-04T11:57:29.000Z","updated_at":"2025-04-09T07:18:17.000Z","dependencies_parsed_at":"2022-09-02T11:01:38.875Z","dependency_job_id":null,"html_url":"https://github.com/hui-z/ForgiveDB","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hui-z%2FForgiveDB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hui-z%2FForgiveDB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hui-z%2FForgiveDB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hui-z%2FForgiveDB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hui-z","download_url":"https://codeload.github.com/hui-z/ForgiveDB/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248339287,"owners_count":21087213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","json-database","python"],"created_at":"2024-12-22T00:18:19.491Z","updated_at":"2026-02-18T03:31:32.944Z","avatar_url":"https://github.com/hui-z.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![logo](https://rawgit.com/hui-z/ForgiveDB/master/pics/logo.svg)\n\n[![Package](https://img.shields.io/pypi/v/forgive.svg)](https://pypi.python.org/pypi/forgive)\n[![Updates](https://pyup.io/repos/github/hui-z/ForgiveDB/shield.svg)](https://pyup.io/repos/github/hui-z/ForgiveDB/)\n[![Travis](https://img.shields.io/travis/hui-z/ForgiveDB.svg)](https://travis-ci.org/hui-z/ForgiveDB)\n[![Codecov](https://img.shields.io/codecov/c/github/hui-z/ForgiveDB.svg)](http://codecov.io/github/hui-z/ForgiveDB?branch=master)\n[![CodeHealth](https://landscape.io/github/hui-z/ForgiveDB/master/landscape.svg?style=flat)](https://landscape.io/github/hui-z/ForgiveDB/master)\n[![License](https://img.shields.io/github/license/hui-z/ForgiveDB.svg)](https://github.com/hui-z/ForgiveDB/blob/master/LICENSE)\n[![README](https://img.shields.io/badge/Intro-En-brightgreen.svg)](https://github.com/hui-z/ForgiveDB/blob/master/README.md)\n\n* 没人帮你合 Pull Request 怎么办 ?\n* 第三方库老是要升依赖版本怎么办 ?\n* 老是有新的需求怎么办 ?\n\n![forgive](https://rawgit.com/hui-z/ForgiveDB/master/pics/forgive.jpg)\n\n[lowdb](https://github.com/typicode/lowdb) 是 JS 写的，\n[tinydb](http://tinydb.readthedocs.io/en/latest/intro.html) 也不够小。\n[ForgiveDB](https://github.com/hui-z/ForgiveDB) 才是你的归宿。\n\nForgiveDB 是一个无依赖的微型数据库，\n支持内存存储和 JSON 文件格式存储。\n\n\n## 安装\n\n使用 [pip](https://pip.pypa.io/) 一键安装，这可是个好东西。\n\n``` python\npip install forgive\n```\n\n\n## 用法\n\n代码就是最好的文档\n（其实是因为我们文档写的烂）\n\n``` python\nfrom forgive import ForgiveDB\n\nfile_db = ForgiveDB('/some/path')\n# file_db = ForgiveDB(r'C:\\\\some\\\\path')  # windows\nfile_db.set('key', 'value')\nvalue = file_db.get('key')\ndefault_value = file_db.get('no-such-key', 'default-value')\n\n# Or in memory\nmemory_db = ForgiveDB()\nmemory_db.set(ForgiveDB, 'simple and interesting')\nmemory_db.get(ForgiveDB)  # simple and interesting\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhui-z%2Fforgivedb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhui-z%2Fforgivedb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhui-z%2Fforgivedb/lists"}