目录

ci Documentation Status codecov PyPI version

cfdp-py - High level Python library for CFDP components

The cfdp-py library offers some high-level CCSDS File Delivery Protocol (CFDP) components to perform file transfers according to the CCSDS Blue Book 727.0-B-5. The underlying base packet library used to generate the packets to be sent is the spacepackets library.

Features

This library supports the following features:

  • Unacknowledged (class 1) file transfers for both the sending and destination side
  • Acknowledged (class 2) file transfers for both the sending and destination side

The following features have not been implemented yet. PRs or notifications for demand are welcome!

  • Suspending transfers
  • Inactivity handling
  • Start and end of transmission and reception opportunity handling
  • Keep Alive and Prompt PDU handling

Install

You can install this package from PyPI

For example, using uv

Setting up virtual environment:

uv venv

Regular install:

uv pip install -e .

Interactive install with testing support:

uv pip install -e ".[test]"

Examples

You can find all examples inside the documentation and the examples directory of this repository.

Tests

If you want to run the tests, it is recommended to install pytest and coverage (optional) first. You also have to install the package with the optional test feature:

uv pip install -e ".[test]"

Running tests regularly:

pytest

Running tests with coverage:

coverage run -m pytest

Documentation

The documentation is built with Sphinx

Install the required dependencies first:

pip install -r docs/requirements.txt

Then the documentation can be built with

cd docs
make html

You can run the doctests with

make doctest

Formatting and Linting

Linting:

ruff check

Formatting:

ruff format
关于

斯图加特大学 IRS 团队 Python 高层 CFDP 组件库,实现 CCSDS 文件传输协议收发端,接口简洁易集成,可配合 tmtccmd 等工具完成星地文件传输开发与测试。镜像收录自 https://github.com/us-irs/cfdp-py,License:Apache-2.0

442.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802047560号