Skip to main content

A Python package for manipulation of patterns in cellular automata.

Project description

pocketlife

A Python package for manipulation of patterns in cellular automata.

Introduction

This is my first Python package, and it contains functions for manipulating patterns in cellular automata. It was inspired by the much faster lifelib by Adam P. Goucher, but unlike lifelib, this package:

  • Is written entirely in Python.
  • Works regardless of OS and CPU architecture. It is very slow, however, and so it is mostly written as a test.

Classes

Cellular automata functionality is implemented through the class lifetree. A lifetree is responsible for the actual simulation, using an extremely basic algorithm and an unbounded grid. It does this as a backend to the class Pattern, which stores a dictionary of live cells. The syntax is very similar to lifelib, with patterns being advanced using pt[gens], and many functions and properties are similar as well.

Documentation

Documentation on the lifetree and Pattern classes can be found in /doc.

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

pocketpylife-0.0.2.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pocketpylife-0.0.2-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file pocketpylife-0.0.2.tar.gz.

File metadata

  • Download URL: pocketpylife-0.0.2.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for pocketpylife-0.0.2.tar.gz
Algorithm Hash digest
SHA256 13b52992b8d923cc0a37ad20c20b3e6e7437fa59655eb3775733732d1835f109
MD5 80dc89b9a87f8031c630a14b47b0a3ec
BLAKE2b-256 d6f85e8f3a2a1bc82dcc6ae9837c528e76bcf3eae19ead782b1417f4f7fd62a7

See more details on using hashes here.

File details

Details for the file pocketpylife-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pocketpylife-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for pocketpylife-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 efd36fb16b71f2a70054d40cf0542dddf6ea7710bd6d208a6f84540d06964d85
MD5 9c7dbb63cc13b5b8a97d6480dc4f7a64
BLAKE2b-256 1c4046003339b386b1a8ee60c3f3c6fa1a1d76315633dffc848b616dd7ac946a

See more details on using hashes here.

Supported by

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