Skip to main content

kong-python-pluginserver

PyPI version

Plugin server for Python language support in Kong plugin.

Requires Kong >= 2.0.0.

Install the plugin server

pip3 install kong-pluginserver
# Replace the go-pluginserver with python plugin server
cp /usr/local/bin/kong-pluginserver /usr/local/bin/go-pluginserver

Configure Kong

Add the following line into kong.conf:

plugins=bundled,py-hello,py-image
go_plugins_dir=/your/path/to/python/plugins/dir

For example, to test examples, clone kong-python-pluginserver to /dir1/kong-python-pluginserver and set go_plugins_dir to /dir1/kong-python-pluginserver/examples

Enable the plugin

Same step as it's a Lua plugin.

Notes

  • All PDK API supported by Go Plugin Server is supported.
  • The plugin server is implemented by gevent module for now, thus only one CPU core will be used. If your plugin is CPU-hungry, consider run the plugin instance in a seperate process and implement a piping IPC.
  • Currently you can't run Go plugins and Python plugins at the same time, as Kong only accepts one plugin server socket.

TODO

  • Process per instance
  • Tests
  • Hot reload

Metadata

Release files for kong-pluginserver 0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kong-pluginserver 0.12
File Size Uploaded Provenance Actions
kong_pluginserver-0.12.tar.gz 8.1 kB Without provenance Details for kong_pluginserver-0.12.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for kong-pluginserver 0.12
File Interpreter ABI Platform Actions
kong_pluginserver-0.12-py3-none-any.whl Python 3 none any Details for kong_pluginserver-0.12-py3-none-any.whl
kong_pluginserver-0.12-py2-none-any.whl Python 2 none any Details for kong_pluginserver-0.12-py2-none-any.whl

Total release size: 29.7 kB

Release files / kong_pluginserver-0.12.tar.gz

Download URL kong_pluginserver-0.12.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1a226d37e41060dd8d2301b59ce81172ffffdd34bc5da618b56eaae253849d39
BLAKE2b-256 checksum
How to use checksums
e34c35c164647c6c57b22f1b82c87cf63e68cca7a370064ab805eca10970996a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

Release files / kong_pluginserver-0.12-py3-none-any.whl

Download URL kong_pluginserver-0.12-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d8f611dbf0d4ec9659f482b31b251f87fb636b3d7201948093bcb6a7fb0e638c
BLAKE2b-256 checksum
How to use checksums
38e34a898e2617f7b4a76b343dfebdf373d308e2a51915e6e900566786e37db5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

Release files / kong_pluginserver-0.12-py2-none-any.whl

Download URL kong_pluginserver-0.12-py2-none-any.whl
Size 10.8 kB
Tags Python 2
SHA-256 checksum
How to use checksums
513e1c7fa512c0ef21413917ef57de3c5f698920e990e5b5b804f9fc93a86d9d
BLAKE2b-256 checksum
How to use checksums
95a87ca83dca91f270eeca2702418abd80caaa745f9da3a7fcee5bf18479de93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

Security for kong-pluginserver 0.12

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page