Grouparchy uses objects in context to represent structure and relationships of individuals. Objects representing the application specific context of members are Grouparchy contexts. Objects representing individuals within contexts are Grouparchy members.
A Grouparchy context is an object that has been designated as such with one or more context types. A context type is an interface that provides IContextType:
>>> from grouparchy.context import interfaces >>> interfaces.IContextType.providedBy(interfaces.IContext) True
A object is designated as a context by assigning context types with an IContextTypes adapter:
>>> from grouparchy.context import testing
>>> context = testing.Context('context')
>>> interfaces.IContextTypes(context).contexttypes = (
... interfaces.IContext,)
>>> interfaces.IContext.providedBy(context)
True