Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python.announce > #2691

SQLObject 3.5.0

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Oleg Broytman <phd@phdru.name>
Newsgroups comp.lang.python.announce
Subject SQLObject 3.5.0
Date Wed, 15 Nov 2017 15:13:20 +0100
Lines 121
Approved python-announce-list@python.org
Message-ID <mailman.10.1510755236.26681.python-announce-list@python.org> (permalink)
References <20171115141320.GA28654@phdru.name>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Trace news.uni-berlin.de uZpB/CuEsZrC+FZ3QBH5SwwH688xZ6tyxUnT2OvMeymA==
Return-Path <phd@phdru.name>
X-Original-To python-announce-list@python.org
Delivered-To python-announce-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; 'url:sourceforge': 0.03; 'classes,': 0.05; 'python3': 0.05; '<>`_': 0.07; 'postgresql': 0.07; '-------': 0.09; 'classes.': 0.09; 'contributors': 0.09; 'fname': 0.09; 'postgresql,': 0.09; 'rows': 0.09; 'python': 0.10; '2.7': 0.11; "'q'": 0.16; '(also': 0.16; '(docs': 0.16; 'email addr:phdru.name': 0.16; 'email name:phd': 0.16; 'header:X-Face:1': 0.16; 'return.': 0.16; 'sybase,': 0.16; 'url:tagged': 0.16; 'tests': 0.18; '>>>': 0.20; 'to:2**1': 0.20; 'meant': 0.22; 'division': 0.22; 'mysql,': 0.22; 'fix': 0.22; 'contributed': 0.24; 'tables': 0.24; 'installed': 0.25; 'import': 0.25; "i'm": 0.27; 'header:User-Agent:1': 0.27; '-----': 0.27; 'example': 0.27; 'skip:= 10': 0.27; 'driver': 0.28; 'skip:p 40': 0.28; 'changes:': 0.29; 'download:': 0.29; 'minor': 0.29; 'wraps': 0.29; 'fixed': 0.30; 'bugs': 0.31; 'docs': 0.31; 'included': 0.31; 'url:mailman': 0.32; 'michael': 0.32; 'branch': 0.33; 'to:addr:python-list': 0.33; '3.5': 0.33; 'instances': 0.33; 'required.': 0.33; 'wrong': 0.33; 'source': 0.34; 'list,': 0.34; 'url:listinfo': 0.35; 'url:python': 0.35; 'announce': 0.35; 'hello!': 0.35; 'stable': 0.35; 'class': 0.36; 'still': 0.36; 'programmers': 0.37; 'url:org': 0.37; '...': 0.37; 'charset:us- ascii': 0.38; 'skip:p 20': 0.38; 'mailing': 0.38; 'proto:https': 0.39; 'skip:p 30': 0.39; 'skip:- 10': 0.39; 'version': 0.39; 'release': 0.40; 'to:addr:python.org': 0.40; 'your': 0.60; 'url:news': 0.61; 'true': 0.61; 'url:5': 0.62; 'remove': 0.62; 'more': 0.62; 'pleased': 0.64; 'our': 0.65; 'easy': 0.65; 'complete': 0.67; 'news': 0.68; 'latest': 0.68; 'special': 0.70; 'drivers': 0.72; 'to:addr:python-announce-list': 0.72; 'site:': 0.77
Mail-Followup-To Oleg Broytman <phd@phdru.name>, Python Mailing List <python-list@python.org>
Content-Disposition inline
X-Attribution phd
X-Face "4chVP^f8; 3Bi>x"ic0%DuP(ZLyn:; kzQ1njs]5,GRZG<{<\~`|Shxi7|)d|8uO~HFRfyym {[xs@OYG]2Q]0#}0sjJp`1^1+B6]A2+{9fW=S<O7^"hul]^|AGtiI7SkYF-2VD?UH*h_!zuCIf+^F7 c0x8?W,UfhCAx^YY#1ALhvG\2yG}LW:)zw#1;Yajq"hK~S
X-Operating-System Debian GNU/Linux
X-Url http://phdru.name/
X-Skip-DKIM-Sig mailing list
User-Agent Mutt/1.5.23 (2014-03-12)
X-Mailman-Approved-At Wed, 15 Nov 2017 09:13:56 -0500
X-BeenThere python-announce-list@python.org
X-Mailman-Version 2.1.25
Precedence list
List-Id Announcement-only list for the Python programming language <python-announce-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-announce-list/>
List-Post <mailto:python-announce-list@python.org>
List-Help <mailto:python-announce-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <20171115141320.GA28654@phdru.name>
Xref csiph.com comp.lang.python.announce:2691

Show key headers only | View raw


Hello!

I'm pleased to announce version 3.5.0, the first stable release of branch
3.5 of SQLObject.


What's new in SQLObject
=======================

Contributors for this release are Shailesh Mungikar and Michael S. Root.

Minor features
--------------

* Add Python3 special methods for division to SQLExpression.
  Pull request by Michael S. Root.

Drivers
-------

* Add support for `pg8000 <https://pypi.python.org/pypi/pg8000>`_
  PostgreSQL driver.

* Fix autoreconnect with pymysql driver. Contributed by Shailesh Mungikar.

Documentation
-------------

* Remove generated HTML from eggs/wheels (docs are installed into wrong
  place). Generated docs are still included in the source distribution.

Tests
-----

* Add tests for PyGreSQL, py-postgresql and pg8000 at AppVeyor.

* Fixed bugs in py-postgresql at AppVeyor. SQLObject requires
  the latest version of the driver from our fork.

For a more complete list, please see the news:
http://sqlobject.org/News.html


What is SQLObject
=================

SQLObject is an object-relational mapper.  Your database tables are described
as classes, and rows are instances of those classes.  SQLObject is meant to be
easy to use and quick to get started with.

SQLObject supports a number of backends: MySQL, PostgreSQL, SQLite,
Firebird, Sybase, MSSQL and MaxDB (also known as SAPDB).

Python 2.7 or 3.4+ is required.


Where is SQLObject
==================

Site:
http://sqlobject.org

Development:
http://sqlobject.org/devel/

Mailing list:
https://lists.sourceforge.net/mailman/listinfo/sqlobject-discuss

Download:
https://pypi.python.org/pypi/SQLObject/3.5.0

News and changes:
http://sqlobject.org/News.html

StackOverflow:
https://stackoverflow.com/questions/tagged/sqlobject


Example
=======

Create a simple class that wraps a table::

  >>> from sqlobject import *
  >>>
  >>> sqlhub.processConnection = connectionForURI('sqlite:/:memory:')
  >>>
  >>> class Person(SQLObject):
  ...     fname = StringCol()
  ...     mi = StringCol(length=1, default=None)
  ...     lname = StringCol()
  ...
  >>> Person.createTable()

Use the object::

  >>> p = Person(fname="John", lname="Doe")
  >>> p
  <Person 1 fname='John' mi=None lname='Doe'>
  >>> p.fname
  'John'
  >>> p.mi = 'Q'
  >>> p2 = Person.get(1)
  >>> p2
  <Person 1 fname='John' mi='Q' lname='Doe'>
  >>> p is p2
  True

Queries::

  >>> p3 = Person.selectBy(lname="Doe")[0]
  >>> p3
  <Person 1 fname='John' mi='Q' lname='Doe'>
  >>> pc = Person.select(Person.q.lname=="Doe").count()
  >>> pc
  1

Oleg.
-- 
     Oleg Broytman            http://phdru.name/            phd@phdru.name
           Programmers don't die, they just GOSUB without RETURN.

Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread


Thread

SQLObject 3.5.0 Oleg Broytman <phd@phdru.name> - 2017-11-15 15:13 +0100

csiph-web