Skip to main content

No project description provided

Project description

A python wrapper for osmptparser

Install

pip install pyosmptparser

pypi package: https://pypi.org/project/pyosmptparser/

Usage

import pyosmptparser
p = pyosmptparser.Parser('ecuador-osm.pbf')
pts = p.get_public_transports(150)
pt1 = [p for p in pts if p.id == 85965][0]
print(pt1)

(see test_pyosmptparser.py file for a more complete example)

Develop

git clone git@github.com:cualbondi/pyosmptparser.git
cd pyosmptparser
rustup override set nightly
virtualenv --python python3 .env
source .env/bin/activate

# run tests
pip3 install tox maturin
tox

# build and copy
maturin develop
cp target/debug/libpyosmptparser.so pyosmptparser.so

# build and deploy
maturin publish

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

pyosmptparser-1.2.2.tar.gz (72.5 kB view hashes)

Uploaded Source

Built Distribution

pyosmptparser-1.2.2-cp38-cp38-manylinux1_x86_64.whl (324.7 kB view hashes)

Uploaded CPython 3.8

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