Metadata-Version: 2.4
Name: kong-sdk
Version: 0.0.47
Summary: Kong Python SDK
Requires-Python: >=3.10
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: annotated-types (==0.7.0) ; python_version >= "3.10"
Requires-Dist: dependency-injector (==4.49.1) ; python_version >= "3.10"
Requires-Dist: grpcio (==1.81.1) ; python_version >= "3.10"
Requires-Dist: grpcio-health-checking (==1.81.1) ; python_version >= "3.10"
Requires-Dist: grpcio-reflection (==1.81.1) ; python_version >= "3.10"
Requires-Dist: grpcio-tools (==1.81.1) ; python_version >= "3.10"
Requires-Dist: prometheus-client (==0.25.0) ; python_version >= "3.10"
Requires-Dist: protobuf (==6.33.6) ; python_version >= "3.10"
Requires-Dist: pydantic (==2.13.4) ; python_version >= "3.10"
Requires-Dist: pydantic-core (==2.46.4) ; python_version >= "3.10"
Requires-Dist: pydantic-settings (==2.14.2) ; python_version >= "3.10"
Requires-Dist: python-dotenv (==1.2.2) ; python_version >= "3.10"
Requires-Dist: setuptools (==82.0.1) ; python_version >= "3.10"
Requires-Dist: typing-extensions (==4.15.0) ; python_version >= "3.10"
Requires-Dist: typing-inspection (==0.4.2) ; python_version >= "3.10"
Description-Content-Type: text/markdown

# kong-sdk-python

## [Generating python code for gRPC service](https://github.com/grpc/grpc/tree/master/tools/distrib/python/grpcio_tools#usage)

```shell
cd ./packages/kong-sdk-python
poetry run python -m grpc_tools.protoc --proto_path=./src/kong/proto --python_out=./src/kong/proto --grpc_python_out=./src/kong/proto ./src/kong/proto/service.proto
```

> Change import to `from kong.proto import service_pb2 as service__pb2
`

## Packaging and publishing SDK

Update SDK version in `pyproject.toml`:

```toml
[tool.poetry]
name = "kong-sdk"
version = <version>
```

```shell script
npx nx install kong-sdk-python
npx nx build kong-sdk-python
npx nx publish kong-sdk-python --token=pypi-token
```

