situation¶
situation is a Python package that provides the Situation Modeling Language (SML) - an ontology for describing social situations.
Overview¶
The following is a full Situation in which Alice and Bob are members of a Sports Club. When this code is executed, a situation will be created and then printed to the screen.
from situation import dump, Person, Group, Acquaintance
from situation.debug_app import quick
with quick().app_context():
Group.create(name="Sports Club", members=[
Person.create(name="Alice"),
Person.create(name="Bob")])
print(dump())
A situation is specified using Situation Modeling Language (SML). SML is like a Domain Specific Language for social situations built on top of Python.
A Situation is actually a full database-driven Flask-Diamond application. As an application, this provides an extremely flexible data platform.