Edits history of script submission #6014 for ' Create a file in S3 (Python) (s3)'

  • python3
    #requirements:
    wmill>=1.251.7
    
    # Details on S3 integration at https://www.windmill.dev/docs/core_concepts/persistent_storage/large_data_files
    
    import wmill
    from wmill import S3Object
    
    def main(s3_file_path: str):
        s3_file_output = S3Object(s3=s3_file_path)
    
        file_content = b"Hello Windmill!"
    	# file_content can be either bytes or a BufferedReader
        file_content = wmill.write_s3_file(s3_file_output, file_content)
        return s3_file_output

    Submitted by henri186 834 days ago