{"id":13594354,"url":"https://github.com/arsenlosenko/transfer.sh_client","last_synced_at":"2025-07-16T02:42:03.222Z","repository":{"id":62585141,"uuid":"101071363","full_name":"arsenlosenko/transfer.sh_client","owner":"arsenlosenko","description":"Python client for uploading files to transfer.sh (https://transfer.sh/) ","archived":false,"fork":false,"pushed_at":"2023-05-22T22:27:50.000Z","size":64,"stargazers_count":13,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-09-18T02:56:24.741Z","etag":null,"topics":["command-line-tool","commandline-interface","python","python-client","python3"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arsenlosenko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-08-22T14:23:35.000Z","updated_at":"2024-07-01T07:41:26.000Z","dependencies_parsed_at":"2024-01-14T04:38:45.484Z","dependency_job_id":"45161438-84f4-40bb-bafa-817a89ced26f","html_url":"https://github.com/arsenlosenko/transfer.sh_client","commit_stats":{"total_commits":38,"total_committers":2,"mean_commits":19.0,"dds":"0.052631578947368474","last_synced_commit":"46dfa9bf2246e68ed74a953cbaa0fe9768606c11"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsenlosenko%2Ftransfer.sh_client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsenlosenko%2Ftransfer.sh_client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsenlosenko%2Ftransfer.sh_client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arsenlosenko%2Ftransfer.sh_client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arsenlosenko","download_url":"https://codeload.github.com/arsenlosenko/transfer.sh_client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247741390,"owners_count":20988389,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line-tool","commandline-interface","python","python-client","python3"],"created_at":"2024-08-01T16:01:32.220Z","updated_at":"2025-04-07T22:32:15.888Z","avatar_url":"https://github.com/arsenlosenko.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# transfer.sh-client\nPython client for uploading files to transfer.sh (https://transfer.sh/)\nThis command-line tool send file (or files, in case of directory download) to transfer.sh, and provides link to uploaded files,\nso it could be easily shared\n\n## Latest release:\n\nhttps://pypi.org/project/transfersh-client/1.1.3/\n\n## Getting Started\n\n- Install python and pip (package manager):\n```bash\nsudo apt-get update\nsudo apt-get install python3 python3-pip\n\nOR\n\nsudo apt-get install python python-pip\n```\n\n- Download package from pip:\n```bash\npip3 install --user transfersh_client\n```\n\n## Usage\n\n- After installation, you can run this package directly in command line. Launching it without arguments starts it in interactive mode:\n```bash\ntransfer_files\n```\n\n### Sample output:\n```bash\nGithub|⇒ transfer_files\nEnter path to file or directory: ./sysinfo\nCreating zipfile from files in... /home/path/to/directory/sysinfo\nAdded file:  cython_tut.cpython-34m.so\nAdded file:  cython_tut.pyx\nAdded file:  setup.py\nAdded file:  build\nAdded file:  fib.cpython-34m.so\nAdded file:  primes.c\nAdded file:  .idea\nAdded file:  fib.c\nAdded file:  parse_proc_files.py\nAdded file:  fib.pyx\nAdded file:  primes.pyx\nAdded file:  cython_tut.c\nAdded file:  primes.cpython-34m.so\n\nSending zipfile: files_archive_09-02_18:34.zip (size of the file: 0.407897 MB)\nLink to download zipfile(will be saved till 2017-09-16):\nCould not save metadata\n\nLink copied to clipboard\nRemove archive? (y/n, yes/no):yes\nRemoving file... /home/path/to/directory/sysinfo/files_archive_09-02_18:34.zip\nRemoved.\n```\n- Besides that, you can start it with arguments:\n\n   -i --interactive - keys that will start app with prompts (same as running it without arguments)\n\n   -d --directory - enter path to directory (relative or absolute), which files will be sent in an archive\n\n   -f --file - same as --directory, but enter path to file\n\n   --ra --rm-archive - delete created archive, after it was sent\n\n   --rf --rm-file - delete file after it was sent\n\n   -h --help - display help message\n\n### Sample output\n```bash\ntransfer.sh_client|dev⚡ ⇒ transfer_files -f test.txt --rf\n\nSending file: /home/path/to/directory/transfer.sh_client/test.txt (size of the file: 0.000113 MB)\nLink to download file(will be saved till 2017-09-16):\nhttps://transfer.sh/CtaJs/test.txt\nLink copied to clipboard\nRemoving file... /home/path/to/directory/transfer.sh_client/test.txt\nRemoved.\n```\n\n## Example of usage inside scripts \n\n```python\n#!/usr/bin/env python3\n\nfrom transfersh_client.app import send_to_transfersh, create_zip, remove_file\n\n\ndef send_files_from_dir():\n    directory = './'\n    zip_file = create_zip(directory)  # creates zip archive and returns it's absolute path\n    send_to_transfersh(zip_file)  # sends archive to transfer.sh\n    remove_file(zip_file)  # removes it\n\n\nif __name__ == '__main__':\n    send_files_from_dir()\n```\n\n## Contributing\nIf you want to add some sort of a feature, fill free to fork this repo and submit your changes via a PR.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farsenlosenko%2Ftransfer.sh_client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farsenlosenko%2Ftransfer.sh_client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farsenlosenko%2Ftransfer.sh_client/lists"}