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
Provides a list of built-in functions that are automatically loaded that can be used directly.
Provides Base64 (RFC 3548) data encoding functions.
Provides implementations of common encryption algorithms and protocols.
Concrete date/time and related types and functions.
Provides JSON related encoding/decoding functions.
Provides the ability for structure serialization output.
Provides commonly used mathematical calculation functions.
A lightweight IPv4/IPv6 manipulation library.
Provides commonly used regular expression functions.
Provides some conversion functions between numbers and international standard units.
Provides YAML related encoding/decoding functions.