sayname was inspired by Perl’s say, but the similarity stops there.
- Automated multi-version testing managed with the wonderful pytest, pytest-cov, coverage, and tox. Packaging linting with pyroma.
- Successfully packaged for, and tested against, all late-model versions of Python: 2.6, 2.7, 3.2, 3.3, 3.4, and 3.5 as well as PyPy 2.6.0 (based on 2.7.9) and PyPy3 2.4.0 (based on 3.2.5).
sayhas greater ambitions than just simple template printing. It’s part of a larger rethinking of how output should be formatted.
say.Text, show, and quoter are other down-payments on this larger vision. Stay tuned.
- In addition to being a practical module in its own right,
sayis testbed for options, a package that provides high-flexibility option, configuration, and parameter management.
- The author, Jonathan Eunice or
@jeunice on Twitter
welcomes your comments and suggestions. If you’re using
sayin your own work, drop me a note and tell me how you’re using it, how you like it, and what you’d like to see!
- If you find
sayuseful, consider buying me a pint and a nice salty pretzel.
- Use a text wrapping module that is fully cognient of ANSI escape codes.
- Further formatting techniques for easily generating HTML output and formatting non-scalar values.
- Complete the transition to per-method styling and more refined named styles.
- Provide code that allows
pylintto see that variables used inside the
fmtformat strings are indeed thereby used.