pdfdancer-client-python 0.2.18__tar.gz → 0.2.19__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.
Potentially problematic release.
This version of pdfdancer-client-python might be problematic. Click here for more details.
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/PKG-INFO +1 -1
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/pyproject.toml +1 -1
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/src/pdfdancer/pdfdancer_v1.py +3 -3
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/src/pdfdancer/types.py +7 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/src/pdfdancer_client_python.egg-info/PKG-INFO +1 -1
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/__init__.py +1 -1
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/.claude/commands/discuss.md +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/.github/workflows/ci.yml +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/.gitignore +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/CLAUDE.md +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/LICENSE +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/NOTICE +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/README.md +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/TODO.md +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/docs/openapi.yml +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/release.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/setup.cfg +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/src/pdfdancer/__init__.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/src/pdfdancer/exceptions.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/src/pdfdancer/fingerprint.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/src/pdfdancer/image_builder.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/src/pdfdancer/models.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/src/pdfdancer/paragraph_builder.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/src/pdfdancer/path_builder.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/src/pdfdancer_client_python.egg-info/SOURCES.txt +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/src/pdfdancer_client_python.egg-info/dependency_links.txt +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/src/pdfdancer_client_python.egg-info/requires.txt +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/src/pdfdancer_client_python.egg-info/top_level.txt +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/test.sh +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/__init__.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/conftest.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/pdf_assertions.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/test_acroform.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/test_bezier_builder.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/test_context_manager.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/test_form_x_objects.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/test_image.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/test_line.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/test_line_builder.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/test_new_pdf.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/test_page.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/test_paragraph.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/test_path.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/test_path_builder.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/test_path_comprehensive.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/test_pdfdancer.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/test_positioning.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/test_snapshot.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/fixtures/DancingScript-Regular.ttf +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/fixtures/Empty.pdf +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/fixtures/JetBrainsMono-Regular.ttf +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/fixtures/ObviouslyAwesome.pdf +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/fixtures/basic-paths.pdf +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/fixtures/form-xobject-example.pdf +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/fixtures/logo-80.png +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/fixtures/mixed-form-types.pdf +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/test_anonymous_token.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/test_fingerprint.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/test_models.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/test_openapi_compliance.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/test_path_models.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/test_pdf_object_equality.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/test_standard_fonts.py +0 -0
- {pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/update-api-spec.sh +0 -0
{pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/src/pdfdancer/pdfdancer_v1.py
RENAMED
|
@@ -900,11 +900,11 @@ class PDFDancer:
|
|
|
900
900
|
all_elements.extend(page_snap.elements)
|
|
901
901
|
return self._filter_snapshot_elements(all_elements, object_type, position, tolerance)
|
|
902
902
|
|
|
903
|
-
def select_paragraphs(self) -> List[
|
|
903
|
+
def select_paragraphs(self) -> List[ParagraphObject]:
|
|
904
904
|
"""
|
|
905
|
-
Searches for paragraph objects returning
|
|
905
|
+
Searches for paragraph objects returning ParagraphObject instances.
|
|
906
906
|
"""
|
|
907
|
-
return self._find_paragraphs(None)
|
|
907
|
+
return self._to_paragraph_objects(self._find_paragraphs(None))
|
|
908
908
|
|
|
909
909
|
def _find_paragraphs(self, position: Optional[Position] = None, tolerance: float = DEFAULT_TOLERANCE) -> List[
|
|
910
910
|
TextObjectRef]:
|
|
@@ -266,6 +266,13 @@ class ParagraphObject(PDFObjectBase):
|
|
|
266
266
|
super().__init__(client, object_ref.internal_id, object_ref.type, object_ref.position)
|
|
267
267
|
self._object_ref = object_ref
|
|
268
268
|
|
|
269
|
+
def __getattr__(self, name):
|
|
270
|
+
"""
|
|
271
|
+
Automatically delegate attribute/method lookup to _object_ref
|
|
272
|
+
if it's not found on this object.
|
|
273
|
+
"""
|
|
274
|
+
return getattr(self._object_ref, name)
|
|
275
|
+
|
|
269
276
|
def edit(self) -> ParagraphEdit:
|
|
270
277
|
return ParagraphEdit(self, self.object_ref())
|
|
271
278
|
|
|
@@ -28,7 +28,7 @@ def _read_token() -> str | None:
|
|
|
28
28
|
|
|
29
29
|
def _server_up(base_url: str) -> Tuple[bool, str]:
|
|
30
30
|
try:
|
|
31
|
-
r = httpx.get(f"{base_url}/ping", timeout=
|
|
31
|
+
r = httpx.get(f"{base_url}/ping", timeout=30, verify=False)
|
|
32
32
|
return r.status_code == 200 and 'Pong' in r.text, r.text
|
|
33
33
|
except Exception as e:
|
|
34
34
|
return False, str(e)
|
{pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/.claude/commands/discuss.md
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/src/pdfdancer/exceptions.py
RENAMED
|
File without changes
|
{pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/src/pdfdancer/fingerprint.py
RENAMED
|
File without changes
|
{pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/src/pdfdancer/image_builder.py
RENAMED
|
File without changes
|
|
File without changes
|
{pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/src/pdfdancer/paragraph_builder.py
RENAMED
|
File without changes
|
{pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/src/pdfdancer/path_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.18 → pdfdancer_client_python-0.2.19}/tests/e2e/pdf_assertions.py
RENAMED
|
File without changes
|
{pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/test_acroform.py
RENAMED
|
File without changes
|
{pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/test_bezier_builder.py
RENAMED
|
File without changes
|
{pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/test_context_manager.py
RENAMED
|
File without changes
|
{pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/test_form_x_objects.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/test_line_builder.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/test_paragraph.py
RENAMED
|
File without changes
|
|
File without changes
|
{pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/test_path_builder.py
RENAMED
|
File without changes
|
|
File without changes
|
{pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/test_pdfdancer.py
RENAMED
|
File without changes
|
{pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/test_positioning.py
RENAMED
|
File without changes
|
{pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/e2e/test_snapshot.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/fixtures/basic-paths.pdf
RENAMED
|
File without changes
|
|
File without changes
|
{pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/fixtures/logo-80.png
RENAMED
|
File without changes
|
|
File without changes
|
{pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/test_anonymous_token.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/test_openapi_compliance.py
RENAMED
|
File without changes
|
|
File without changes
|
{pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/test_pdf_object_equality.py
RENAMED
|
File without changes
|
{pdfdancer_client_python-0.2.18 → pdfdancer_client_python-0.2.19}/tests/test_standard_fonts.py
RENAMED
|
File without changes
|
|
File without changes
|