kong-plugin-local-manager
Use python package to manage kong plugin, so that the plugin can be published to private pypi server and used internally. A temporary solution for PYTHONER using kong.
Install
pip install kong-plugin-local-manager
Example
example files
/example/
/example/__init__.py
/example/src/
/example/src/lua/
/example/src/lua/handler.lua
/example/src/lua/schema.lua
/example/src/plugin.rockspec
/example/manager.py
/example/setup.py
/example/requirements.txt
/example/README.txt
/example/MANIFEST.in
/example/LICENSE
content of plugin.rockspec
package = "example"
version = "0.1.0-1"
source = {
url = "example-0.1.0-1.zip"
}
description = {
summary = "kong 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 kong_plugin_local_manager import KongPluginLocalManager
application_root = os.path.abspath(os.path.dirname(__file__))
manager = KongPluginLocalManager(application_root).get_manager()
if __name__ == "__main__":
manager()
content of setup.py
setup(
...
entry_points={
"console_scripts": [
"example-manager = example.manager:manager",
],
},
)
usage of example-manager
Usage: example-manager [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.1.0 2020/07/30
- First release.
Metadata
Release files for kong-plugin-local-manager 0.1.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 | Actions |
|---|---|---|---|---|
| kong-plugin-local-manager-0.1.0.tar.gz | 4.2 kB | Without provenance | Details for kong-plugin-local-manager-0.1.0.tar.gz |
Release files / kong-plugin-local-manager-0.1.0.tar.gz
| Download URL | kong-plugin-local-manager-0.1.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c8ccfc8a3413fb698fff7fff60b60f112d35982704758a56e02a4228fa5f5029
|
|
BLAKE2b-256 checksum How to use checksums |
f216be00b92b1f907c7bfeee2a5df9a4a3bae27b498ea17d3f07eb0d9a35e297
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
|
Security for kong-plugin-local-manager 0.1.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.