Skip to main content

A simple Python script to upload files on transfer.sh servers from CLI.

Project description

trnsfr

Description

A simple Python script to upload files on transfer.sh servers from CLI.

Usage

$ pip install trnsfr

$ trnsfr
usage: trnsfr.py [-h] [-s SERVER] [-k MAX_DAYS] [-t MAX_DOWNLOADS] [-d]
                 [-v | -n | -q] [-e ENCRYPT_PASSWORD] [-m {clamav,virustotal}]
                 file [file ...]

version: 1.0

positional arguments:
  file                  File(s) to upload

optional arguments:
  -h, --help            show this help message and exit

Server parameters:
  -s SERVER, --server SERVER
                        Server instance URL (default:
                        "https://transfer.adminforge.de/")

Upload parameters:
  -k MAX_DAYS, --max-days MAX_DAYS
                        Maximum number of days to keep file on the server
  -t MAX_DOWNLOADS, --max-downloads MAX_DOWNLOADS
                        Maximum number of times that file can be downloaded

Output parameters:
  -d, --show-delete-url
                        Show URL to delete (default: False)

Display parameters:
  -v, --verbose         Verbose output (default: False)
  -n, --no-progress-bar
                        Do not display the progress bar (default: False)
  -q, --quiet           Display only the download link without progress bar
                        (default: False)

Confidentiality parameters:
  -e ENCRYPT_PASSWORD, --encrypt-password ENCRYPT_PASSWORD
                        Encrypt file with that password on the server-side
                        (default: None)

Malware scan parameters:
  -m {clamav,virustotal}, --scan-malware {clamav,virustotal}
                        Scan for malware with ClamAV or Virustotal (possible
                        values: ['clamav', 'virustotal'] ; default: None): /!\
                        this feature can be unavailable on the server and
                        hence failing the whole upload ! (default: False)

Changelog

  • version 1.0 - 2025-10-12: Initial commit

Credits

Copyright and license

trnsfr is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

trnsfr is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU General Public License along with trnsfr. If not, see http://www.gnu.org/licenses/.

Contact

  • Thomas Debize < tdebize at mail d0t com >

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

trnsfr-1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trnsfr-1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file trnsfr-1.0.tar.gz.

File metadata

  • Download URL: trnsfr-1.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for trnsfr-1.0.tar.gz
Algorithm Hash digest
SHA256 19f255b7068f764a01de9ffef5044c9a47831d61aa100a33dc53cdcaae2e1d71
MD5 6eb4d0adb3471e72ee5d698d5781375f
BLAKE2b-256 7084b3effe21979aa32b4de7e03f286c2075d7594cec3dca353f0773ac8026b1

See more details on using hashes here.

File details

Details for the file trnsfr-1.0-py3-none-any.whl.

File metadata

  • Download URL: trnsfr-1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for trnsfr-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7cc25edaa07f5004a3b6e6bacbe0b051885dc08d43103d4e65d93766ecfa1d2
MD5 3300a0ddbe42a865d901651d57707730
BLAKE2b-256 6e0d8690783f9c8342883837526b7f5a5fe3370b512117a419e4a6161b32f5fd

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