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)
Built Distribution
Close
Hashes for pyosmptparser-1.2.2-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fc2dd0ef7a11d396052c0fa565def672a8c89d2dc0c6760ed8f183d2c2c4361 |
|
MD5 | 8f5ac7edca69fb6ad0c021e08c586270 |
|
BLAKE2b-256 | 13ec78afbf682e1db209f86e01bf2d835f245802a5a9cf0ac969d1c882813907 |