Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

6 May, 2024: The networking issue during the past two days has been identified and appears to be fixed. Will keep monitoring.


devel / comp.lang.python / SQLObject 3.10.0

SubjectAuthor
o SQLObject 3.10.0Oleg Broytman

1
SQLObject 3.10.0

<mailman.478.1663695847.20444.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=19565&group=comp.lang.python#19565

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: phd...@phdru.name (Oleg Broytman)
Newsgroups: comp.lang.python
Subject: SQLObject 3.10.0
Date: Tue, 20 Sep 2022 20:26:00 +0300
Lines: 135
Message-ID: <mailman.478.1663695847.20444.python-list@python.org>
References: <Yyn3qJ6ix3ek01CP@phdru.name>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.uni-berlin.de k7NhSJ3CwkBurhaYgjHksgc2V1Mspm3lKA4X/5E9i0QA==
Return-Path: <phd@phdru.name>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.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.012
X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'skip:= 10': 0.05; 'tests':
0.07; 'van': 0.07; '2.7': 0.09; 'instances': 0.09; 'meant': 0.09;
'skip:` 10': 0.09; 'skip:` 20': 0.09; 'to:addr:python-announce-
list': 0.09; 'url-ip:151.101.0.223/32': 0.09; 'url-
ip:151.101.128.223/32': 0.09; 'url-ip:151.101.192.223/32': 0.09;
'url-ip:151.101.64.223/32': 0.09; 'import': 0.15; 'url:mailman':
0.15; 'announce': 0.15; '--------': 0.16; '3.10': 0.16; '=======':
0.16; 'changes:': 0.16; 'classes,': 0.16; 'commit': 0.16; 'mssql':
0.16; 'recommended.': 0.16; 'thread.': 0.16; 'travis': 0.16;
'url:project': 0.16; 'url:pypi': 0.16; 'python': 0.16; 'github':
0.17; 'to:addr:python-list': 0.20; "what's": 0.22; 'version':
0.23; 'code': 0.23; 'lines': 0.23; 'skip:p 30': 0.23; 'run': 0.23;
'list,': 0.24; 'thanks!': 0.24; 'skip:- 10': 0.25; 'url:listinfo':
0.25; 'url:lists': 0.26; '>>>': 0.28; 'programmers': 0.32; "i'm":
0.33; 'mailing': 0.33; 'release': 0.34; 'source': 0.36; 'those':
0.36; 'class': 0.37; 'branch': 0.39; 'hello!': 0.39; 'use': 0.39;
'url-ip:216/8': 0.60; 'connection': 0.61; 'skip:o 10': 0.61;
'format': 0.62; 'url-ip:151.101.0/24': 0.62; 'url-
ip:151.101.128/24': 0.62; 'url-ip:151.101.192/24': 0.62; 'url-
ip:151.101.64/24': 0.62; 'subject': 0.63; 'true': 0.63;
'complete': 0.64; 'url:name': 0.64; 'your': 0.64; 'news': 0.65;
'pleased': 0.67; 'james': 0.68; 'url:net': 0.68; '-----': 0.69;
'url:news': 0.69; 'easy': 0.74; 'features': 0.75; 'received:94':
0.76; 'site:': 0.76; 'quick': 0.77; 'database': 0.80; 'known':
0.84; 'lesser': 0.84; 'mysql,': 0.84; 'news:': 0.84; 'tables':
0.84; 'url:sourceforge': 0.84; 'return.': 0.91
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: https://phdru.name/
Mail-Followup-To: Oleg Broytman <phd@phdru.name>, Python Mailing List
<python-list@python.org>
X-Skip-DKIM-Sig: mailing list
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <Yyn3qJ6ix3ek01CP@phdru.name>
 by: Oleg Broytman - Tue, 20 Sep 2022 17:26 UTC

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
<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 https://phdru.name/ phd@phdru.name
Programmers don't die, they just GOSUB without RETURN.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor