Skip to main content

Create a pseudo-executable with embedded Python code using zipimport.

Project description

Lalian

Create a pseudo-executable with embedded Python code using zipimport. Inspired by the approach used in the yt-dlp Makefile.

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

positional arguments:
  package
  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 package has no external dependencies. If external dependencies are required, they must be installed in the global Python environment.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lalian-0.1.1.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lalian-0.1.1-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file lalian-0.1.1.tar.gz.

File metadata

  • Download URL: lalian-0.1.1.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Windows/11

File hashes

Hashes for lalian-0.1.1.tar.gz
Algorithm Hash digest
SHA256 32bafd5f967d28bde0eeda134d46ed9894f6e3d11672cbde383ab56fe0605dd0
MD5 6c7e1fc836a08c899e4be14ba2a4ae41
BLAKE2b-256 bbd3c52bcf1b371f7fdae60adda1592ba0d6f2451883ff79e15afcfe3104c51b

See more details on using hashes here.

File details

Details for the file lalian-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: lalian-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Windows/11

File hashes

Hashes for lalian-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c11c0590b0b88fb7e6385f83e0cc993770d9b4bb399c96cf08d8a3f499b76a7d
MD5 6c2a0cf16f5aaa99215d5e25aa9e69d4
BLAKE2b-256 dd971a793059f515162cb5be8f88e7416cc3bd5327513d91a98b7b87317f0d32

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page