cloudcoil-models-keda
Versioned keda models for cloudcoil.
🔧 Installation
Using uv (recommended):
# Install with KEDA support
uv add cloudcoil.models.keda
Using pip:
pip install cloudcoil.models.keda
💡 Examples
Using KEDA Models
from cloudcoil import apimachinery
import cloudcoil.models.keda.v1alpha1 as keda
# Create a ScaledObject
scaled_object = keda.ScaledObject(
metadata=apimachinery.ObjectMeta(name="rabbitmq-scaler"),
spec=keda.ScaledObjectSpec(
scale_target_ref=keda.ScaledObjectSpecScaleTargetRef(
name="my-deployment",
kind="Deployment",
api_version="apps/v1"
),
triggers=[
keda.ScaledObjectSpecTriggersItem(
type="rabbitmq",
metadata={
"queue_name": "hello",
"host": "amqp://guest:guest@rabbitmq:5672"
}
)
],
min_replica_count=1,
max_replica_count=10
)
).create()
# List ScaledObjects
for scaler in keda.ScaledObject.list():
print(f"Found scaler: {scaler.metadata.name}")
# Update a ScaledObject
scaled_object.spec.max_replica_count = 20
scaled_object.save()
# Delete resources
keda.ScaledObject.delete("rabbitmq-scaler")
Using the Fluent Builder API
from cloudcoil.models.keda.v1alpha1 import ScaledObject
# Create a ScaledObject using the fluent builder
scaled_object = (
ScaledObject.builder()
.metadata(lambda metadata: metadata
.name("prometheus-scaler")
.namespace("default")
)
.spec(lambda spec: spec
.scale_target_ref(lambda target: target
.name("my-deployment")
.kind("Deployment")
.api_version("apps/v1")
)
.min_replica_count(1)
.max_replica_count(10)
.triggers(lambda triggers: triggers.add(
lambda trigger: trigger.type("prometheus").metadata({
"server_address": "http://prometheus.monitoring.svc",
"metric_name": "http_requests_total",
"threshold": "100"
})
))
)
.build()
)
Using the Context Manager Builder API
from cloudcoil.models.keda.v1alpha1 import ScaledObject
# Create a ScaledObject using context managers
with ScaledObject.new() as cpu_scaler:
with cpu_scaler.metadata() as metadata:
metadata.name("cpu-scaler")
metadata.namespace("default")
with cpu_scaler.spec() as spec:
with spec.scale_target_ref() as target:
target.name("my-deployment")
target.kind("Deployment")
target.api_version("apps/v1")
spec.min_replica_count(1)
spec.max_replica_count(10)
with spec.triggers() as trigger_list:
with trigger_list.add() as trigger:
trigger.type("cpu")
trigger.metadata({
"type": "Utilization",
"value": "50"
})
final_scaler = cpu_scaler.build()
📚 Documentation
For complete documentation, visit cloudcoil.github.io/cloudcoil
📜 License
Apache License, Version 2.0 - see LICENSE
Metadata
Release files for cloudcoil.models.keda 2.20.2.1
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 | |
|---|---|---|---|---|
| cloudcoil_models_keda-2.20.2.1.tar.gz | 249.8 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cloudcoil_models_keda-2.20.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 434.4 kB
Release files / cloudcoil_models_keda-2.20.2.1.tar.gz
| Download URL | cloudcoil_models_keda-2.20.2.1.tar.gz |
|---|---|
| Size | 249.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
651a908f934ef573fee2b6711b99ffa72e3a09dd4b8d6055a3f6639e8491d19c
|
|
BLAKE2b-256 checksum How to use checksums |
dc0049e8545cb85f2f040127f9c84414c46909a67b5d98cb6bdd09cda1b7d333
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 7, 2026.
Transparency logRelease files / cloudcoil_models_keda-2.20.2.1-py3-none-any.whl
| Download URL | cloudcoil_models_keda-2.20.2.1-py3-none-any.whl |
|---|---|
| Size | 184.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7c2232335123ee27564f9ef0849c5f5b3deefb55fdf6fbb462caa8b2184c9cee
|
|
BLAKE2b-256 checksum How to use checksums |
e237c03d8f98425a4817f0b4e286f551683c99870633759e99a29858dfc92767
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 7, 2026.
Transparency logSecurity for cloudcoil.models.keda 2.20.2.1
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for cloudcoil_models_keda-2.20.2.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 7, 2026.
Transparency logA 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.