Skip to content

Commit 114f104

Browse files
committed
Updated on 2025-02-26 21:18:16. Version: 2.0.0
1 parent 5afc7c8 commit 114f104

File tree

252 files changed

+24686
-22440
lines changed

Some content is hidden

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

252 files changed

+24686
-22440
lines changed

.github/workflows/python.yml

+31
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: docspring 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={{packageName}}

.gitignore

+2-5
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ coverage.xml
4545
*,cover
4646
.hypothesis/
4747
venv/
48+
.venv/
4849
.python-version
50+
.pytest_cache
4951

5052
# Translations
5153
*.mo
@@ -62,8 +64,3 @@ target/
6264

6365
#Ipython Notebook
6466
.ipynb_checkpoints
65-
66-
# Custom
67-
test/venv-2/
68-
test/venv-3/
69-
.pytest_cache

.gitlab-ci.yml

+31
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=docspring
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/FILES

+169
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
.github/workflows/python.yml
2+
.gitignore
3+
.gitlab-ci.yml
4+
.travis.yml
5+
README.md
6+
docs/AddFieldsData.md
7+
docs/BatchGeneratePdfs201Response.md
8+
docs/CombinePdfsData.md
9+
docs/CombinedSubmission.md
10+
docs/CombinedSubmissionAction.md
11+
docs/CombinedSubmissionData.md
12+
docs/CopyTemplateOptions.md
13+
docs/CreateCombinedSubmissionResponse.md
14+
docs/CreateCustomFileData.md
15+
docs/CreateCustomFileResponse.md
16+
docs/CreateFolderData.md
17+
docs/CreateHtmlSubmissionData.md
18+
docs/CreateHtmlTemplate.md
19+
docs/CreatePdfSubmissionData.md
20+
docs/CreatePdfTemplate.md
21+
docs/CreateSubmissionDataRequestData.md
22+
docs/CreateSubmissionDataRequestEventRequest.md
23+
docs/CreateSubmissionDataRequestEventResponse.md
24+
docs/CreateSubmissionDataRequestResponse.md
25+
docs/CreateSubmissionDataRequestTokenResponse.md
26+
docs/CreateSubmissionResponse.md
27+
docs/CustomFile.md
28+
docs/ErrorResponse.md
29+
docs/Folder.md
30+
docs/JsonSchema.md
31+
docs/ListSubmissionsResponse.md
32+
docs/MoveFolderData.md
33+
docs/MoveTemplateData.md
34+
docs/MultipleErrorsResponse.md
35+
docs/PDFApi.md
36+
docs/RenameFolderData.md
37+
docs/Submission.md
38+
docs/SubmissionAction.md
39+
docs/SubmissionBatch.md
40+
docs/SubmissionBatchData.md
41+
docs/SubmissionBatchWithSubmissions.md
42+
docs/SubmissionDataRequest.md
43+
docs/SubmissionDataRequestEvent.md
44+
docs/SubmissionDataRequestShow.md
45+
docs/SubmissionDataRequestToken.md
46+
docs/SubmissionPreview.md
47+
docs/SuccessErrorResponse.md
48+
docs/SuccessMultipleErrorsResponse.md
49+
docs/Template.md
50+
docs/TemplateAddFieldsResponse.md
51+
docs/TemplatePreview.md
52+
docs/UpdateHtmlTemplate.md
53+
docs/UpdateSubmissionDataRequestData.md
54+
docs/UploadPresignResponse.md
55+
docspring/__init__.py
56+
docspring/api/__init__.py
57+
docspring/api/pdf_api.py
58+
docspring/api_client.py
59+
docspring/api_response.py
60+
docspring/configuration.py
61+
docspring/exceptions.py
62+
docspring/models/__init__.py
63+
docspring/models/add_fields_data.py
64+
docspring/models/batch_generate_pdfs201_response.py
65+
docspring/models/combine_pdfs_data.py
66+
docspring/models/combined_submission.py
67+
docspring/models/combined_submission_action.py
68+
docspring/models/combined_submission_data.py
69+
docspring/models/copy_template_options.py
70+
docspring/models/create_combined_submission_response.py
71+
docspring/models/create_custom_file_data.py
72+
docspring/models/create_custom_file_response.py
73+
docspring/models/create_folder_data.py
74+
docspring/models/create_html_submission_data.py
75+
docspring/models/create_html_template.py
76+
docspring/models/create_pdf_submission_data.py
77+
docspring/models/create_pdf_template.py
78+
docspring/models/create_submission_data_request_data.py
79+
docspring/models/create_submission_data_request_event_request.py
80+
docspring/models/create_submission_data_request_event_response.py
81+
docspring/models/create_submission_data_request_response.py
82+
docspring/models/create_submission_data_request_token_response.py
83+
docspring/models/create_submission_response.py
84+
docspring/models/custom_file.py
85+
docspring/models/error_response.py
86+
docspring/models/folder.py
87+
docspring/models/json_schema.py
88+
docspring/models/list_submissions_response.py
89+
docspring/models/move_folder_data.py
90+
docspring/models/move_template_data.py
91+
docspring/models/multiple_errors_response.py
92+
docspring/models/rename_folder_data.py
93+
docspring/models/submission.py
94+
docspring/models/submission_action.py
95+
docspring/models/submission_batch.py
96+
docspring/models/submission_batch_data.py
97+
docspring/models/submission_batch_with_submissions.py
98+
docspring/models/submission_data_request.py
99+
docspring/models/submission_data_request_event.py
100+
docspring/models/submission_data_request_show.py
101+
docspring/models/submission_data_request_token.py
102+
docspring/models/submission_preview.py
103+
docspring/models/success_error_response.py
104+
docspring/models/success_multiple_errors_response.py
105+
docspring/models/template.py
106+
docspring/models/template_add_fields_response.py
107+
docspring/models/template_preview.py
108+
docspring/models/update_html_template.py
109+
docspring/models/update_submission_data_request_data.py
110+
docspring/models/upload_presign_response.py
111+
docspring/py.typed
112+
docspring/rest.py
113+
git_push.sh
114+
pyproject.toml
115+
requirements.txt
116+
setup.cfg
117+
setup.py
118+
test-requirements.txt
119+
test/__init__.py
120+
test/test_add_fields_data.py
121+
test/test_batch_generate_pdfs201_response.py
122+
test/test_combine_pdfs_data.py
123+
test/test_combined_submission.py
124+
test/test_combined_submission_action.py
125+
test/test_combined_submission_data.py
126+
test/test_copy_template_options.py
127+
test/test_create_combined_submission_response.py
128+
test/test_create_custom_file_data.py
129+
test/test_create_custom_file_response.py
130+
test/test_create_folder_data.py
131+
test/test_create_html_submission_data.py
132+
test/test_create_html_template.py
133+
test/test_create_pdf_submission_data.py
134+
test/test_create_pdf_template.py
135+
test/test_create_submission_data_request_data.py
136+
test/test_create_submission_data_request_event_request.py
137+
test/test_create_submission_data_request_event_response.py
138+
test/test_create_submission_data_request_response.py
139+
test/test_create_submission_data_request_token_response.py
140+
test/test_create_submission_response.py
141+
test/test_custom_file.py
142+
test/test_error_response.py
143+
test/test_folder.py
144+
test/test_json_schema.py
145+
test/test_list_submissions_response.py
146+
test/test_move_folder_data.py
147+
test/test_move_template_data.py
148+
test/test_multiple_errors_response.py
149+
test/test_pdf_api.py
150+
test/test_rename_folder_data.py
151+
test/test_submission.py
152+
test/test_submission_action.py
153+
test/test_submission_batch.py
154+
test/test_submission_batch_data.py
155+
test/test_submission_batch_with_submissions.py
156+
test/test_submission_data_request.py
157+
test/test_submission_data_request_event.py
158+
test/test_submission_data_request_show.py
159+
test/test_submission_data_request_token.py
160+
test/test_submission_preview.py
161+
test/test_success_error_response.py
162+
test/test_success_multiple_errors_response.py
163+
test/test_template.py
164+
test/test_template_add_fields_response.py
165+
test/test_template_preview.py
166+
test/test_update_html_template.py
167+
test/test_update_submission_data_request_data.py
168+
test/test_upload_presign_response.py
169+
tox.ini

.openapi-generator/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3.0
1+
7.11.0

.travis.yml

+12-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
# ref: https://docs.travis-ci.com/user/languages/python
22
language: python
33
python:
4-
- "2.7"
5-
- "3.2"
6-
- "3.3"
7-
- "3.4"
8-
- "3.5"
9-
#- "3.5-dev" # 3.5 development branch
10-
#- "nightly" # points to the latest development branch e.g. 3.6-dev
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
1112
# command to install dependencies
12-
install: "pip install -r requirements.txt"
13+
install:
14+
- "pip install -r requirements.txt"
15+
- "pip install -r test-requirements.txt"
1316
# command to run tests
14-
script: nosetests
17+
script: pytest --cov=docspring

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
### 2.0.0 [February 23, 2025]
2+
3+
- **BREAKING CHANGE**: Updated default host to our new synchronous API subdomain: sync.api.docspring.com. (EU customers should use sync.api-eu.docspring.com). Removed all custom polling code from library since this logic is now handled by the API service running on our sync subdomain
4+
- Fixed User-Agent header: docspring-python-x.x.x
5+
16
### 1.3.2 [November 28, 2021]
27

38
- Added 'password' parameter to Generate PDF and Combine PDF API endpoints. You can now encrypt each generated PDF with a unique password.

0 commit comments

Comments
 (0)