Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Oleg Broytman Newsgroups: comp.lang.python.announce Subject: SQLObject 3.7.0 Date: Wed, 6 Jun 2018 18:28:51 +0200 Lines: 116 Approved: python-announce-list@python.org Message-ID: References: <20180606162851.dnlowo4ftwyz3ze7@phdru.name> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.uni-berlin.de arg4ULdpSeAZKO2NFB3FeQSxN6WKY9axhIrVYRylujtQ== Return-Path: X-Original-To: python-announce-list@python.org Delivered-To: python-announce-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; 'classes,': 0.05; '---------': 0.07; 'alias': 0.07; 'fixes': 0.07; '-------': 0.09; 'classes.': 0.09; 'contributors': 0.09; 'fname': 0.09; 'postgresql,': 0.09; 'rows': 0.09; 'tests': 0.12; 'url- ip:216.105.38/24': 0.13; 'url-ip:216.105/16': 0.13; 'url:sourceforge': 0.13; 'commit': 0.15; 'url- ip:216.105.38.10/32': 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; 'news:': 0.16; 'param': 0.16; 'sybase,': 0.16; 'url:project': 0.16; 'url:tagged': 0.16; 'python': 0.16; 'bug': 0.16; 'tables': 0.17; 'meant': 0.18; '-----': 0.19; '2.7': 0.19; 'install': 0.20; '3.7': 0.21; 'hello!': 0.21; 'skip:` 10': 0.21; '>>>': 0.23; 'to:2**1': 0.24; 'header:User-Agent:1': 0.24; 'mysql,': 0.25; 'skip:p 40': 0.25; 'url-ip:151.101.0.223/32': 0.25; 'url-ip:151.101.128.223/32': 0.25; 'url- ip:151.101.192.223/32': 0.25; 'url-ip:151.101.64.223/32': 0.25; 'url-ip:151.101.192/24': 0.26; 'announce': 0.27; 'url- ip:151.101.0/24': 0.27; 'url-ip:151.101.128/24': 0.27; 'url- ip:151.101.64/24': 0.27; 'import': 0.27; 'instances': 0.27; 'parameters': 0.27; 'fix': 0.28; "i'm": 0.31; 'programmers': 0.31; 'skip:= 10': 0.31; 'driver': 0.32; 'url:7': 0.32; 'required.': 0.33; 'signals': 0.33; 'skip:= 20': 0.33; 'wraps': 0.33; 'url- ip:151.101/16': 0.34; 'url-ip:151/8': 0.34; 'url:lists': 0.35; 'list,': 0.36; 'branch': 0.37; 'package.': 0.38; 'to:addr:python- announce-list': 0.38; 'charset:us-ascii': 0.38; 'supports': 0.38; 'url-ip:188.166/16': 0.38; 'example': 0.39; '--------': 0.39; 'version': 0.39; '...': 0.39; 'url:org': 0.40; 'url:mailman': 0.40; 'class': 0.40; 'your': 0.60; 'url:0': 0.61; 'more': 0.61; 'true': 0.62; 'easy': 0.62; 'news': 0.62; 'pfxlen:1': 0.63; 'sfxlen:3': 0.63; 'skip:o 10': 0.64; 'different': 0.64; 'complete': 0.66; 'url-ip:151.101.1/24': 0.66; 'url- ip:151.101.129/24': 0.66; 'url-ip:151.101.193/24': 0.66; 'url- ip:151.101.65/24': 0.66; 'received:188': 0.67; 'url:stackoverflow': 0.67; 'scott': 0.70; 'site:': 0.74; 'drivers': 0.75; '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, Python Mailing List X-Skip-DKIM-Sig: mailing list User-Agent: NeoMutt/20170113 (1.7.2) X-Mailman-Approved-At: Thu, 07 Jun 2018 03:56:41 -0400 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <20180606162851.dnlowo4ftwyz3ze7@phdru.name> Xref: csiph.com comp.lang.python.announce:2877 Hello! I'm pleased to announce version 3.7.0, the first stable release of branch 3.7 of SQLObject. What's new in SQLObject ======================= Contributors for this release are Scott Stahl and Christophe Popov. Features -------- * Add signals on commit and rollback; pull request by Scott Stahl. Bug fixes --------- * Fix SSL-related parameters for MySQL-connector (connector uses a different param style). Bug reported by Christophe Popov. Drivers ------- * Remove psycopg1. Driver ``psycopg`` is now just an alias for ``psycopg2``. Tests ----- * Install psycopg2 from `psycopg2-binary`_ package. .. _`psycopg2-binary`: https://pypi.org/project/psycopg2-binary/ 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.org/project/SQLObject/3.7.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 >>> p.fname 'John' >>> p.mi = 'Q' >>> p2 = Person.get(1) >>> p2 >>> p is p2 True Queries:: >>> p3 = Person.selectBy(lname="Doe")[0] >>> p3 >>> pc = Person.select(Person.q.lname=="Doe").count() >>> pc 1 Oleg. -- Oleg Broytman https://phdru.name/ phd@phdru.name Programmers don't die, they just GOSUB without RETURN.