473,395 Members | 1,608 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,395 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 4470

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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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...
0
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...
0
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,...

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.