Catalog PyPI
PACKAGE EXPLORERView in registry

active-record-mc

PyPI

Simple ORM for basic operations in SQLite databases

Versions collected1
Direct dependencies2From release 0.7.1
Last observed20 Oct, 18:36 UTC

README

Version 0.7.1 documentation

This module implements a simple ORM for basic operations in SQLite databases.

The module is derived from a working example of the active record pattern created by Chris Mitchell to supplement a talk given at the Oregon Academy of Sciences meeting on January 26, 2011.

The original example is published on GitHub as

https://github.com/ChrisTM/Active-Record-Example-for-a-Gradebook

and the code is understood to be freely available under the MIT license as above.

The original code has been modified so that

  • The column names in the selected table are obtained automatically by introspection of the database.
  • The primary key column is no longer required to be 'pk'.
  • Errors are reported via a dialog box.

Running gradebookExample.py demonstrates queries equivalent to Chris Mitchell's original tests.

More complex usage in conjunction with active-list-mc is demonstrated in TreeViewDbExampleAll.py. This program requires the Chinook database, chinook.db from which it uses the 'employees' table.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.7.115 Aug 20242

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:36 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:f7aba2cced5e1a213fca2fb720fad2d640ea3dd3b68091fcc596d2c21a14c0ad