lcwc


Namelcwc JSON
Version 0.12.3 PyPI version JSON
download
home_page
SummaryPython library for fetching the Lancaster County-Wide Communications live incident list.
upload_time2023-12-21 10:16:11
maintainer
docs_urlNone
author
requires_python>=3.9
license
keywords lcwc lancaster police fire ems dispatch 911 incident
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # python-lcwc

python-lcwc is a Python library for the [LCWC](https://www.lcwc911.us/live-incident-list) incident feed.

The library features multiple clients for retrieving incidents: a web scraper, an RSS feed parser, and an ArcGIS REST client. See notes below for more information.

## Installation

    pip install lcwc

## Example

```python

import aiohttp
from lcwc.feed import Client

client = Client()

async with aiohttp.ClientSession() as session:
    incidents = await client.get_incidents(session)

    for incident in incidents:
        print(f'{incident.date} - {incident.description}')
```

## Notes

### Web Client

The web client uses web-scraping which can be a bit limited for identification purposes but is the most reliable. The web client is the recommended client for use unless you need more granular information such as static identifers.

### Feed Client

The feed client uses the RSS feed and is similar to the web client except it overs an (admittedly arbitrary) GUID for each incident. Categorization can be a bit off since the feed doesn't supply that in formation so we have to attempt to extrapolate the category from the incident description/units assigned. Use the web client if you need more accurate categorization.

### ArcGIS REST Client

The ArcGIS REST client uses the ArcGIS REST API to retrieve incidents. This is the most accurate client since it uses the same data source as the LCWC website. This is still a bit of a prototype and may be subject to change. The ArcGIS REST client is the recommended client if you need more granular information such as static identifiers and coordinates.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "lcwc",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "lcwc,lancaster,police,fire,ems,dispatch,911,incident",
    "author": "",
    "author_email": "Nate Shoffner <nate.shoffner@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/41/26/813de35795fef13f7f8f4aff3a1a3968ae268cd7e80d403a97b521e75ffa/lcwc-0.12.3.tar.gz",
    "platform": null,
    "description": "# python-lcwc\r\n\r\npython-lcwc is a Python library for the [LCWC](https://www.lcwc911.us/live-incident-list) incident feed.\r\n\r\nThe library features multiple clients for retrieving incidents: a web scraper, an RSS feed parser, and an ArcGIS REST client. See notes below for more information.\r\n\r\n## Installation\r\n\r\n    pip install lcwc\r\n\r\n## Example\r\n\r\n```python\r\n\r\nimport aiohttp\r\nfrom lcwc.feed import Client\r\n\r\nclient = Client()\r\n\r\nasync with aiohttp.ClientSession() as session:\r\n    incidents = await client.get_incidents(session)\r\n\r\n    for incident in incidents:\r\n        print(f'{incident.date} - {incident.description}')\r\n```\r\n\r\n## Notes\r\n\r\n### Web Client\r\n\r\nThe web client uses web-scraping which can be a bit limited for identification purposes but is the most reliable. The web client is the recommended client for use unless you need more granular information such as static identifers.\r\n\r\n### Feed Client\r\n\r\nThe feed client uses the RSS feed and is similar to the web client except it overs an (admittedly arbitrary) GUID for each incident. Categorization can be a bit off since the feed doesn't supply that in formation so we have to attempt to extrapolate the category from the incident description/units assigned. Use the web client if you need more accurate categorization.\r\n\r\n### ArcGIS REST Client\r\n\r\nThe ArcGIS REST client uses the ArcGIS REST API to retrieve incidents. This is the most accurate client since it uses the same data source as the LCWC website. This is still a bit of a prototype and may be subject to change. The ArcGIS REST client is the recommended client if you need more granular information such as static identifiers and coordinates.\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Python library for fetching the Lancaster County-Wide Communications live incident list.",
    "version": "0.12.3",
    "project_urls": {
        "Bug Tracker": "https://github.com/NateShoffner/python-lcwc/issues",
        "Homepage": "https://github.com/NateShoffner/python-lcwc"
    },
    "split_keywords": [
        "lcwc",
        "lancaster",
        "police",
        "fire",
        "ems",
        "dispatch",
        "911",
        "incident"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b65f032c83df4dbeb1857ac83fe2055dc3a0e77de9545618402af6671b881117",
                "md5": "dee97726f0e3ea0c466e1cec81529705",
                "sha256": "c0d739cf8aa67f4f7ebaf88ef9efd2db70f65654b4d9461ea76f85080020c1a5"
            },
            "downloads": -1,
            "filename": "lcwc-0.12.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "dee97726f0e3ea0c466e1cec81529705",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 27233,
            "upload_time": "2023-12-21T10:16:08",
            "upload_time_iso_8601": "2023-12-21T10:16:08.935820Z",
            "url": "https://files.pythonhosted.org/packages/b6/5f/032c83df4dbeb1857ac83fe2055dc3a0e77de9545618402af6671b881117/lcwc-0.12.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4126813de35795fef13f7f8f4aff3a1a3968ae268cd7e80d403a97b521e75ffa",
                "md5": "b95d13430917f7e4c86dc57a3eb344e2",
                "sha256": "c7d0beaa3f207403f4a5dc5795d6d7be35c6929e93513f1f5cdae2a9147b3be3"
            },
            "downloads": -1,
            "filename": "lcwc-0.12.3.tar.gz",
            "has_sig": false,
            "md5_digest": "b95d13430917f7e4c86dc57a3eb344e2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 22110,
            "upload_time": "2023-12-21T10:16:11",
            "upload_time_iso_8601": "2023-12-21T10:16:11.214289Z",
            "url": "https://files.pythonhosted.org/packages/41/26/813de35795fef13f7f8f4aff3a1a3968ae268cd7e80d403a97b521e75ffa/lcwc-0.12.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-21 10:16:11",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "NateShoffner",
    "github_project": "python-lcwc",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "lcwc"
}
        
Elapsed time: 0.36307s