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 details)
Built Distribution
File details
Details for the file pyosmptparser-1.2.2.tar.gz
.
File metadata
- Download URL: pyosmptparser-1.2.2.tar.gz
- Upload date:
- Size: 72.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad36931e7403675a44baa8b99d5ea36697b53f6490bf225fd1b758676ea2ea48 |
|
MD5 | d7f60edeae25747dbea3a60484a99657 |
|
BLAKE2b-256 | 675455f393e377c8c13ea0e23eed6f4977367a13adcfecf25f6e9ac0b00550d1 |
File details
Details for the file pyosmptparser-1.2.2-cp38-cp38-manylinux1_x86_64.whl
.
File metadata
- Download URL: pyosmptparser-1.2.2-cp38-cp38-manylinux1_x86_64.whl
- Upload date:
- Size: 324.7 kB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fc2dd0ef7a11d396052c0fa565def672a8c89d2dc0c6760ed8f183d2c2c4361 |
|
MD5 | 8f5ac7edca69fb6ad0c021e08c586270 |
|
BLAKE2b-256 | 13ec78afbf682e1db209f86e01bf2d835f245802a5a9cf0ac969d1c882813907 |