开发者

What is the best library in python to use to interface with a SQL database? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 9 years ag开发者_开发问答o.

Improve this question

I am currently processing text/html data and I wish to store my results in some sort of database. My current setup is Pydev with Eclipse.

  1. What is the best non-distributed database to use with my current development environment?

  2. What is the best library in python to use to interface with suggested database?


If you won't be using the database itself from multiple locations at once then you can use the built-in sqlite3 module with a SQLite database.


"Best" of course depends on your needs, and aside from "text/html data" you haven't given us anything to go on. One might say that a relational database is not the best way to store text/HTML data, but again without more info who could really say?

Given that you limited the answers to "SQL" in your title, however, I can at least suggest that the sqlalchemy package is quite possibly the "best" way to get to the database.

Ignacio's suggestion of using SQLite as the underlying database is also a good starting point -- and an ending point, as he hints, if an "embedded" database suffices for your needs. If you use sqlalchemy to get to it, you can keep the SQL out of your code, and if the need arises you can trivially swap SQLite out for a more powerful solution (e.g. PostgreSQL).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜