Skip to main content

Watchdog to sync file changes to AWS S3

Project description

Sharpei

Python watchdog to sync file changes to AWS S3

Requires Python 3.6+

Usage

Sharpei can be run from the CLI or Docker.

CLI

Install from PyPI

pip install sharpei

To run:

# Monitor the current directory and send all files
> sharpei . s3://bucket/key-prefix/

Use sharpei --help to discover additional options

Docker

You will need to mount a directory to the Docker image as /data.

> docker run --mount type=bind,source=YOUR_DIRECTORY,target=/data sharpei s3://bucket/key-prefix

For example, given a folder structure:

working-dir
│   README.md
|
└───target-folder
        file011.txt
        file012.txt

To monitor file changes in target-folder, run:

> docker run --mount type=bind,source="$(pwd)"/target-folder,target=/data polymathian/sharpei s3://my-bucket/my-prefix

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

sharpei-0.4.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

sharpei-0.4.0-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

Supported by

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