Skip to content

Commit e92a196

Browse files
authored
support cryptograph>=3.1 (#1454)
1 parent c928920 commit e92a196

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

bigframes/blob/_functions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def pdf_extract_func(src_obj_ref_rt: str) -> str:
393393
return all_text
394394

395395

396-
pdf_extract_def = FunctionDef(pdf_extract_func, ["pypdf", "requests"])
396+
pdf_extract_def = FunctionDef(pdf_extract_func, ["pypdf", "requests", "pypdf[crypto]"])
397397

398398

399399
# Extracts text from a PDF url and chunks it simultaneously
@@ -438,4 +438,4 @@ def pdf_chunk_func(src_obj_ref_rt: str, chunk_size: int, overlap_size: int) -> s
438438
return all_text_json_string
439439

440440

441-
pdf_chunk_def = FunctionDef(pdf_chunk_func, ["pypdf", "requests"])
441+
pdf_chunk_def = FunctionDef(pdf_chunk_func, ["pypdf", "requests", "pypdf[crypto]"])

bigframes/operations/blob.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,8 +553,7 @@ def pdf_extract(
553553
container_cpu: Union[float, int] = 0.33,
554554
container_memory: str = "512Mi",
555555
) -> bigframes.series.Series:
556-
"""Extracts and chunks text from PDF URLs and saves the text as
557-
arrays of string.
556+
"""Extracts text from PDF URLs and saves the text as string.
558557
559558
.. note::
560559
BigFrames Blob is still under experiments. It may not work and

0 commit comments

Comments
 (0)