Skip to content

Adding python development guide#4976

Open
LeStarch wants to merge 2 commits intonasa:develfrom
LeStarch:issue-4958
Open

Adding python development guide#4976
LeStarch wants to merge 2 commits intonasa:develfrom
LeStarch:issue-4958

Conversation

@LeStarch
Copy link
Copy Markdown
Collaborator

@LeStarch LeStarch commented Apr 8, 2026

Related Issue(s)
Has Unit Tests (y/n)
Documentation Included (y/n) y
Generative AI was used in this contribution (y/n)

Change Description

How-To for F Prime Python.

Rationale

Community request.

Testing/Review Recommendations

Student review.

Future Work

AI Usage (see policy)

Autocomplete.

@LeStarch LeStarch requested a review from thomas-bc April 8, 2026 18:50
Signed-off-by: M Starch <LeStarch@googlemail.com>
Copy link
Copy Markdown
Collaborator

@thomas-bc thomas-bc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 🐍 🎉

Looking good - a few recs

Once added, users should install `fprime-python` into their Python environment.

```bash
pip install lib/fprime-python
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making it clear it's a local path so the error is more meaningful if it's ran elsewhere

Suggested change
pip install lib/fprime-python
pip install ./lib/fprime-python

- A working F Prime development environment
- An understanding of how to create F Prime projects using F Prime libraries
- Basic familiarity with FPP and the generated C++ structure
- Working of Python development
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo somewhere?

pybind11::class_<ReferenceDeployment::TopologyState>(m, "TopologyState")
.def(pybind11::init<>())
.def_readwrite("hostname", &ReferenceDeployment::TopologyState::hostname)
.def_readwrite("port", &ReferenceDeployment::TopologyState::port);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be good to link to a few specific docs of pybind11 here, or add a bit more details to the guide. I can guess at what's going on, but not much more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants