Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Python Tooling

Python Tooling

Going through some useful tools that make every-day Python developer easier

382b18eebb1386e80ff7e20fd1eb784e?s=128

Senko Rašić

June 12, 2014
Tweet

Transcript

  1. Python Tooling Senko Rašić, Dobar Kod

  2. HTTP Server python -m SimpleHTTPServer 8000

  3. JSON validator

  4. Benchmarking python -m test.pystone Caveat: single-core

  5. Virtual environment pip ! virtualenv ! virtualenvwrapper

  6. None
  7. Linters & style checkers PEP8 - Style guide for Python

    code (YMMV) ! pep8 ! pylint ! pyflakes ! flake8
  8. None
  9. Test coverage coverage.py ! ! Rules of thumb: ! 1.

    higher is usually better 2. test only your code 3. test complex things
  10. None
  11. Docs pip install sphinx ! sphinx-quickstart ! make -C doc

    html ! open doc/_build/html
  12. My Awesome Module ================= ! This is a documentation for

    my Python module of pure awesomeness. ! API Reference ============= ! .. automodule:: mymodule :members: doc/index.rst:
  13. Better Python shell

  14. None
  15. Code editor / IDE VIM, Emacs, Sublime, PyCharm, Wing, Komodo,

    … ! Customize!
  16. That’s all, folks! ?