============
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
Raw data
{
"_id": null,
"home_page": "https://github.com/preposing/btsc.git",
"name": "btsc",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "transfer.sh client tool utility cli CLI",
"author": "preposing",
"author_email": "sebdevpy@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/a2/ac/e59bf984090ce74bd9d7dff394f1b7a3e8690cbebc7962e05e201fd2a1f7/btsc-0.0.3.tar.gz",
"platform": null,
"description": "============\r\nUsage:\r\n============\r\n\r\n\r\n- After installation, you can run this package directly in command line. Launching it without arguments starts it in interactive mode:\r\n\r\n================\r\nSample output:\r\n================\r\n::\r\n\r\n Github|\u00e2\u2021\u2019 transfer_files\r\n Enter path to file or directory: ./sysinfo\r\n Creating zipfile from files in... /home/path/to/directory/sysinfo\r\n Added file: cython_tut.cpython-34m.so\r\n Added file: cython_tut.pyx\r\n Added file: setup.py\r\n Added file: build\r\n Added file: fib.cpython-34m.so\r\n Added file: primes.c\r\n Added file: .idea\r\n Added file: fib.c\r\n Added file: parse_proc_files.py\r\n Added file: fib.pyx\r\n Added file: primes.pyx\r\n Added file: cython_tut.c\r\n Added file: primes.cpython-34m.so\r\n\r\n Sending zipfile: files_archive_09-02_18:34.zip (size of the file: 0.407897 MB)\r\n Link to download zipfile(will be saved till 2017-09-16):\r\n Could not save metadata\r\n\r\n Link copied to clipboard\r\n Remove archive? (y/n, yes/no):yes\r\n Removing file... /home/path/to/directory/sysinfo/files_archive_09-02_18:34.zip\r\n Removed.\r\n\r\n\r\n\r\n- Besides that, you can start it with arguments:\r\n\r\n -i --interactive - keys that will start app with prompts (same as running it without arguments)\r\n\r\n -d --directory - enter path to directory (relative or absolute), which files will be sent in an archive\r\n\r\n -f --file - same as --directory, but enter path to file\r\n\r\n --ra --rm-archive - delete created archive, after it was sent\r\n\r\n --rf --rm-file - delete file after it was sent\r\n\r\n -h --help - display help message\r\n\r\n=============\r\nSample output\r\n=============\r\n::\r\n\r\n transfer.sh_client|dev\u00e2\u0161\u00a1 \u00e2\u2021\u2019 transfer_files -f test.txt --rf\r\n\r\n Sending file: /home/path/to/directory/transfer.sh_client/test.txt (size of the file: 0.000113 MB)\r\n Link to download file(will be saved till 2017-09-16):\r\n https://transfer.sh/CtaJs/test.txt\r\n Link copied to clipboard\r\n Removing file... /home/path/to/directory/transfer.sh_client/test.txt\r\n Removed.\r\n\r\n================================\r\nExample of usage inside scripts\r\n================================\r\n::\r\n\r\n #!/usr/bin/env python3\r\n\r\n from transfersh_client.app import send_to_transfersh, create_zip, remove_file\r\n\r\n\r\n def send_files_from_dir():\r\n directory = './'\r\n zip_file = create_zip(directory) # creates zip archive and returns it's absolute path\r\n send_to_transfersh(zip_file) # sends archive to transfer.sh\r\n remove_file(zip_file) # removes it\r\n\r\n\r\n if __name__ == '__main__':\r\n send_files_from_dir()\r\n\r\n\r\n============\r\nDownload\r\n============\r\n::\r\n\r\n pip3 install transfersh_client\r\n\r\n==================\r\nRequirements\r\n==================\r\n - pyperclip\r\n - requests\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "transfer.sh client",
"version": "0.0.3",
"split_keywords": [
"transfer.sh",
"client",
"tool",
"utility",
"cli",
"cli"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0b92c8ec64a9167320452d84e1c309b8258f6033f0fb235d16780ea13cbd17e7",
"md5": "4e3aa94973843ee1035ab669d23983d1",
"sha256": "9094549dc46fba51b50cb072b28705bab0b014c574e2f6dab746940e8f47dd14"
},
"downloads": -1,
"filename": "btsc-0.0.3-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "4e3aa94973843ee1035ab669d23983d1",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 6130,
"upload_time": "2023-02-10T19:02:37",
"upload_time_iso_8601": "2023-02-10T19:02:37.884345Z",
"url": "https://files.pythonhosted.org/packages/0b/92/c8ec64a9167320452d84e1c309b8258f6033f0fb235d16780ea13cbd17e7/btsc-0.0.3-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a2ace59bf984090ce74bd9d7dff394f1b7a3e8690cbebc7962e05e201fd2a1f7",
"md5": "a0b0dedaef1b670f0885c0fad80db3c7",
"sha256": "dfe537e8718f06ccdefcc1bae132ff848acc2e328d0b6970d9daa7375cd02509"
},
"downloads": -1,
"filename": "btsc-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "a0b0dedaef1b670f0885c0fad80db3c7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5766,
"upload_time": "2023-02-10T19:02:39",
"upload_time_iso_8601": "2023-02-10T19:02:39.536085Z",
"url": "https://files.pythonhosted.org/packages/a2/ac/e59bf984090ce74bd9d7dff394f1b7a3e8690cbebc7962e05e201fd2a1f7/btsc-0.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-02-10 19:02:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "preposing",
"github_project": "btsc.git",
"lcname": "btsc"
}