Skip to content

Commit 0e0f255

Browse files
committed
chore: initial Python client for KubeBlocks Cloud API
1 parent def49fc commit 0e0f255

1,449 files changed

Lines changed: 169929 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
9+
[*.py]
10+
indent_style = space
11+
indent_size = 4
12+
13+
[*.{yaml,yml,toml,cfg,json}]
14+
indent_style = space
15+
indent_size = 2
16+
17+
[*.md]
18+
trim_trailing_whitespace = false
19+
20+
[Makefile]
21+
indent_style = tab

.generator/pyproject.toml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[tool.poetry]
2+
name = "generator"
3+
version = "0.1.0"
4+
description = "KubeBlocks Cloud Python client generator"
5+
authors = ["ApeCloud <support@apecloud.com>"]
6+
license = "Apache-2.0"
7+
8+
[tool.poetry.dependencies]
9+
python = "^3.10"
10+
click = "^8.1.4"
11+
PyYAML = "^6.0"
12+
jsonref = "^1.1.0"
13+
jinja2 = "^3.1.2"
14+
python-dateutil = "^2.8.2"
15+
16+
[tool.poetry.dev-dependencies]
17+
black = ">=23.0.0"
18+
mypy = ">=1.0.0"
19+
20+
[tool.black]
21+
line-length = 100
22+
target-version = ["py310", "py311", "py312"]
23+
24+
[tool.mypy]
25+
python_version = "3.10"
26+
strict = false
27+
ignore_missing_imports = true
28+
warn_unused_ignores = true
29+
warn_redundant_casts = true
30+
31+
[build-system]
32+
requires = ["poetry-core>=1.0.0"]
33+
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)