You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-13Lines changed: 19 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,19 @@
1
1
## rlbot-flatbuffers
2
2
3
-
A Python module implemented in Rust for serializing and deserializing RLBot's flatbuffers
3
+
A Python module implemented in Rust for fast and safe serialization and deserialization of RLBot's flatbuffers
4
4
5
5
### The goal of this project
6
6
7
-
To provide a fast, safe, and easy to use Python module for serializing and deserializing RLBot's flatbuffers.
7
+
A majority of the code is auto-generated in the `codegen/` upon first compile
8
+
using the RLBot's schema as defined by the `flatbuffers-schema` submodule.
8
9
9
-
A majority of the code is generated in the `codegen/` upon first compile and thrown into `src/python`.
10
-
11
-
This includes the code generated by `flatc` (living in `src/generated`), the Python wrapper binds to the generated Rust code, and the Python type hints (`rlbot_flatbuffers.pyi`).
10
+
This includes the code generated by Planus (`src/planus_flat.rs`),
11
+
the Python wrapper binds to the generated Rust code (`src/python/`),
12
+
and the Python type hints (`rlbot_flatbuffers.pyi`).
12
13
13
14
### Dev setup
14
15
15
-
- Ensure Python 3.11+ is installed
16
+
- Ensure Python 3.10+ is installed
16
17
- Create a virtual Python environment
17
18
-`python3 -m venv venv`
18
19
- Activate the virtual environment
@@ -23,7 +24,7 @@ This includes the code generated by `flatc` (living in `src/generated`), the Pyt
23
24
- Build & install for testing
24
25
-`maturin develop --release`
25
26
26
-
To use in another Python environment, like if testing [python-interface](https://github.com/VirxEC/python-interface/blob/master/README.md?plain=1), you can build the wheel:
27
+
To use in another Python environment, like if testing [python-interface](https://github.com/RLBot/python-interface), you can build the wheel:
27
28
28
29
-`maturin build --release`
29
30
- (In another environment) `pip install path/to/file.whl`
@@ -79,9 +80,9 @@ All values are optional when creating a class and have the proper defaults.
0 commit comments