Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Easy SQLite wrappers for Python

Are there any other SQLite wrappers for Python available, comparable to Rococheting's mySQL wrapper for php?

http://www.ricocheting.com/code/php/mysql-database-class-wrapper-v3

If no such thing exists at the time I guess I'll create my own wrapper, but I want to make sure I'm not doing redundant work.

like image 394
skerit Avatar asked Feb 28 '26 04:02

skerit


1 Answers

SQLite is part of Python standard library since Python 2.5. The API is similar to your linked PHP MySQL class wrapper (you will be working with modules and functions instead of static class methods).

If you're looking for an alternative API, you can use SQLAlchemy. You don't have to use the ORM if you don't need it, you could just use SQLAlchemy's SQL Expression Language API. As bonus, most of your queries will run in all database backends supported by SQLAlchemy, not just SQLite.

like image 176
Imran Avatar answered Mar 01 '26 17:03

Imran



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!