Skip to content

obfy/obfy-python-fixture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

obfy-python-fixture

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:

  1. the protected code computes the same results as the plain source,
  2. it loads via the import hook (decrypt → unmarshal → exec), not from .py,
  3. docstrings are stripped, and
  4. no plaintext .py or 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.

About

Simple Python Fixture

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages