{"id":23206983,"url":"https://github.com/dino65-dev/aisql-ai-powered-sql-query-generator","last_synced_at":"2025-07-11T22:06:18.424Z","repository":{"id":266444193,"uuid":"898362214","full_name":"dino65-dev/AiSQL-AI-Powered-SQL-Query-Generator","owner":"dino65-dev","description":"AiSQL: AI-Powered SQL Query Generator","archived":false,"fork":false,"pushed_at":"2024-12-04T09:13:46.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T11:16:47.496Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://huggingface.co/spaces/spedrox-sac/AI_SQL_query","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/dino65-dev.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-12-04T09:03:02.000Z","updated_at":"2024-12-04T09:13:58.000Z","dependencies_parsed_at":"2024-12-04T10:19:58.955Z","dependency_job_id":"bb70ccf8-3fb2-45b6-bcac-2df87e44b830","html_url":"https://github.com/dino65-dev/AiSQL-AI-Powered-SQL-Query-Generator","commit_stats":null,"previous_names":["dino65-dev/aisql-ai-powered-sql-query-generator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dino65-dev/AiSQL-AI-Powered-SQL-Query-Generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dino65-dev%2FAiSQL-AI-Powered-SQL-Query-Generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dino65-dev%2FAiSQL-AI-Powered-SQL-Query-Generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dino65-dev%2FAiSQL-AI-Powered-SQL-Query-Generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dino65-dev%2FAiSQL-AI-Powered-SQL-Query-Generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dino65-dev","download_url":"https://codeload.github.com/dino65-dev/AiSQL-AI-Powered-SQL-Query-Generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dino65-dev%2FAiSQL-AI-Powered-SQL-Query-Generator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264904383,"owners_count":23681192,"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":"2024-12-18T17:17:15.885Z","updated_at":"2025-07-11T22:06:18.397Z","avatar_url":"https://github.com/dino65-dev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AiSQL: AI-Powered SQL Query Generator\n## AiSQL is a Streamlit-based application that leverages an AI model to convert natural language queries into SQL queries. It allows users to upload a CSV file, generate SQL queries based on the data, and execute those queries to retrieve results. The application also provides SQL query suggestions based on the uploaded data.\n\n## Features\n**Upload CSV File: Users can upload a CSV file to analyze.**\n**Natural Language to SQL: Convert natural language queries into SQL queries using an AI model.**\n**Execute SQL Queries: Run the generated SQL queries on the uploaded data and display the results.**\n**SQL Query Suggestions: Generate and display SQL query suggestions based on the uploaded data.**\n\n\n## Requirements\n```bash \npip install -r requirements.txt\n```\n**Create a ```.env``` File:**\n\nIn the root directory of your project, create a file named ```.env```.\nAdd your Hugging Face API token to the ```.env``` file.\n\n## Usage\n```bash\nstreamlit run app.py\n```\n- **Upload a CSV File:**\n\nClick on the \"Upload a CSV file\" button and select your CSV file.\nThe uploaded data will be displayed in a table format.\n- **Run a Natural Language Query:**\n\nEnter your query in plain English in the text area provided.\nClick on the \"Run Query/Code\" button.\nThe application will generate an SQL query, execute it, and display the results.\n- **Show Query Suggestions:**\n\nClick on the \"Show Query Suggestions\" button.\nThe application will generate and display 5 SQL query suggestions based on the uploaded data.\n- **Execute a Suggested Query:**\n\nSelect a query from the dropdown.\nClick on the \"Execute Selected Query\" button.\nThe application will execute the selected query and display the results.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdino65-dev%2Faisql-ai-powered-sql-query-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdino65-dev%2Faisql-ai-powered-sql-query-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdino65-dev%2Faisql-ai-powered-sql-query-generator/lists"}