leif / dropsite

yet another solution to XKCD #949

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a small application for receiving file uploads via HTTP. Uploaded files can be passed through a shell pipeline and/or written to disk. Here are some example usages:

save files to the ./uploads directory:

dropsite.py --save-to ./uploads

same, but also encrypt files for user@host and append .gpg to filenames:

dropsite.py -S ./uploads --pipeline 'gpg -er user@host' --suffix .gpg

same, but compress files with gzip before encrypting:

dropsite.py -S ./uploads -P 'gzip|gpg -er user@host' --suffix .gz.gpg

rate-limit uploads to 20KB/sec, but don't actually save them:

dropsite.py -P 'pv -L 20k' # pv also prints throughput

About

yet another solution to XKCD #949


Languages

Language:Python 94.5%Language:Shell 5.5%