473,569 Members | 2,593 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Advice for PostgreSQL

Hi,

Can someone please point me out to some module/library for using
PostgreSQL from python? Perhaps a tutorial as wel? Thanks!
Steve

Jul 18 '05 #1
3 1542
On Tue, 16 Dec 2003 15:17:38 +1100, Steve wrote:
Can someone please point me out to some module/library for using
PostgreSQL from python? Perhaps a tutorial as wel? Thanks!


Hmm. Typing "python" and "postgresql " into Google gives numerous
results, most of the useful ones at the top.

Typing "python" and "postgresql " along with "module" gets me a direct
hit:

<http://www.pygresql.or g/>

Did this method not work for you?

--
\ "Yesterday I told a chicken to cross the road. It said, 'What |
`\ for?'" -- Steven Wright |
_o__) |
Ben Finney <http://bignose.squidly .org/>
Jul 18 '05 #2
Steve wrote:
Hi,

Can someone please point me out to some module/library for using
PostgreSQL from python?
Either one of these will do fine:

- http://pypgsql.sourceforge.net/
- http://initd.org/software/initd/psycopg

Both contain documentation, but not tutorial-like, AFAIK.
Perhaps a tutorial as wel? Thanks!


http://www.linuxjournal.com/article.php?sid=2605

It uses soliddb as a module, but all these modules implement the Python DB-API
2.0, so the major differences are the import statement and the call to .connect().

-- Gerhard

Jul 18 '05 #3
On Tue, 16 Dec 2003 15:17:38 +1100, Steve <nospam@nopes > wrote:
Can someone please point me out to some module/library for using
PostgreSQL from python? Perhaps a tutorial as wel? Thanks!


Try module 'psycopg' from www.initd.org !

Regards,

Olaf

--
EOP
Jul 18 '05 #4

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

Similar topics

0
1602
by: Google Mike | last post by:
I need help from PHP land. I've just completed an open source work order management system in PHP on Linux (RH9). I plan to use an Apache license, which was recommended by a friend, so that I can make a free, open source version, and a proprietary, charge-only version. It'll sort of be like when you purchase Linux from a vendor that provides a...
10
2728
by: Frank Millman | last post by:
Hi all I would like some advice, and I hope that the good people on c.l.p will give me the benefit of their experience. I am busy developing an accounting package, using Python and wxPython, together with PostgreSQL on a Unix platform or SQL Server on a Windows platform. I am a qualified accountant and have been developing accounting...
2
1381
by: Randall Smith | last post by:
When I had been programming for a few years, I realised that as much as a love to learn, I can only explore and be proficient at a limited subset of technologies. I explored different languages to use for general purpose programming including C, C++, Java, Perl, Ruby, and Python. Of those languages, I chose to focus on Python because of many...
1
1685
by: David Bear | last post by:
I would like some advice on what crypto lib to use. I am writing a cgi app that will store sensative data in a backend postgresql server. I have some simple numeric data I would like to make as safe as possible, without too much overhead. The goal would be to store the information in a simple reversable encrypted form. The encryption key...
3
1378
by: John French | last post by:
I've been interested in Python for a while now but haven't had an opportunity to use / learn it. I'm tasked now with a project at work that might be my first opportunity. I have to write a ~75 concurrent user document storage app. that allows users to scan documents from locally attached scanners and save to a database for retrieval. I...
2
1797
by: Egor Shipovalov | last post by:
I have a lot of tables of the same structure that represent weekly states of a certain system. I'd like to write a function that would take field name, number of weeks and return history of that field values as a single row. I imagine something like this: SELECT * FROM history('temperature', 10); This should give me 11-column row, with...
0
1641
by: Greg Sabino Mullane | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This is a PGP-signed copy of the checksums for following PostgreSQL versions: 7.4.5 7.4.4 7.3.7
1
3928
by: | last post by:
Hi Database Gurus, Not to start a war among fanatics, but I just wanted to get honest opinion/advise of smart folks like you about this. We are about to begin development for a data intensive web based application and are faced with the choice of database software. We (at least currently) are focusing on free software. Some basic research has...
5
2931
by: Ted | last post by:
I am working on two versions of an application, one of which will be a windows forms application (which will need to be redistributable) and the other will be a web application. I have MS Visual Studio 2005 (along with the developer's edition of MS SQL Server), but not MS Access. I also have MySQL, PostgreSQL, Sun's application server,...
0
7614
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7676
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
7974
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
6284
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...
0
5219
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...
0
3642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2114
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
1221
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.