Skip to content

wdsrocha/weasel-cli

Repository files navigation

Weasel CLI logo

license version build prs

Dawkins' Weasel CLI

Implementation of the classic weasel program.

demo

About

Although the weasel simulation really works, I'm using this project mostly to test things like CLI development, Github Actions, PyPI deployment, etc.

Installation

pip install weasel-cli

Usage

$ weasel --help
Usage: weasel [OPTIONS]

  Simulate Dawkins' weasel experiment

Options:
  -t, --target TEXT               [default: METHINKS IT IS LIKE A WEASEL]
  -p, --population-size INTEGER RANGE
                                  [default: 100]
  -r, --mutation-rate FLOAT RANGE
                                  [default: 0.05]
  --color / --no-color            Uses ANSI colors when reporting generation
                                  results  [default: True]

  --help                          Show this message and exit.

Contributing

See CONTRIBUTING.md file for more information.

License

This project is licensed under the terms of the MIT license - see the LICENSE file for details.


Icons made by Freepik from www.flaticon.com.