{"id":22877139,"url":"https://github.com/byoso/silly_db","last_synced_at":"2026-05-09T15:11:21.918Z","repository":{"id":46584110,"uuid":"474455738","full_name":"byoso/silly_db","owner":"byoso","description":"Minimalist ORM using sqlite3, simple but efficient.","archived":false,"fork":false,"pushed_at":"2022-09-24T21:38:46.000Z","size":86,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"alpha","last_synced_at":"2025-03-09T22:17:41.505Z","etag":null,"topics":["database","orm","orm-framework","python3","sql","sqlite3"],"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/byoso.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-26T20:11:15.000Z","updated_at":"2024-11-15T15:19:56.000Z","dependencies_parsed_at":"2022-09-13T23:10:26.615Z","dependency_job_id":null,"html_url":"https://github.com/byoso/silly_db","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byoso%2Fsilly_db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byoso%2Fsilly_db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byoso%2Fsilly_db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byoso%2Fsilly_db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/byoso","download_url":"https://codeload.github.com/byoso/silly_db/tar.gz/refs/heads/alpha","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246473628,"owners_count":20783313,"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","orm","orm-framework","python3","sql","sqlite3"],"created_at":"2024-12-13T15:30:00.604Z","updated_at":"2026-05-09T15:11:16.886Z","avatar_url":"https://github.com/byoso.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![logo silly db](https://i.goopics.net/60cef4.png)\n\n# Silly DB\n*Quick and easy SQLite ORM  for local python applications.*\n\n## Is it really an ORM ?\nIt is indeed a ***reversed*** ORM:\n\n- The structure of the DB is built from classic .sql files.\n- Then the magic occures to get the models **from** the DB itself. Usually, an ORM does the contrary.\n\nSome minimum SQL knowledge **is required**, the purpose of Silly DB is not to get rid of SQL (actualy, SQL is the best language to manage... a SQL database), but to handle the annoying things, and let you focus on your application with a minimum amount of code.\n\n## Installation\n\n```\n$ pip install silly-db\n```\n\n## Fast way to begin\n\nCreate a new directory and open a console in there.\n\nGet a basic working structure with 'plop':\n```\n$ silly-db plop db\n```\n\nCongratulations ! You've got your database ready to work !\nTo understand how it works, open the differents files provided and read the comments, it will be easy to adapt to your own needs.\n\nget more info with:\n```\n$ silly-db -h\n```\nand more about the plop options here:\n```\n$ silly-db plop\n```\n\n## Examples (simple CRUD)\n\n```python\n\nCat = db.model('cat') # model created from the existing database\n\nCat.sil.insert(name=\"Kutty\", owner_id=1)\ncats = Cat.sil.filter(\"name like 'K%'\")\nprint(cats.jsonify())\n\n\u003e\u003e\u003e[{'id': 58, 'name': 'Kutty', 'owner_id': 1}]\n\nCat.sil.update(\"id=58\", name=\"Duke\")\ncat = Cat.sil.get(\"id=58\")\nprint(cat.name)\n\u003e\u003e\u003e 'Duke'\n\nprint(cat.jsonify())\n\u003e\u003e\u003e{'id': 58, 'name': 'Duke', 'owner_id': 1}\n\nCat.sil.delete(\"id=58\")\n\n```\n\n## Documentation\nTake a look at the [wiki here](https://github.com/byoso/silly_db/wiki#silly-db-wiki)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyoso%2Fsilly_db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyoso%2Fsilly_db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyoso%2Fsilly_db/lists"}