Skip to main content

Use transfer.sh in python

Project description

transfer.py

Use transfer.sh with python

Python

Maybe u can donate me on Bitcoin : bc1q6kyex89x9ppqw0kww9qfrtfrta6sdhnvgjz87r

Installation

Install transfer.py with pip

    pip install transfershpy

Usage/Examples

Download a file:

downloadFile('https://transfer.sh/2olwuBElm6/hello.txt', 'hello.txt')

Upload a file (simple way):

print(uploadFile('hello.txt', 'https://transfer.sh/hello.txt'))

Upload a file (complete way):

print(uploadFile('hello.txt', 'https://transfer.sh/hello.xt', maxDays=30, maxDownloads=5))

Get direct download of a file:

print(getDownloadPage("https://transfer.sh/sdk282/hello.txt"))

Get raw file in browser:

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)

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

transfershpy-1.1.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file transfershpy-1.1.tar.gz.

File metadata

  • Download URL: transfershpy-1.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for transfershpy-1.1.tar.gz
Algorithm Hash digest
SHA256 8af3f6a2009d2f2faac8594cb7f30b4ef6a0282c4c96b5d7f14706e0a7eb3951
MD5 95e13416078549c2e1344124b8a560ec
BLAKE2b-256 c020542824cac2dee1bb123c4428bd93143f910606228bf348c8df07eb3bc3d4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page