# transfer.py
Use transfer.sh with python
![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)
Maybe u can donate me on Bitcoin :
bc1q6kyex89x9ppqw0kww9qfrtfrta6sdhnvgjz87r
## Installation
Install transfer.py with pip
```bash
pip install transfershpy
```
## Usage/Examples
Download a file:
```py
downloadFile('https://transfer.sh/2olwuBElm6/hello.txt', 'hello.txt')
```
Upload a file (simple way):
```py
print(uploadFile('hello.txt', 'https://transfer.sh/hello.txt'))
```
Upload a file (complete way):
```py
print(uploadFile('hello.txt', 'https://transfer.sh/hello.xt', maxDays=30, maxDownloads=5))
```
Get direct download of a file:
```py
print(getDownloadPage("https://transfer.sh/sdk282/hello.txt"))
```
Get raw file in browser:
```py
print(getRawFile("https://transfer.sh/fsadfe/hello.txt"))
```
## Roadmap
18/11/23: 1.1 (get raw file and direct download function, some bugs fixed)
17/11/23: First version (download and upload function)
Raw data
{
"_id": null,
"home_page": "https://github.com/RinkaGI/transfer.py",
"name": "transfershpy",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "transfer,upload,cloud",
"author": "RinkaDev",
"author_email": "rinkadevoficial@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/c0/20/542824cac2dee1bb123c4428bd93143f910606228bf348c8df07eb3bc3d4/transfershpy-1.1.tar.gz",
"platform": null,
"description": "\r\n# transfer.py\r\n\r\nUse transfer.sh with python\r\n\r\n\r\n![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54) \r\n\r\nMaybe u can donate me on Bitcoin : \r\nbc1q6kyex89x9ppqw0kww9qfrtfrta6sdhnvgjz87r\r\n## Installation\r\n\r\nInstall transfer.py with pip\r\n\r\n```bash\r\n pip install transfershpy\r\n```\r\n \r\n## Usage/Examples\r\n\r\nDownload a file:\r\n```py\r\ndownloadFile('https://transfer.sh/2olwuBElm6/hello.txt', 'hello.txt')\r\n```\r\n\r\nUpload a file (simple way):\r\n```py\r\nprint(uploadFile('hello.txt', 'https://transfer.sh/hello.txt'))\r\n```\r\n\r\nUpload a file (complete way):\r\n```py\r\nprint(uploadFile('hello.txt', 'https://transfer.sh/hello.xt', maxDays=30, maxDownloads=5))\r\n```\r\n\r\nGet direct download of a file:\r\n```py\r\nprint(getDownloadPage(\"https://transfer.sh/sdk282/hello.txt\"))\r\n```\r\n\r\nGet raw file in browser:\r\n\r\n```py\r\nprint(getRawFile(\"https://transfer.sh/fsadfe/hello.txt\"))\r\n```\r\n\r\n## Roadmap\r\n18/11/23: 1.1 (get raw file and direct download function, some bugs fixed)\r\n17/11/23: First version (download and upload function)\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Use transfer.sh in python",
"version": "1.1",
"project_urls": {
"Download": "https://github.com/RinkaGI/transfer.py/tarball/1.1",
"Homepage": "https://github.com/RinkaGI/transfer.py"
},
"split_keywords": [
"transfer",
"upload",
"cloud"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c020542824cac2dee1bb123c4428bd93143f910606228bf348c8df07eb3bc3d4",
"md5": "95e13416078549c2e1344124b8a560ec",
"sha256": "8af3f6a2009d2f2faac8594cb7f30b4ef6a0282c4c96b5d7f14706e0a7eb3951"
},
"downloads": -1,
"filename": "transfershpy-1.1.tar.gz",
"has_sig": false,
"md5_digest": "95e13416078549c2e1344124b8a560ec",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3010,
"upload_time": "2023-11-18T14:28:11",
"upload_time_iso_8601": "2023-11-18T14:28:11.331336Z",
"url": "https://files.pythonhosted.org/packages/c0/20/542824cac2dee1bb123c4428bd93143f910606228bf348c8df07eb3bc3d4/transfershpy-1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-18 14:28:11",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "RinkaGI",
"github_project": "transfer.py",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "transfershpy"
}