"Pure Python" MySQL module like Net::MySQL

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ravi

    "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

  • José María Mateos

    #2
    Re: "Pure Python" MySQL module like Net::MySQL

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    In comp.lang.pytho n, Ravi (rxs141@cwru.ed u) wrote:[color=blue]
    > 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,[/color]

    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-----

    Comment

    • Gerhard Häring

      #3
      Re: "Pure Python" MySQL module like Net::MySQL

      Ravi wrote:[color=blue]
      > 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.[/color]

      Does it implement the MySQL wire protocol in pure Perl, without linking
      to libmysql? Sure that's possible in Python.
      [color=blue]
      > I was wondering if there was a specific reason why something
      > similar hasn't been implemented in Python,[/color]

      Nobody needed it badly enough.
      [color=blue]
      > a limitation of the language or libraries perhaps?[/color]

      No.
      [color=blue]
      > 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.[/color]

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

      -- Gerhard

      Comment

      • Ravi

        #4
        Re: "Pure Python" MySQL module like Net::MySQL

        Gerhard Häring wrote:[color=blue]
        >
        > Is there any particular reason why you'd need such a beast instead of
        > just using MySQLdb?
        >[/color]
        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

        Comment

        • Gerhard Häring

          #5
          Re: "Pure Python" MySQL module like Net::MySQL

          Ravi wrote:[color=blue]
          > Gerhard Häring wrote:[color=green]
          > >[/color]
          > [color=green]
          >> Is there any particular reason why you'd need such a beast instead of
          >> just using MySQLdb?
          >>[/color]
          > 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.[/color]

          No need for that, just download zxJDBC :)

          -- Gerhard

          Comment

          Working...