You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/xlang-api/java-api.md
+47-1Lines changed: 47 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,4 +4,50 @@ sidebar_position: 5
4
4
5
5
# Java API
6
6
7
-
At present, the KCL Java SDK is still in the early preview version. The KCL team will continue to update and provide more functions in the future. For more information, see [https://github.com/kcl-lang/kcl-java](https://github.com/kcl-lang/kcl-java)
7
+
## Installation
8
+
9
+
Refer to [this](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry#authenticating-to-github-packages
10
+
) to configure your Maven; set up your GitHub account and Token in the `settings.xml`.
11
+
12
+
### Maven
13
+
14
+
In your project's pom.xml, configure our repository as follows:
Copy file name to clipboardExpand all lines: docs/reference/xlang-api/overview.md
+3-171Lines changed: 3 additions & 171 deletions
Original file line number
Diff line number
Diff line change
@@ -4,179 +4,11 @@ sidebar_position: 1
4
4
5
5
# Introduction
6
6
7
-
The KCL language provides general programming language interfaces such as C/Rust/Go/Python/Java, and the related languages are under development.
7
+
The KCL language provides general programming language APIs.
8
8
9
-
## C/Rust API
9
+
## C/Rust APIs
10
10
11
-
The core of KCL is developed in Rust, and the C language API is exported externally for packaging and integration in high-level languages such as Go/Python/Java.
12
-
13
-
## Go API
14
-
15
-
Go API is a C-API provided by CGO wrapping KCL, while providing deeper customization features to meet the needs of upper-level tools.
16
-
17
-
### Abstract Model
18
-
19
-
The abstract model of the KCL Go API is as follows:
The input file contains the KCL file and the `setting.yml` configuration file, and `Options` can be used to specify additional parameters and information such as working directory. The "KCL-Go-API" part is the provided KCL execution function. The execution function executes the KCL program according to the input file and additional parameters, and finally outputs the result of `KCLResultList`. `KCLResultList` is a list of `KCLResult`, each `KCLResult` corresponding to a generated configuration file or `map[string]interface{}`.
Using the Python SDK requires that you have a local Python version higher than 3.7.3 and a local pip package management tool. You can use the following command to install and obtain helpful information.
You can see that the same output can be obtained through command line tools and APIs.
178
-
179
-
At present, the KCL Python SDK is still in the early preview version. The KCL team will continue to update and provide more functions in the future. For more information, see [https://github.com/kcl-lang/kcl-py](https://github.com/kcl-lang/kcl-py)
11
+
The core of KCL is developed in Rust, and the C language API is exported externally for packaging and integration in other high-level languages such as Go, Python, etc.
Copy file name to clipboardExpand all lines: docs/reference/xlang-api/python-api.md
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,4 +4,19 @@ sidebar_position: 4
4
4
5
5
# Python API
6
6
7
-
At present, the KCL Python SDK is still in the early preview version. The KCL team will continue to update and provide more functions in the future. For more information, see [https://github.com/kcl-lang/kcl-py](https://github.com/kcl-lang/kcl-py)
0 commit comments