473,770 Members | 2,065 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python+SQL

What are my options for using Python and SQL - specifically mysql ? So far
I've found pysqldb and python-mysql on sourceforge, but the official
references don't seem to include anything.

Is there an API that supports the 'table row expressed/mapped to object'
paradigm ?

--
regards, chris
Jul 18 '05 #1
6 2167
Op Wed, 12 May 2004 17:02:28 +0100, schreef Chris Stiles:
What are my options for using Python and SQL - specifically mysql ? So far
I've found pysqldb and python-mysql on sourceforge, but the official
references don't seem to include anything.

Is there an API that supports the 'table row expressed/mapped to object'
paradigm ?


if i remember correctly python has an sql api. A google on python sql api
gave me the following two adresses.

http://www.amk.ca/python/writing/DB-API.html

http://www.wellho.net/forum/Programm...thon-and-Ruby/
Python-and-SQL-the-DB-API-and-Gadfly.html

First adres seems to be the most promissing.

hope I was of some help.

Jul 18 '05 #2
Chris Stiles <s4*******@spam ex.com> writes:
What are my options for using Python and SQL - specifically mysql ? So far
I've found pysqldb and python-mysql on sourceforge, but the official
references don't seem to include anything.


The database SIG has the most official information on the DB-API and
modules which conform to it: http://www.python.org/topics/database/

--
Brian Gough

Network Theory Ltd,
Publishing the Python Manuals --- http://www.network-theory.co.uk/
Jul 18 '05 #3
The official references don't include anything since the modules are just
implementations of the DBAPI standard - getting to know that standard will
help you immensely.

http://www.python.org/sigs/db-sig/status.html

Alternately, try using PDO (Python Database Objects). You will still need a
DBAPI complaint module for PDO to work correctly, but it is designed to be
easy to use and provides some nice features like column-access-by-name,
while still being lightweight and very fast. Oh, and its free.

http://pdo.neurokode.com

~Jon Franz
NeuroKode Labs, LLC
----- Original Message -----
From: "Chris Stiles" <s4*******@spam ex.com>
To: <py*********@py thon.org>
Sent: Wednesday, May 12, 2004 12:02 PM
Subject: Python+SQL

What are my options for using Python and SQL - specifically mysql ? So far
I've found pysqldb and python-mysql on sourceforge, but the official
references don't seem to include anything.

Is there an API that supports the 'table row expressed/mapped to object'
paradigm ?

--
regards, chris

Jul 18 '05 #4
"Jon Franz" <jf****@neuroko de.com> writes:
Alternately, try using PDO (Python Database Objects). You will still need a
DBAPI complaint module for PDO to work correctly, but it is designed to be
easy to use and provides some nice features like column-access-by-name,
while still being lightweight and very fast. Oh, and its free.


Thanks, i'll take a look at it.

--
chris
Jul 18 '05 #5
In article <qw************ @random-node.example.or g>, Chris Stiles wrote:
Is there an API that supports the 'table row expressed/mapped to object'
paradigm ?


SQLObject, MiddleKit, and several others.

Dave Cook
Jul 18 '05 #6
"David M. Cook" <da******@nowhe re.net> writes:
In article <qw************ @random-node.example.or g>, Chris Stiles wrote:
Is there an API that supports the 'table row expressed/mapped to object'
paradigm ?


SQLObject, MiddleKit, and several others.


Thanks Dave, i'll take a look at these also.

--
regards, chris
Jul 18 '05 #7

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

Similar topics

19
3182
by: Patrick Useldinger | last post by:
Hi all, after my unsuccessful try to run Apache 2 with mod_python and Python 2.3, I am looking for an alternative approach. My aim is to write a small web-based application: Python - the solution must be based / usable on Python 2.3 Portability Targeted plaforms are
217
9228
by: gyromagnetic | last post by:
The following url points to an article written by Damian Conway entitled "Ten Essential Development Practices": http://www.perl.com/pub/a/2005/07/14/bestpractices.html Althought the article has Perl as a focus, I thought that some of the general points made might be of interest to the Python community. It would certainly be interesting to put together an analogous version of this article that centers on Python. Best Regards,
10
52774
by: Python_it | last post by:
Python 2.4 MySQL-python.exe-1.2.0.win32-py2.4.zip How can I insert a NULL value in a table (MySQL-database). I can't set a var to NULL? Or is there a other possibility? My var must be variable string or NULL. Becaus i have a if statement: if .... cursor.execute(".................insert NULL ..............") if ....
10
6598
by: David Bear | last post by:
Being new to pgdb, I'm finding there are lot of things I don't understand when I read the PEP and the sparse documentation on pgdb. I was hoping there would be a module that would properly escape longer text strings to prevent sql injection -- and other things just make sure the python string object ends up being a properly type for postgresql. I've bought 3 books on postgresql and none of th code samples demonstrate this. web searchs...
6
1181
by: seb.haase | last post by:
Hi, I thought I would quickly write a "SELECT * FROM ... " line in python ... .... but then I was suprised to find that the only "official" web page I found was mainly linking to the PEP on HOW the DB API2.0 should look like. Then there is a choice of maybe ten modules which more or less all claim to implement 99% of that PEP. What is the best (easiest ! quickest !) way to get started doing some
0
1335
by: Jack Diederich | last post by:
QOTW: "Consider changing your business plan: write crappy software, charge heaps for support -- it's not a novel idea" - John Machin "To make it run fast, use psyco. To make it even faster, implement the compare function in C." - Raymond Hettinger A Perl convert gladly announces his conversion but misses CPAN: http://groups.google.com/group/comp.lang.python/browse_thread/thread/f12a260f3fdc45e3/
22
2054
by: lennart | last post by:
Hi, I'm planning to learn a language for 'client' software. Until now, i 'speak' only some web based languages, like php. As a kid i programmed in Basic (CP/M, good old days :'-) ) Now i want to start to learn a (for me) new computer language. I like Python. Its free, easy to learn and some favorite programs of my are written in Python / can understand Python (like OpenOffice) etc.
21
4366
by: hrishy | last post by:
Hi Will LINQ be ported to Python ? regards Hrishy
0
220
by: hrishy | last post by:
Hi Roger I am impressed (i always suspected Python programmers are smart no doubt about it). But what about the case where they join different sources like the one here http://informationr.net/ir/13-2/TB0806.html Thanks for teaching me :-) i am thankful for that
0
9425
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10228
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10002
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9869
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8883
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7415
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5449
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3970
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
3
2816
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.