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-2.2.0.tar.gz
(77.5 kB
view hashes)
Built Distribution
Close
Hashes for pyosmptparser-2.2.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c7825798c6babb5c250fecda697bcb641df68df71fea327678abd93bc582680 |
|
MD5 | be5b8215acce03dab346323f3b4b9255 |
|
BLAKE2b-256 | bdbce999ed3db90ec85f212b1e7c36266fe75f56bbc503947ff7ca4d11434121 |