From mal at egenix.com Fri Sep 2 10:28:33 2022 From: mal at egenix.com (Marc-Andre Lemburg) Date: Fri, 2 Sep 2022 16:28:33 +0200 Subject: [DB-SIG] DB-API 2.0 Update: Replacing StandardError with Exception Message-ID: Hi all, an issue was pointed out at: https://github.com/python/peps/issues/2776 with the PEP 249 - Python Database API 2.0. At the time we were creating the standard in 1999, the default base class for errors was the StandardError exception class. In Python 3, StandardError was removed, since all exception class trees are now rooted directly at the Exception class. The standard migration path is to simply replace StandardError with Exception when moving to Python 3. It's interesting that no one noticed until recently, that the DB-API 2.0 was still using StandardError. I have now fixed the text and replaced StandardError with Exception and also included a footnote explaining the change. Please have a look: https://github.com/python/peps/pull/2781 If I don't hear any complaints, I'll merge this in the next couple of days. Thanks, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Experts (#1, Sep 02 2022) >>> Python Projects, Coaching and Support ... https://www.egenix.com/ >>> Python Product Development ... https://consulting.egenix.com/ ________________________________________________________________________ ::: We implement business ideas - efficiently in both time and costs ::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 https://www.egenix.com/company/contact/ https://www.malemburg.com/ From mal at egenix.com Tue Sep 6 10:51:47 2022 From: mal at egenix.com (Marc-Andre Lemburg) Date: Tue, 6 Sep 2022 16:51:47 +0200 Subject: [DB-SIG] DB-API 2.0 Update: Replacing StandardError with Exception In-Reply-To: References: Message-ID: On 02.09.2022 16:28, Marc-Andre Lemburg wrote: > Hi all, > > an issue was pointed out at: > > https://github.com/python/peps/issues/2776 > > with the PEP 249 - Python Database API 2.0. At the time we were creating > the standard in 1999, the default base class for errors was the > StandardError exception class. > > In Python 3, StandardError was removed, since all exception class trees > are now rooted directly at the Exception class. > > The standard migration path is to simply replace StandardError with > Exception when moving to Python 3. > > It's interesting that no one noticed until recently, that the DB-API 2.0 > was still using StandardError. > > I have now fixed the text and replaced StandardError with Exception > and also included a footnote explaining the change. > > Please have a look: > > https://github.com/python/peps/pull/2781 > > If I don't hear any complaints, I'll merge this in the next couple of > days. FYI: This has been merged now. Thanks to all reviewers. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Experts (#1, Sep 06 2022) >>> Python Projects, Coaching and Support ... https://www.egenix.com/ >>> Python Product Development ... https://consulting.egenix.com/ ________________________________________________________________________ ::: We implement business ideas - efficiently in both time and costs ::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 https://www.egenix.com/company/contact/ https://www.malemburg.com/ From anthony.tuininga at gmail.com Wed Sep 14 12:36:32 2022 From: anthony.tuininga at gmail.com (Anthony Tuininga) Date: Wed, 14 Sep 2022 10:36:32 -0600 Subject: [DB-SIG] python-oracledb 1.1.0 Message-ID: What is python-oracledb? python-oracledb is a Python extension module that enables access to Oracle Database for Python and conforms to the Python database API 2.0 specifications with a number of enhancements. This module is intended to eventually replace cx_Oracle. Where do I get it? https://pypi.org/project/oracledb/1.1.0/ The easiest method to install/upgrade python-oracledb is via pip as in python -m pip install oracledb --upgrade What's new? This release adds support for Azure Active Directory OAuth 2.0 and Oracle Cloud Infrastructure Identity and Access Management (IAM) token authentication. It also adds support for JSON payloads in Advanced Queuing (AQ) and addresses a number of smaller enhancements and bug fixes. See the full release notes for all of the details: https://python-oracledb.readthedocs.io/en/latest/release_notes.html#oracledb-1-1-0-september-2022 Please provide any feedback via GitHub issues: https://github.com/oracle/ python-oracledb/issues or discussions: https://github.com/oracle/python- oracledb/discussions -------------- next part -------------- An HTML attachment was scrubbed... URL: From phd at phdru.name Tue Sep 20 13:26:25 2022 From: phd at phdru.name (Oleg Broytman) Date: Tue, 20 Sep 2022 20:26:25 +0300 Subject: [DB-SIG] SQLObject 3.10.0 Message-ID: Hello! I'm pleased to announce version 3.10.0, the first release of branch 3.10 of SQLObject. What's new in SQLObject ======================= Contributors for this release are James Hudson, Juergen Gmach, Hugo van Kemenade. Many thanks! Features -------- * Allow connections in ``ConnectionHub`` to be strings. This allows to open a new connection in every thread. * Add compatibility with ``Pendulum``. Tests ----- * Run tests with Python 3.10. CI -- * GitHub Actions. * Stop testing at Travis CI. * Stop testing at AppVeyor. Documentation ------------- * DevGuide: source code must be pure ASCII. * DevGuide: ``reStructuredText`` format for docstrings is recommended. * DevGuide: de-facto good commit message format is required: subject/body/trailers. * DevGuide: ``conventional commit`` format for commit message subject lines is recommended. * DevGuide: ``Markdown`` format for commit message bodies is recommended. * DevGuide: commit messages must be pure ASCII. 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; connections to other backends - Firebird, Sybase, MSSQL and MaxDB (also known as SAPDB) - are lesser debugged). 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.10.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 at phdru.name Programmers don't die, they just GOSUB without RETURN. From anthony.tuininga at gmail.com Wed Sep 28 20:25:27 2022 From: anthony.tuininga at gmail.com (Anthony Tuininga) Date: Wed, 28 Sep 2022 18:25:27 -0600 Subject: [DB-SIG] python-oracledb 1.1.1 Message-ID: What is python-oracledb? python-oracledb is a Python extension module that enables access to Oracle Database for Python and conforms to the Python database API 2.0 specifications with a number of enhancements. This module is intended to eventually replace cx_Oracle. Where do I get it? https://pypi.org/project/oracledb/1.1.1/ The easiest method to install/upgrade python-oracledb is via pip as in python -m pip install oracledb --upgrade What's new? This release addresses a number of reported issues. See the full release notes for all of the details: https://python-oracledb.readthedocs.io/en/latest/release_notes.html#oracledb-1-1-1-september-2022 Please provide any feedback via GitHub issues: https://github.com/oracle/ python-oracledb/issues or discussions: https://github.com/oracle/python- oracledb/discussions -------------- next part -------------- An HTML attachment was scrubbed... URL: