# Python package to communicate with ublox receivers
Python package to communicate with ublox chipsets
To install the package:
```bash
pip3 install pyublox
```
## Basic usage
This section includes some basic sections on how to use the package
```bash
# Help
pyublox -h
# Autodetect ublox receiver connected via a serial port, including some
# basic receiver configuration (rates, tracked signals, ...)
pyublox detect
```
## Testing the package
This package uses the pytest suite, to execute the tests, issue the following
command
```bash
pytest -v -r s /path/to/source
```
The `-r s` option is used to show the reason of skipped tests or modules
### Development within a Docker container
The best way to develop the package is by using a controlled environement.
To do this, run a Python 3.7 container like so
```bash
docker run -v `pwd`:/pyublox -ti rokubun/gcc:debian-python3.7 bash
```
If deveoping within the Raspberry Pi
```bash
docker run -v `pwd`:/pyublox --device=/dev/ttyACM0 -ti python:3.7 bash
# Develop using jupyter (mounting a folder to store the Notebooks)
cd amic/pyublox/
docker run -v `pwd`:/pyublox -v "${PWD}/notebooks":/notebooks -p 8888:8888 --device=/dev/ttyACM0 -ti andresvidal/jupyter-armv7l
```
Once within the container type the following commands:
```bash
# The package requires git to work properly
pip install -e /pyublox
```
More information on the image available in [jupyter-armv7l repository](https://github.com/andresvidal/jupyter-armv7l)
We can also use docker compose
```bash
# Build the image
cd amic/pyublox/
docker-compose build
# Or directly run the container for development, this is equivalent to the
# docker run call shown above, but we do not need to launch pip install
docker-compose up
```
## Submission to PyPi
In order to deploy to PyPi
```bash
# Update setuptools
python3 -m pip install --user --upgrade setuptools wheel
# Create the distribution wheel
python3 setup.py sdist bdist_wheel
# Upload the distribution wheels to the PyPi repo
python3 -m twine upload dist/*
```
More details on deployment can be found [here](https://packaging.python.org/tutorials/packaging-projects/#generating-distribution-archives).
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共20个文件
py:10个
txt:5个
pkg-info:2个
资源分类:Python库 所属语言:Python 资源全名:pyublox-3.1.2.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
pyublox-3.1.2.tar.gz (20个子文件)
pyublox-3.1.2
PKG-INFO 3KB
pyublox.egg-info
PKG-INFO 3KB
requires.txt 30B
not-zip-safe 1B
SOURCES.txt 452B
entry_points.txt 47B
top_level.txt 8B
dependency_links.txt 1B
pyublox
main.py 5KB
commands.py 3KB
__init__.py 147B
ublox
constants.py 405B
core.py 21KB
helpers.py 362B
__init__.py 85B
config.py 9KB
receiver.py 15KB
setup.cfg 79B
setup.py 995B
README.md 2KB
共 20 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功