Skip to main content

Private module for BOS incident storage

Project description

# 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"
        }
    )

Project details


Download files

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

Source Distribution

bos-incidents-0.0.2.tar.gz (10.0 kB view hashes)

Uploaded Source

Built Distribution

bos_incidents-0.0.2-py3-none-any.whl (10.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page