Skip to main content

Python utilities for aws s3

Project description

pys3utils

Python s3 scripts and utilities. This library is intended to help push/pull resources from s3.

Usage

To recursively sync a directory to s3 -- only syncing those files have been recently updated, write the following in python:

from pys3utils import utils
utils.push_project_to_s3('my/path', 'my-bucket-name') 

This will recursively walk through all files listed under my/path, and upload a copy to s3. After push_project_to_s3 has been called, it creates and updates a hidden timestamp file in my/path, called .s3_sync_timestamp, which will carry the last time (in ms) when an update/push occured.

On a second call to push_project_to_s3, all files that have modified mtime before this time stamp file will be ignored.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pys3utils-0.112.dev0.tar.gz (6.0 kB view details)

Uploaded Source

File details

Details for the file pys3utils-0.112.dev0.tar.gz.

File metadata

  • Download URL: pys3utils-0.112.dev0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.14.2 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.5.2

File hashes

Hashes for pys3utils-0.112.dev0.tar.gz
Algorithm Hash digest
SHA256 be872dadca4ba7a494095dea043fcd085ac8aeba2633dbc3c019f7a2b0071277
MD5 abb64f9082a16ed7363eeb2b7b495a35
BLAKE2b-256 4c8d710b130562b99f2d0571ace0e367a338534416e1077cde104ffb9f3d5273

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page