Skip to main content

Simulate Dawkins' weasel experiment

Project description

Weasel CLI logo

license version build prs

Dawkins' Weasel CLI

Simple 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.

Project details


Download files

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

Source Distribution

weasel-cli-1.0.4.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

weasel_cli-1.0.4-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page