transfer.sh命令行客户端

transfersh-client的Python项目详细描述


用法:

  • 安装后,可以在命令行中直接运行此包。不带参数启动它以交互模式启动:

样本输出:

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.
  • 除此之外,您还可以从参数开始:

    -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

样本输出

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.

下载

pip3 install transfersh_client

要求

  • pyperclip
  • requests

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
eclipse AST和JDT Java模型之间的主要区别是什么?   java访问jar文件中的外部库(jmf)   java读取简单json库文件   安全验证数字签名pdf java IText   java如何防止有人在JSP/Servlet中从浏览器修改输入表单参数   java有没有办法在JTree中为多个根使用扩展图标?   当我在IntelliJ IDEA下使用Lombok时,java无法编译项目   java Log4j不向linux系统日志发送日志   Java中的字符转换正则表达式   java如何在Glide上显示gif   java如何解析正弦函数?   slick2d Java slick:翻译   datetime java DateFormat给出了奇怪的格式结果   java如何让一个简单的HelloWorld应用程序在Spring Boot中运行   java如何在带有JUnit的Maven项目中通过自定义类加载器两次加载同一类   java PDFBox。生成具有相同图像的多页文档   JavaJSF外部链接   java Google NLP api无法找到TLS ALPN提供商;没有可用的工作网络、密码或码头NPN/ALPN   面向对象的纸牌游戏的java类图,可处理多达21点的纸牌