Bpkg is a free, open source tool to package applications into single files. It is inspired by Java jars but the speciality of bpkg is that it can be used for all languages be it Python, Java, JavaScript or virtually anything else.
It is written in Python and source code is maintained on Github.
Link to repository - https://github.com/daddi-boss/bpkg
Download - git clone https://github.com/daddi-boss/bpkg.git