Skip to main content

WeTransfer command line utility.

Project description

Build Status https://badge.fury.io/py/wetransferpy.svg

Python script for uploading and downloading wetransfer files from the command line. Inspired by upload-wetransfer by kraynel and wetransfer-upload by Spencer Cree.

Features

  • Upload files or directories of files with or without authentication

  • Download file from url

  • Show progress of upload and download

Installation

pip install wetransferpy

or

git clone https://github.com/predat/wetransferpy
cd wetransferpy
pip install -r requirements.txt
python setup.py install

Usage

Authenticate upload:

from wetransferpy import WeTransfer

wt = WeTransfer(username="name@example.com",
                password="thepassword",
                sender="sender@example.com",
                receivers=["receiver1@example.com","receiver2@example.com"],
                channel='',
                message='Hello from python',
                expire_in='3m',
                progress=True,
)
wt.uploadFile('thefile.mov')

Anonymous upload:

from wetransferpy import WeTransfer
wt = Wetransfer()
url = wt.uploadFile('thefile.mov')
print url

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

wetransferpy-0.1.6.tar.gz (5.5 kB view hashes)

Uploaded Source

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