Code Monkey home page Code Monkey logo

python-code-kata's Introduction

python-code-kata

Repository for Code Katas based on @pragdave's http://codekata.com/

Setup

  1. If you don't already have a virtualenv installed (or a virtual environment process), setup it up with help from the Python Packaging User Guide. In short, for Python <3.4, securely download get-pip.py and then execute the following (omit sudo if you can):
sudo python get-pip.py
sudo pip install -U setuptools
sudo pip install virtualenv
  1. Now setup a virtual environment for this repository.
cd python-code-kata
virtualenv .
source bin/activate
  1. (Optional) Install any additional libraries. Pytest is pretty awesome.
pip install -r requirements.txt

Test Solutions

Place code to solve the Kata in kata_code.py and run test_kata.py with built-in unittest or pytest if installed in step 3.

cd 00_kata_template
python test_kata.py

or

cd 00_kata_template
py.test test_kata.py

Rinse, repeat. See you at the user group!

References

Python Packaging User Guide

pytest: Good Integration Practices

Python Guide: Testing Your Code

Python Testing: pytest Introduction

Prag Dave's Code Kata Site

python-code-kata's People

Watchers

James Cloos avatar zhangwenteng avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.