Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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 https://img.shields.io/pypi/v/situation.svg 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

Documentation

http://situation.readthedocs.io

Metadata

Release files for situation 0.1.0rc2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for situation 0.1.0rc2
File Size Uploaded
situation-0.1.0rc2.tar.gz 13.6 kB Details

Release files / situation-0.1.0rc2.tar.gz

Download URL situation-0.1.0rc2.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
968e1595df02fa9170205d60f7548930f3d5a8a20a3c2406434e006d3d9bb310
BLAKE2b-256 checksum
How to use checksums
1efb0150cc6bd41ff7aec8f1f5cded088d43e02c369ef93903b44e05e3f21599
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0rc2 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page