Skip to content

Split-off download_file_from_url method from download_attachment #407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

herronelou
Copy link

@herronelou herronelou commented Jul 16, 2025

resolves #387

This pull request introduces a new method, download_file_from_url, to improve the flexibility of downloading files from Shotgun. The most important changes are outlined below:

New functionality for file downloads:

  • Added the download_file_from_url method in shotgun_api3/shotgun.py to allow downloading files directly using a provided URL. This method can handle Shotgun attachments as well as other files, such as thumbnails. It supports saving files to disk or returning the file data.

@herronelou
Copy link
Author

It looks like all the unit tests are failing every test, is that something I did or is there something else at play?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improvement: Split download_attachment into 2 functions
1 participant