Reduce code duplication across client programs
flashproxy-client
and flashproxy-reg-http
share some code, notable parse_addr_spec
and format_addr
, which is currently copied into both programs. The reason for this is so that someone can just download the Python programs and have them work, without having to also download module files or run setup.py
. But it will only get worse with more registration helpers, so we should find a way to deal with it.
Doing the usual setup.py
installation is one option. That still keeps the ability to run from a tarball.
facilitator
and facilitator.cgi
also share some code, currently factored into a fac.py
module.