NTRIP Browser for terminal
Project description
# NTRIP Browser
A simple Python API for browse NTRIP (Networked Transport of RTCM via Internet Protocol).
### Dependencies
`geopy`
`texttable`
The package was tested with **Python 2.7**
### Installation
`pip install ntripbrowser`
or clone and run `make install`
### Usage
```
ntripbrowser [-h] [-p PORT] [-v] [-N] [-C] [-n] [-s] url
positional arguments:
url NTRIP source table address
optional arguments:
-h, --help Show this help message and exit
-p PORT, --port PORT Change url port. Default port is 2101
-v, --verbose Increase output verbosity
-N, --NETtable Additionaly show NET table
-C, --CATtable Additionaly show CAT table
-n, --no-pager No pager
-s, --source Display url source data
```
### Package API
```python
from ntripbrowser import get_mountpoints
mntpoints = get_mountpoints("ntrip.emlid.com", base_point=(59.96032, 30.33409))
for mnt in sorted(mntpoints, key=lambda mnt: mnt["Distance"]):
print("{:10} ({}): {:.4f} km".format(mnt["Mountpoint"], mnt["Format"], mnt["Distance"]))
```
A simple Python API for browse NTRIP (Networked Transport of RTCM via Internet Protocol).
### Dependencies
`geopy`
`texttable`
The package was tested with **Python 2.7**
### Installation
`pip install ntripbrowser`
or clone and run `make install`
### Usage
```
ntripbrowser [-h] [-p PORT] [-v] [-N] [-C] [-n] [-s] url
positional arguments:
url NTRIP source table address
optional arguments:
-h, --help Show this help message and exit
-p PORT, --port PORT Change url port. Default port is 2101
-v, --verbose Increase output verbosity
-N, --NETtable Additionaly show NET table
-C, --CATtable Additionaly show CAT table
-n, --no-pager No pager
-s, --source Display url source data
```
### Package API
```python
from ntripbrowser import get_mountpoints
mntpoints = get_mountpoints("ntrip.emlid.com", base_point=(59.96032, 30.33409))
for mnt in sorted(mntpoints, key=lambda mnt: mnt["Distance"]):
print("{:10} ({}): {:.4f} km".format(mnt["Mountpoint"], mnt["Format"], mnt["Distance"]))
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ntripbrowser-0.0.7.tar.gz
(17.9 kB
view hashes)