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

Uploaded Source

Built Distribution

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

pocketpylife-1.4.0-py3-none-any.whl (88.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pocketpylife-1.4.0.tar.gz
Algorithm Hash digest
SHA256 1bb1d4631ccd881c8308525657076813b95bf576ad7eeb4733eef4b6b0f5a131
MD5 655cff4727606f1de1e744e913905da5
BLAKE2b-256 f1026a6b13842b5959ada01a70e2a0611a2d2205b4aa0d4764d706e229ebd45c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pocketpylife-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9295523d479fe0632e8a9f3b8b718a8fc2b0a52e5d2a527ee0e4aab5896d3b8f
MD5 4d65d5a7b922944cc6541e7fa58c6763
BLAKE2b-256 cc39fcc0e7578dfefa4a5894f9ef4a77fed3372ec5d5450e6556a09849e3d922

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