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.

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.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

weasel_cli-1.0.3-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file weasel-cli-1.0.3.tar.gz.

File metadata

  • Download URL: weasel-cli-1.0.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.9 CPython/3.6.11 Linux/5.3.0-1031-azure

File hashes

Hashes for weasel-cli-1.0.3.tar.gz
Algorithm Hash digest
SHA256 c8f65eb6910e09998ffa28aa32c0152e0aaaf2690296ea65df881d3d308fbf4b
MD5 e6254ccf4b3326db21d832134a50b1fa
BLAKE2b-256 2df4c3be6336644e7d7551d5d8d17a14c8c799ba3560b2823aa27cc7081e6c1c

See more details on using hashes here.

File details

Details for the file weasel_cli-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: weasel_cli-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.9 CPython/3.6.11 Linux/5.3.0-1031-azure

File hashes

Hashes for weasel_cli-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3a49897372244b5e574e3d788001d38aaeb29a2c42a17e941c5514e91a716c35
MD5 c3de10c9a1c0ec236d0f3062bf0eb65b
BLAKE2b-256 6def70197e8ccc1444f0adc969ea2a031b1cef63ba8b12bef78f1cfecd0af9ed

See more details on using hashes here.

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