473,554 Members | 2,162 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

[ANN] pysqlite 2.5.0 released

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

pysqlite 2.5.0 released
=============== ========

I'm pleased to announce the availability of pysqlite 2.5.0. This is
a release with major new features.

Go to http://pysqlite.org/ for downloads, online documentation and
reporting bugs.

What is pysqlite?

pysqlite is a DB-API 2.0-compliant database interface for SQLite.

SQLite is a in-process library that implements a self-contained,
serverless, zero-configuration, transactional SQL database
engine.

pysqlite makes this powerful embedded SQL engine available to
Python programmers. It stays compatible with the Python database
API specification 2.0 as much as possible, but also exposes most
of SQLite's native API, so that it is for example possible to
create user-defined SQL functions and aggregates in Python.

If you need a relational database for your applications, or even
small tools or helper scripts, pysqlite is often a good fit. It's
easy to use, easy to deploy, and does not depend on any other
Python libraries or platform libraries, except SQLite. SQLite
itself is ported to most platforms you'd ever care about.

It's often a good alternative to MySQL, the Microsoft JET engine
or the MSDE, without having any of their license and deployment
issues.

pysqlite can be downloaded from http://pysqlite.org/ - Sources and
Windows binaries for Python 2.5, 2.4 and Python 2.3 are available.

=======
CHANGES
=======

- - Windows binaries are now cross-built using mingw on Linux
- - import various fixes from Python 2.6 version
- - Connection has new method iterdump() that allows you to create
a script file
that can be used to clone a database
- - the docs are now built using Sphinx and were imported from
Python 2.6's sqlite3 module
- - Connection.enab le_load_extensi on(enabled) to allow/disallow extension
loading. Allows you to use fulltext search extension, for example ;-)
- - Give the remaining C functions used in multiple .c source files
the pysqlite_ prefix.
- - Release GIL during sqlite3_prepare () calls for better concurrency.
- - Automatically download the SQLite amalgamation when building
statically.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIwZV3dIO 4ozGCH14RAp1YAJ wPIdgtCZY7E8YcD UjO/dzoAThblgCggfhs
OATfXAb6JYXqb8e Tadl9k74=
=KU3f
-----END PGP SIGNATURE-----
Sep 5 '08 #1
5 2320
Hi,

- - Connection.enab le_load_extensi on(enabled) to allow/disallow extension
loading. Allows you to use fulltext search extension, for example ;-)
The following code (from the docs) produces an error:

from pysqlite2 import dbapi2 as sqlite3
con = sqlite3.connect (":memory:")
# Load the fulltext search extension
con.enable_load _extension(True )
con.execute("se lect load_extension( './fts3.so')")
con.enable_load _extension(Fals e)
Error is:

con.execute("se lect load_extension( './fts3.so')")
pysqlite2._sqli te.OperationalE rror: Das angegebene Modul wurde nicht gefunden.

Where should I look for the module?

Matthias
Sep 7 '08 #2
Matthias Huening wrote:
Hi,
>- - Connection.enab le_load_extensi on(enabled) to allow/disallow extension
loading. Allows you to use fulltext search extension, for example ;-)

The following code (from the docs) produces an error:

from pysqlite2 import dbapi2 as sqlite3
con = sqlite3.connect (":memory:")
# Load the fulltext search extension
con.enable_load _extension(True )
con.execute("se lect load_extension( './fts3.so')")
con.enable_load _extension(Fals e)
Error is:

con.execute("se lect load_extension( './fts3.so')")
pysqlite2._sqli te.OperationalE rror: Das angegebene Modul wurde nicht
gefunden.

Where should I look for the module?
The sources are in ext/fts3 in the SQLite source tree. I haven't found
any Makefile, so I it myself using this gcc command:

$ cd .../ext/fts3
$ gcc -shared -o ~/src/gh/pysqlite/build/lib.linux-i686-2.5/fts3.so *.c
-lsqlite3

-- Gerhard

Sep 8 '08 #3
Gerhard Häring (08.09.2008 10:12):
>
>Error is:

con.execute("s elect load_extension( './fts3.so')")
pysqlite2._sql ite.Operational Error: Das angegebene Modul wurde nicht
gefunden.

Where should I look for the module?

The sources are in ext/fts3 in the SQLite source tree. I haven't found
any Makefile, so I it myself using this gcc command:

$ cd .../ext/fts3
$ gcc -shared -o ~/src/gh/pysqlite/build/lib.linux-i686-2.5/fts3.so *.c
-lsqlite3
Thanks!
Will fts3 be integrated in the Python 2.6 release?

Matthias
Sep 8 '08 #4
Matthias Huening wrote:
Gerhard Häring (08.09.2008 10:12):
>>
>>Error is:

con.execute(" select load_extension( './fts3.so')")
pysqlite2._sq lite.Operationa lError: Das angegebene Modul wurde nicht
gefunden.

Where should I look for the module?

The sources are in ext/fts3 in the SQLite source tree. I haven't found
any Makefile, so I it myself using this gcc command:

$ cd .../ext/fts3
$ gcc -shared -o ~/src/gh/pysqlite/build/lib.linux-i686-2.5/fts3.so
*.c -lsqlite3

Thanks!
Will fts3 be integrated in the Python 2.6 release?
No (only relevant on win32, where we also ship the SQLite DLL). Neither
will be the ability to load extensions modules. It's just too late to
add features now.

But AFAIK it's possible to compile a custom SQLite with appropriate
flags to ./configure that will include the fulltext search extension.

-- Gerhard

Sep 8 '08 #5

On Sep 8, 2008, at 1:56 PM, Gerhard Häring wrote:
But AFAIK it's possible to compile a custom SQLite with appropriate
flags to ./configure that will include the fulltext search extension.
It's indeed rather straightforward to integrate FTS, e.g.:

% CFLAGS="-DSQLITE_ENABLE_ FTS3=1" ./configure
% sudo make install

"Full-Text Search on SQLite"
http://blog.michaeltrier.com/tags/fts

Here is an example of FTS at work:

http://svr225.stepx.com:3388/search?q=chicago

Cheers,

--
PA.
http://alt.textdrive.com/nanoki/

Sep 8 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1276
by: Alexander DEJANOVSKI | last post by:
JyRetic 1.0RC3 was just released. (http://retic.sourceforge.net) Changes are (I might have forgotten some bug fixes): - Bug fix : Scheduled events didn't work if no parameter file was required - Improvement : Speeded up SQL source when there were several records to extract (~x10) - Improvement : since JDBC drivers return rowcount on...
8
2474
by: Martin Maney | last post by:
Apologies if this isn't news here - I've been too busy this last week or so for even skimming the traffic here, in part because I've been messing around with Ubuntu's preview release on a spare machine... and, of course, spending time on their very busy mailing list. :-) I didn't find any mention of Ubuntu in a quick scan of recent messages,...
2
2059
by: F. GEIGER | last post by:
In my wxPython-app a part of it gathers data, when a button is pressed, and stores it into a db. The GUI part should display the stuff being stored in the db. When both parts work on the same connection, I get "SQL statements in progress errors". Seems ok to me, you can't do that. So, next step: Both parts get a separate connection. Now...
6
1389
by: Chad Z. Hower aka Kudzu | last post by:
I debated over whether or not to post this on the .ann group or not. Its not an announcement as I am really looking for feedback only on the asp.net relative portions. This does of course require the user visit web pages about a product for ASP.net. We have recently released an ASP.net related product. I say released - but it has not been...
6
4369
by: Rob Cowie | last post by:
Hi all, I'm having difficulty installing pysqlite 2.1.3 on Mac OS X 10.4.4 There are some notes on the pysqlite wiki regarding modification of the setup.py script and I've followed them to no avail. Build and install appear to go smoothly but attempting to run the tests from the python interpreter fails. Likewise any attempt to utilise...
1
2266
by: Thomas | last post by:
Hi there! Installing TurboGears out-of-the-box (egg-based) on Windows doesn't work because I can't compile the extensions needed for the required pysqlite (also egg- based): Installed c:\programme\python24\lib\site-packages\turbogears-1.0.1- py2.4.egg Processing dependencies for TurboGears>=1.0
14
7136
by: Nader Emami | last post by:
I have installed "TurboGears" and I would install 'pysqlite' also. I am a user on a Linux machine. If I try to install the 'pysqlite' with 'easy_install' tool I get the next error message. The error message is longer than what I send here. % easy_install pysqlite Searching for pysqlite Reading http://cheeseshop.python.org/pypi/pysqlite/...
4
3264
by: Tilman Kispersky | last post by:
I am trying to install sqlite for use with python on cygwin. I have installed the sqlite packages from cygwin (that is libsqlite3-devel and libsqlite3_0). When attempting to easy_install pysqlite I get: $ easy_install pysqlite Searching for pysqlite Reading http://pypi.python.org/simple/pysqlite/ Reading http://pysqlite.org/ Reading...
15
14716
by: Kurda Yon | last post by:
Hi, I try to "build" and "install" pysqlite? After I type "python setup.py build" I get a lot of error messages? The first error is "src/ connection.h:33:21: error: sqlite3.h: No such file or directory". So, I assume that the absence of the "sqlite3.h" is the origin of the problem. I found on the web, that this file should be either in...
0
8047
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7568
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7891
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6151
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5439
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5159
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2021
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1139
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
845
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.