Skip to content

Commit e2cd6f1

Browse files
author
Heiru Wu
committed
chore(proto,ci): add proto files, implement simple client amd fix ci
1 parent 141bf8d commit e2cd6f1

File tree

183 files changed

+24390
-188
lines changed

Some content is hidden

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

183 files changed

+24390
-188
lines changed

.appveyor.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
python-version: ['3.7', '3.8', '3.9', '3.10']
11+
python-version: ['3.8', '3.9', '3.10', '3.11']
1212

1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515

1616
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v2
17+
uses: actions/setup-python@v4
1818
with:
1919
python-version: ${{ matrix.python-version }}
2020

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,6 @@ coverage.xml
5151

5252
# VSCode
5353
.vscode
54+
55+
# MacOS
56+
.DS_Store

.pydocstyle.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ add_select = D211
1212
# D107: Missing docstring in __init__
1313
# D202: No blank lines allowed after function docstring
1414
add_ignore = D100,D101,D102,D103,D104,D105,D107,D202
15+
16+
match_dir = '^(?!protogen)'

.pylint.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ extension-pkg-whitelist=
77

88
# Add files or directories to the blacklist. They should be base names, not
99
# paths.
10-
ignore=CVS
10+
ignore=CVS,protogen
1111

1212
# Add files or directories matching the regex patterns to the blacklist. The
1313
# regex matches against base names, not paths.
@@ -186,7 +186,7 @@ indent-after-paren=4
186186
indent-string=' '
187187

188188
# Maximum number of characters on a single line.
189-
max-line-length=88
189+
max-line-length=120
190190

191191
# Maximum number of lines in a module
192192
max-module-lines=1000

.scrutinizer.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PROJECT := python-sdk
1+
PROJECT := instill-python-sdk
22
PACKAGE := instill_sdk
33
MODULES := $(wildcard $(PACKAGE)/*.py)
44

README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,11 @@
22

33
python sdk for Instill AI products
44

5-
This project was generated with [cookiecutter](https://github.com/audreyr/cookiecutter) using [jacebrowning/template-python](https://github.com/jacebrowning/template-python).
6-
7-
[![Unix Build Status](https://img.shields.io/github/actions/workflow/status/instill-ai/python-sdk/main.yml?branch=main&label=linux)](https://github.com/instill-ai/python-sdk/actions)
8-
[![Windows Build Status](https://img.shields.io/appveyor/ci/instill-ai/python-sdk.svg?label=windows)](https://ci.appveyor.com/project/instill-ai/python-sdk)
5+
[![Unix Build Status](https://img.shields.io/github/actions/workflow/status/instill-ai/python-sdk/test.yml?branch=main&label=linux)](https://github.com/instill-ai/python-sdk/actions)
96
[![Coverage Status](https://img.shields.io/codecov/c/gh/instill-ai/python-sdk)](https://codecov.io/gh/instill-ai/python-sdk)
10-
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/instill-ai/python-sdk.svg)](https://scrutinizer-ci.com/g/instill-ai/python-sdk)
11-
[![PyPI License](https://img.shields.io/pypi/l/python-sdk.svg)](https://pypi.org/project/python-sdk)
12-
[![PyPI Version](https://img.shields.io/pypi/v/python-sdk.svg)](https://pypi.org/project/python-sdk)
13-
[![PyPI Downloads](https://img.shields.io/pypi/dm/python-sdk.svg?color=orange)](https://pypistats.org/packages/python-sdk)
7+
[![PyPI License](https://img.shields.io/pypi/l/instill-python-sdk.svg)](https://pypi.org/project/instill-python-sdk)
8+
[![PyPI Version](https://img.shields.io/pypi/v/instill-python-sdk.svg)](https://pypi.org/project/instill-python-sdk)
9+
[![PyPI Downloads](https://img.shields.io/pypi/dm/instill-python-sdk.svg?color=orange)](https://pypistats.org/packages/instill-python-sdk)
1410

1511
## Setup
1612

@@ -23,13 +19,13 @@ This project was generated with [cookiecutter](https://github.com/audreyr/cookie
2319
Install it directly into an activated virtual environment:
2420

2521
```text
26-
$ pip install python-sdk
22+
$ pip install instill-python-sdk
2723
```
2824

2925
or add it to your [Poetry](https://poetry.eustace.io/) project:
3026

3127
```text
32-
$ poetry add python-sdk
28+
$ poetry add instill-python-sdk
3329
```
3430

3531
## Usage

bin/update

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ CWD = os.getcwd()
1414
TMP = tempfile.gettempdir()
1515
CONFIG = {
1616
"full_name": "instill-ai",
17-
"email": "hello@instill.tech",
17+
"email": "drop@instill.tech",
1818
"github_username": "instill-ai",
1919
"github_repo": "python-sdk",
2020
"default_branch": "main",
21-
"project_name": "python-sdk",
21+
"project_name": "instill-python-sdk",
2222
"package_name": "instill_sdk",
2323
"project_short_description": "python sdk for Instill AI products",
2424
"python_major_version": 3,
@@ -54,13 +54,11 @@ def copy():
5454
os.path.join("bin", "checksum"),
5555
os.path.join("bin", "open"),
5656
os.path.join("bin", "verchew"),
57-
".appveyor.yml",
5857
".coveragerc",
5958
".gitattributes",
6059
".gitignore",
6160
".pydocstyle.ini",
6261
".pylint.ini",
63-
".scrutinizer.yml",
6462
".tool-versions",
6563
".verchew.ini",
6664
"CONTRIBUTING.md",

docs/about/changelog.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)