Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Situation Modeling Language is an ontology for describing social situations.

Project description

situation is a Python package that provides the Situation Modeling Language (SML) - an ontology for describing social situations.

https://img.shields.io/github/stars/iandennismiller/situation.svg?style=social&label=GitHub Documentation Status https://travis-ci.org/iandennismiller/situation.svg?branch=master https://coveralls.io/repos/github/iandennismiller/situation/badge.svg?branch=master

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 within the database and will then be printed to the screen.

from situation import dump, Person, Group
from situation.debug_app import quick
with quick().app_context():
    bob = Person.create(name="Bob")
    alice = Person.create(name="Alice")
    club = Group.create(name="Sports Club")
    club.members.extend([bob, alice])
    print(dump())

A situation is specified using Situation Modeling Language (SML). SML is like a Domain Specific Language for Situations built on top of Python.

A Situation is actually a full database-driven Flask-Diamond application. As an application, this can be an extremely flexible data platform.

Installation

Install situation using Python pip.

pip install situation

Project details


Release history Release notifications

This version
History Node

0.1.0rc2

History Node

0.1.0rc1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
situation-0.1.0rc2.tar.gz (13.6 kB) Copy SHA256 hash SHA256 Source None Nov 30, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page