Skip to content

Instantly share code, notes, and snippets.

Last active Aug 5, 2018
What would you like to do?
import boto3
from s3_scheduler.scheduler import Scheduler
from s3_scheduler.utils import nowut
s3_resource = boto3.resource("s3")
s3_client = boto3.client("s3")
scheduler = Scheduler("bucket", "/path", s3_resource, s3_client)
time = nowut() + timedelta(minutes=10)
upload_to = scheduler.schedule(time, "s3-bucket", "s3_files-important", "content")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment