Skip to content

Python test playground - intended for exploration of language features and external tools (breaking changes are not a concern)

Notifications You must be signed in to change notification settings

condekind/pylife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pylife

This is a test playground intended for exploration of Python language features and external tools. Breaking changes are not a concern.

Usage

# Clone and cd to the repo
git clone git@github.com:condekind/pylife.git && cd pylife

# From inside the project root, create a python 3.11+ virtualenv, e.g.:
# python -m venv .venv
#   or, if already created, activate it:
# source .venv/bin/activate

# Run using provided input
python game_of_life_cli -i input/input03.txt

Example of a Gosper glider gun:

demo_gun, a pattern with a main part that repeats periodically, like an oscillator, and that also periodically emits spaceships

Some stats are printed on termination (ctrl+C):

^CINFO:root:
Running time: 4.7897047996521 seconds
CacheInfo(hits=123047, misses=349, maxsize=1024, currsize=349)

Todo:

Some of the listed items might be overkill for the time being, but this repo might also serve as a future python template

  • mypy / lsp / lints / fix types (!!!)
  • argparse
  • pyproject.toml
  • CI
  • Tests

About

Python test playground - intended for exploration of language features and external tools (breaking changes are not a concern)

Resources

Stars

Watchers

Forks

Packages

No packages published