lua_imports
Import Lua modules directly from within Python.
Basic Usage
Once lua_imports.lua_importer has been registered, write an import statement in your Python code, referring to your Lua module.
Example
foo.lua
return {
say_hello = function(person)
print("Hello, " .. person)
end
}
bar.py
import foo
foo.say_hello("World")
Registration
lua_importer may be registered within Python code:
from lua_imports import lua_importer
lua_importer.register()
(Note that this must come before any Lua imports)
Alternatively, to register lua_importer environment-wide, create a lua-imports.pth file in your environment's site-packages folder with the following contents:
import lua_imports; lua_imports.lua_importer.register()
Caveats
This module wraps Lupa, and so comes with all the same caveats about Lua vs. Python data types.
Metadata
Release files for lua-imports 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| lua_imports-1.0.0.tar.gz | 2.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lua_imports-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.4 kB
Release files / lua_imports-1.0.0.tar.gz
| Download URL | lua_imports-1.0.0.tar.gz |
|---|---|
| Size | 2.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce3e0d8333f2a3f8dc02cc39c41c7f8959a2215c95c1b2200ff6dfa435a21302
|
|
BLAKE2b-256 checksum How to use checksums |
a127baa854d2e92557d71b7e8db94a3612705242f606d3e1db116a4cbe549b98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
|
Release files / lua_imports-1.0.0-py3-none-any.whl
| Download URL | lua_imports-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be9e1c73c4faf3f8610ad894bb13e1090457afafb35b525f8ad3b7dd6e0ebabf
|
|
BLAKE2b-256 checksum How to use checksums |
b824353ef78e5fdc77fb4e7eede97812084dd4c54ce09caff915c1691c1ddc1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
|
Security for lua-imports 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.