Metadata-Version: 2.0
Name: bos-incidents
Version: 0.0.1
Summary: Private module for BOS incident storage
Home-page: http://pbsa.info
Author: Blockchain BV
Author-email: info@blockchainbv.com
Maintainer: Stefan Schießl
Maintainer-email: Stefan.Schiessl@BlockchainProjectsBV.com
License: UNKNOWN
Download-URL: https://github.com/pbsa/bos-incidents/tarball/0.0.1
Keywords: peerplays,bos
Platform: UNKNOWN
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Requires-Dist: pymongo
Requires-Dist: pyyaml
Requires-Dist: jsonschema
Requires-Dist: coverage

# Peerplays BOS incident storage

Clone this repository next to the project that has the dependency on the incident storage and 
include it as egg in requirements.txt via

    -e file:../bos-incidents#egg=peerplays_bos_incidents

Default implementation requires a mongodb server running locally (localhost:27017)

    >>> from bos_incidents import factory
    >>> storage = factory.get_incident_storage()
    >>> incidents = storage.get_incidents_by_id({
                "home": "Charlotte Hornets",
                "start_time": "2018-03-22T23:00:00Z",
                "event_group_name": "NBA Regular Season",
                "away": "Memphis Grizzlies",
                "sport": "Basketball"
            }
        )

