Slide 1

Slide 1 text

Python Tooling Senko Rašić, Dobar Kod

Slide 2

Slide 2 text

HTTP Server python -m SimpleHTTPServer 8000

Slide 3

Slide 3 text

JSON validator

Slide 4

Slide 4 text

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

Slide 5

Slide 5 text

Virtual environment pip ! virtualenv ! virtualenvwrapper

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

Linters & style checkers PEP8 - Style guide for Python code (YMMV) ! pep8 ! pylint ! pyflakes ! flake8

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

Test coverage coverage.py ! ! Rules of thumb: ! 1. higher is usually better 2. test only your code 3. test complex things

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

Docs pip install sphinx ! sphinx-quickstart ! make -C doc html ! open doc/_build/html

Slide 12

Slide 12 text

My Awesome Module ================= ! This is a documentation for my Python module of pure awesomeness. ! API Reference ============= ! .. automodule:: mymodule :members: doc/index.rst:

Slide 13

Slide 13 text

Better Python shell

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

Code editor / IDE VIM, Emacs, Sublime, PyCharm, Wing, Komodo, … ! Customize!

Slide 16

Slide 16 text

That’s all, folks! ?