Go to file
2016-07-28 17:29:12 +02:00
nerone Initial import 2016-07-28 06:06:19 +02:00
.gitignore Initial import 2016-07-28 06:06:19 +02:00
LICENSE Initial import 2016-07-28 06:06:19 +02:00
README.rst Add Installation and Usage sections 2016-07-28 17:29:12 +02:00
setup.py Initial import 2016-07-28 06:06:19 +02:00


nerone creates PyInstaller one-file executables with only dependencies for the scripts in arguments.

The name is a pun related to how one-file executables work: when they are started a temporary folder in the appropriate temp-folder location for the OS is created and PyInstaller bootloader uncompresses the support files and writes copies into the temporary folder.

The temporary folder is deleted after the code execution: this inspired the name of the project.

See PyInstaller documentation for details.


% pip install git+https://github.com/eriol/nerone


Suppose to have the following script named `test.py`:

import sys

import requests

if __name__ == '__main__':
    print requests.head(sys.argv[2]).headers

To create a one-file executable with all the dependencies (in this case only requests) you can just call nerone passing the script:

% nerone test.py

Inside dist directory you will find the one-file executable witch embed the dependencies for test.py.

% ./dist/test test.py https://mornie.org
{'Content-Encoding': 'gzip', 'Server': 'nginx/1.6.2', ...}