pdfdancer-client-python 0.2.11__py3-none-any.whl → 0.2.12__py3-none-any.whl

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/pdfdancer_v1.py CHANGED
@@ -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 | None) -> str | None:
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 | None) -> str | None:
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")
pdfdancer/types.py CHANGED
@@ -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) -> list[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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pdfdancer-client-python
3
- Version: 0.2.11
3
+ Version: 0.2.12
4
4
  Summary: Python client for PDFDancer API
5
5
  Author-email: "The Famous Cat Ltd." <hi@thefamouscat.com>
6
6
  License: MIT
@@ -3,9 +3,9 @@ pdfdancer/exceptions.py,sha256=Y5zwNVZprsv2hvKX304cXWobJt11nrEhCzLklu2wiO8,1567
3
3
  pdfdancer/image_builder.py,sha256=Omxc2LcieJ1MbvWBXR5_sfia--eAucTUe0KWgr22HYo,842
4
4
  pdfdancer/models.py,sha256=ZoB5ZP1jaZsubqzhMr9W9nsIUirVUty_FkRiPZWq8vY,18276
5
5
  pdfdancer/paragraph_builder.py,sha256=mjV36-XOqcYATfIjSOy7_SBO0EKXjsAtMqYL8IaowGU,9218
6
- pdfdancer/pdfdancer_v1.py,sha256=ICLALD5QxhXBZti8nQmq8pF1Ig9EulnD6SclCjRqThA,39839
7
- pdfdancer/types.py,sha256=jlsThSR4VYu1VLfTJO0sImSfvqlARLDxpk0x5ycFLsI,11854
8
- pdfdancer_client_python-0.2.11.dist-info/METADATA,sha256=Mk1d756dVlHKrpSoJPFfagXjR7NHWKJED0v0amCucZs,6770
9
- pdfdancer_client_python-0.2.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
10
- pdfdancer_client_python-0.2.11.dist-info/top_level.txt,sha256=ICwSVRpcCKrdBF9QlaX9Y0e_N3Nk1p7QVxadGOnbxeY,10
11
- pdfdancer_client_python-0.2.11.dist-info/RECORD,,
6
+ pdfdancer/pdfdancer_v1.py,sha256=XgcyKHPOBMI5vNM86ZRhRvJFA3wB7DTcWwDt6tHQxpI,39851
7
+ pdfdancer/types.py,sha256=SOmYP49XPVy6DZ4JXSJrfy0Aww-Tv7QjZCDnOB8VTT4,11860
8
+ pdfdancer_client_python-0.2.12.dist-info/METADATA,sha256=XHEG0LuL-bi7MQyYVUX2RWrq6mutyVlLcYSlqiUzMAg,6770
9
+ pdfdancer_client_python-0.2.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
10
+ pdfdancer_client_python-0.2.12.dist-info/top_level.txt,sha256=ICwSVRpcCKrdBF9QlaX9Y0e_N3Nk1p7QVxadGOnbxeY,10
11
+ pdfdancer_client_python-0.2.12.dist-info/RECORD,,