pyluchtmeetnet


Namepyluchtmeetnet JSON
Version 0.1.3 PyPI version JSON
download
home_pagehttps://github.com/metbril/pyluchtmeetnet
SummaryA module for getting air quality data from Luchtmeetnet OpenAPI
upload_time2024-05-06 12:24:20
maintainerNone
docs_urlNone
authorRobert van Bregt
requires_python<4,>=3.8
licenseNone
keywords air quality health api
VCS
bugtrack_url
requirements requests
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![PyPI - Version](https://img.shields.io/pypi/v/pyluchtmeetnet)
![PyPI - Status](https://img.shields.io/pypi/status/pyluchtmeetnet)
![PyPI - Downloads](https://img.shields.io/pypi/dm/pyluchtmeetnet)

# pyluchtmeetnet

A python package to use the [Luchtmeetnet 2020 OpenAPI][luchtmeetnet-api].

## Installation

```shell
$ pip3 install pyluchtmeetnet
```

## Code example

```python
from pyluchtmeetnet import Luchtmeetnet

latitude = 52.0808
longitude = 4.3063

lmn = Luchtmeetnet()

# Get nearest station
station = lmn.get_nearest_station_data(latitude, longitude)
print(station)

# Get latest LKI from station
lki = lmn.get_latest_station_lki(station["number"])
print(lki)

# Get latest measurements from station
measurements = lmn.get_latest_station_measurements(station["number"])
print(measurements)
```

[luchtmeetnet-api]: https://api-docs.luchtmeetnet.nl/

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/metbril/pyluchtmeetnet",
    "name": "pyluchtmeetnet",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4,>=3.8",
    "maintainer_email": null,
    "keywords": "air quality, health, api",
    "author": "Robert van Bregt",
    "author_email": "robertvanbregt@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/e2/6b/9024279e02cba1fc2c7a6a2bfe456261e79d509154eff758c14fb1648169/pyluchtmeetnet-0.1.3.tar.gz",
    "platform": null,
    "description": "![PyPI - Version](https://img.shields.io/pypi/v/pyluchtmeetnet)\n![PyPI - Status](https://img.shields.io/pypi/status/pyluchtmeetnet)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/pyluchtmeetnet)\n\n# pyluchtmeetnet\n\nA python package to use the [Luchtmeetnet 2020 OpenAPI][luchtmeetnet-api].\n\n## Installation\n\n```shell\n$ pip3 install pyluchtmeetnet\n```\n\n## Code example\n\n```python\nfrom pyluchtmeetnet import Luchtmeetnet\n\nlatitude = 52.0808\nlongitude = 4.3063\n\nlmn = Luchtmeetnet()\n\n# Get nearest station\nstation = lmn.get_nearest_station_data(latitude, longitude)\nprint(station)\n\n# Get latest LKI from station\nlki = lmn.get_latest_station_lki(station[\"number\"])\nprint(lki)\n\n# Get latest measurements from station\nmeasurements = lmn.get_latest_station_measurements(station[\"number\"])\nprint(measurements)\n```\n\n[luchtmeetnet-api]: https://api-docs.luchtmeetnet.nl/\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A module for getting air quality data from Luchtmeetnet OpenAPI",
    "version": "0.1.3",
    "project_urls": {
        "Bug Reports": "https://github.com/metbril/pyluchtmeetnet/issues",
        "Funding": "https://ko-fi.com/metbril",
        "Homepage": "https://github.com/metbril/pyluchtmeetnet",
        "Source": "https://github.com/metbril/pyluchtmeetnet/"
    },
    "split_keywords": [
        "air quality",
        " health",
        " api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "074d85e697552bc9514433ed301d4d88ddba99b511f3a98c998befd882d60a53",
                "md5": "fe63edfdf141cedfae980a15776c8b13",
                "sha256": "014036663d2796a0acb7ead82c251330ed8ca2a6cc1c4debdf5e2f06a2e939ea"
            },
            "downloads": -1,
            "filename": "pyluchtmeetnet-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fe63edfdf141cedfae980a15776c8b13",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4,>=3.8",
            "size": 4714,
            "upload_time": "2024-05-06T12:24:18",
            "upload_time_iso_8601": "2024-05-06T12:24:18.942284Z",
            "url": "https://files.pythonhosted.org/packages/07/4d/85e697552bc9514433ed301d4d88ddba99b511f3a98c998befd882d60a53/pyluchtmeetnet-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e26b9024279e02cba1fc2c7a6a2bfe456261e79d509154eff758c14fb1648169",
                "md5": "40de85d7f7a2d077bdb170998d6213cc",
                "sha256": "6ee6dcb90b128ca2e72dc417af0afa2c0cf7f44bd79d7a61ae925fcc4b68bf02"
            },
            "downloads": -1,
            "filename": "pyluchtmeetnet-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "40de85d7f7a2d077bdb170998d6213cc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4,>=3.8",
            "size": 4531,
            "upload_time": "2024-05-06T12:24:20",
            "upload_time_iso_8601": "2024-05-06T12:24:20.125661Z",
            "url": "https://files.pythonhosted.org/packages/e2/6b/9024279e02cba1fc2c7a6a2bfe456261e79d509154eff758c14fb1648169/pyluchtmeetnet-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-06 12:24:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "metbril",
    "github_project": "pyluchtmeetnet",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "requests",
            "specs": []
        }
    ],
    "lcname": "pyluchtmeetnet"
}
        
Elapsed time: 0.23665s