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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyosmptparser-2.2.0.tar.gz.
File metadata
- Download URL: pyosmptparser-2.2.0.tar.gz
- Upload date:
- Size: 77.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c28cb80542719f961e694a80decfdd95ada8e96f96dd5b97a09050785d65d125
|
|
| MD5 |
1d8176ad674ba5a4d9e7c8b9ccc9b47c
|
|
| BLAKE2b-256 |
3e0d0525260331ceb90a84efa6dfdc39e6105c371d2d34bbf3f77aea0b7c1fd2
|
File details
Details for the file pyosmptparser-2.2.0-cp312-cp312-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: pyosmptparser-2.2.0-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 441.1 kB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c7825798c6babb5c250fecda697bcb641df68df71fea327678abd93bc582680
|
|
| MD5 |
be5b8215acce03dab346323f3b4b9255
|
|
| BLAKE2b-256 |
bdbce999ed3db90ec85f212b1e7c36266fe75f56bbc503947ff7ca4d11434121
|