{"id":31967729,"url":"https://github.com/coderooz/python-flask-recipt-generator","last_synced_at":"2026-04-18T12:01:59.851Z","repository":{"id":310843818,"uuid":"1041427837","full_name":"coderooz/Python-Flask-Recipt-Generator","owner":"coderooz","description":"A simple yet powerful Receipt Generator built with Python (Flask), SQLite, and ReportLab. This tool allows you to create receipts through a clean web UI, store them locally, and export professional PDF receipts.","archived":false,"fork":false,"pushed_at":"2025-08-20T15:07:02.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-20T16:17:19.421Z","etag":null,"topics":["flask","flask-sqlalchemy","python","recipt-generator","reportlab-pdf","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/coderooz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null}},"created_at":"2025-08-20T13:23:33.000Z","updated_at":"2025-08-20T15:00:22.000Z","dependencies_parsed_at":"2025-08-20T16:17:39.636Z","dependency_job_id":"4d539ed2-06f3-44ed-bf45-6fb88a2ec568","html_url":"https://github.com/coderooz/Python-Flask-Recipt-Generator","commit_stats":null,"previous_names":["coderooz/python-flask-recipt-generator"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/coderooz/Python-Flask-Recipt-Generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderooz%2FPython-Flask-Recipt-Generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderooz%2FPython-Flask-Recipt-Generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderooz%2FPython-Flask-Recipt-Generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderooz%2FPython-Flask-Recipt-Generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderooz","download_url":"https://codeload.github.com/coderooz/Python-Flask-Recipt-Generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderooz%2FPython-Flask-Recipt-Generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279020361,"owners_count":26086866,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["flask","flask-sqlalchemy","python","recipt-generator","reportlab-pdf","sqlite"],"created_at":"2025-10-14T18:41:07.596Z","updated_at":"2025-10-14T18:41:19.127Z","avatar_url":"https://github.com/coderooz.png","language":"Python","readme":"# 🧾 Python Flask Receipt Generator\n\nA simple yet powerful **Receipt Generator** built with **Python (Flask)**, **SQLite**, and **ReportLab**.  \nThis tool allows you to create receipts through a clean web UI, store them locally, and export professional **PDF receipts**.\n\n---\n\n## 📂 Repository\n_GitHub_ : [coderooz/Python-Flask-Recipt-Generator](https://github.com/coderooz/Python-Flask-Recipt-Generator)\n\n---\n\n## 🚀 Features\n- Web-based UI for creating receipts\n- Local storage using **SQLite**\n- Professional **A4 PDF receipts** via ReportLab\n- Clean dark-themed interface\n- Two versions available:\n  - **Version 1**: Basic form with all fields (organization details must be entered every time)\n  - **Version 2**: Improved UI + persistent organization setup (saved once in `config.json`)\n\n---\n\n## 📦 Requirements\n- Python 3.9+\n- Virtual environment recommended\n\nInstall dependencies:\n\n```bash\npip install -r requirements.txt\n````\n\n---\n\n## ▶️ Running the Project\n\n```bash\npython app.py\n```\n\nVisit: **[http://127.0.0.1:5000](http://127.0.0.1:5000)**\n\n---\n\n## 📖 Versions\n\n### 🔹 Version 1 (Basic)\n\n* Organization details are entered **with each receipt**.\n* Simple UI for quick setup.\n* Good for quick demos or one-off use.\n\n\u003cdetails\u003e\n\u003csummary\u003eClick to view details\u003c/summary\u003e\n\n**Main files:**\n\n* `app.py`\n* `templates/base.html`\n* `templates/index.html`\n* `templates/receipt.html`\n\n**Flow:**\n\n1. User fills **organization + patient details** together.\n2. Data is saved in **SQLite**.\n3. Receipts can be **previewed** and **downloaded as PDF**.\n\n\u003c/details\u003e\n\n---\n\n### 🔹 Version 2 (Improved)\n\n* Organization details set **once at startup** via `/setup` (saved to `config.json`).\n* Receipts auto-include org info from config.\n* Cleaner UI with:\n\n  * Separate **Gender** and **Age** fields\n  * More generic labels (`Name`, `Guardian`, `Consultant`, etc.)\n  * Modern card/grid-based design\n* Flash messages for better feedback\n* Polished PDF export\n\n\u003cdetails\u003e\n\u003csummary\u003eClick to view details\u003c/summary\u003e\n\n**Main additions:**\n\n* `setup.html` – one-time org setup page\n* `static/style.css` – global modern styling\n* `config.json` – auto-saved org settings\n\n**Flow:**\n\n1. First run → redirected to `/setup`.\n2. Save org/clinic info.\n3. Create receipts with **only client details**.\n4. Preview receipt and **Download PDF**.\n\n\u003c/details\u003e\n\n---\n\n## 📷 Screenshots\n\n### Version 1\n\n*Form + Receipt Preview*\n![Version 1 Screenshot](https://github.com/coderooz/Python-Flask-Recipt-Generator/blob/main/screenshots/Receipt-Maker%20-%20Home.png)\n\n### Version 2\n\n*Setup + Modernized UI*\n![Version 2 Screenshot](https://github.com/coderooz/Python-Flask-Recipt-Generator/blob/main/screenshots/Recipt-Home%20Page(Receipt-Maker%20V2).png)\n\n---\n\n## 🛠️ Tech Stack\n\n* **Backend:** Flask\n* **Database:** SQLite (via SQLAlchemy ORM)\n* **PDF:** ReportLab\n* **Frontend:** Jinja2 templates + custom CSS (dark theme)\n\n---\n\n## 📌 Roadmap\n\n* [ ] Add MongoDB option\n* [ ] Add multiple line items per receipt\n* [ ] Export receipts history\n* [ ] Deployable via Docker\n\n---\n\n## 📜 License\n\n[MIT License](/LICENSE) © [coderooz](https://github.com/coderooz)\n\n---\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderooz%2Fpython-flask-recipt-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderooz%2Fpython-flask-recipt-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderooz%2Fpython-flask-recipt-generator/lists"}