gpx


Namegpx JSON
Version 0.2.1 PyPI version JSON
download
home_pageNone
SummaryPyGPX is a Python package that brings support for reading, writing and
upload_time2023-04-09 20:15:08
maintainerNone
docs_urlNone
authorNone
requires_python~=3.7
licenseNone
keywords gpx gps xml
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <!-- start docs-include-index -->

# PyGPX

[![PyPI](https://img.shields.io/pypi/v/gpx)](https://img.shields.io/pypi/v/gpx)
[![Supported Python Versions](https://img.shields.io/pypi/pyversions/gpx)](https://pypi.org/project/gpx/)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/sgraaf/gpx/main.svg)](https://results.pre-commit.ci/latest/github/sgraaf/gpx/main)
[![Documentation Status](https://readthedocs.org/projects/gpx/badge/?version=latest)](https://gpx.readthedocs.io/en/latest/?badge=latest)
[![PyPI - License](https://img.shields.io/pypi/l/gpx)](https://img.shields.io/pypi/l/gpx)

PyGPX is a Python package that brings support for reading, writing and converting GPX files.

<!-- end docs-include-index -->

## Installation

<!-- start docs-include-installation -->

### From PyPI

PyGPX is available on [PyPI](https://pypi.org/project/gpx/). Install with `pip` or your package manager of choice:

```bash
pip install gpx
```

### From source

If you'd like, you can also install PyGPX from source (with [`flit`](https://flit.readthedocs.io/en/latest/)):

```bash
git clone https://github.com/sgraaf/gpx.git
cd gpx
python3 -m pip install flit
flit install
```

<!-- end docs-include-installation -->

## Documentation

Check out the [PyGPX documentation](https://gpx.readthedocs.io/en/stable/) for the [User's Guide](https://gpx.readthedocs.io/en/stable/usage.html) and [API Reference](https://gpx.readthedocs.io/en/stable/api.html).

## Usage

<!-- start docs-include-usage -->

### Reading a GPX file

```python
>>> from gpx import GPX
>>> # read the GPX data from file
>>> gpx = GPX.from_file("path/to/file.gpx")
>>> # print the bounds of the GPX data
>>> print(gpx.bounds)
```

### Manipulating GPX data

```python
>>> from gpx import Waypoint
>>>
>>> # delete the last waypoint
>>> del gpx.waypoints[-1]
>>>
>>> # add a new waypoint
>>> wpt = Waypoint()
>>> wpt.latitude = 52.123
>>> wpt.longitude = 4.123
>>> gpx.waypoints.append(wpt)
```

### Writing a GPX file

```python
>>> # write the GPX data to a file
>>> gpx.to_file("path/to/file.gpx")
```

<!-- end docs-include-usage -->

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "gpx",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "~=3.7",
    "maintainer_email": null,
    "keywords": "gpx,gps,xml",
    "author": null,
    "author_email": "Steven van de Graaf <steven@vandegraaf.xyz>",
    "download_url": "https://files.pythonhosted.org/packages/95/ed/3757326aa4df3cf66d4aff5a4bfa2c0f4db9237a3a654be1a9aeb58a9aff/gpx-0.2.1.tar.gz",
    "platform": null,
    "description": "<!-- start docs-include-index -->\n\n# PyGPX\n\n[![PyPI](https://img.shields.io/pypi/v/gpx)](https://img.shields.io/pypi/v/gpx)\n[![Supported Python Versions](https://img.shields.io/pypi/pyversions/gpx)](https://pypi.org/project/gpx/)\n[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/sgraaf/gpx/main.svg)](https://results.pre-commit.ci/latest/github/sgraaf/gpx/main)\n[![Documentation Status](https://readthedocs.org/projects/gpx/badge/?version=latest)](https://gpx.readthedocs.io/en/latest/?badge=latest)\n[![PyPI - License](https://img.shields.io/pypi/l/gpx)](https://img.shields.io/pypi/l/gpx)\n\nPyGPX is a Python package that brings support for reading, writing and converting GPX files.\n\n<!-- end docs-include-index -->\n\n## Installation\n\n<!-- start docs-include-installation -->\n\n### From PyPI\n\nPyGPX is available on [PyPI](https://pypi.org/project/gpx/). Install with `pip` or your package manager of choice:\n\n```bash\npip install gpx\n```\n\n### From source\n\nIf you'd like, you can also install PyGPX from source (with [`flit`](https://flit.readthedocs.io/en/latest/)):\n\n```bash\ngit clone https://github.com/sgraaf/gpx.git\ncd gpx\npython3 -m pip install flit\nflit install\n```\n\n<!-- end docs-include-installation -->\n\n## Documentation\n\nCheck out the [PyGPX documentation](https://gpx.readthedocs.io/en/stable/) for the [User's Guide](https://gpx.readthedocs.io/en/stable/usage.html) and [API Reference](https://gpx.readthedocs.io/en/stable/api.html).\n\n## Usage\n\n<!-- start docs-include-usage -->\n\n### Reading a GPX file\n\n```python\n>>> from gpx import GPX\n>>> # read the GPX data from file\n>>> gpx = GPX.from_file(\"path/to/file.gpx\")\n>>> # print the bounds of the GPX data\n>>> print(gpx.bounds)\n```\n\n### Manipulating GPX data\n\n```python\n>>> from gpx import Waypoint\n>>>\n>>> # delete the last waypoint\n>>> del gpx.waypoints[-1]\n>>>\n>>> # add a new waypoint\n>>> wpt = Waypoint()\n>>> wpt.latitude = 52.123\n>>> wpt.longitude = 4.123\n>>> gpx.waypoints.append(wpt)\n```\n\n### Writing a GPX file\n\n```python\n>>> # write the GPX data to a file\n>>> gpx.to_file(\"path/to/file.gpx\")\n```\n\n<!-- end docs-include-usage -->\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "PyGPX is a Python package that brings support for reading, writing and",
    "version": "0.2.1",
    "split_keywords": [
        "gpx",
        "gps",
        "xml"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "584b29a9d230f8dd07828904bb94c3c4ae5e8b3d9415b1878f4141bdf59234b4",
                "md5": "a6c3a172e14655fe5fceb9d5e0c55f50",
                "sha256": "10f34830d1cc7b35e3ee40d07b57ff7c8006c9e5b2b01111d111f23da9fa1e1d"
            },
            "downloads": -1,
            "filename": "gpx-0.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a6c3a172e14655fe5fceb9d5e0c55f50",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": "~=3.7",
            "size": 37285,
            "upload_time": "2023-04-09T20:15:06",
            "upload_time_iso_8601": "2023-04-09T20:15:06.737797Z",
            "url": "https://files.pythonhosted.org/packages/58/4b/29a9d230f8dd07828904bb94c3c4ae5e8b3d9415b1878f4141bdf59234b4/gpx-0.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "95ed3757326aa4df3cf66d4aff5a4bfa2c0f4db9237a3a654be1a9aeb58a9aff",
                "md5": "f8bb2fba78bf629da21cb304d380a6e7",
                "sha256": "90d25252432557a226ed54260f197cd7520226be3ea4573ea565c9544fc399b8"
            },
            "downloads": -1,
            "filename": "gpx-0.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "f8bb2fba78bf629da21cb304d380a6e7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "~=3.7",
            "size": 35278,
            "upload_time": "2023-04-09T20:15:08",
            "upload_time_iso_8601": "2023-04-09T20:15:08.428451Z",
            "url": "https://files.pythonhosted.org/packages/95/ed/3757326aa4df3cf66d4aff5a4bfa2c0f4db9237a3a654be1a9aeb58a9aff/gpx-0.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-09 20:15:08",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "gpx"
}
        
Elapsed time: 0.12025s