{"id":17175965,"url":"https://github.com/muntashirakon/python-sqlite","last_synced_at":"2025-03-24T21:25:22.791Z","repository":{"id":102803225,"uuid":"44589157","full_name":"MuntashirAkon/Python-SQLite","owner":"MuntashirAkon","description":"SQLite module for Python with PHP MySQLi like syntax","archived":false,"fork":false,"pushed_at":"2016-01-02T14:20:47.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T02:59:37.678Z","etag":null,"topics":[],"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/MuntashirAkon.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}},"created_at":"2015-10-20T07:21:11.000Z","updated_at":"2020-03-03T07:48:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"3808e896-41bd-4bed-9e43-c2170ea7e642","html_url":"https://github.com/MuntashirAkon/Python-SQLite","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuntashirAkon%2FPython-SQLite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuntashirAkon%2FPython-SQLite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuntashirAkon%2FPython-SQLite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuntashirAkon%2FPython-SQLite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MuntashirAkon","download_url":"https://codeload.github.com/MuntashirAkon/Python-SQLite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245353651,"owners_count":20601393,"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-10-14T23:58:33.171Z","updated_at":"2025-03-24T21:25:22.765Z","avatar_url":"https://github.com/MuntashirAkon.png","language":"Python","readme":"# Python SQLite\nSQLite Database handler in Python with PHP-MySQLi like syntax\n\n## Builds\nmaster: [![Build Status](https://travis-ci.org/MuntashirAkon/Python-SQLite.svg?branch=master)](https://travis-ci.org/MuntashirAkon/Python-SQLite)\nv0.1.0: [![Build Status](https://travis-ci.org/MuntashirAkon/Python-SQLite.svg?branch=v0.1.0)](https://travis-ci.org/MuntashirAkon/Python-SQLite)\n\n## Documentation\nFull documentation is covered in the [wiki page](https://github.com/MuntashirAkon/Python-SQLite/wiki).\n\nHere's an quick example:\n``` python\nfrom sqlite import SQLite\n# notice: you don't need to import sqlite3 module\n\nsqlite = SQLite(\":memory:\")\n\n# creates table\nstmt = sqlite.prepare(\"\"\"CREATE TABLE sample (\n        ID integer PRIMARY KEY AUTOINCREMENT NOT NULL,\n        Name text\n        )\"\"\")\nstmt.execute()\nstmt.close()\n\n# insert a value\nname = \"Muntashir\"\nstmt = sqlite.prepare(\"INSERT INTO sample (Name) VALUES (?)\")\nstmt.bind_param('s', name)\nstmt.execute()\nif stmt.affected_rows \u003e 0:\n    print(stmt.affected_rows, \"rows added.\")\n    print(\"inserted id:\", stmt.insert_id)\nstmt.close()\n\n# select from table\nstmt = sqlite.prepare(\"SELECT * FROM sample\")\nstmt.execute()\nstmt.store_result()\nif stmt.num_rows \u003e 0:\n    name = []\n    id = []\n    print(\"ID\\tName\")\n    for i in range(0, stmt.num_rows):\n        stmt.bind_result(id, name)\n        stmt.fetch()\n        print(\"{}\\t{}\".format(id[0], name[0]))\nstmt.close()\nsqlite.close()\n```\n\n## Contribute\nContribution is always welcome. If you have better ideas or coding, you can always create a pull request or new issue.\n\n## License\nThis project is licensed under [MIT License](https://github.com/MuntashirAkon/Python-SQLite/blob/master/LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuntashirakon%2Fpython-sqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuntashirakon%2Fpython-sqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuntashirakon%2Fpython-sqlite/lists"}