Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python: major rewrite with more full-featured edge node examples #178

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions python/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build
dist
32 changes: 32 additions & 0 deletions python/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Add in "function annotations" or use "typing" module?

https://docs.python.org/3/tutorial/modules.html

# Python specific hints and tips

Basic instructions used to setup Python packaging found here: https://packaging.python.org/en/latest/tutorials/packaging-projects/

## Building PIP package

From in the `python` directory:

```
python3 -m build
```

## Install PIP package locally for testing

From in the `python` directory:

```
python3 -m pip install .
```

## Recompiling protobuf definition

From the top directory of tahu:

```
protoc -I=sparkplug_b --python_out=python/core/tahu sparkplug_b.proto
```

1 change: 1 addition & 0 deletions python/core/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.egg-info
Empty file removed python/core/__init__.py
Empty file.
97 changes: 0 additions & 97 deletions python/core/host_session_establishment.py

This file was deleted.

2 changes: 0 additions & 2 deletions python/core/readme.txt

This file was deleted.

Loading