pygene - simple python genetic algorithms/programming library

pygene is a simple and easily understandable library for genetic algorithms and genetic programming in python.



Download current version here

UPDATE: A fork of pyGene, maintained and updated by Tomasz bla Fortuna, is available from
For the time being, I recommend you use this version. In time, however, I hope to back-merge Tomasz's changes back into my codebase and put it up on a public repo.

API Documentation

View API documentation here


Click here for a screenshot of a graphical program showing a solution for the Travelling Salesman Problem


pyGene (original version) is written by David McNab, who you can contact by email:
david AT conscious DOT co DOT nz