wetransferpy
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="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
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
Metadata
Release files for wetransferpy 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wetransferpy-0.2.3.tar.gz | 6.3 kB | Without provenance | Details for wetransferpy-0.2.3.tar.gz |
Release files / wetransferpy-0.2.3.tar.gz
| Download URL | wetransferpy-0.2.3.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de9f6d78f61b3d0bef1edf797482cdf60422aac377e84ef26272dd15bedcf3dc
|
|
BLAKE2b-256 checksum How to use checksums |
c60ff712603c4b9e2a703800a2b023bec0fdc50d56906a8191c9afc51d37757d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for wetransferpy 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.