Skip to content

Commit 5b39914

Browse files
committed
fix: redo package name
1 parent 101b3f5 commit 5b39914

Some content is hidden

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

50 files changed

+8570
-125
lines changed

.github/workflows/python.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.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
5+
6+
name: codegen_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.8", "3.9", "3.10", "3.11", "3.12"]
17+
18+
steps:
19+
- uses: actions/checkout@v4
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 -r requirements.txt
28+
pip install -r test-requirements.txt
29+
- name: Test with pytest
30+
run: |
31+
pytest --cov=codegen_api_client

.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=codegen_api_client
16+
17+
pytest-3.8:
18+
extends: .pytest
19+
image: python:3.8-alpine
20+
pytest-3.9:
21+
extends: .pytest
22+
image: python:3.9-alpine
23+
pytest-3.10:
24+
extends: .pytest
25+
image: python:3.10-alpine
26+
pytest-3.11:
27+
extends: .pytest
28+
image: python:3.11-alpine
29+
pytest-3.12:
30+
extends: .pytest
31+
image: python:3.12-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: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
.github/workflows/python.yml
2+
.gitignore
3+
.gitlab-ci.yml
4+
.openapi-generator-ignore
5+
.travis.yml
6+
README.md
7+
codegen_api_client/__init__.py
8+
codegen_api_client/api/__init__.py
9+
codegen_api_client/api/agents_api.py
10+
codegen_api_client/api/organizations_api.py
11+
codegen_api_client/api/users_api.py
12+
codegen_api_client/api_client.py
13+
codegen_api_client/api_response.py
14+
codegen_api_client/configuration.py
15+
codegen_api_client/exceptions.py
16+
codegen_api_client/models/__init__.py
17+
codegen_api_client/models/agent_run_response.py
18+
codegen_api_client/models/create_agent_run_input.py
19+
codegen_api_client/models/fast_api_rate_limit_response.py
20+
codegen_api_client/models/http_validation_error.py
21+
codegen_api_client/models/organization_response.py
22+
codegen_api_client/models/organization_settings.py
23+
codegen_api_client/models/page_organization_response.py
24+
codegen_api_client/models/page_user_response.py
25+
codegen_api_client/models/user_response.py
26+
codegen_api_client/models/validation_error.py
27+
codegen_api_client/models/validation_error_loc_inner.py
28+
codegen_api_client/py.typed
29+
codegen_api_client/rest.py
30+
docs/AgentRunResponse.md
31+
docs/AgentsApi.md
32+
docs/CreateAgentRunInput.md
33+
docs/FastAPIRateLimitResponse.md
34+
docs/HTTPValidationError.md
35+
docs/OrganizationResponse.md
36+
docs/OrganizationSettings.md
37+
docs/OrganizationsApi.md
38+
docs/PageOrganizationResponse.md
39+
docs/PageUserResponse.md
40+
docs/UserResponse.md
41+
docs/UsersApi.md
42+
docs/ValidationError.md
43+
docs/ValidationErrorLocInner.md
44+
git_push.sh
45+
pyproject.toml
46+
requirements.txt
47+
setup.cfg
48+
setup.py
49+
test-requirements.txt
50+
test/__init__.py
51+
tox.ini

.openapi-generator/VERSION

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

.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.8"
5+
- "3.9"
6+
- "3.10"
7+
- "3.11"
8+
- "3.12"
9+
# uncomment the following if needed
10+
#- "3.12-dev" # 3.12 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=codegen_api_client

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# openapi-client
1+
# codegen-api-client
22
API for application developers
33

44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
@@ -24,7 +24,7 @@ pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
2424

2525
Then import the package:
2626
```python
27-
import openapi_client
27+
import codegen_api_client
2828
```
2929

3030
### Setuptools
@@ -38,7 +38,7 @@ python setup.py install --user
3838

3939
Then import the package:
4040
```python
41-
import openapi_client
41+
import codegen_api_client
4242
```
4343

4444
### Tests
@@ -51,24 +51,24 @@ Please follow the [installation procedure](#installation--usage) and then run th
5151

5252
```python
5353

54-
import openapi_client
55-
from openapi_client.rest import ApiException
54+
import codegen_api_client
55+
from codegen_api_client.rest import ApiException
5656
from pprint import pprint
5757

5858
# Defining the host is optional and defaults to http://localhost
5959
# See configuration.py for a list of all supported configuration parameters.
60-
configuration = openapi_client.Configuration(
60+
configuration = codegen_api_client.Configuration(
6161
host = "http://localhost"
6262
)
6363

6464

6565

6666
# Enter a context with an instance of the API client
67-
with openapi_client.ApiClient(configuration) as api_client:
67+
with codegen_api_client.ApiClient(configuration) as api_client:
6868
# Create an instance of the API class
69-
api_instance = openapi_client.AgentsApi(api_client)
69+
api_instance = codegen_api_client.AgentsApi(api_client)
7070
org_id = 56 # int |
71-
create_agent_run_input = openapi_client.CreateAgentRunInput() # CreateAgentRunInput |
71+
create_agent_run_input = codegen_api_client.CreateAgentRunInput() # CreateAgentRunInput |
7272
authorization = None # object | (optional)
7373

7474
try:

codegen_api_client/__init__.py

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# coding: utf-8
2+
3+
# flake8: noqa
4+
5+
"""
6+
Developer API
7+
8+
API for application developers
9+
10+
The version of the OpenAPI document: 1.0.0
11+
Generated by OpenAPI Generator (https://openapi-generator.tech)
12+
13+
Do not edit the class manually.
14+
""" # noqa: E501
15+
16+
17+
__version__ = "1.0.0"
18+
19+
# import apis into sdk package
20+
from codegen_api_client.api.agents_api import AgentsApi
21+
from codegen_api_client.api.organizations_api import OrganizationsApi
22+
from codegen_api_client.api.users_api import UsersApi
23+
24+
# import ApiClient
25+
from codegen_api_client.api_response import ApiResponse
26+
from codegen_api_client.api_client import ApiClient
27+
from codegen_api_client.configuration import Configuration
28+
from codegen_api_client.exceptions import OpenApiException
29+
from codegen_api_client.exceptions import ApiTypeError
30+
from codegen_api_client.exceptions import ApiValueError
31+
from codegen_api_client.exceptions import ApiKeyError
32+
from codegen_api_client.exceptions import ApiAttributeError
33+
from codegen_api_client.exceptions import ApiException
34+
35+
# import models into sdk package
36+
from codegen_api_client.models.agent_run_response import AgentRunResponse
37+
from codegen_api_client.models.create_agent_run_input import CreateAgentRunInput
38+
from codegen_api_client.models.fast_api_rate_limit_response import FastAPIRateLimitResponse
39+
from codegen_api_client.models.http_validation_error import HTTPValidationError
40+
from codegen_api_client.models.organization_response import OrganizationResponse
41+
from codegen_api_client.models.organization_settings import OrganizationSettings
42+
from codegen_api_client.models.page_organization_response import PageOrganizationResponse
43+
from codegen_api_client.models.page_user_response import PageUserResponse
44+
from codegen_api_client.models.user_response import UserResponse
45+
from codegen_api_client.models.validation_error import ValidationError
46+
from codegen_api_client.models.validation_error_loc_inner import ValidationErrorLocInner

codegen_api_client/api/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# flake8: noqa
2+
3+
# import apis into api package
4+
from codegen_api_client.api.agents_api import AgentsApi
5+
from codegen_api_client.api.organizations_api import OrganizationsApi
6+
from codegen_api_client.api.users_api import UsersApi
7+

0 commit comments

Comments
 (0)