Helioviewer-Project / python-api

Python wrapper around the Helioviewer API.
https://hvpy.readthedocs.io/en/latest/
BSD 2-Clause "Simplified" License
6 stars 5 forks source link

Add `save_file` util function #67

Closed dgarciabriseno closed 2 years ago

dgarciabriseno commented 2 years ago

Since many API calls return binary data like getJP2Image and downloadMovie, it would be good to have a function available to quickly save those to disk.

def save_file(data: bytearray, filename: str)