跳至主要内容

用于从Lowrance鱼探读取SLG、SL2和SL3文件的库

项目描述

SLLib

用于读取由Lowrance鱼探创建的SLG或SL2文件的Python库。仅在Python 3.6和3.7上进行了测试

Git仓库和主页位于 https://github.com/opensounder/python-sllib

example workflow

在版本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 查看哈希值)

上传于 Python 3

由...

AWSAWS云计算和安全赞助商DatadogDatadog监控FastlyFastlyCDNGoogleGoogle下载分析MicrosoftMicrosoftPSF赞助商PingdomPingdom监控SentrySentry错误记录StatusPageStatusPage状态页面