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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pocketpylife-0.0.4.tar.gz.
File metadata
- Download URL: pocketpylife-0.0.4.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78767638516bfd27b18d17af83e84cc3a46fbcda95f1504833a973438a44acbb
|
|
| MD5 |
608c635c1603fc67aed043a82032956d
|
|
| BLAKE2b-256 |
15c123e3e62e7458af5c38bc448c74c2a531df9f4c08c0553e15329f93ededdd
|
File details
Details for the file pocketpylife-0.0.4-py3-none-any.whl.
File metadata
- Download URL: pocketpylife-0.0.4-py3-none-any.whl
- Upload date:
- Size: 17.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c85ac328e71dcef5a825e6a1b98ce6db502a529787f3dfe189afda43e08ac62
|
|
| MD5 |
26832a64c31b846ecb58ac2319d87efe
|
|
| BLAKE2b-256 |
0be41c4054282399eec2cd8d7579445638e7433c9a89bf0febb7fea605e17a55
|