python_opensky


Namepython_opensky JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/joostlek/python-opensky
SummaryAsynchronous Python client for Opensky API.
upload_time2024-06-29 11:35:28
maintainerJoost Lekkerkerker
docs_urlNone
authorJoost Lekkerkerker
requires_python<4.0,>=3.11
licenseMIT
keywords opensky api async client
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Python: OpenSky

[![GitHub Release][releases-shield]][releases]
[![Python Versions][python-versions-shield]][pypi]
![Project Stage][project-stage-shield]
![Project Maintenance][maintenance-shield]
[![License][license-shield]](LICENSE.md)

[![Build Status][build-shield]][build]
[![Code Coverage][codecov-shield]][codecov]
[![Code Smells][code-smells]][sonarcloud]

Asynchronous Python client for the OpenSky API.

## About

This package allows you to request data about aircraft around the world.

## Installation

```bash
pip install python-opensky
```

## Usage

```python
import asyncio

from python_opensky import OpenSky, StatesResponse


async def main() -> None:
    """Show example of fetching all flight states."""
    async with OpenSky() as opensky:
        states: StatesResponse = await opensky.get_states()
        print(states)


if __name__ == "__main__":
    asyncio.run(main())
```

## Changelog & Releases

This repository keeps a change log using [GitHub's releases][releases]
functionality. The format of the log is based on
[Keep a Changelog][keepchangelog].

Releases are based on [Semantic Versioning][semver], and use the format
of ``MAJOR.MINOR.PATCH``. In a nutshell, the version will be incremented
based on the following:

- ``MAJOR``: Incompatible or major changes.
- ``MINOR``: Backwards-compatible new features and enhancements.
- ``PATCH``: Backwards-compatible bugfixes and package updates.

## Contributing

This is an active open-source project. We are always open to people who want to
use the code or contribute to it.

We've set up a separate document for our
[contribution guidelines](.github/CONTRIBUTING.md).

Thank you for being involved! :heart_eyes:

## Setting up development environment

This Python project is fully managed using the [Poetry][poetry] dependency manager. But also relies on the use of NodeJS for certain checks during development.

You need at least:

- Python 3.10+
- [Poetry][poetry-install]
- NodeJS 12+ (including NPM)

To install all packages, including all development requirements:

```bash
npm install
poetry install
```

As this repository uses the [pre-commit][pre-commit] framework, all changes
are linted and tested with each commit. You can run all checks and tests
manually, using the following command:

```bash
poetry run pre-commit run --all-files
```

To run just the Python tests:

```bash
poetry run pytest
```

## Authors & contributors

The original setup of this repository is heavily inspired by [Franck Nijhof][frenck].

The content is by [Joost Lekkerkerker][joostlek]

For a full list of all authors and contributors,
check [the contributor's page][contributors].

## License

MIT License

Copyright (c) 2023 Joost Lekkerkerker

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

[build-shield]: https://github.com/joostlek/python-opensky/actions/workflows/tests.yaml/badge.svg
[build]: https://github.com/joostlek/python-opensky/actions
[code-smells]: https://sonarcloud.io/api/project_badges/measure?project=joostlek_python-opensky&metric=code_smells
[codecov-shield]: https://codecov.io/gh/joostlek/python-opensky/branch/master/graph/badge.svg
[codecov]: https://codecov.io/gh/joostlek/python-opensky
[commits-shield]: https://img.shields.io/github/commit-activity/y/joostlek/python-opensky.svg
[commits]: https://github.com/joostlek/python-opensky/commits/master
[contributors]: https://github.com/joostlek/python-opensky/graphs/contributors
[frenck]: https://github.com/frenck
[joostlek]: https://github.com/joostlek
[keepchangelog]: http://keepachangelog.com/en/1.0.0/
[license-shield]: https://img.shields.io/github/license/joostlek/python-opensky.svg
[maintenance-shield]: https://img.shields.io/maintenance/yes/2023.svg
[poetry-install]: https://python-poetry.org/docs/#installation
[poetry]: https://python-poetry.org
[pre-commit]: https://pre-commit.com/
[project-stage-shield]: https://img.shields.io/badge/project%20stage-stable-green.svg
[python-versions-shield]: https://img.shields.io/pypi/pyversions/python-opensky
[releases-shield]: https://img.shields.io/github/release/joostlek/python-opensky.svg
[releases]: https://github.com/joostlek/python-opensky/releases
[semver]: http://semver.org/spec/v2.0.0.html
[sonarcloud]: https://sonarcloud.io/summary/new_code?id=joostlek_python-opensky
[pypi]: https://pypi.org/project/python-opensky/

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/joostlek/python-opensky",
    "name": "python_opensky",
    "maintainer": "Joost Lekkerkerker",
    "docs_url": null,
    "requires_python": "<4.0,>=3.11",
    "maintainer_email": "joostlek@outlook.com",
    "keywords": "opensky, api, async, client",
    "author": "Joost Lekkerkerker",
    "author_email": "joostlek@outlook.com",
    "download_url": "https://files.pythonhosted.org/packages/3f/79/75314a0977ed224efd42d81ea257544982d3dfd219a57d2ad00f5b10f30a/python_opensky-1.0.1.tar.gz",
    "platform": null,
    "description": "# Python: OpenSky\n\n[![GitHub Release][releases-shield]][releases]\n[![Python Versions][python-versions-shield]][pypi]\n![Project Stage][project-stage-shield]\n![Project Maintenance][maintenance-shield]\n[![License][license-shield]](LICENSE.md)\n\n[![Build Status][build-shield]][build]\n[![Code Coverage][codecov-shield]][codecov]\n[![Code Smells][code-smells]][sonarcloud]\n\nAsynchronous Python client for the OpenSky API.\n\n## About\n\nThis package allows you to request data about aircraft around the world.\n\n## Installation\n\n```bash\npip install python-opensky\n```\n\n## Usage\n\n```python\nimport asyncio\n\nfrom python_opensky import OpenSky, StatesResponse\n\n\nasync def main() -> None:\n    \"\"\"Show example of fetching all flight states.\"\"\"\n    async with OpenSky() as opensky:\n        states: StatesResponse = await opensky.get_states()\n        print(states)\n\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n```\n\n## Changelog & Releases\n\nThis repository keeps a change log using [GitHub's releases][releases]\nfunctionality. The format of the log is based on\n[Keep a Changelog][keepchangelog].\n\nReleases are based on [Semantic Versioning][semver], and use the format\nof ``MAJOR.MINOR.PATCH``. In a nutshell, the version will be incremented\nbased on the following:\n\n- ``MAJOR``: Incompatible or major changes.\n- ``MINOR``: Backwards-compatible new features and enhancements.\n- ``PATCH``: Backwards-compatible bugfixes and package updates.\n\n## Contributing\n\nThis is an active open-source project. We are always open to people who want to\nuse the code or contribute to it.\n\nWe've set up a separate document for our\n[contribution guidelines](.github/CONTRIBUTING.md).\n\nThank you for being involved! :heart_eyes:\n\n## Setting up development environment\n\nThis Python project is fully managed using the [Poetry][poetry] dependency manager. But also relies on the use of NodeJS for certain checks during development.\n\nYou need at least:\n\n- Python 3.10+\n- [Poetry][poetry-install]\n- NodeJS 12+ (including NPM)\n\nTo install all packages, including all development requirements:\n\n```bash\nnpm install\npoetry install\n```\n\nAs this repository uses the [pre-commit][pre-commit] framework, all changes\nare linted and tested with each commit. You can run all checks and tests\nmanually, using the following command:\n\n```bash\npoetry run pre-commit run --all-files\n```\n\nTo run just the Python tests:\n\n```bash\npoetry run pytest\n```\n\n## Authors & contributors\n\nThe original setup of this repository is heavily inspired by [Franck Nijhof][frenck].\n\nThe content is by [Joost Lekkerkerker][joostlek]\n\nFor a full list of all authors and contributors,\ncheck [the contributor's page][contributors].\n\n## License\n\nMIT License\n\nCopyright (c) 2023 Joost Lekkerkerker\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n[build-shield]: https://github.com/joostlek/python-opensky/actions/workflows/tests.yaml/badge.svg\n[build]: https://github.com/joostlek/python-opensky/actions\n[code-smells]: https://sonarcloud.io/api/project_badges/measure?project=joostlek_python-opensky&metric=code_smells\n[codecov-shield]: https://codecov.io/gh/joostlek/python-opensky/branch/master/graph/badge.svg\n[codecov]: https://codecov.io/gh/joostlek/python-opensky\n[commits-shield]: https://img.shields.io/github/commit-activity/y/joostlek/python-opensky.svg\n[commits]: https://github.com/joostlek/python-opensky/commits/master\n[contributors]: https://github.com/joostlek/python-opensky/graphs/contributors\n[frenck]: https://github.com/frenck\n[joostlek]: https://github.com/joostlek\n[keepchangelog]: http://keepachangelog.com/en/1.0.0/\n[license-shield]: https://img.shields.io/github/license/joostlek/python-opensky.svg\n[maintenance-shield]: https://img.shields.io/maintenance/yes/2023.svg\n[poetry-install]: https://python-poetry.org/docs/#installation\n[poetry]: https://python-poetry.org\n[pre-commit]: https://pre-commit.com/\n[project-stage-shield]: https://img.shields.io/badge/project%20stage-stable-green.svg\n[python-versions-shield]: https://img.shields.io/pypi/pyversions/python-opensky\n[releases-shield]: https://img.shields.io/github/release/joostlek/python-opensky.svg\n[releases]: https://github.com/joostlek/python-opensky/releases\n[semver]: http://semver.org/spec/v2.0.0.html\n[sonarcloud]: https://sonarcloud.io/summary/new_code?id=joostlek_python-opensky\n[pypi]: https://pypi.org/project/python-opensky/\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Asynchronous Python client for Opensky API.",
    "version": "1.0.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/joostlek/python-opensky/issues",
        "Changelog": "https://github.com/joostlek/python-opensky/releases",
        "Documentation": "https://github.com/joostlek/python-opensky",
        "Homepage": "https://github.com/joostlek/python-opensky",
        "Repository": "https://github.com/joostlek/python-opensky"
    },
    "split_keywords": [
        "opensky",
        " api",
        " async",
        " client"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3ce6284c4f3510807d89c9981fc8de668d6fff6ac772a16aedb871f5f0ed4590",
                "md5": "19a6feedc98b089bbfbc56baeea31e88",
                "sha256": "158cb1248e28ff517641635071cd620bbb12b100a7fe305c30211eb03c55846f"
            },
            "downloads": -1,
            "filename": "python_opensky-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "19a6feedc98b089bbfbc56baeea31e88",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.11",
            "size": 10954,
            "upload_time": "2024-06-29T11:35:27",
            "upload_time_iso_8601": "2024-06-29T11:35:27.199489Z",
            "url": "https://files.pythonhosted.org/packages/3c/e6/284c4f3510807d89c9981fc8de668d6fff6ac772a16aedb871f5f0ed4590/python_opensky-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3f7975314a0977ed224efd42d81ea257544982d3dfd219a57d2ad00f5b10f30a",
                "md5": "0f2ad5c5de70695f6a06235fe933b4d7",
                "sha256": "fa5fc3c760f3fa32061e23e10ce8a5b3eb17f3cae65e7957460600bc36d4ed9e"
            },
            "downloads": -1,
            "filename": "python_opensky-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "0f2ad5c5de70695f6a06235fe933b4d7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.11",
            "size": 11640,
            "upload_time": "2024-06-29T11:35:28",
            "upload_time_iso_8601": "2024-06-29T11:35:28.303946Z",
            "url": "https://files.pythonhosted.org/packages/3f/79/75314a0977ed224efd42d81ea257544982d3dfd219a57d2ad00f5b10f30a/python_opensky-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-29 11:35:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "joostlek",
    "github_project": "python-opensky",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "python_opensky"
}
        
Elapsed time: 0.28615s