A tiny, deliberately boring Python project used as the end-to-end test fixture
for obfy. It is consumed as a git submodule at
examples/fixture in the main repo and driven by tests/e2e_test.py, which builds
it with obfy build and asserts that:
- the protected code computes the same results as the plain source,
- it loads via the import hook (decrypt → unmarshal → exec), not from
.py, - docstrings are stripped, and
- no plaintext
.pyor unmarshalled bytecode is written to the dist.
| File | Purpose |
|---|---|
run.py |
Plain entry point; prints `5 |
app/__init__.py |
Package with a docstring (must be stripped) and VERSION. |
app/calc.py |
add / mul with docstrings (must be stripped). |
Expected output: 5|20|1.0. Keep it stable — the test asserts on it.