Truly platform-independent DB access in Python?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Boris Dušek

    #16
    Re: Truly platform-independent DB access in Python?

    skip@pobox.com wrote:
    ... snip ...
    So, if what you were really asking was "what SQL databases can I access
    without installing any software other than Python?", then the answer is "No
    SQL databases were distributed with Python prior to 2.5. Starting with
    Python 2.5, access to sqlite databases is available by default." Python 2.5
    is due out soon (according to PEP 356, on 12 September).
    So I finally decided to go with sqlite, compile the module myself for
    the time being and hoping python will be upgraded to 2.5 at latest at
    the same time as any potential OS (or architecture) upgrade.

    Comment

    • Jorge Vargas

      #17
      Re: Truly platform-independent DB access in Python?

      On 28 Aug 2006 00:01:06 -0700, bobrik <boris.dusek@gm ail.comwrote:
      Hello,
      >
      I am using the Python DB API for access to MySQL. But it is not
      platform-independent - I need a module not included in Python by
      default - python-mysql, and it uses a compiled binary _mysql.so. So it
      is not platform-independent because for each web-server on different
      platform, I would have to download it and extra compile it specifically
      for that platform. Do you know of any Python solution for MySQL access
      that is 100% platform-independent?
      >
      I'm sorry but since when is MySQL platform independent? if
      mysql-python will be pure python then it will probably be slower
      because it will have to use sockets, or other type of IPC instead Andy
      used mysql C API which is fast.

      on the other hand all big *NIX distros have mysql-python on their
      packages/tree, and I made a windows installer of the last version,
      which you can get from sourceforge.

      so the only problem I see here is if your on a mac, on which the
      source should compile without problems since it's *NIX now.

      at this moment installing on any mayor platform is 2-3 commands/clicks away..

      Comment

      Working...