Skip to content

Commit 7e24283

Browse files
committed
Initial commit
0 parents  commit 7e24283

File tree

112 files changed

+13248
-0
lines changed

Some content is hidden

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

112 files changed

+13248
-0
lines changed

.github/workflows/python.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# NOTE: This file is auto generated by OpenAPI Generator.
2+
# URL: https://openapi-generator.tech
3+
#
4+
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
5+
6+
name: platform_api_client Python package
7+
8+
on: [push, pull_request]
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install flake8 pytest
28+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
29+
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
30+
- name: Lint with flake8
31+
run: |
32+
# stop the build if there are Python syntax errors or undefined names
33+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
34+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
35+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
36+
- name: Test with pytest
37+
run: |
38+
pytest

.gitignore

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
27+
# PyInstaller
28+
# Usually these files are written by a python script from a template
29+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
30+
*.manifest
31+
*.spec
32+
33+
# Installer logs
34+
pip-log.txt
35+
pip-delete-this-directory.txt
36+
37+
# Unit test / coverage reports
38+
htmlcov/
39+
.tox/
40+
.coverage
41+
.coverage.*
42+
.cache
43+
nosetests.xml
44+
coverage.xml
45+
*,cover
46+
.hypothesis/
47+
venv/
48+
.venv/
49+
.python-version
50+
.pytest_cache
51+
52+
# Translations
53+
*.mo
54+
*.pot
55+
56+
# Django stuff:
57+
*.log
58+
59+
# Sphinx documentation
60+
docs/_build/
61+
62+
# PyBuilder
63+
target/
64+
65+
#Ipython Notebook
66+
.ipynb_checkpoints

.gitlab-ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# NOTE: This file is auto generated by OpenAPI Generator.
2+
# URL: https://openapi-generator.tech
3+
#
4+
# ref: https://docs.gitlab.com/ee/ci/README.html
5+
# ref: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml
6+
7+
stages:
8+
- test
9+
10+
.pytest:
11+
stage: test
12+
script:
13+
- pip install -r requirements.txt
14+
- pip install -r test-requirements.txt
15+
- pytest --cov=platform_api_client
16+
17+
pytest-3.7:
18+
extends: .pytest
19+
image: python:3.7-alpine
20+
pytest-3.8:
21+
extends: .pytest
22+
image: python:3.8-alpine
23+
pytest-3.9:
24+
extends: .pytest
25+
image: python:3.9-alpine
26+
pytest-3.10:
27+
extends: .pytest
28+
image: python:3.10-alpine
29+
pytest-3.11:
30+
extends: .pytest
31+
image: python:3.11-alpine

.openapi-generator-ignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md

.openapi-generator/FILES

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
.github/workflows/python.yml
2+
.gitignore
3+
.gitlab-ci.yml
4+
.travis.yml
5+
README.md
6+
docs/AuthSecret.md
7+
docs/ClientSecretResponse.md
8+
docs/CreateComputeDeploymentRequest.md
9+
docs/CreateComputeDeploymentResponse.md
10+
docs/CreateInferenceDeploymentRequest.md
11+
docs/CreateInferenceDeploymentResponse.md
12+
docs/CreatePaymentRequest.md
13+
docs/CreateTrainingDeploymentRequest.md
14+
docs/CreateTrainingDeploymentResponse.md
15+
docs/CreditsResponse.md
16+
docs/DeploymentStatus.md
17+
docs/DeploymentStatusRequest.md
18+
docs/DeploymentStatusResponse.md
19+
docs/DeploymentType.md
20+
docs/EXTERNALApi.md
21+
docs/EndpointReadyState.md
22+
docs/GetComputeDeploymentResponse.md
23+
docs/GetDeploymentResponse.md
24+
docs/GetInferenceDeploymentResponse.md
25+
docs/GetTrainingDeploymentResponse.md
26+
docs/HTTPValidationError.md
27+
docs/HardwareInstanceResponse.md
28+
docs/ListGetDeploymentResponse.md
29+
docs/ListHardwareInstanceResponse.md
30+
docs/ListPaymentMethodResponse.md
31+
docs/ListPrebuiltImageResponse.md
32+
docs/LocationInner.md
33+
docs/PrebuiltImageResponse.md
34+
docs/ValidationError.md
35+
git_push.sh
36+
platform_api_client/__init__.py
37+
platform_api_client/api/__init__.py
38+
platform_api_client/api/external_api.py
39+
platform_api_client/api_client.py
40+
platform_api_client/api_response.py
41+
platform_api_client/configuration.py
42+
platform_api_client/exceptions.py
43+
platform_api_client/models/__init__.py
44+
platform_api_client/models/auth_secret.py
45+
platform_api_client/models/client_secret_response.py
46+
platform_api_client/models/create_compute_deployment_request.py
47+
platform_api_client/models/create_compute_deployment_response.py
48+
platform_api_client/models/create_inference_deployment_request.py
49+
platform_api_client/models/create_inference_deployment_response.py
50+
platform_api_client/models/create_payment_request.py
51+
platform_api_client/models/create_training_deployment_request.py
52+
platform_api_client/models/create_training_deployment_response.py
53+
platform_api_client/models/credits_response.py
54+
platform_api_client/models/deployment_status.py
55+
platform_api_client/models/deployment_status_request.py
56+
platform_api_client/models/deployment_status_response.py
57+
platform_api_client/models/deployment_type.py
58+
platform_api_client/models/endpoint_ready_state.py
59+
platform_api_client/models/get_compute_deployment_response.py
60+
platform_api_client/models/get_deployment_response.py
61+
platform_api_client/models/get_inference_deployment_response.py
62+
platform_api_client/models/get_training_deployment_response.py
63+
platform_api_client/models/hardware_instance_response.py
64+
platform_api_client/models/http_validation_error.py
65+
platform_api_client/models/list_get_deployment_response.py
66+
platform_api_client/models/list_hardware_instance_response.py
67+
platform_api_client/models/list_payment_method_response.py
68+
platform_api_client/models/list_prebuilt_image_response.py
69+
platform_api_client/models/location_inner.py
70+
platform_api_client/models/prebuilt_image_response.py
71+
platform_api_client/models/validation_error.py
72+
platform_api_client/py.typed
73+
platform_api_client/rest.py
74+
pyproject.toml
75+
requirements.txt
76+
setup.cfg
77+
setup.py
78+
test-requirements.txt
79+
test/__init__.py
80+
tox.ini

.openapi-generator/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7.4.0-SNAPSHOT

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# ref: https://docs.travis-ci.com/user/languages/python
2+
language: python
3+
python:
4+
- "3.7"
5+
- "3.8"
6+
- "3.9"
7+
- "3.10"
8+
- "3.11"
9+
# uncomment the following if needed
10+
#- "3.11-dev" # 3.11 development branch
11+
#- "nightly" # nightly build
12+
# command to install dependencies
13+
install:
14+
- "pip install -r requirements.txt"
15+
- "pip install -r test-requirements.txt"
16+
# command to run tests
17+
script: pytest --cov=platform_api_client

0 commit comments

Comments
 (0)