Skip to main content
Version: 0.10

Overview

KCL provides engineering extensibility through built-in modules, system modules and plug-in modules.

The user code does not need to import functions that directly use builtin functions (such as calculating the length of a list with len, obtaining the type of value through typeof, etc.), and for basic types such as strings, it also provides some built-in methods (such as converting the case of strings, etc.).

For relatively complex general logic, it is provided through the system modules. For example, by importing the math module, we can use related mathematical functions, and we can use the regular expression by importing the regex module. For KCL code, it can also be organized into different user modules.

Standard Library Modules

builtin functions

Provides a list of built-in functions that are automatically loaded that can be used directly.

base64

Provides Base64 (RFC 3548) data encoding functions.

crypto

Provides implementations of common encryption algorithms and protocols.

datetime

Concrete date/time and related types and functions.

json

Provides JSON related encoding/decoding functions.

manifests

Provides the ability for structure serialization output.

math

Provides commonly used mathematical calculation functions.

net

A lightweight IPv4/IPv6 manipulation library.

regex

Provides commonly used regular expression functions.

units

Provides some conversion functions between numbers and international standard units.

yaml

Provides YAML related encoding/decoding functions.

file

Provides filesystem functions.

template

Provides template functions.

runtime

Provides runtime functions.