Code Monkey home page Code Monkey logo

wetransferpy's Introduction

wetransferpy

Build Status

Python script for uploading and downloading wetransfer files from the command line. Inspired by upload-wetransfer by kraynel and wetransfer-upload by Spencer Cree <https://github.com/creemerica>.

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

Usage

Authenticate upload:

from wetransferpy import WeTransfer

wt = WeTransfer(username="[email protected]",
                password="thepassword",
                sender="[email protected]",
                receivers=["[email protected]","[email protected]"],
                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

Upload Shell script usage:

wetranfer-upload -h

usage: wetransfer-upload [-h] [-b] [-u USERNAME] [-p PASSWORD] [-e EXPIRE]
                     [-c CHANNEL] [-r [RECEIVER [RECEIVER ...]]]
                     [-s SENDER] [-m MESSAGE] [-R]
                     files [files ...]

Uploads files or folders to WeTransfer.

positional arguments:
  files                 files or directory to send

optional arguments:
  -h, --help            show this help message and exit
  -b, --no-progressbar  Hide progress bar
  -u USERNAME, --username USERNAME
                        WeTransfer user account name
  -p PASSWORD, --password PASSWORD
                        WeTransfer password
  -e EXPIRE, --expire EXPIRE
                        File expiration
  -c CHANNEL, --channel CHANNEL
                        WeTransfer channel
  -r [RECEIVER [RECEIVER ...]], --receiver [RECEIVER [RECEIVER ...]]
                        emails of the receivers
  -s SENDER, --sender SENDER
                        email of the sender
  -m MESSAGE, --message MESSAGE
                        message to send
  -R, --recursive       recursive send

Download shell script usage:

wetranfer-download -u http://we.tl/XV4MmuqPRd

wetransferpy's People

Contributors

predat avatar kushquad avatar aka-anoop avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.