Skip to content

PiJoules/image-exe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run Images in Python

Store code in images and run those images as if they were valid python files.

This feature is built into the default CPython interpreter.

Only works with pngs for now.

Building + Usage

Building is the same as building python from source.

$ mkdir build
$ cd build
$ ../configure
$ make
$ ./python -p myimage.png samples/fib.py
55  # Runs normally, but also saves the code in the image
$ ./python myimage.png
55

Limitations

As for as I've tested, code stored in images do not seem to be able to user frameworks from virtualenvs.

Dependencies

  • C
    • libpng

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published