Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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.

About

🐡 Simulate Dawkins' weasel experiment

Topics

Resources

License

Contributing

Stars

Watchers

Forks

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /