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


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

SQLObject 3.6.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.6.0
Date Sat, 24 Feb 2018 17:29:33 +0100
Lines 129
Approved python-announce-list@python.org
Message-ID <mailman.226.1519489870.2791.python-announce-list@python.org> (permalink)
References <20180224162933.GA7274@phdru.name>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Trace news.uni-berlin.de hYQFHxAtKXwjd4OH6faRtwFzmXgpyJuE0J4IfTbqxbkw==
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.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; 'url:sourceforge': 0.03; 'classes,': 0.05; '---------': 0.07; 'fixes': 0.07; '-------': 0.09; 'classes.': 0.09; 'contributor': 0.09; 'fname': 0.09; 'postgresql,': 0.09; 'rows': 0.09; 'timeout': 0.09; '2.7': 0.13; 'python': 0.15; "'q'": 0.16; '(also': 0.16; 'email addr:phdru.name': 0.16; 'email name:phd': 0.16; 'header:X-Face:1': 0.16; 'marker': 0.16; 'news:': 0.16; 'sybase,': 0.16; 'url:tagged': 0.16; 'bug': 0.17; 'meant': 0.17; '-----': 0.19; 'hello!': 0.20; 'skip:` 10': 0.20; 'tables': 0.20; '>>>': 0.23; 'to:2**1': 0.23; 'fix': 0.24; 'import': 0.24; 'header:User- Agent:1': 0.25; 'mysql,': 0.25; 'skip:p 40': 0.25; 'environment': 0.26; 'url-ip:151.101.0.223/32': 0.26; 'url- ip:151.101.128.223/32': 0.26; 'url-ip:151.101.192.223/32': 0.26; 'url-ip:151.101.64.223/32': 0.26; 'michael': 0.26; 'url- ip:151.101.0/24': 0.26; 'url-ip:151.101.128/24': 0.26; 'url- ip:151.101.192/24': 0.26; 'url-ip:151.101.64/24': 0.26; "doesn't": 0.26; 'url:6': 0.27; 'announce': 0.31; 'extend': 0.31; 'programmers': 0.31; 'skip:= 10': 0.31; 'instances': 0.31; 'skip:` 20': 0.31; 'stable': 0.31; 'skip:- 10': 0.32; '3.6': 0.32; 'fork': 0.32; 'skip:= 20': 0.32; 'wraps': 0.32; "i'm": 0.33; 'required.': 0.34; 'url:lists': 0.34; 'url-ip:151.101/16': 0.34; 'url- ip:151/8': 0.34; 'url-ip:188.166/16': 0.35; 'url:mailman': 0.37; 'branch': 0.37; 'list,': 0.37; 'charset:us-ascii': 0.38; 'example': 0.38; 'url-ip:188/8': 0.38; 'instead': 0.39; 'url:python': 0.39; 'url:org': 0.39; 'your': 0.60; 'news': 0.62; 'free': 0.62; 'more': 0.62; 'sfxlen:3': 0.62; 'skip:o 10': 0.63; 'url:0': 0.63; 'easy': 0.63; 'our': 0.65; 'truly': 0.66; 'received:188': 0.67; 'url-ip:151.101.1.69/32': 0.67; 'url- ip:151.101.129.69/32': 0.67; 'url-ip:151.101.193.69/32': 0.67; 'url-ip:151.101.65.69/32': 0.67; 'url:questions': 0.67; 'complete': 0.68; 'site:': 0.71; 'drivers': 0.75; 'url:stackoverflow': 0.79; 'extras': 0.84; 'wheel': 0.91; 'received:188.166': 0.95
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/
Mail-Followup-To Oleg Broytman <phd@phdru.name>, Python Mailing List <python-list@python.org>
X-Skip-DKIM-Sig mailing list
User-Agent Mutt/1.5.23 (2014-03-12)
X-Mailman-Approved-At Sat, 24 Feb 2018 11:31:09 -0500
X-BeenThere python-announce-list@python.org
X-Mailman-Version 2.1.26
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 <20180224162933.GA7274@phdru.name>
Xref csiph.com comp.lang.python.announce:2775

Show key headers only | View raw


Hello!

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


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

Contributor for this release is Michael S. Root.

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

* Close cursors after using to free resources immediately
  instead of waiting for gc.

Bug fixes
---------

* Fix for TypeError using selectBy on a BLOBCol. PR by Michael S. Root.

Drivers
-------

* Extend support for oursql and Python 3 (requires our fork of the driver).

* Fix cursor.arraysize - pymssql doesn't have arraysize.

* Set timeout for ODBC with MSSQL.

* Fix _setAutoCommit for MSSQL.

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

* Document extras that are available for installation.

Build
-----

* Use ``python_version`` environment marker in ``setup.py`` to make
  ``install_requires`` and ``extras_require`` declarative. This makes
  the universal wheel truly universal.

* Use ``python_requires`` keyword in ``setup.py``.

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.6.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.6.0 Oleg Broytman <phd@phdru.name> - 2018-02-24 17:29 +0100

csiph-web