2

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.

Mohammad Efazati
4,9122 gold badges40 silver badges51 bronze badges
asked Apr 15, 2011 at 14:12

2 Answers 2

12

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.

answered Apr 15, 2011 at 14:18
Sign up to request clarification or add additional context in comments.

1 Comment

Support is crappy though. Many of the great features of using sqlite as an archive format aren't supported in python. Most notably, lack of blob offsets... which means you can't use sqlite in python as a file archive format... which is a massive use case for sqlite.
3

See APSW.

answered Apr 15, 2011 at 22:03

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.