luaproject
Use python package to manage lua&kong plugin, so that the plugin can be published to pypi server. A temporary solution for PYTHONER using lua&kong.
Install
pip install luaproject
Installed Command Utils
- luaproject
command usage
C:\Workspace>luaproject
Usage: luaproject [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
init Init lua project.
Example
example files
.
./example
./example/src
./example/src/.rockspec
./example/src/lua
./example/src/lua/handler.lua
./example/src/lua/schema.lua
./example/__init__.py
./LICENSE
./manage_example.py
./MANIFEST.in
./README.md
./requirements.txt
./setup.py
content of .rockspec
package = "example"
version = "0.1.0-1"
source = {
url = "example-0.1.0-1.zip"
}
description = {
summary = "lua plugin example",
}
dependencies = {
"lua >= 5.1, < 5.4",
}
build = {
type = "builtin",
modules = {
["kong.plugins.example.handler"] = "lua/handler.lua",
["kong.plugins.example.schema"] = "lua/schema.lua",
}
}
content of example_manager.py
import os
from luaproject import LuaProjectManager
import example
application_root = os.path.abspath(os.path.dirname(example.__file__))
manager = LuaProjectManager(application_root).get_manager()
if __name__ == "__main__":
manager()
content of setup.py
setup(
...
entry_points={
"console_scripts": [
"manage-example = manage_example:manager",
]
},
)
usage of manage-example
Usage: manage-example [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
install Create a lua package and then install it.
pack Create a lua package.
Releases
v0.3.3 2020/11/06
- Remove luaproject.get_version in example/setup.py to fix install problem.
v0.3.2 2020/08/27
- Add default .gitignore in lua project template.
v0.3.1 2020/08/27
- Fix setup.py, add py_module parameter to fix luaproject not installed problem.
- Fix template content replace problem.
v0.3.0 2020/08/26
- Rename from kong-plugin-local-manager to luaproject.
- manage-example.pack command add username parameter to create a rockspec file that can use in uploading to https://luarocks.org/.
- Auto calc sdist version from .rockspec file.
v0.2.0 2020/07/31
- Add kong-plugin-local-manager command tools.
v0.1.0 2020/07/30
- First release.
Metadata
Release files for luaproject 0.3.3
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 | |
|---|---|---|---|---|
| luaproject-0.3.3.tar.gz | 7.0 kB | Without provenance | Details |
Release files / luaproject-0.3.3.tar.gz
| Download URL | luaproject-0.3.3.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0cb8eabdb9128c46f172f3cd2fe306e248c62edbc5a1f89525e23452d297ce6
|
|
BLAKE2b-256 checksum How to use checksums |
bc3572487f1112ecbea0fddfbee4d6763ca4575926bd93930581b46f80d4ae88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.8
|
Security for luaproject 0.3.3
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.