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.0.0.tar.gz (40.5 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.0.0-py3-none-any.whl (57.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pocketpylife-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b1a0dde48eea6fad57c93a7483847cdef421ae0e37cdb2a53bb5f2e526bf95e3
MD5 d0eb2ca3b999699604f7af4f1cd40ee3
BLAKE2b-256 6b4778e07526f7e2cfff0bad10600334cf08ec42352b9b50a6fe486934e0bb95

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pocketpylife-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b504184c601e449e19b8fefb6cc08ec5aa7aff13df4e934021ecf0019217e5d
MD5 305d83e6b908127726e096e23cc595b8
BLAKE2b-256 f26f3393be2818c29c16f0f330ad8421ac3012a41dd535adaddb5c2b68e76bb2

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