473,242 Members | 3,245 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,242 software developers and data experts.

using the bsddb from Python (missing docs!)

I was browsing through the source tree of Python 2.4b2 and in Lib/bsddb/test
I found a lot of interesting stuff. It seems that the support for the bsd
database is much better than documented in the standard library
http://www.python.org/dev/doc/devel/...ule-bsddb.html.
There are tests for locking, transactions, join, etc.
Is there some documentation anywhere?
I could infer what I need from the tests but maybe there is already
some nice article on the net explaining everything I want to know and more
;-) OTOH, I do not find Python-centric documentation in the sleepycat web
site.

Michele Simionato
Jul 18 '05 #1
4 4462

mi***************@gmail.com (Michele Simionato) wrote:

I was browsing through the source tree of Python 2.4b2 and in Lib/bsddb/test
I found a lot of interesting stuff. It seems that the support for the bsd
database is much better than documented in the standard library
http://www.python.org/dev/doc/devel/...ule-bsddb.html.
Indeed.
There are tests for locking, transactions, join, etc.
Is there some documentation anywhere?
I could infer what I need from the tests but maybe there is already
some nice article on the net explaining everything I want to know and more
;-) OTOH, I do not find Python-centric documentation in the sleepycat web
site.


I'm not aware of any documentation, but I haven't looked much. I've
just been checking out the dir(dbinstance.db), which offers cursors and
all sorts of other good stuff.

Sorry I can't really help you.

Thinking about it, it may be that much of the stuff isn't documented
and/or exposed because they wanted a simple dictionary-like interface to
bsddb.

- Josiah

Jul 18 '05 #2
Michele Simionato wrote:
I was browsing through the source tree of Python 2.4b2 and in Lib/bsddb/test
I found a lot of interesting stuff. It seems that the support for the bsd
database is much better than documented in the standard library
http://www.python.org/dev/doc/devel/...ule-bsddb.html.
There are tests for locking, transactions, join, etc.
Is there some documentation anywhere?
I could infer what I need from the tests but maybe there is already
some nice article on the net explaining everything I want to know and more
;-) OTOH, I do not find Python-centric documentation in the sleepycat web
site.

Michele Simionato


The bsddb3 package has become part of the standard library as of 2.3, I
believe. The docs for this "full blown" bsddb package are not (yet) part
of Python docs, but off-site on http://pybsddb.sourceforge.net/bsddb3.html.

Slightly OT, but maybe of interest, is that the Python bsddb package
allows you to use the full power of BerkeleyDB even if you decide to
make your projects closed-source - should you have any licensing doubts.

Kind regards,

--
Vincent Wehren

Jul 18 '05 #3
vincent wehren <vi*****@visualtrans.de> wrote in message news:<cn**********@news2.zwoll1.ov.home.nl>...
The bsddb3 package has become part of the standard library as of 2.3, I
believe. The docs for this "full blown" bsddb package are not (yet) part
of Python docs, but off-site on http://pybsddb.sourceforge.net/bsddb3.html.


I am a bit confused about pybsddb; is pybsddb exactly the same as the module
bsddb in Python 2.3+ ? Originally I thought that pybsddb had more stuff in it,
but now I tend to believe that they are the same. It is confusing since the
docs are not in the standard distribution, so it is not clear if they are the
same package (as optik and optparse, for instance) or not. Also, the docs
of pybsddb are kind of terse: there is the API but there are no examples, so
they are not very suitable for people without previous experience with the
sleepycat database. This is the reason why I asked is somebody is aware of
some journal article, or tutorial, or other useful stuff.
Michele Simionato
Jul 18 '05 #4
Michele Simionato wrote:
vincent wehren <vi*****@visualtrans.de> wrote in message news:<cn**********@news2.zwoll1.ov.home.nl>...
The bsddb3 package has become part of the standard library as of 2.3, I
believe. The docs for this "full blown" bsddb package are not (yet) part
of Python docs, but off-site on http://pybsddb.sourceforge.net/bsddb3.html.

I am a bit confused about pybsddb; is pybsddb exactly the same as the module
bsddb in Python 2.3+ ? Originally I thought that pybsddb had more stuff in it,
but now I tend to believe that they are the same. It is confusing since the
docs are not in the standard distribution, so it is not clear if they are the
same package (as optik and optparse, for instance) or not. Also, the docs
of pybsddb are kind of terse: there is the API but there are no examples, so
they are not very suitable for people without previous experience with the
sleepycat database. This is the reason why I asked is somebody is aware of
some journal article, or tutorial, or other useful stuff.
Michele Simionato


My guess is that it is the same thing, but that the release schedule
varies. Using the print_version() function from test_all.py in the test
directory with Python 2.3.4 gives:

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Sleepycat Software: Berkeley DB 4.1.25: (December 19, 2002)
bsddb.db.version(): (4, 1, 25)
bsddb.db.__version__: 4.2.0.2
bsddb.db.cvsid: $Id: _bsddb.c,v 1.17.6.4 2004/03/16 07:47:45 greg
Exp $
python version: 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32
bit (Intel)]
My pid: 1056
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

The version of pybsddb on Sourceforge is at 4.2.4.
I don't know any documentation besides the API stuff. So I guess that
inference from what happens in the test modules probably does give you
the most mileage ;).

--
Vincent Wehren

Jul 18 '05 #5

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

Similar topics

0
by: Natsu Mizutani | last post by:
Hello, I'm trying to wrap a c++ library using MPI inside with boost.python (or SWIG). I managed to find that calling `MPI::Init()` embeded in a c++ funtion would not work. So, I decided to use...
1
by: Matthijs | last post by:
I have been trying to make a script that will download several rss feeds to my computer. The only problem I have is that I have to go through a proxy. First I tried using urllib (python 2.4,...
5
by: aleksander.helgaker | last post by:
I've completely rewritten a calculator I wrote to help me learn Python. After someone told me about the def command I reliesed that I could make the program much better, but there is a very anoying...
5
by: Maurice LING | last post by:
Hi, I've been using FB1.5 and access the database using Kinterbasdb + Python. My connection is established using kinterbasdb.connect() method and the parameters host, dns, database, user,...
1
by: muttu2244 | last post by:
Hi Everybody Here i have a query for you, that is How can I refresh the windows desktop using the python script? Thanks in advance for having given a thought on my query. Regards
2
by: Kevin D. Smith | last post by:
I would like to move files and directories to the Recycle Bin on Windows from Python. I have found some older articles describing how to do this, but they require additional packages to be...
0
by: Pierre | last post by:
Hello, I'm having problems to use the get method on a cursor with an index (secondary database). I've read Oracle's docs but there are mainly in C, JAVA and C++. So no python docs! actually,...
0
by: Anand Patil | last post by:
Hi all, I'm getting error messages like distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.3" but "10.5" during configure on Leopard using system Python...
4
by: cosmid | last post by:
Hi, I am new to Python. Just started learning it. I am just trying to follow the book and run the example given in the book. I created a module by saving 2 python statements in notepad and saved...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.