{"id":19824526,"url":"https://github.com/fernando24164/flamel","last_synced_at":"2026-01-03T11:16:10.307Z","repository":{"id":239986323,"uuid":"799337093","full_name":"fernando24164/flamel","owner":"fernando24164","description":"A simple ORM for SQLite","archived":false,"fork":false,"pushed_at":"2024-05-19T19:51:16.000Z","size":93,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-19T20:44:50.864Z","etag":null,"topics":["orm","simple","sqlite"],"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/fernando24164.png","metadata":{"files":{"readme":"README.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-11T20:36:44.000Z","updated_at":"2024-06-01T21:33:23.268Z","dependencies_parsed_at":"2024-06-01T21:33:21.103Z","dependency_job_id":"8783ef3d-1a8d-46d7-92f0-b5d327ea1e2c","html_url":"https://github.com/fernando24164/flamel","commit_stats":null,"previous_names":["fernando24164/flamel"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fernando24164%2Fflamel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fernando24164%2Fflamel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fernando24164%2Fflamel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fernando24164%2Fflamel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fernando24164","download_url":"https://codeload.github.com/fernando24164/flamel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243801609,"owners_count":20350106,"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":["orm","simple","sqlite"],"created_at":"2024-11-12T11:04:17.982Z","updated_at":"2026-01-03T11:16:10.263Z","avatar_url":"https://github.com/fernando24164.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n   \u003cimg src=\"logo/logo_flamel.jpeg\" alt=\"Flamel Logo\" width=\"200\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca src=\"https://pypi.org/project/flamel-orm\"\u003e\n        \u003cimg alt=\"python version\" src=\"https://img.shields.io/pypi/pyversions/flamel-orm.svg\" /\u003e\n    \u003c/a\u003e\n    \u003cimg alt=\"CI\" src=\"https://github.com/fernando24164/flamel/actions/workflows/python-test.yml/badge.svg\"\u003e\n\u003c/p\u003e\n\n# Table of Contents\n\n* [Description](#description)\n* [Installation](#installation)\n* [Usage](#usage)\n* [License](#license)\n\n\n## ➤ Description\n\nA declarative ORM from scratch, compatible with SQLite\n\n## ➤ Installation\n\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install flamel.\n\n```bash\npip install flamel-orm\n```\n\n## 📚 Usage\n\n```python\nfrom flamel.base import Base\nfrom flamel.column import Column, Integer, String\n\n\nclass Worker(Base):\n    id = Column(\"id\", Integer, primary_key=True, autoincrement=True)\n    name = Column(\"name\", String, nullable=False, unique=True)\n    email = Column(\"mail\", String, nullable=False, unique=True)\n\n\nBase.set_engine(\"company.db\")\n\nBase.create_tables()\n\nworker = Worker(name='John Doe', email='john.doe@example.com')\nworker2 = Worker(name='Jane Smith', email='jane.smith@example.com')\nworker3 = Worker(name='Mike Johnson', email='mike.johnson@example.com')\n\nBase.insert(worker)\nBase.insert(worker2)\nBase.insert(worker3)\n\nquery = Worker.query().select().filter(name=\"John Doe\")\nprint(query)\nresult = query.execute()\nprint(result)\n\nBase.engine_close()\n```\n\n## ➤ Roadmap\n\n- [x] MVP of the ORM\n- [x] Implement a way to insert data\n- [x] Implement group_by\n- [x] Implement having\n\n## ➤ Credits\n\nThis project is thanks to other projects and people:\n\n- [SQLAlchemy architecture](https://aosabook.org/en/v2/sqlalchemy.html) -\n\n- [SQLAlchemy github](https://github.com/sqlalchemy/sqlalchemy) -\n\n## ➤ License\n\nLicensed under [MIT](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffernando24164%2Fflamel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffernando24164%2Fflamel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffernando24164%2Fflamel/lists"}