{"id":27798075,"url":"https://github.com/devlm7/7_sqlite_db","last_synced_at":"2025-04-30T22:55:20.504Z","repository":{"id":288457814,"uuid":"968177585","full_name":"DevLM7/7_SQLite_db","owner":"DevLM7","description":"The goal is to create a small SQLite database in Python, insert sample sales data, perform simple SQL queries to get total quantity sold and revenue per product, and visualize the results using a bar chart. It’s a great hands-on exercise for combining SQL, pandas, and matplotlib in a Python script.","archived":false,"fork":false,"pushed_at":"2025-04-17T16:29:06.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-30T22:55:17.650Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DevLM7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-04-17T16:27:00.000Z","updated_at":"2025-04-17T16:29:10.000Z","dependencies_parsed_at":"2025-04-18T06:57:53.783Z","dependency_job_id":"f1fcdfd8-8bcc-4572-b137-af480a568759","html_url":"https://github.com/DevLM7/7_SQLite_db","commit_stats":null,"previous_names":["devlm7/7_sqlite_db"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevLM7%2F7_SQLite_db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevLM7%2F7_SQLite_db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevLM7%2F7_SQLite_db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevLM7%2F7_SQLite_db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevLM7","download_url":"https://codeload.github.com/DevLM7/7_SQLite_db/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251795420,"owners_count":21645022,"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":[],"created_at":"2025-04-30T22:55:19.950Z","updated_at":"2025-04-30T22:55:20.494Z","avatar_url":"https://github.com/DevLM7.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🧾 SQLite Sales Summary in Python\n\nThis project demonstrates how to:\n\n- Create a SQLite database using Python\n- Store and query basic sales data\n- Summarize and visualize sales using SQL, pandas, and matplotlib\n\n## 📦 Project Overview\n\nThe script performs the following:\n\n1. Creates a SQLite database `sales_data.db`\n2. Creates a `sales` table and inserts sample data\n3. Calculates total quantity sold and revenue for each product using SQL\n4. Loads the results into a pandas DataFrame\n5. Displays a printed summary and a bar chart of revenue by product\n\n## 🛠️ Tools Used\n\n- **Python 3**\n- **SQLite (via `sqlite3`)**\n- **pandas**\n- **matplotlib**\n\n## 📂 Files\n\n- `online_sales_data.py` – Main script that runs the entire workflow\n- `sales_data.db` – SQLite database file (created automatically when the script runs)\n- `sales_chart.png` – Bar chart of revenue by product (saved automatically)\n\n## ✅ Learning Outcomes\n\n- Working with SQLite databases in Python\n- Writing basic SQL aggregation queries\n- Importing SQL query results into pandas\n- Visualizing summaries with matplotlib\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlm7%2F7_sqlite_db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevlm7%2F7_sqlite_db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlm7%2F7_sqlite_db/lists"}