Package Modeling
The Modeling Framework is an Object-Relational Bridge for python
The Modeling Framework fills the gap between the Python object world and
relational databases in that it allows users to transparently create,
retrieve, update, or delete Python objects from a database without having to
write a single line of SQL. Its main features include generation of database
schema, generation of Python code templates ready to be used, support for
transparent mapping of (class) inheritance in relational databases,
object-oriented query language, use of standard Python getters to traverse
relationships (the related objects are automatically fetched when needed and
when appropriate), and automatic checking for referential-integrity
constraints, etc. Supported databases are MySQL, Oracle, PostgreSQL, and
SQLite.
Submodules |
-
Adaptor : Adaptor
-
AdaptorChannel : AdaptorChannel
-
AdaptorContext : AdaptorContext
-
AdaptorOperation : AdaptorOperation
-
Attribute : ...
-
ClassDescription : ClassDescription
-
CooperatingObjectStore : CooperatingObjectStore
-
CustomObject : CustomObject
-
Database : Database
-
DatabaseAdaptors
-
DatabaseChannel : DatabaseContext
-
DatabaseContext
-
DatabaseObject : DatabaseObject
-
DatabaseOperation : AdaptorOperation API
-
delegation : delegation module.
-
dynamic : Documentation not written yet --see doc/README.dynamic.txt for details.
-
EditingContext : EditingContext
-
Entity : ...
-
EntityClassDescription : EntityClassDescription
-
Exceptions : ...
-
FaultHandler : FaultHandler & subclasses
-
FetchSpecification : FetchSpecification
-
GlobalID : GlobalID
-
interfaces
-
Join : ...
-
KeyValueCoding : KeyValueCoding Mix-in class
-
logging : Module logging
-
Model : ...
-
ModelMasons
-
CMFModelMason : ModelMason
-
ModelMason : ModelMason contains the base class for every ''mason'' and is of no interest
except if you plan to design a new module to generate code/files from a Model.
-
PyModelMason : PyModelMason generates the python package, modules and classes described
in a model, ready to be used w/ the modeling framework.
-
Python_bricks
-
ModelSet : A ModelSet holds a set of models that can co-exist and/or co-operate at runtime.
-
ModelValidation : ModelValidation
-
ObjectStore : ObjectStore
-
ObjectStoreCoordinator : ObjectStoreCoordinator
__TBD
Notifications
The following notifications are defined and posted:
- 'CooperatingObjectStoreWasAddedNotification'
object: the 'ObjectStoreCoordinator' instance
- 'CooperatingObjectStoreWasRemovedNotification'
object: the removed 'ObjectStoreCoordinator' instance
- 'CooperatingObjectStoreNeededNotification'
object: the ObjectStoreCoordinator posting the request
userInfo: either a GlobalID, an object ('DatabaseObject') or
a FetchSpecification.
-
ObserverCenter : ObserverCenter
-
PyModel : Pythonic Description of an OO-RDBM Model
Rules:
- a model is an object of type Model
- a model may specify a list of entities, each of type Entity
- an entity may specify a list of properties, that are either of type Attribute
or \of type Relation
- all references to attributes, relations, entities, models, is by their "name"
i.e.
-
Qualifier : Qualifier
-
QualifierParser : This module is where any Qualifier strings are interpreted and turned into
real qualifier.
-
Relationship : ...
-
RelationshipManipulation : Allows the generic manipulation of objects in relation by inspecting the
underlying model and taking appropriate actions.
-
SchemaGeneration : SchemaGeneration
-
SnapshotsHandling
-
SortOrdering : Module SortOrdering holds a "command" pattern for sorting objects, and the
appropriate methods for building and using the commands.
-
SQLExpression : SQLExpression
-
utilities
-
EditingContextSessioning : EditingContextSessioning provides a set of functions that can be used to bind
to an existing sessioning mechanism so that each existing session has its own
EditingContext.
-
utils : Some useful functions to be used within the Modeling package, or by
tools using this framework.
-
Validation : Validation
-
XMLutils : XMLutils provides standard imports along with error messages when these
imports fail.
|