{"id":28725485,"url":"https://github.com/eternity2745/flexi-mysql","last_synced_at":"2026-02-14T12:01:54.403Z","repository":{"id":275634476,"uuid":"926704985","full_name":"eternity2745/flexi-mysql","owner":"eternity2745","description":"Python package to connect and query with mysql database more easily","archived":false,"fork":false,"pushed_at":"2025-03-06T06:54:28.000Z","size":154,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-19T21:36:01.327Z","etag":null,"topics":["flexi-mysql","mysql","mysql-database","python","python-module","python-package","sql"],"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/eternity2745.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-03T18:10:45.000Z","updated_at":"2025-03-06T06:54:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c3abec0-1622-4856-a448-beff0cc25f21","html_url":"https://github.com/eternity2745/flexi-mysql","commit_stats":null,"previous_names":["eternity2745/flexi-mysql"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/eternity2745/flexi-mysql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eternity2745%2Fflexi-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eternity2745%2Fflexi-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eternity2745%2Fflexi-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eternity2745%2Fflexi-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eternity2745","download_url":"https://codeload.github.com/eternity2745/flexi-mysql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eternity2745%2Fflexi-mysql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29443468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T10:51:12.367Z","status":"ssl_error","status_checked_at":"2026-02-14T10:50:52.088Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["flexi-mysql","mysql","mysql-database","python","python-module","python-package","sql"],"created_at":"2025-06-15T12:00:46.152Z","updated_at":"2026-02-14T12:01:54.398Z","avatar_url":"https://github.com/eternity2745.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flexi MySQL\n[![PyPI version](https://badge.fury.io/py/flexi-mysql.svg)](https://badge.fury.io/py/flexi-mysql) [![PyPI Downloads](https://static.pepy.tech/badge/flexi-mysql)](https://pepy.tech/projects/flexi-mysql) [![Downloads](https://static.pepy.tech/badge/flexi-mysql/month)](https://pepy.tech/project/flexi-mysql) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\u003cp\u003eFlexi MySQL is a Python module designed to streamline the process of interacting with MySQL databases. This module offers a variety of functions that significantly reduce the need for manually typing queries, executing them, and handling the results or committing data to the database. Additionally, for scenarios requiring raw SQL queries, the module provides support for creating such queries using MySQL\n\n## Examples\n### Fetching results from the database\n```py\nimport flexi_mysql\nmyobj = flexi_mysql.connect(host=\"localhost\", user = \"root\",database=\"test\", password=\"\")\nprint(myobj.fetch_result(tables = [\"t1\"], where=\"id = 2\"))\n```\n### Close connection\n```py\nimport flexi_mysql \nmyobj = flexi_mysql.connect(host=\"localhost\", user = \"root\",database=\"test\", password=\"\")\nmyobj.close_connection()\n```\n### Update value in a table\n```py\nimport flexi_mysql\nmyobj =  flexi_mysql.connect(host=\"localhost\", user=\"root\", database=\"test\")\nmyobj.update_value(table_name=\"t1\", columns = [\"name\"], set_values=[\"Eternity\"], where = \"id = 4\")\n```\n### Fetching results from database using with statement\n```py\nimport flexi_mysql\nwith flexi_mysql.connect(host=\"localhost\", user=\"root\", database=\"test\") as myobj:\n    print(myobj.fetch_result(tables = [\"t1\"], where=\"id = 2\"))\n```\n## Documentation\n\n| Name | Description |\n|:--|:--|\n| `create_database` | Create New Database |\n| `drop_database` | Delete Database |\n| `create_table` | Create a new table |\n| `drop_table` | Deletes the specified table |\n| `truncate_table` | Deletes the contents from the specified table |\n| `show_tables` | Shows all tables in the connected database |\n| `show_databases` | Shows all databases |\n| `add_column` | Adds a new column to the specified table |\n| `drop_column` | Deletes the specified column from the table |\n| `modify_column` | Modify the colummn of a table |\n| `drop_primarykey` | Delete the primary key from the table specfied |\n| `drop_foreignkey` | Delete the foriegn key from the table specified |\n| `describe_table` | Shows the structure of the specified table |\n| `fetch_result` | Used to fetch results from the database |\n| `update_value` | Update the values in the specified table. |\n| `insert_value` | Used to insert a single set of values to the specified table. |\n| `insert_values` | Used to insert multiple sets of values to the specified table. |\n| `delete_value` | Deletes value(s) from the specified table |\n| `inner_join` | Used for INNER JOIN of two tables |\n| `left_join` | Used for LEFT JOIN of two tables |\n| `right_join` | Used for RIGHT JOIN of two tables |\n| `cross_join` | Used for CROSS JOIN of two tables |\n| `raw_query` | Used for fetching results from a table using MySQL Query |\n| `raw_update` | Used for updating values to a table using MySQL Query |\n| `raw_delete` | Used for deleting values from a table using MySQL Query |\n| `close_connection` | Used to close the connection to the database. |\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feternity2745%2Fflexi-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feternity2745%2Fflexi-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feternity2745%2Fflexi-mysql/lists"}