save_text¶
- save_text(location: str, key: str, text: str, content_type: str = 'binary/octet-stream') None [source]¶
Save text to key at specified location.
Method will save to the S3 bucket if the location begins with the s3:// protocol, otherwise it assumes the location is a local path.
- Parameters:
location – Object location (local path or S3 bucket).
key – Object key ending in valid text extension.
text – Text to save.
content_type – Content type (S3 only).