Path: ...!fu-berlin.de!uni-berlin.de!not-for-mail From: Oleg Broytman Newsgroups: comp.lang.python.announce Subject: [Python-announce] SQLObject 3.12.0 Date: Fri, 20 Dec 2024 15:58:00 +0300 Lines: 141 Approved: python-announce-list@python.org Message-ID: Reply-To: python-list@python.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.uni-berlin.de XKP/npHaj/3PjxiPmT+rygb3gMpiec8+p5+j7c3atY7g== Cancel-Lock: sha1:nwdyGchCCo71efaLP+STk/tmMho= sha256:bF726N651IHU6tqrCUWgqUYI8IftitiAUzokRjT5OLU= Delivered-To: python-announce-list@x.python.org Authentication-Results: mail.python.org; dkim=none reason="no signature"; dkim-adsp=unknown (unprotected policy); dkim-atps=neutral X-Spam-Status: OK 0.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'pip': 0.04; 'yet.': 0.04; 'skip:= 10': 0.05; 'tests': 0.07; 'url:mailman': 0.09; '2.7': 0.09; 'instances': 0.09; 'meant': 0.09; 'open-source': 0.09; 'skip:` 10': 0.09; 'skip:` 20': 0.09; 'to:addr:python-announce- list': 0.09; 'import': 0.15; 'announce': 0.15; '=======': 0.16; 'builtin': 0.16; 'changes:': 0.16; 'classes,': 0.16; 'mssql': 0.16; 'now;': 0.16; 'pass.': 0.16; 'supported.': 0.16; 'unicode': 0.16; 'url-ip:104.18.32/24': 0.16; 'url-ip:172.64.155/24': 0.16; 'url:project': 0.16; 'url:pypi': 0.16; 'python': 0.16; 'developer': 0.16; 'api': 0.17; 'to:addr:python-list': 0.20; "what's": 0.22; 'version': 0.23; 'install': 0.23; 'skip:p 30': 0.23; 'run': 0.23; 'code': 0.23; 'list,': 0.24; "wasn't": 0.26; '>>>': 0.28; 'error': 0.29; 'mailing': 0.31; 'default': 0.31; 'dropped': 0.32; 'programmers': 0.32; "i'm": 0.33; 'release': 0.34; 'fix': 0.36; 'those': 0.36; '...': 0.37; 'class': 0.37; 'example': 0.37; 'url-ip:151.101.0.223/32': 0.38; 'url- ip:151.101.128.223/32': 0.38; 'url-ip:151.101.192.223/32': 0.38; 'url-ip:151.101.64.223/32': 0.38; 'use': 0.39; 'branch': 0.39; 'hello!': 0.39; '(with': 0.39; 'years.': 0.40; 'skip:o 10': 0.61; 'true': 0.63; 'complete': 0.64; 'less': 0.64; 'your': 0.64; 'url:name': 0.64; 'news': 0.65; 'pleased': 0.67; 'url:net': 0.67; '-----': 0.69; 'site:': 0.69; 'url:news': 0.69; 'ignore': 0.71; 'free': 0.71; 'easy': 0.74; 'quick': 0.77; 'database': 0.80; 'known': 0.84; 'drivers': 0.84; 'minor': 0.84; 'news:': 0.84; 'postgresql': 0.84; 'sqlite': 0.84; 'tables': 0.84; 'url:sourceforge': 0.84; 'url:p': 0.88; 'return.': 0.91; 'received:89': 0.93 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 X-MailFrom: phd@phdru.name X-Mailman-Rule-Hits: emergency X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-python-announce-list.python.org-0; header-match-python-announce-list.python.org-1; header-match-python-announce-list.python.org-2; header-match-python-announce-list.python.org-3; header-match-python-announce-list.python.org-4 Message-ID-Hash: PKHSQECO7EYCSZVPMQNSPVREUHDS3IMJ X-Message-ID-Hash: PKHSQECO7EYCSZVPMQNSPVREUHDS3IMJ X-Mailman-Approved-At: Fri, 20 Dec 2024 08:50:57 -0500 X-Mailman-Version: 3.3.11b1 Precedence: list List-Id: Announcement-only list for the Python programming language Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Bytes: 7511 Hello! I'm pleased to announce version 3.12.0, the release of branch 3.12 of SQLObject. What's new in SQLObject ======================= Drivers ------- * Add support for CyMySQL; there're some problems with unicode yet. * Separate ``psycopg`` and ``psycopg2``; ``psycopg`` is actually ``psycopg3`` now; not all tests pass. * Minor fix in getting error code from PyGreSQL. * Dropped ``oursql``. It wasn't updated in years. * Dropped ``PySQLite2``. Only builtin ``sqlite3`` is supported. Tests ----- * Run tests with Python 3.13. * Run tests with ``psycopg-c``; not all tests pass. * Fix ``test_exceptions.py`` under MariaDB, PostgreSQL and SQLite. * ``py-postgres``: Set ``sslmode`` to ``allow``; upstream changed default to ``prefer``. CI -- * Run tests with ``PyGreSQL`` on w32, do not ignore errors. * Skip tests with ``pg8000`` on w32. * GHActions: Switch to ``setup-miniconda``. * GHActions: Python 3.13. For a more complete list, please see the news: http://sqlobject.org/News.html What is SQLObject ================= SQLObject is a free and open-source (LGPL) Python 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/MariaDB (with a number of DB API drivers: ``MySQLdb``, ``mysqlclient``, ``mysql-connector``, ``PyMySQL``, ``mariadb``), PostgreSQL (``psycopg2``, ``PyGreSQL``, partially ``pg8000`` and ``py-postgresql``), SQLite (builtin ``sqlite3``); connections to other backends - Firebird, Sybase, MSSQL and MaxDB (also known as SAPDB) - are less debugged). Python 2.7 or 3.4+ is required. Where is SQLObject ================== Site: http://sqlobject.org Download: https://pypi.org/project/SQLObject/3.12.0 News and changes: http://sqlobject.org/News.html StackOverflow: https://stackoverflow.com/questions/tagged/sqlobject Mailing lists: https://sourceforge.net/p/sqlobject/mailman/ Development: http://sqlobject.org/devel/ Developer Guide: http://sqlobject.org/DeveloperGuide.html Example ======= Install:: $ pip install sqlobject 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 ========== REMAINDER OF ARTICLE TRUNCATED ==========