Skip to main content

A command-line tool for linking Lua projects into a single file

Project description

PyLuaLinker

A python utility for linking LUA source files into one LUA file.

currently no builds available, to use download and run build.ps1 (currently no cross-platform support)

How-To:

setting up a new project:

Run:

PyLuaLinker new [path]

to initialize a new project at [path].
The result should look like this:

[path]/   
├── src   
└── buildscript.json

buildscript.json defines your application name, entry point and any source directories.

{  
     "app_name": "",   
     "entry_point": "",  
     "src_dir": [""]  
}  
key description:
"app_name": is the name of the file created by the linker
"entry_point": is the name of your main source file
"src_dir": is a list of paths (absolute or relative) to all required LUA source files

for an example look at the example implementation

marking import statements

To mark a require() statement for static linking, comment --> static in the same line.
Other types of import statement are currently not supported.

This allows for hybrid static / dynamic importing and for your source program to be either run conventionally or linked without modification.

building a project:

To link your project enter

PyLuaLinker build [buildscript.json]

Contributing;

This repository is open for issues and merge requests, but since I made this on a whim, I might drop support at any time.
If I ever stop responding, remember that all code written for this project is licensed GPLv3, so you can always copy it and make changes for yourself.

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

pylualinker-0.1.0.tar.gz (5.6 MB view details)

Uploaded Source

Built Distribution

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

pylualinker-0.1.0-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

Details for the file pylualinker-0.1.0.tar.gz.

File metadata

  • Download URL: pylualinker-0.1.0.tar.gz
  • Upload date:
  • Size: 5.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for pylualinker-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d321d56d3fdea4244816db2e19caa78f960431993fcfa0637d90e1b5dc62ecfc
MD5 4d3dac14451ad0c2b8bb54806b2c8f26
BLAKE2b-256 397ba7a49e9252829de7601963a3c0c7d78d01427bab0419fb949872999db8fc

See more details on using hashes here.

File details

Details for the file pylualinker-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pylualinker-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for pylualinker-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf6f51f5bdf69dcd741814b105fa537cb01e035f4c2af3b60eb9f95a3ae04646
MD5 fb2805968ea9d5057bd6d87253fa12af
BLAKE2b-256 f6fdde9cf4b343ddd7c1c5fa04419ba82ac789e3b8b2a4160737bcc2a83a53fa

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