用于从Lowrance鱼探读取SLG、SL2和SL3文件的库
项目描述
SLLib
用于读取由Lowrance鱼探创建的SLG或SL2文件的Python库。仅在Python 3.6和3.7上进行了测试
Git仓库和主页位于 https://github.com/opensounder/python-sllib
在版本1.x.y中,对x的任何更改都可能是破坏性更改。否则,它应遵循相同的版本化原则。
安装
使用pip
pip install sllib
从git克隆
python3 setup.py install
使用方法
python3
>>> import sllib
>>> with open('somefile.sl2', 'rb) as f:
... reader = sllib.Reader(f)
... header = reader.header
... print(header.format)
... for frame in reader:
... print(frame.gps_speed)
或者查看 https://github.com/opensounder/jupyter-notebooks
示例
# this will create a file called `small.csv` in current directory
python ./examples/tocsv.py ./tests/sample-data-lowrance/Elite_4_Chirp/small.sl2
开发
git clone https://github.com/opensounder/python-sllib
cd python-sllib
python3 -m venv venv
. venv/bin/activate
pip install -e .
pip install -r dev-requirements.txt
# then to test in for example python 3.9
# change to what fits your installation
tox -e py39
# before committing please run lint and fix any issues
tox -e lint
SLG信息
除了试错之外
项目详情
下载文件
下载适用于您的平台的文件。如果您不确定选择哪个,请了解有关 安装包 的更多信息。
源分布
sllib-0.2.3.tar.gz (8.6 kB 查看哈希值)
构建分发版
sllib-0.2.3-py3-none-any.whl (8.6 kB 查看哈希值)
关闭
sllib-0.2.3.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | f27ea1d3183687f28e0bc055cd8217f072d90da390494b885b2b6056e2ac37d6 |
|
MD5 | 576820216cffb81f92a23237909bd811 |
|
BLAKE2b-256 | 63ce5a442d31a6aa5bad11d5ae56314eeb697efd6e8c1b97f0e9fbb9273df088 |
关闭
sllib-0.2.3-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 7eec0b718112a63917c619d48609ed70cc0a564e5258246f1630ec035608fb35 |
|
MD5 | 872adade7306b645444e852c52b2495e |
|
BLAKE2b-256 | a230b2bda7384ff1c8b09d93e10d971a00d4a831e82b310568e2d49e63689808 |