From 1665c4475050c6fab9d47adfde1a0dbbc2b96a93 Mon Sep 17 00:00:00 2001 From: hjnoh Date: Fri, 14 Nov 2025 16:47:14 +0900 Subject: [PATCH] FIX: Apply proxy settings to AutomationWorkflow file download --- README.md | 3 ++- pyproject.toml | 2 +- src/pyaps/automation/workflow.py | 5 ++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 67ba636..078453e 100644 --- a/README.md +++ b/README.md @@ -116,13 +116,14 @@ For more examples and detailed documentation: ## Project Status -**Current version: v0.0.6** - Proxy support for enterprise environments +**Current version: v0.0.7** - Proxy support for enterprise environments This package is currently in early development. Active development is underway by **voidbox**.
Version History +- **v0.0.7** - Fixed proxy support in AutomationWorkflow.download_output_file() to properly use session - **v0.0.6** - Added HTTP/HTTPS proxy support for enterprise environments (configurable via explicit settings or environment variables) - **v0.0.5** - Added AutomationWorkflow high-level API with automatic file management, webhook support (onComplete/onProgress), batch processing, and comprehensive documentation - **v0.0.4** - Added Automation API client (Engines, AppBundles, Activities, WorkItems) diff --git a/pyproject.toml b/pyproject.toml index 981e1b4..0411e9b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "py-aps" -version = "0.0.6" +version = "0.0.7" description = "Autodesk Platform Service APIs Python SDK" readme = "README.md" requires-python = ">=3.9" diff --git a/src/pyaps/automation/workflow.py b/src/pyaps/automation/workflow.py index f377fa0..2a8ca79 100644 --- a/src/pyaps/automation/workflow.py +++ b/src/pyaps/automation/workflow.py @@ -287,9 +287,8 @@ def download_output_file( ) url = signed.get("url") or signed.get("signedUrl") - # 파일 다운로드 - import requests - response = requests.get(url, timeout=300) + # 파일 다운로드 (프록시 설정 적용을 위해 DataManagementClient의 session 사용) + response = self.dm.http_oss.session.get(url, timeout=300) response.raise_for_status() local_path = Path(local_path)