Skip to main content

Usage:

  • After installation, you can run this package directly in command line. Launching it without arguments starts it in interactive mode:

Sample output:

Github|⇒ transfer_files
Enter path to file or directory: ./sysinfo
Creating zipfile from files in... /home/path/to/directory/sysinfo
Added file:  cython_tut.cpython-34m.so
Added file:  cython_tut.pyx
Added file:  setup.py
Added file:  build
Added file:  fib.cpython-34m.so
Added file:  primes.c
Added file:  .idea
Added file:  fib.c
Added file:  parse_proc_files.py
Added file:  fib.pyx
Added file:  primes.pyx
Added file:  cython_tut.c
Added file:  primes.cpython-34m.so

Sending zipfile: files_archive_09-02_18:34.zip (size of the file: 0.407897 MB)
Link to download zipfile(will be saved till 2017-09-16):
Could not save metadata

Link copied to clipboard
Remove archive? (y/n, yes/no):yes
Removing file... /home/path/to/directory/sysinfo/files_archive_09-02_18:34.zip
Removed.
  • Besides that, you can start it with arguments:

    -i –interactive - keys that will start app with prompts (same as running it without arguments)

    -d –directory - enter path to directory (relative or absolute), which files will be sent in an archive

    -f –file - same as –directory, but enter path to file

    —ra –rm-archive - delete created archive, after it was sent

    –rf –rm-file - delete file after it was sent

    -h –help - display help message

Sample output

transfer.sh_client|dev⚡ ⇒ transfer_files -f test.txt --rf

Sending file: /home/path/to/directory/transfer.sh_client/test.txt (size of the file: 0.000113 MB)
Link to download file(will be saved till 2017-09-16):
https://transfer.sh/CtaJs/test.txt
Link copied to clipboard
Removing file... /home/path/to/directory/transfer.sh_client/test.txt
Removed.

Example of usage inside scripts

#!/usr/bin/env python3

from transfersh_client.app import send_to_transfersh, create_zip, remove_file


def send_files_from_dir():
    directory = './'
    zip_file = create_zip(directory)  # creates zip archive and returns it's absolute path
    send_to_transfersh(zip_file)  # sends archive to transfer.sh
    remove_file(zip_file)  # removes it


if __name__ == '__main__':
    send_files_from_dir()

Download

pip3 install transfersh_client

Requirements

  • pyperclip

  • requests

Metadata

Release files for btsc 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for btsc 0.0.3
File Size Uploaded Provenance Actions
btsc-0.0.3.tar.gz 5.8 kB Without provenance Details for btsc-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for btsc 0.0.3
File Interpreter ABI Platform Actions
btsc-0.0.3-py2.py3-none-any.whl Python 3, Python 2 none any Details for btsc-0.0.3-py2.py3-none-any.whl

Total release size: 11.9 kB

Release files / btsc-0.0.3.tar.gz

Download URL btsc-0.0.3.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
dfe537e8718f06ccdefcc1bae132ff848acc2e328d0b6970d9daa7375cd02509
BLAKE2b-256 checksum
How to use checksums
a2ace59bf984090ce74bd9d7dff394f1b7a3e8690cbebc7962e05e201fd2a1f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / btsc-0.0.3-py2.py3-none-any.whl

Download URL btsc-0.0.3-py2.py3-none-any.whl
Size 6.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
9094549dc46fba51b50cb072b28705bab0b014c574e2f6dab746940e8f47dd14
BLAKE2b-256 checksum
How to use checksums
0b92c8ec64a9167320452d84e1c309b8258f6033f0fb235d16780ea13cbd17e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Security for btsc 0.0.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.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page