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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file sharpei-0.4.0.tar.gz.

File metadata

  • Download URL: sharpei-0.4.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11

File hashes

Hashes for sharpei-0.4.0.tar.gz
Algorithm Hash digest
SHA256 7574951cda0b28c038736bf7405df5b56850845c20f50a606a4a085210b8a127
MD5 34ed8a5c4a8903f5736a655cb1019bcb
BLAKE2b-256 8c9bf676ec1e50be43485e1682e6607bf995f3d056186bdeffad14cb48f09a16

See more details on using hashes here.

File details

Details for the file sharpei-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: sharpei-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11

File hashes

Hashes for sharpei-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b253ba04e78746371db6be45fd3873b058617287635c777a9c0e0d0173cca35
MD5 f535f6ecfb99dd380c86860704985ebe
BLAKE2b-256 6e9a2ad71be7c65973ef47bb211e75d243eda7b3c1cf372edb1a84fbe065422c

See more details on using hashes here.

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