Skip to main content

Elementary Computational Automata for PYthon

Project description

ecapybara

ecapybara, Elementary Cellular Automata for PYthon + BARA

GitHubs Actions build status (Pylint)

Iterate the 256 elementary cellular automata starting from a fixed inital state (center cell 'live', all others 'dead').

Usage

Installed package

pip install ecapybara
python3 -m ecapybara.ecapydriver

You will be prompted to select one of the rules from 0-255, and the number of steps you would like to iterate. Output will be scaled to fit the number of columns in your terminal window with some padding.

Console mode

python3 src/ecapybara/ecapydriver.py

Sample output

rule 22, 50 steps

TODO

  • Larger number of steps doesn't generate expected output.
  • Needs to be modularized.
  • Needs unit tests.
  • Needs click interface for CLI.
  • Needs to write images using PILlow.
  • Logging needs work.
  • Streaming from API not working
  • Needs some JS or other trickery to get browser window width
  • Add ability to scale fundamental elements
  • Add ability to 'page' back and forth between different rules in browser view
  • Programmatically generate visual representation of rules
  • Needs ability to start from randomized seed
  • COLORS !!!
  • Animation modes (fades, slow transitions)

Mascot

The official mascot of ecapybara is the e-capybara.

e-capybara, our mascot

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

ecapybara-0.0.3.tar.gz (14.1 MB view details)

Uploaded Source

Built Distribution

ecapybara-0.0.3-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file ecapybara-0.0.3.tar.gz.

File metadata

  • Download URL: ecapybara-0.0.3.tar.gz
  • Upload date:
  • Size: 14.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for ecapybara-0.0.3.tar.gz
Algorithm Hash digest
SHA256 40957def05a14f91ec7d2fab7c0a129e486954e8baf05a8716b1548455170ec2
MD5 65181383f0cb41ffa01bcba7607d2291
BLAKE2b-256 30dba5b27b265da6f5a97d13d9ed5b1dc9568cb5233b5ad51788e15e4498c254

See more details on using hashes here.

File details

Details for the file ecapybara-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: ecapybara-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for ecapybara-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 280f2395d2f346c132e6915443bf5923ccc06db599cd6b6191c7633469009882
MD5 14cf62465b31bc75b3ed3f9b31759960
BLAKE2b-256 3b286a15623e8c5aeeab3ed600e4e6f29f8cec785aba7b2404b92cd37c1ab987

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