Skip to content

Commit a46e523

Browse files
move url input sources to where they belong, tweak PR CI
1 parent c6e9bb5 commit a46e523

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

.github/workflows/pull-request.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ on:
55

66
jobs:
77
static-analysis:
8-
uses: mindee/mindee-api-python/.github/workflows/_static-analysis.yml
8+
uses: .github/workflows/_static-analysis.yml
99
test-units:
10-
uses: mindee/mindee-api-python/.github/workflows/_test-units.yml
10+
uses: .github/workflows/_test-units.yml
1111
needs: static-analysis
1212
secrets: inherit
1313
test-regressions:
14-
uses: mindee/mindee-api-python/.github/workflows/_test-regressions.yml
14+
uses: .github/workflows/_test-regressions.yml
1515
needs: test-units
1616
secrets: inherit
1717
test-integrations:
18-
uses: mindee/mindee-api-python/.github/workflows/_test-integrations.yml
18+
uses: .github/workflows/_test-integrations.yml
1919
needs: test-units
2020
secrets: inherit
2121
test-code-samples:
22-
uses: mindee/mindee-api-python/.github/workflows/_test-code-samples.yml
22+
uses: .github/workflows/_test-code-samples.yml
2323
needs: test-units
2424
secrets: inherit

mindee/client.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,3 +562,16 @@ def create_endpoint(
562562
)
563563
version = "1"
564564
return self._build_endpoint(endpoint_name, account_name, version)
565+
566+
@staticmethod
567+
def source_from_url(
568+
url: str,
569+
) -> UrlInputSource:
570+
"""
571+
Load a document from a URL.
572+
573+
:param url: Raw byte input
574+
"""
575+
return UrlInputSource(
576+
url,
577+
)

mindee/client_mixin.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,6 @@ def source_from_bytes(
7272
input_doc.fix_pdf()
7373
return input_doc
7474

75-
@staticmethod
76-
def source_from_url(
77-
url: str,
78-
) -> UrlInputSource:
79-
"""
80-
Load a document from a URL.
81-
82-
:param url: Raw byte input
83-
"""
84-
return UrlInputSource(
85-
url,
86-
)
87-
8875
@staticmethod
8976
def _validate_async_params(
9077
initial_delay_sec: float, delay_sec: float, max_retries: int

0 commit comments

Comments
 (0)