pdfdancer-client-python 0.2.11__tar.gz → 0.2.12__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pdfdancer_client_python-0.2.11/src/pdfdancer_client_python.egg-info → pdfdancer_client_python-0.2.12}/PKG-INFO +1 -1
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/pyproject.toml +1 -1
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/src/pdfdancer/pdfdancer_v1.py +2 -2
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/src/pdfdancer/types.py +2 -2
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12/src/pdfdancer_client_python.egg-info}/PKG-INFO +1 -1
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/.github/workflows/ci.yml +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/.gitignore +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/CLAUDE.md +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/README.md +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/docs/openapi.yml +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/release.py +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/requirements-dev.txt +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/requirements.txt +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/setup.cfg +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/src/pdfdancer/__init__.py +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/src/pdfdancer/exceptions.py +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/src/pdfdancer/image_builder.py +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/src/pdfdancer/models.py +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/src/pdfdancer/paragraph_builder.py +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/src/pdfdancer_client_python.egg-info/SOURCES.txt +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/src/pdfdancer_client_python.egg-info/dependency_links.txt +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/src/pdfdancer_client_python.egg-info/requires.txt +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/src/pdfdancer_client_python.egg-info/top_level.txt +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/__init__.py +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/conftest.py +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/e2e/__init__.py +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/e2e/pdf_assertions.py +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/e2e/test_acroform.py +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/e2e/test_form_x_objects.py +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/e2e/test_image.py +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/e2e/test_line.py +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/e2e/test_page.py +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/e2e/test_paragraph.py +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/e2e/test_path.py +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/e2e/test_pdfdancer.py +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/fixtures/DancingScript-Regular.ttf +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/fixtures/Empty.pdf +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/fixtures/JetBrainsMono-Regular.ttf +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/fixtures/ObviouslyAwesome.pdf +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/fixtures/basic-paths.pdf +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/fixtures/form-xobject-example.pdf +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/fixtures/logo-80.png +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/fixtures/mixed-form-types.pdf +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/test_models.py +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/test_openapi_compliance.py +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/test_pdf_object_equality.py +0 -0
- {pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/test_standard_fonts.py +0 -0
{pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/src/pdfdancer/pdfdancer_v1.py
RENAMED
|
@@ -172,7 +172,7 @@ class PDFDancer:
|
|
|
172
172
|
return PDFDancer(resolved_token, pdf_data, resolved_base_url, timeout)
|
|
173
173
|
|
|
174
174
|
@classmethod
|
|
175
|
-
def _resolve_base_url(cls, base_url: str
|
|
175
|
+
def _resolve_base_url(cls, base_url: Optional[str]) -> Optional[str]:
|
|
176
176
|
env_base_url = os.getenv("PDFDANCER_BASE_URL")
|
|
177
177
|
resolved_base_url = base_url or (env_base_url.strip() if env_base_url and env_base_url.strip() else None)
|
|
178
178
|
if resolved_base_url is None:
|
|
@@ -180,7 +180,7 @@ class PDFDancer:
|
|
|
180
180
|
return resolved_base_url
|
|
181
181
|
|
|
182
182
|
@classmethod
|
|
183
|
-
def _resolve_token(cls, token: str
|
|
183
|
+
def _resolve_token(cls, token: Optional[str]) -> Optional[str]:
|
|
184
184
|
resolved_token = token.strip() if token and token.strip() else None
|
|
185
185
|
if resolved_token is None:
|
|
186
186
|
env_token = os.getenv("PDFDANCER_TOKEN")
|
|
@@ -2,7 +2,7 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
import statistics
|
|
4
4
|
from dataclasses import dataclass
|
|
5
|
-
from typing import Optional
|
|
5
|
+
from typing import Optional, List
|
|
6
6
|
|
|
7
7
|
from . import ObjectType, Position, ObjectRef, Point, Paragraph, Font, Color, FormFieldRef, TextObjectRef
|
|
8
8
|
|
|
@@ -93,7 +93,7 @@ class FormObject(PDFObjectBase):
|
|
|
93
93
|
self.position == other.position)
|
|
94
94
|
|
|
95
95
|
|
|
96
|
-
def _process_text_lines(text: str) ->
|
|
96
|
+
def _process_text_lines(text: str) -> List[str]:
|
|
97
97
|
"""
|
|
98
98
|
Process text into lines for the paragraph.
|
|
99
99
|
This is a simplified version - the full implementation would handle
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/src/pdfdancer/exceptions.py
RENAMED
|
File without changes
|
{pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/src/pdfdancer/image_builder.py
RENAMED
|
File without changes
|
|
File without changes
|
{pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/src/pdfdancer/paragraph_builder.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/e2e/pdf_assertions.py
RENAMED
|
File without changes
|
{pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/e2e/test_acroform.py
RENAMED
|
File without changes
|
{pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/e2e/test_form_x_objects.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/e2e/test_paragraph.py
RENAMED
|
File without changes
|
|
File without changes
|
{pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/e2e/test_pdfdancer.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/fixtures/basic-paths.pdf
RENAMED
|
File without changes
|
|
File without changes
|
{pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/fixtures/logo-80.png
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/test_openapi_compliance.py
RENAMED
|
File without changes
|
{pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/test_pdf_object_equality.py
RENAMED
|
File without changes
|
{pdfdancer_client_python-0.2.11 → pdfdancer_client_python-0.2.12}/tests/test_standard_fonts.py
RENAMED
|
File without changes
|