# WeTransferTool
Upload and download files/folders from wetransfer.com
You can upload a file/folder of max 2GB.
Installation:
```
pip install WeTransferTool
```
Terminal use:
```
$> wetransfertool -h
usage: wetransfertool [-h] [-dl DL] [-ul UL] [-mw MW]
options:
-h, --help show this help message and exit
-dl DL Wetransfer file URL
-ul UL File/Folder path
-mw MW Maximum number of workers (parallel uploads)
```
API use:
```
from WeTransferTool import We
wet = We()
# to upload a file/folder to the server
metadata = wet.upload('/path/to/file', 'file name', 'message')
print(metadata)
# to download a file/folder from the server
wet.download(metadata['url'])
```
upload() method will return json containing metadata of the uploaded file/folder.
response example:
```
{
"id": "27f328599c99ca222222222222222222222222",
"state": "processing",
"transfer_type": 4,
"shortened_url": "https://we.tl/t-222222222",
"recommended_filename": "tomb.gif",
"expires_at": "2022-07-10T23:01:11Z",
"password_protected": False,
"uploaded_at": None,
"expiry_in_seconds": 604795,
"size": None,
"deleted_at": None,
"account_id": None,
"security_hash": "719ce3",
"from": None,
"creator": {
"auth0_user_id": None,
"email": None
},
"message": "test-folder-upload",
"number_of_downloads": 0,
"display_name": "tomb.gif",
"files": [
{
"id": "b2c12c7c6fd93f1422222222222222222222222",
"name": "tomb.gif",
"retries": 0,
"size": 5501922,
"item_type": "file",
"chunk_size": 15728640
}
],
"recipients": []
}
```
Raw data
{
"_id": null,
"home_page": "https://github.com/bunnykek/WeTransferTool",
"name": "WeTransferTool",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "api,wetransfer,wrapper,upload,download",
"author": "bunny",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/ea/9c/410885a503235abd1234f49ab08d63165ef1dc82acf5ef4af558f0d96c30/WeTransferTool-0.7.tar.gz",
"platform": null,
"description": "# WeTransferTool\r\nUpload and download files/folders from wetransfer.com \r\nYou can upload a file/folder of max 2GB. \r\n\r\nInstallation:\r\n```\r\npip install WeTransferTool\r\n```\r\n\r\nTerminal use:\r\n```\r\n$> wetransfertool -h\r\nusage: wetransfertool [-h] [-dl DL] [-ul UL] [-mw MW]\r\n\r\noptions:\r\n -h, --help show this help message and exit\r\n -dl DL Wetransfer file URL\r\n -ul UL File/Folder path\r\n -mw MW Maximum number of workers (parallel uploads)\r\n```\r\n\r\nAPI use:\r\n```\r\nfrom WeTransferTool import We\r\n\r\nwet = We()\r\n# to upload a file/folder to the server\r\nmetadata = wet.upload('/path/to/file', 'file name', 'message')\r\nprint(metadata)\r\n\r\n# to download a file/folder from the server\r\nwet.download(metadata['url'])\r\n```\r\n\r\nupload() method will return json containing metadata of the uploaded file/folder. \r\nresponse example:\r\n```\r\n{\r\n \"id\": \"27f328599c99ca222222222222222222222222\",\r\n \"state\": \"processing\",\r\n \"transfer_type\": 4,\r\n \"shortened_url\": \"https://we.tl/t-222222222\",\r\n \"recommended_filename\": \"tomb.gif\",\r\n \"expires_at\": \"2022-07-10T23:01:11Z\",\r\n \"password_protected\": False,\r\n \"uploaded_at\": None,\r\n \"expiry_in_seconds\": 604795,\r\n \"size\": None,\r\n \"deleted_at\": None,\r\n \"account_id\": None,\r\n \"security_hash\": \"719ce3\",\r\n \"from\": None,\r\n \"creator\": {\r\n \"auth0_user_id\": None,\r\n \"email\": None\r\n },\r\n \"message\": \"test-folder-upload\",\r\n \"number_of_downloads\": 0,\r\n \"display_name\": \"tomb.gif\",\r\n \"files\": [\r\n {\r\n \"id\": \"b2c12c7c6fd93f1422222222222222222222222\",\r\n \"name\": \"tomb.gif\",\r\n \"retries\": 0,\r\n \"size\": 5501922,\r\n \"item_type\": \"file\",\r\n \"chunk_size\": 15728640\r\n }\r\n ],\r\n \"recipients\": []\r\n}\r\n```\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "WeTransfer unofficial API wrapper written in python facilitating features like uploading and downloading files and folders",
"version": "0.7",
"project_urls": {
"Download": "https://github.com/bunnykek/WeTransferTool",
"Homepage": "https://github.com/bunnykek/WeTransferTool"
},
"split_keywords": [
"api",
"wetransfer",
"wrapper",
"upload",
"download"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ea9c410885a503235abd1234f49ab08d63165ef1dc82acf5ef4af558f0d96c30",
"md5": "071af8b404e9d5dc1996073fe38a16a8",
"sha256": "da190f5865b55e5084f69b39d1ff283cd0485382212801ee42e8ddfd3360b2f2"
},
"downloads": -1,
"filename": "WeTransferTool-0.7.tar.gz",
"has_sig": false,
"md5_digest": "071af8b404e9d5dc1996073fe38a16a8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5395,
"upload_time": "2023-10-20T20:08:44",
"upload_time_iso_8601": "2023-10-20T20:08:44.470886Z",
"url": "https://files.pythonhosted.org/packages/ea/9c/410885a503235abd1234f49ab08d63165ef1dc82acf5ef4af558f0d96c30/WeTransferTool-0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-20 20:08:44",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "bunnykek",
"github_project": "WeTransferTool",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "wetransfertool"
}