{"id":18262351,"url":"https://github.com/devansh3712/pysql","last_synced_at":"2025-07-31T01:17:58.864Z","repository":{"id":37105058,"uuid":"347040692","full_name":"Devansh3712/PySQL","owner":"Devansh3712","description":"Python wrapper for making MySQL queries easier","archived":false,"fork":false,"pushed_at":"2023-03-13T05:04:23.000Z","size":236,"stargazers_count":11,"open_issues_count":7,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-12T10:51:38.515Z","etag":null,"topics":["cli","hacktoberfest","hacktoberfest2022","mysql","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/pysql-cli/","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/Devansh3712.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"devanshsingh","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://paypal.me/devansh3712"]}},"created_at":"2021-03-12T11:20:06.000Z","updated_at":"2025-05-21T14:43:35.000Z","dependencies_parsed_at":"2024-11-05T11:22:40.355Z","dependency_job_id":null,"html_url":"https://github.com/Devansh3712/PySQL","commit_stats":{"total_commits":150,"total_committers":8,"mean_commits":18.75,"dds":0.5533333333333333,"last_synced_commit":"0554529057e645c449ad582e0b91c6e400049417"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/Devansh3712/PySQL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devansh3712%2FPySQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devansh3712%2FPySQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devansh3712%2FPySQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devansh3712%2FPySQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Devansh3712","download_url":"https://codeload.github.com/Devansh3712/PySQL/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devansh3712%2FPySQL/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267972569,"owners_count":24174382,"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-07-30T02:00:09.044Z","response_time":70,"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":["cli","hacktoberfest","hacktoberfest2022","mysql","python"],"created_at":"2024-11-05T11:07:27.027Z","updated_at":"2025-07-31T01:17:58.813Z","avatar_url":"https://github.com/Devansh3712.png","language":"Python","readme":"\u003cp align = \"center\"\u003e\n  \u003ca href = \"https://devansh3712.github.io/PySQL/\"\u003e\u003cimg src = \"https://user-images.githubusercontent.com/58616444/113156144-57560f80-9257-11eb-85a1-1b834c072454.png\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align = \"center\"\u003e PySQL \u003c/h1\u003e\n\u003cp align = \"center\"\u003e\u003ci\u003e Python wrapper for making MySQL queries easier to execute \u003c/i\u003e\u003c/p\u003e\n\n\u003cp align = \"center\"\u003e\n  \u003ca href = \"https://www.python.org\"\u003e\u003cimg src=\"https://img.shields.io/badge/python%20-%2314354C.svg?\u0026style=for-the-badge\u0026logo=python\u0026logoColor=white\"/\u003e\u003c/a\u003e\n  \u003ca href = \"https://www.mysql.com/\"\u003e\u003cimg src=\"https://camo.githubusercontent.com/4524c09f8c821218b3c602e3e5a222ce00c290c2f87e264b40f398a6b486bd91/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d7973716c2d2532333030303030662e7376673f267374796c653d666f722d7468652d6261646765266c6f676f3d6d7973716c266c6f676f436f6c6f723d7768697465\"/\u003e\u003c/a\u003e\n  \u003ca href = \"./LICENSE\"\u003e\u003cimg src = \"https://img.shields.io/github/license/Devansh3712/PySQL?style=for-the-badge\"\u003e\u003c/a\u003e\n  \u003ca href = \"https://pypi.org/project/pysql-cli/\"\u003e\u003cimg src = \"https://img.shields.io/badge/PyPi-1.1.2-blue?style=for-the-badge\u0026logo=appveyor\"\u003e\u003c/a\u003e\n  \u003ca href = \"https://travis-ci.com/github/Devansh3712/PySQL\"\u003e\u003cimg src = \"https://img.shields.io/travis/Devansh3712/PySQL?style=for-the-badge\"\u003e\u003c/a\u003e\n  \u003ca href = \"https://app.codecov.io/gh/Devansh3712/PySQL/\"\u003e\u003cimg src = \"https://img.shields.io/codecov/c/github/Devansh3712/PySQL?style=for-the-badge\u0026token=QJ3LKMG9MT\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## Installation\n\n- Clone the repository to your local machine\n\n```console\ngit clone https://github.com/Devansh3712/PySQL.git\n```\n\n- Installation pre-requisites\n\n  - ``MySQL local server``\n\n- PyPi package\n\n\u003e Windows\n\n```console\npip install pysql-cli\n```\n\n\u003e Linux / MacOS\n\n```console\npip3 install pysql-cli\n```\n\n- Automatic Installation\n\nOpen the ``PySQL`` directory and run the install file\n\n\u003e Windows\n\n```console\ninstall.bat\n```\n\n\u003e Linux / MacOS\n\n```console\nchmod +x ./install.sh\n./install.sh\n```\n\n- Manual Setup\n\nOpen the ``PySQL`` directory\n\n\u003e using requirements.txt\n\n```console\npip install -r requirements.txt\n```\n\n## Usage\n\n- Using the pip package\n\n  - ``pysql``: Basic PySQL CLI\n  - ``cpysql``: Colored PySQL CLI\n\n```console\npysql\ncpysql\n```\n\n- Using the Python command-line wrapper `.py file`\n\n  - ``main.py``: Basic PySQL CLI\n  - ``main_c.py``: Colored PySQL CLI\n\n\u003e Windows\n\n```console\npython pysql/main.py\npython pysql/main_c.py\n```\n\n\u003e Linux\n\n```console\npython3 pysql/main.py\npython3 pysql/main_c.py\n```\n\n## Commands\n\nList of available commands\n\n```\nALL COMMANDS\n\n    select              TB_NAME, COLUMNS, ARGS      Displays selected columns of a table\n    insert      -s      TB_NAME, ARGS               Insert a single row in a table\n                -m      TB_NAME, NUM, ARGS          Insert `NUM` rows in a table\n                -f      TB_NAME, FILE_NAME          Insert values in a table from CSV file\n    update              TB_NAME, COLUMNS, ARGS      Updates values of columns in a table\n    delete              TB_NAME, COLUMN             Deletes values of row in a table\n    showdb                                          Display all databases in MySQL server\n    usedb                                           Use a database\n    createdb            DB_NAME                     Create a new database\n    dropdb              DB_NAME                     Delete a database\n    showtb                                          Display all tables in current db\n    createtb            TB_NAME, ARGS               Create a new table in current db\n    droptb              TB_NAME                     Delete a table in current db\n    trunctb             TB_NAME                     Truncate a table in current db\n    desctb              TB_NAME                     Display structure of a table in current db\n    altertb             TB_NAME, ARGS               Alter contents of table in current db\n    exportdb            DB_NAME, PATH               Export db as `.sql` file to path\n    exporttb    -json   TB_NAME, PATH               Export table as `.txt` file to path\n                -csv    TB_NAME, PATH               Export table as `.csv` file to path\n                -sql    TB_NAME, PATH               Export table schema as `.sql` file to path\n    exportall   -json   PATH                        Export all tables in db as `.txt` file to path\n                -csv    PATH                        Export all tables in db as `.csv` file to path\n                -sql    PATH                        Export all tables schema in db as `.sql` file to path\n    importdb            DB_NAME, PATH               Import `.sql` file into input database\n    importtb            DB_NAME, PATH               Import `.sql` table schema into input table\n```\n","funding_links":["https://ko-fi.com/devanshsingh","https://paypal.me/devansh3712"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevansh3712%2Fpysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevansh3712%2Fpysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevansh3712%2Fpysql/lists"}