Metadata-Version: 2.1
Name: lalian
Version: 0.1.0
Summary: 
License: GNU General Public License v3 (GPLv3)
Author: Koutaro Mukai
Author-email: mukai.k1011k@outlook.jp
Requires-Python: >=3.9,<4.0
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Description-Content-Type: text/markdown

# Lalian

Create a pseudo-executable with embedded Python code using [zipimport](https://docs.python.org/3/library/zipimport.html). Inspired by the approach used in the [yt-dlp Makefile](https://github.com/yt-dlp/yt-dlp/blob/2a246749ec5ead2c6b485e702a1c54c79bd0e51a/Makefile#L83-L102).

```
$ mkdir out; python3 -m lalian lalian out/lalian
$ ls out/
lalian  lalian.bat
$ out/lalian --help
usage: lalian [-h] module basename

positional arguments:
  module
  basename

options:
  -h, --help  show this help message and exit
```

You can also install it with `pipx`:

```
$ pipx install lalian
```

Currently, this approach works only if the target module has no external dependencies. If external dependencies are required, they must be installed in the global Python environment.

