Skip to content

Instantly share code, notes, and snippets.

@squirly
Last active October 12, 2015 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save squirly/4097954 to your computer and use it in GitHub Desktop.
Save squirly/4097954 to your computer and use it in GitHub Desktop.
Sailbot Workshop

I will be using this Gist throughout the presentation as a paste bin and to document some important notes.

After the presentation and throughout the workshop I will add additional content as questions are asked.

Python

The language

Docs - Language syntax and the Standard Library - http://docs.python.org/2/

PyPi - For finding useful programs and libraries - http://pypi.python.org/

PEP - Python Enhancement Proposals - http://python.org/dev/peps

PEP8 - A document outlining the accepted python formatting standards.

Tools

iPython

An easy to use command line interpreter :

pip install ipython

pip

Useage: :

pip install <package>        installs a package
pip uninstall <package>      removes a package
pip freeze                     save current state

pip is smart: :

pip install <path_or_url>    install from file
pip install git+<git_repo>   install from git

virtualenv

Useage: :: virtualenv venv Setup a new virtualenv . venv/bin/activate use this virtualenv venv/bin/pip <command> virtualenv's pip venv/bin/python virtualenv's python rm -r venv remove this venv

PyCharm ------A good IDE - http://www.jetbrains.com/pycharm/

py.test

A pythonic testing framework - http://pytest.org/ :

pip install pytest

mock

mock - http://www.voidspace.org.uk/python/mock/ :

pip install mock

Test-Driven Development

See http://c2.com/cgi/wiki?TestDrivenDevelopment

Search Google for Test-driven Development

Further into the Rabbit Hole

The Hitchhiker's Guide to Python - http://docs.python-guide.org/

Python Tutorial - http://docs.python.org/2/tutorial/

Python Koans - https://github.com/gregmalcolm/python_koans/wiki

PEP 3103 - http://www.python.org/dev/peps/pep-3103/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment