Skip to content

Commit 9457a62

Browse files
feat: update API client methods
API changes: - Update API client - Update API client - Update API client - Update API client - Update API client - ... and 6 more API files Model changes: - Add create_version_request model - Add set_default_version_request model - Add update_version_request model - Add version_item model - Add versions_list_response model - ... and 25 more model files Generated from OpenAPI spec v1.8.0
1 parent 148133c commit 9457a62

77 files changed

Lines changed: 2819 additions & 240 deletions

File tree

Some content is hidden

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

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# TemplateFox Python SDK
22

3-
Official Python SDK for [TemplateFox](https://pdftemplateapi.com) - Generate PDFs from HTML templates via API.
3+
Official Python SDK for [TemplateFox](https://templatefox.com) - Generate PDFs from HTML templates via API.
44

55
[![PyPI version](https://badge.fury.io/py/templatefox.svg)](https://pypi.org/project/templatefox/)
66
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
@@ -139,7 +139,7 @@ print(f'Connection: {"OK" if test.success else "Failed"}')
139139
from templatefox import Configuration
140140

141141
config = Configuration(
142-
host='https://api.pdftemplateapi.com', # Default API URL
142+
host='https://api.templatefox.com', # Default API URL
143143
)
144144
config.api_key['ApiKeyAuth'] = 'your-api-key'
145145

@@ -190,13 +190,13 @@ asyncio.run(generate_pdfs())
190190

191191
## Documentation
192192

193-
- [API Documentation](https://pdftemplateapi.com/docs)
194-
- [Swagger UI](https://api.pdftemplateapi.com/docs)
195-
- [Dashboard](https://pdftemplateapi.com/dashboard)
193+
- [API Documentation](https://templatefox.com/docs)
194+
- [Swagger UI](https://api.templatefox.com/docs)
195+
- [Dashboard](https://templatefox.com/dashboard)
196196

197197
## Support
198198

199-
- Email: support@pdftemplateapi.com
199+
- Email: support@templatefox.com
200200
- Issues: [GitHub Issues](https://github.com/TemplateFoxPDF/pythonsdk/issues)
201201

202202
## License

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[project]
22
name = "templatefox"
3-
version = "1.7.0"
3+
version = "1.8.0"
44
description = "Official TemplateFox Python SDK - Generate PDFs from HTML templates"
55
license = {text = "MIT"}
66
authors = [
7-
{name = "TemplateFox",email = "support@pdftemplateapi.com"},
7+
{name = "TemplateFox",email = "support@templatefox.com"},
88
]
99
readme = "README.md"
1010
keywords = ["pdf", "pdf-generation", "template", "api", "html-to-pdf", "templatefox", "pdf-template", "document-generation", "invoice", "report", "sdk", "pdf-api"]
@@ -18,10 +18,10 @@ dependencies = [
1818
]
1919

2020
[project.urls]
21-
Homepage = "https://pdftemplateapi.com"
21+
Homepage = "https://templatefox.com"
2222
Repository = "https://github.com/TemplateFoxPDF/pythonsdk"
2323
Issues = "https://github.com/TemplateFoxPDF/pythonsdk/issues"
24-
Documentation = "https://pdftemplateapi.com/docs"
24+
Documentation = "https://templatefox.com/docs"
2525

2626
[tool.poetry]
2727
requires-poetry = ">=2.0"

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
44
Generate beautiful PDFs from HTML/CSS templates with Jinja2 via API. Design once, generate thousands.
55
6-
The version of the OpenAPI document: 1.7.0
7-
Contact: support@pdftemplateapi.com
6+
The version of the OpenAPI document: 1.8.0
7+
Contact: support@templatefox.com
88
Generated by OpenAPI Generator (https://openapi-generator.tech)
99
1010
Do not edit the class manually.
@@ -20,7 +20,7 @@
2020
# prerequisite: setuptools
2121
# http://pypi.python.org/pypi/setuptools
2222
NAME = "templatefox"
23-
VERSION = "1.7.0"
23+
VERSION = "1.8.0"
2424
PYTHON_REQUIRES = ">= 3.9"
2525
REQUIRES = [
2626
"urllib3 >= 2.1.0, < 3.0.0",
@@ -34,7 +34,7 @@
3434
version=VERSION,
3535
description="TemplateFox API",
3636
author="TemplateFox",
37-
author_email="support@pdftemplateapi.com",
37+
author_email="support@templatefox.com",
3838
url="https://github.com/TemplateFoxPDF/pythonsdk",
3939
keywords=["OpenAPI", "OpenAPI-Generator", "TemplateFox API"],
4040
install_requires=REQUIRES,

templatefox/__init__.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
88
Generate beautiful PDFs from HTML/CSS templates with Jinja2 via API. Design once, generate thousands.
99
10-
The version of the OpenAPI document: 1.7.0
11-
Contact: support@pdftemplateapi.com
10+
The version of the OpenAPI document: 1.8.0
11+
Contact: support@templatefox.com
1212
Generated by OpenAPI Generator (https://openapi-generator.tech)
1313
1414
Do not edit the class manually.
1515
""" # noqa: E501
1616

1717

18-
__version__ = "1.7.0"
18+
__version__ = "1.8.0"
1919

2020
# Define package exports
2121
__all__ = [
@@ -40,6 +40,7 @@
4040
"CreateAsyncPdfResponse",
4141
"CreatePdfRequest",
4242
"CreatePdfResponse",
43+
"CreateVersionRequest",
4344
"HTTPValidationError",
4445
"JobListResponse",
4546
"JobStatus",
@@ -50,13 +51,17 @@
5051
"S3ConfigResponse",
5152
"S3SuccessResponse",
5253
"S3TestResponse",
54+
"SetDefaultVersionRequest",
5355
"TemplateField",
5456
"TemplateFieldSpec",
5557
"TemplateListItem",
5658
"TemplatesListResponse",
5759
"Transaction",
5860
"TransactionsResponse",
61+
"UpdateVersionRequest",
5962
"ValidationError",
63+
"VersionItem",
64+
"VersionsListResponse",
6065
]
6166

6267
# import apis into sdk package
@@ -85,6 +90,7 @@
8590
from templatefox.models.create_async_pdf_response import CreateAsyncPdfResponse as CreateAsyncPdfResponse
8691
from templatefox.models.create_pdf_request import CreatePdfRequest as CreatePdfRequest
8792
from templatefox.models.create_pdf_response import CreatePdfResponse as CreatePdfResponse
93+
from templatefox.models.create_version_request import CreateVersionRequest as CreateVersionRequest
8894
from templatefox.models.http_validation_error import HTTPValidationError as HTTPValidationError
8995
from templatefox.models.job_list_response import JobListResponse as JobListResponse
9096
from templatefox.models.job_status import JobStatus as JobStatus
@@ -95,11 +101,15 @@
95101
from templatefox.models.s3_config_response import S3ConfigResponse as S3ConfigResponse
96102
from templatefox.models.s3_success_response import S3SuccessResponse as S3SuccessResponse
97103
from templatefox.models.s3_test_response import S3TestResponse as S3TestResponse
104+
from templatefox.models.set_default_version_request import SetDefaultVersionRequest as SetDefaultVersionRequest
98105
from templatefox.models.template_field import TemplateField as TemplateField
99106
from templatefox.models.template_field_spec import TemplateFieldSpec as TemplateFieldSpec
100107
from templatefox.models.template_list_item import TemplateListItem as TemplateListItem
101108
from templatefox.models.templates_list_response import TemplatesListResponse as TemplatesListResponse
102109
from templatefox.models.transaction import Transaction as Transaction
103110
from templatefox.models.transactions_response import TransactionsResponse as TransactionsResponse
111+
from templatefox.models.update_version_request import UpdateVersionRequest as UpdateVersionRequest
104112
from templatefox.models.validation_error import ValidationError as ValidationError
113+
from templatefox.models.version_item import VersionItem as VersionItem
114+
from templatefox.models.versions_list_response import VersionsListResponse as VersionsListResponse
105115

templatefox/api/account_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
44
Generate beautiful PDFs from HTML/CSS templates with Jinja2 via API. Design once, generate thousands.
55
6-
The version of the OpenAPI document: 1.7.0
7-
Contact: support@pdftemplateapi.com
6+
The version of the OpenAPI document: 1.8.0
7+
Contact: support@templatefox.com
88
Generated by OpenAPI Generator (https://openapi-generator.tech)
99
1010
Do not edit the class manually.

templatefox/api/integrations_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
44
Generate beautiful PDFs from HTML/CSS templates with Jinja2 via API. Design once, generate thousands.
55
6-
The version of the OpenAPI document: 1.7.0
7-
Contact: support@pdftemplateapi.com
6+
The version of the OpenAPI document: 1.8.0
7+
Contact: support@templatefox.com
88
Generated by OpenAPI Generator (https://openapi-generator.tech)
99
1010
Do not edit the class manually.

templatefox/api/pdf_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
44
Generate beautiful PDFs from HTML/CSS templates with Jinja2 via API. Design once, generate thousands.
55
6-
The version of the OpenAPI document: 1.7.0
7-
Contact: support@pdftemplateapi.com
6+
The version of the OpenAPI document: 1.8.0
7+
Contact: support@templatefox.com
88
Generated by OpenAPI Generator (https://openapi-generator.tech)
99
1010
Do not edit the class manually.

templatefox/api/pdf_async_api.py

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
44
Generate beautiful PDFs from HTML/CSS templates with Jinja2 via API. Design once, generate thousands.
55
6-
The version of the OpenAPI document: 1.7.0
7-
Contact: support@pdftemplateapi.com
6+
The version of the OpenAPI document: 1.8.0
7+
Contact: support@templatefox.com
88
Generated by OpenAPI Generator (https://openapi-generator.tech)
99
1010
Do not edit the class manually.
@@ -16,8 +16,9 @@
1616
from typing import Any, Dict, List, Optional, Tuple, Union
1717
from typing_extensions import Annotated
1818

19-
from pydantic import StrictInt, StrictStr
19+
from pydantic import Field, StrictInt, StrictStr
2020
from typing import Any, Optional
21+
from typing_extensions import Annotated
2122
from templatefox.models.create_async_pdf_request import CreateAsyncPdfRequest
2223
from templatefox.models.create_async_pdf_response import CreateAsyncPdfResponse
2324
from templatefox.models.job_list_response import JobListResponse
@@ -333,7 +334,7 @@ def _create_pdf_async_serialize(
333334
@validate_call
334335
def get_pdf_job(
335336
self,
336-
job_id: StrictStr,
337+
job_id: Annotated[StrictStr, Field(description="Async job ID (UUID returned by the create-async endpoint)")],
337338
_request_timeout: Union[
338339
None,
339340
Annotated[StrictFloat, Field(gt=0)],
@@ -351,7 +352,7 @@ def get_pdf_job(
351352
352353
Get the current status of an async PDF generation job. **Authentication:** API Key required (`x-api-key` header) ## Status Values | Status | Description | |--------|-------------| | `pending` | Job is queued, waiting to be processed | | `processing` | Job is being processed | | `completed` | PDF generated successfully | | `failed` | Job failed (check error_message) | ## Polling Recommendations - Poll every 1-2 seconds for small documents - Poll every 5-10 seconds for large documents - Consider using webhooks instead of polling
353354
354-
:param job_id: (required)
355+
:param job_id: Async job ID (UUID returned by the create-async endpoint) (required)
355356
:type job_id: str
356357
:param _request_timeout: timeout setting for this request. If one
357358
number provided, it will be total request
@@ -402,7 +403,7 @@ def get_pdf_job(
402403
@validate_call
403404
def get_pdf_job_with_http_info(
404405
self,
405-
job_id: StrictStr,
406+
job_id: Annotated[StrictStr, Field(description="Async job ID (UUID returned by the create-async endpoint)")],
406407
_request_timeout: Union[
407408
None,
408409
Annotated[StrictFloat, Field(gt=0)],
@@ -420,7 +421,7 @@ def get_pdf_job_with_http_info(
420421
421422
Get the current status of an async PDF generation job. **Authentication:** API Key required (`x-api-key` header) ## Status Values | Status | Description | |--------|-------------| | `pending` | Job is queued, waiting to be processed | | `processing` | Job is being processed | | `completed` | PDF generated successfully | | `failed` | Job failed (check error_message) | ## Polling Recommendations - Poll every 1-2 seconds for small documents - Poll every 5-10 seconds for large documents - Consider using webhooks instead of polling
422423
423-
:param job_id: (required)
424+
:param job_id: Async job ID (UUID returned by the create-async endpoint) (required)
424425
:type job_id: str
425426
:param _request_timeout: timeout setting for this request. If one
426427
number provided, it will be total request
@@ -471,7 +472,7 @@ def get_pdf_job_with_http_info(
471472
@validate_call
472473
def get_pdf_job_without_preload_content(
473474
self,
474-
job_id: StrictStr,
475+
job_id: Annotated[StrictStr, Field(description="Async job ID (UUID returned by the create-async endpoint)")],
475476
_request_timeout: Union[
476477
None,
477478
Annotated[StrictFloat, Field(gt=0)],
@@ -489,7 +490,7 @@ def get_pdf_job_without_preload_content(
489490
490491
Get the current status of an async PDF generation job. **Authentication:** API Key required (`x-api-key` header) ## Status Values | Status | Description | |--------|-------------| | `pending` | Job is queued, waiting to be processed | | `processing` | Job is being processed | | `completed` | PDF generated successfully | | `failed` | Job failed (check error_message) | ## Polling Recommendations - Poll every 1-2 seconds for small documents - Poll every 5-10 seconds for large documents - Consider using webhooks instead of polling
491492
492-
:param job_id: (required)
493+
:param job_id: Async job ID (UUID returned by the create-async endpoint) (required)
493494
:type job_id: str
494495
:param _request_timeout: timeout setting for this request. If one
495496
number provided, it will be total request
@@ -600,9 +601,9 @@ def _get_pdf_job_serialize(
600601
@validate_call
601602
def list_pdf_jobs(
602603
self,
603-
limit: Optional[StrictInt] = None,
604-
offset: Optional[StrictInt] = None,
605-
status: Optional[Any] = None,
604+
limit: Annotated[Optional[StrictInt], Field(description="Maximum number of results to return")] = None,
605+
offset: Annotated[Optional[StrictInt], Field(description="Number of results to skip (for pagination)")] = None,
606+
status: Annotated[Optional[Any], Field(description="Filter jobs by status")] = None,
606607
_request_timeout: Union[
607608
None,
608609
Annotated[StrictFloat, Field(gt=0)],
@@ -620,11 +621,11 @@ def list_pdf_jobs(
620621
621622
List async PDF generation jobs for your team. **Authentication:** API Key required (`x-api-key` header) Supports pagination and filtering by status.
622623
623-
:param limit:
624+
:param limit: Maximum number of results to return
624625
:type limit: int
625-
:param offset:
626+
:param offset: Number of results to skip (for pagination)
626627
:type offset: int
627-
:param status:
628+
:param status: Filter jobs by status
628629
:type status: JobStatus
629630
:param _request_timeout: timeout setting for this request. If one
630631
number provided, it will be total request
@@ -676,9 +677,9 @@ def list_pdf_jobs(
676677
@validate_call
677678
def list_pdf_jobs_with_http_info(
678679
self,
679-
limit: Optional[StrictInt] = None,
680-
offset: Optional[StrictInt] = None,
681-
status: Optional[Any] = None,
680+
limit: Annotated[Optional[StrictInt], Field(description="Maximum number of results to return")] = None,
681+
offset: Annotated[Optional[StrictInt], Field(description="Number of results to skip (for pagination)")] = None,
682+
status: Annotated[Optional[Any], Field(description="Filter jobs by status")] = None,
682683
_request_timeout: Union[
683684
None,
684685
Annotated[StrictFloat, Field(gt=0)],
@@ -696,11 +697,11 @@ def list_pdf_jobs_with_http_info(
696697
697698
List async PDF generation jobs for your team. **Authentication:** API Key required (`x-api-key` header) Supports pagination and filtering by status.
698699
699-
:param limit:
700+
:param limit: Maximum number of results to return
700701
:type limit: int
701-
:param offset:
702+
:param offset: Number of results to skip (for pagination)
702703
:type offset: int
703-
:param status:
704+
:param status: Filter jobs by status
704705
:type status: JobStatus
705706
:param _request_timeout: timeout setting for this request. If one
706707
number provided, it will be total request
@@ -752,9 +753,9 @@ def list_pdf_jobs_with_http_info(
752753
@validate_call
753754
def list_pdf_jobs_without_preload_content(
754755
self,
755-
limit: Optional[StrictInt] = None,
756-
offset: Optional[StrictInt] = None,
757-
status: Optional[Any] = None,
756+
limit: Annotated[Optional[StrictInt], Field(description="Maximum number of results to return")] = None,
757+
offset: Annotated[Optional[StrictInt], Field(description="Number of results to skip (for pagination)")] = None,
758+
status: Annotated[Optional[Any], Field(description="Filter jobs by status")] = None,
758759
_request_timeout: Union[
759760
None,
760761
Annotated[StrictFloat, Field(gt=0)],
@@ -772,11 +773,11 @@ def list_pdf_jobs_without_preload_content(
772773
773774
List async PDF generation jobs for your team. **Authentication:** API Key required (`x-api-key` header) Supports pagination and filtering by status.
774775
775-
:param limit:
776+
:param limit: Maximum number of results to return
776777
:type limit: int
777-
:param offset:
778+
:param offset: Number of results to skip (for pagination)
778779
:type offset: int
779-
:param status:
780+
:param status: Filter jobs by status
780781
:type status: JobStatus
781782
:param _request_timeout: timeout setting for this request. If one
782783
number provided, it will be total request

0 commit comments

Comments
 (0)