Skip to main content

A simple and easy-to-use implementation of a Genetic Algorithm library in Python

Project description

PyPI Build Status Coverage Status Downloads


A simple and easy-to-use implementation of a Genetic Algorithm library in Python.

pyeasyga provides a simple interface to the power of Genetic Algorithms (GAs). You don’t have to have expert GA knowledge in order to use it.


At the command line, simply run:

$ pip install pyeasyga

Or clone this repository and run python install from within the project directory. e.g.:

$ git clone
$ cd pyeasyga
$ python install

For alternative install methods, see the INSTALL file or the Installation section in the documentation.


See the Usage section in the documentation for examples. The example files can be found in the examples directory.


  • Currently under active development




  • Added Python 3.4 support without breaking Python 2 compatibility (thanks to yasserglez)




  • Modified the GeneticAlgorithm class initialisation parameters
  • Made changes to USAGE documentation
  • Added EXAMPLE documentation as a separate section



  • Refactored most of the code; Made GeneticAlgorithm class more OOP
  • Made changes to INSTALLATION documentation



  • Fixed breaking python 2.6 build



  • Removed duplicate ‘Example’ documentation; now maintaining only one copy in examples/README.rst
  • Added link to jeffknupp’s sandman repo in HISTORY
  • Modified release option in Makefile to also upload project documentation
  • Added INSTALLATION and EXAMPLE sections to README.rst
  • Removed easy_install installation step from documentation (pip is sufficient)
  • Added a simple example of usage to docs/usage.rst
  • Reduced the default GA population and generation size (to allow applications that use the different parameters to run quickly)
  • Modified tests to account for the new default population, generation size
  • Added docstrings to all methods



  • First upload to pypi.
  • Added changes made to HISTORY (pypi upload, new version)



  • Start of pyeasyga development.


  • Implemented all of basic GA functionality

  • Fix issue with odd-numbered population that causes an off-by-one error in the population size

  • Set default ga selection function to tournament_selection

  • Created examples to show how to use the library

  • Start versioning (better late than never); copied jeffknupp’s from sandman

    selected versioning standard: major.minor.micro (e.g. 2.1.5)

    • major => big changes that can break compatibility
    • minor => new features
    • micro => bug fixes

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyeasyga, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size pyeasyga-0.3.1.tar.gz (20.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page