Skip to main content

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

Metadata

Release files for sharpei 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sharpei 0.4.0
File Size Uploaded
sharpei-0.4.0.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sharpei 0.4.0
File Interpreter ABI Platform
sharpei-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.1 kB

Release files / sharpei-0.4.0.tar.gz

Download URL sharpei-0.4.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7574951cda0b28c038736bf7405df5b56850845c20f50a606a4a085210b8a127
BLAKE2b-256 checksum
How to use checksums
8c9bf676ec1e50be43485e1682e6607bf995f3d056186bdeffad14cb48f09a16
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / sharpei-0.4.0-py3-none-any.whl

Download URL sharpei-0.4.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b253ba04e78746371db6be45fd3873b058617287635c777a9c0e0d0173cca35
BLAKE2b-256 checksum
How to use checksums
6e9a2ad71be7c65973ef47bb211e75d243eda7b3c1cf372edb1a84fbe065422c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page