Skip to content

Commit 6b2415f

Browse files
committed
refactor: rename package to supportpal_client and regenerate
- Update config.json with new packageName: supportpal_client - Regenerate Python client using OpenAPI Generator - Fix dependency syntax and repository URLs in pyproject.toml
1 parent 4210b58 commit 6b2415f

62 files changed

Lines changed: 297 additions & 318 deletions

Some content is hidden

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

.github/workflows/python.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
55

6-
name: supportpal_api_client Python package
6+
name: supportpal_client Python package
77

88
on: [push, pull_request]
99

@@ -31,4 +31,4 @@ jobs:
3131
pip install -r test-requirements.txt
3232
- name: Test with pytest
3333
run: |
34-
pytest --cov=supportpal_api_client
34+
pytest --cov=supportpal_client

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ stages:
1212
script:
1313
- pip install -r requirements.txt
1414
- pip install -r test-requirements.txt
15-
- pytest --cov=supportpal_api_client
15+
- pytest --cov=supportpal_client
1616

1717
pytest-3.9:
1818
extends: .pytest

.openapi-generator/FILES

Lines changed: 30 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -29,57 +29,36 @@ pyproject.toml
2929
requirements.txt
3030
setup.cfg
3131
setup.py
32-
supportpal_api_client/__init__.py
33-
supportpal_api_client/api/__init__.py
34-
supportpal_api_client/api/feedback_api.py
35-
supportpal_api_client/api/message_api.py
36-
supportpal_api_client/api/operator_api.py
37-
supportpal_api_client/api/ticket_api.py
38-
supportpal_api_client/api_client.py
39-
supportpal_api_client/api_response.py
40-
supportpal_api_client/configuration.py
41-
supportpal_api_client/exceptions.py
42-
supportpal_api_client/models/__init__.py
43-
supportpal_api_client/models/channel.py
44-
supportpal_api_client/models/department.py
45-
supportpal_api_client/models/feedback.py
46-
supportpal_api_client/models/feedback_form.py
47-
supportpal_api_client/models/feedback_list_response.py
48-
supportpal_api_client/models/message.py
49-
supportpal_api_client/models/message_list_response.py
50-
supportpal_api_client/models/message_response.py
51-
supportpal_api_client/models/operator.py
52-
supportpal_api_client/models/operator_list_response.py
53-
supportpal_api_client/models/operator_response.py
54-
supportpal_api_client/models/priority.py
55-
supportpal_api_client/models/ticket.py
56-
supportpal_api_client/models/ticket_list_response.py
57-
supportpal_api_client/models/ticket_response.py
58-
supportpal_api_client/models/ticket_status.py
59-
supportpal_api_client/models/user_summary.py
60-
supportpal_api_client/py.typed
61-
supportpal_api_client/rest.py
32+
supportpal_client/__init__.py
33+
supportpal_client/api/__init__.py
34+
supportpal_client/api/feedback_api.py
35+
supportpal_client/api/message_api.py
36+
supportpal_client/api/operator_api.py
37+
supportpal_client/api/ticket_api.py
38+
supportpal_client/api_client.py
39+
supportpal_client/api_response.py
40+
supportpal_client/configuration.py
41+
supportpal_client/exceptions.py
42+
supportpal_client/models/__init__.py
43+
supportpal_client/models/channel.py
44+
supportpal_client/models/department.py
45+
supportpal_client/models/feedback.py
46+
supportpal_client/models/feedback_form.py
47+
supportpal_client/models/feedback_list_response.py
48+
supportpal_client/models/message.py
49+
supportpal_client/models/message_list_response.py
50+
supportpal_client/models/message_response.py
51+
supportpal_client/models/operator.py
52+
supportpal_client/models/operator_list_response.py
53+
supportpal_client/models/operator_response.py
54+
supportpal_client/models/priority.py
55+
supportpal_client/models/ticket.py
56+
supportpal_client/models/ticket_list_response.py
57+
supportpal_client/models/ticket_response.py
58+
supportpal_client/models/ticket_status.py
59+
supportpal_client/models/user_summary.py
60+
supportpal_client/py.typed
61+
supportpal_client/rest.py
6262
test-requirements.txt
6363
test/__init__.py
64-
test/test_channel.py
65-
test/test_department.py
66-
test/test_feedback.py
67-
test/test_feedback_api.py
68-
test/test_feedback_form.py
69-
test/test_feedback_list_response.py
70-
test/test_message.py
71-
test/test_message_api.py
72-
test/test_message_list_response.py
73-
test/test_message_response.py
74-
test/test_operator.py
75-
test/test_operator_api.py
76-
test/test_operator_list_response.py
77-
test/test_operator_response.py
78-
test/test_priority.py
79-
test/test_ticket.py
80-
test/test_ticket_api.py
81-
test/test_ticket_list_response.py
82-
test/test_ticket_response.py
83-
test/test_ticket_status.py
84-
test/test_user_summary.py
8564
tox.ini

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ install:
1414
- "pip install -r requirements.txt"
1515
- "pip install -r test-requirements.txt"
1616
# command to run tests
17-
script: pytest --cov=supportpal_api_client
17+
script: pytest --cov=supportpal_client

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# supportpal-api-client
1+
# supportpal-python-client
22
API for accessing SupportPal tickets, messages, operators, and feedback for AI-powered ticket analysis.
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 supportpal_api_client
27+
import supportpal_client
2828
```
2929

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

3939
Then import the package:
4040
```python
41-
import supportpal_api_client
41+
import supportpal_client
4242
```
4343

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

5252
```python
5353

54-
import supportpal_api_client
55-
from supportpal_api_client.rest import ApiException
54+
import supportpal_client
55+
from supportpal_client.rest import ApiException
5656
from pprint import pprint
5757

5858
# Defining the host is optional and defaults to https://yourdomain.com/api
5959
# See configuration.py for a list of all supported configuration parameters.
60-
configuration = supportpal_api_client.Configuration(
60+
configuration = supportpal_client.Configuration(
6161
host = "https://yourdomain.com/api"
6262
)
6363

@@ -67,16 +67,16 @@ configuration = supportpal_api_client.Configuration(
6767
# satisfies your auth use case.
6868

6969
# Configure HTTP basic authorization: BasicAuth
70-
configuration = supportpal_api_client.Configuration(
70+
configuration = supportpal_client.Configuration(
7171
username = os.environ["USERNAME"],
7272
password = os.environ["PASSWORD"]
7373
)
7474

7575

7676
# Enter a context with an instance of the API client
77-
with supportpal_api_client.ApiClient(configuration) as api_client:
77+
with supportpal_client.ApiClient(configuration) as api_client:
7878
# Create an instance of the API class
79-
api_instance = supportpal_api_client.FeedbackApi(api_client)
79+
api_instance = supportpal_client.FeedbackApi(api_client)
8080
id = 56 # int |
8181

8282
try:

docs/Channel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
1414
## Example
1515

1616
```python
17-
from supportpal_api_client.models.channel import Channel
17+
from supportpal_client.models.channel import Channel
1818

1919
# TODO update the JSON string below
2020
json = "{}"

docs/Department.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
1717
## Example
1818

1919
```python
20-
from supportpal_api_client.models.department import Department
20+
from supportpal_client.models.department import Department
2121

2222
# TODO update the JSON string below
2323
json = "{}"

docs/Feedback.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
2020
## Example
2121

2222
```python
23-
from supportpal_api_client.models.feedback import Feedback
23+
from supportpal_client.models.feedback import Feedback
2424

2525
# TODO update the JSON string below
2626
json = "{}"

docs/FeedbackApi.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# supportpal_api_client.FeedbackApi
1+
# supportpal_client.FeedbackApi
22

33
All URIs are relative to *https://yourdomain.com/api*
44

@@ -18,14 +18,14 @@ Get feedback by ID
1818
* Basic Authentication (BasicAuth):
1919

2020
```python
21-
import supportpal_api_client
22-
from supportpal_api_client.models.feedback_list_response import FeedbackListResponse
23-
from supportpal_api_client.rest import ApiException
21+
import supportpal_client
22+
from supportpal_client.models.feedback_list_response import FeedbackListResponse
23+
from supportpal_client.rest import ApiException
2424
from pprint import pprint
2525

2626
# Defining the host is optional and defaults to https://yourdomain.com/api
2727
# See configuration.py for a list of all supported configuration parameters.
28-
configuration = supportpal_api_client.Configuration(
28+
configuration = supportpal_client.Configuration(
2929
host = "https://yourdomain.com/api"
3030
)
3131

@@ -35,15 +35,15 @@ configuration = supportpal_api_client.Configuration(
3535
# satisfies your auth use case.
3636

3737
# Configure HTTP basic authorization: BasicAuth
38-
configuration = supportpal_api_client.Configuration(
38+
configuration = supportpal_client.Configuration(
3939
username = os.environ["USERNAME"],
4040
password = os.environ["PASSWORD"]
4141
)
4242

4343
# Enter a context with an instance of the API client
44-
with supportpal_api_client.ApiClient(configuration) as api_client:
44+
with supportpal_client.ApiClient(configuration) as api_client:
4545
# Create an instance of the API class
46-
api_instance = supportpal_api_client.FeedbackApi(api_client)
46+
api_instance = supportpal_client.FeedbackApi(api_client)
4747
id = 56 # int |
4848

4949
try:
@@ -95,14 +95,14 @@ List ticket feedback
9595
* Basic Authentication (BasicAuth):
9696

9797
```python
98-
import supportpal_api_client
99-
from supportpal_api_client.models.feedback_list_response import FeedbackListResponse
100-
from supportpal_api_client.rest import ApiException
98+
import supportpal_client
99+
from supportpal_client.models.feedback_list_response import FeedbackListResponse
100+
from supportpal_client.rest import ApiException
101101
from pprint import pprint
102102

103103
# Defining the host is optional and defaults to https://yourdomain.com/api
104104
# See configuration.py for a list of all supported configuration parameters.
105-
configuration = supportpal_api_client.Configuration(
105+
configuration = supportpal_client.Configuration(
106106
host = "https://yourdomain.com/api"
107107
)
108108

@@ -112,15 +112,15 @@ configuration = supportpal_api_client.Configuration(
112112
# satisfies your auth use case.
113113

114114
# Configure HTTP basic authorization: BasicAuth
115-
configuration = supportpal_api_client.Configuration(
115+
configuration = supportpal_client.Configuration(
116116
username = os.environ["USERNAME"],
117117
password = os.environ["PASSWORD"]
118118
)
119119

120120
# Enter a context with an instance of the API client
121-
with supportpal_api_client.ApiClient(configuration) as api_client:
121+
with supportpal_client.ApiClient(configuration) as api_client:
122122
# Create an instance of the API class
123-
api_instance = supportpal_api_client.FeedbackApi(api_client)
123+
api_instance = supportpal_client.FeedbackApi(api_client)
124124
ticket_id = 56 # int | Only show feedback for the given ticket ID (optional)
125125
rating = 56 # int | Filter by rating: 0 = bad, 1 = good, 2 = neutral (optional)
126126
start = 1 # int | (optional) (default to 1)

docs/FeedbackForm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
2020
## Example
2121

2222
```python
23-
from supportpal_api_client.models.feedback_form import FeedbackForm
23+
from supportpal_client.models.feedback_form import FeedbackForm
2424

2525
# TODO update the JSON string below
2626
json = "{}"

0 commit comments

Comments
 (0)