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.3.0.tar.gz (34.3 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.3.0-py3-none-any.whl (45.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pocketpylife-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6103ff546d0ab0545bcf35704c608f0d164a83a6552cbe15a1a701acf32bcb8e
MD5 3ac48e178c3f39f50deaa6de16526789
BLAKE2b-256 e960711ebbc519f68644872574c374fcbcccdc3b2eea8c2683a61cb9a1c6b7e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pocketpylife-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 45.7 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d069e6c932fe3c4ac8c2dfe116ba91a4f7eb6db43111e916542d307562591b3
MD5 621f1c4678c4a55cf14de52f19232a69
BLAKE2b-256 c29a5ca32d0641cbba406791edcb991d6fc164c141c28cd7e063aef9e5e78444

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