473,608 Members | 2,667 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"Pure Python" MySQL module like Net::MySQL

Hi,

I did some googling, and found that there doesn't seem to be a pure
python MySQL communication module. There is one for perl however,
Net::MySQL. I was wondering if there was a specific reason why something
similar hasn't been implemented in Python, a limitation of the language
or libraries perhaps? I briefly scanned through the perl source for
Net::MySQL, and there doesn't seem to be anything that couldn't be done
in Python, but I'm a fresh convert from perl land and I don't much
beyond the basics of Python yet.

Thanks,
Ravi

Jul 18 '05 #1
4 2676
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In comp.lang.pytho n, Ravi (rx****@cwru.ed u) wrote:
I did some googling, and found that there doesn't seem to be a pure
python MySQL communication module. There is one for perl however,


I think there's a MySQLdb package for Python that might fulfill
your needs.

Regards,

chema.

- --
Chema Mateos - RinzeWind | Take out the "-news" in my e-mail address
#debian-es irc.freenode.ne t | if replying. Message will be eaten by
Jabber ID - rinzewind AT jabber.org | /dev/null if you don't.
GPG-key: http://chema.homelinux.org/~chema/key.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/Gm2c9P6GbSlI+hk RAg+dAJ9MQWl33y v7+nRkKCWZjLixg uW8DACgjQ+D
sxGBFj4nUORjCOq 4pgIoEHI=
=dU1C
-----END PGP SIGNATURE-----
Jul 18 '05 #2
Ravi wrote:
Hi,

I did some googling, and found that there doesn't seem to be a pure
python MySQL communication module. There is one for perl however,
Net::MySQL.
Does it implement the MySQL wire protocol in pure Perl, without linking
to libmysql? Sure that's possible in Python.
I was wondering if there was a specific reason why something
similar hasn't been implemented in Python,
Nobody needed it badly enough.
a limitation of the language or libraries perhaps?
No.
I briefly scanned through the perl source for
Net::MySQL, and there doesn't seem to be anything that couldn't be done
in Python, but I'm a fresh convert from perl land and I don't much
beyond the basics of Python yet.


Is there any particular reason why you'd need such a beast instead of
just using MySQLdb?

-- Gerhard

Jul 18 '05 #3
Gerhard Häring wrote:

Is there any particular reason why you'd need such a beast instead of
just using MySQLdb?

I'm developing for cell phones/PDA's using Jython, because Java is
available. Yet, a proper C compiler is not, so libmysql cannot be
compiled. I will see if I can put a wrapper on the Java MySQL connector
to make it accessible in Jython.

Thanks for your help,

Ravi

Jul 18 '05 #4
Ravi wrote:
Gerhard Häring wrote:
>

Is there any particular reason why you'd need such a beast instead of
just using MySQLdb?

I'm developing for cell phones/PDA's using Jython, because Java is
available. Yet, a proper C compiler is not, so libmysql cannot be
compiled. I will see if I can put a wrapper on the Java MySQL connector
to make it accessible in Jython.


No need for that, just download zxJDBC :)

-- Gerhard

Jul 18 '05 #5

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

Similar topics

5
5077
by: Chris Stromberger | last post by:
When issuing updates in mysql (in the console window), mysql will tell you if any rows matched and how many rows were updated (see below). I know how to get number of rows udpated using MySQLdb, but is there any way to get the number of rows matched? I want to find out, when rows updated = 0, if there were no updates because the row wasn't found (rows matched will = 0) or because the update would not have changed any data (rows matched =...
2
1623
by: Daniel Frickemeier | last post by:
Hi, I have a strange problem. I´m developing a small python-program wiht the mysql-python-module. The program should run on a server without any mysql-installation. Is there any posibility to "kompile" a python with static libaries? thanx Daniel
2
10269
by: francescomoi | last post by:
Hi. I'm trying to build 'MySQL-python-1.2.0' on my Linux FC2: ---------------------------------- # export PATH=$PATH:/usr/local/mysql/bin/ # export mysqlclient=mysqlclient_r # python setup.py clean # python setup.py build running build running build_py
1
15871
by: francescomoi | last post by:
Hi. I'm trying to build MySQL-python-1.2.0 on my Linux FC2 (with MySQL 3.23.58). But when building, I get this error message: ------------------------------------------------------- # python setup.py build running build running build_py running build_ext building '_mysql' extension
17
1515
by: Sam Malone | last post by:
I am trying to get details from a database. I really want to use only native VS.NET managed code "stuff" (just cuz I want to) and avoid any interop stuff. So, I'm trying to do this without using any ADODB or ADOX stuff. What I'm trying to do is retrieve all the properties of all the components of a database. The GetSchema method goes a long way but (so far) I'm missing how to get the default value of a column. In the table that's returned...
1
1494
by: Jonas Schneider | last post by:
Hi guys, I´m experiencing weird error messages while installing MySQL-python with easy_install... I have no idea where the errors come from. Read the whole output at http://pastebin.com/m3859cf40 It´s really a lot... Someone got ideas?
3
1324
by: kyosohma | last post by:
Hi, Is there some way to get a list of "impure" Python modules/extensions from PyPI? I know the mySQL module is a good example, but I am working on creating some decent instructions on how to create Windows installers from impure modules and am having a hard time finding them. Thanks! Mike
2
7642
by: hotflash | last post by:
Hi All, I found the best pure ASP code to upload a file to either server and/or MS Access Database. It works fine for me however, there is one thing that I don't like and have tried to fix but don't have any luck is to do a form validation. This script requires the files: db-file-to-disk.asp and _upload.asp. There is a DESCRIPTION field in the db-file-to-disk.asp file, what I want to do is the user has to field out this fied before...
3
4482
by: geddy | last post by:
My OS: Ubuntu 7.04 distribution Mysql: Server version: 5.0.38-Ubuntu_0ubuntu1.2-log Ubuntu 7.04 distribution mysql-python:1.2.2 python:2.5 when I run the following script: import MySQLdb conn = MySQLdb.connection('localhost', 'root', '', 'books'); c=conn.cursor() cur = conn.cursor();
0
8050
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7987
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
8464
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8324
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
6805
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
6000
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
5471
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4015
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1574
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.