Skip to main content

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.

Metadata

Release files for pocketpylife 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pocketpylife 1.4.0
File Size Uploaded Provenance Actions
pocketpylife-1.4.0.tar.gz 66.6 kB Without provenance Details for pocketpylife-1.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pocketpylife 1.4.0
File Interpreter ABI Platform Actions
pocketpylife-1.4.0-py3-none-any.whl Python 3 none any Details for pocketpylife-1.4.0-py3-none-any.whl

Total release size: 154.8 kB

Release files / pocketpylife-1.4.0.tar.gz

Download URL pocketpylife-1.4.0.tar.gz
Size 66.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1bb1d4631ccd881c8308525657076813b95bf576ad7eeb4733eef4b6b0f5a131
BLAKE2b-256 checksum
How to use checksums
f1026a6b13842b5959ada01a70e2a0611a2d2205b4aa0d4764d706e229ebd45c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release files / pocketpylife-1.4.0-py3-none-any.whl

Download URL pocketpylife-1.4.0-py3-none-any.whl
Size 88.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9295523d479fe0632e8a9f3b8b718a8fc2b0a52e5d2a527ee0e4aab5896d3b8f
BLAKE2b-256 checksum
How to use checksums
cc39fcc0e7578dfefa4a5894f9ef4a77fed3372ec5d5450e6556a09849e3d922
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Security for pocketpylife 1.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page