Command-line tool to upload files to https://file.io
Project description
file.io-cli-tddschn
Fork of file.io-cli
with maintenance and enhancements.
$ pip install file.io-cli-tddschn
Command-line tool to upload files to https://file.io
Synopsis
$ file.io-cli --help
usage: file.io-cli [-h] [--version] [-e E] [-n NAME] [-q] [-c] [-t PATH] [-z]
[-v]
[file]
Upload a file to file.io and print the download link. Supports stdin.
positional arguments:
file the file to upload
options:
-h, --help show this help message and exit
--version show program's version number and exit
-e E, --expires E set the expiration time for the uploaded file
-n NAME, --name NAME specify or override the filename
-q, --quiet hide the progress bar
-c, --clip copy the URL to your clipboard
-t PATH, --tar PATH create a TAR archive from the specified file or
directory
-z, --gzip filter the TAR archive through gzip (only with -t,
--tar)
-v, --verbose print the server response
Examples
Upload a file and copy the link:
$ file.io hello.txt -c
[============================================================] 100% (15 bytes / 15 bytes)
https://file.io/pgiPc2 (copied to clipboard)
$ cat https://file.io/pgiPc2
Hello, File.io!
Upload a compressed archiveCompress a file/directory and upload it (streaming):
$ file.io -zt AllMyFiles/
/ (55MB)
https://file.io/sf2La
Upload from stdin:
$ find .. -iname \*.py | file.io -n file-list.txt
/ (312KB)
https://file.io/uRglUT
Installation
pipx
This is the recommended installation method.
$ pipx install file.io-cli-tddschn
pip
$ pip install file.io-cli-tddschn
Develop
$ git clone https://github.com/tddschn/file.io-cli-tddschn.git
$ cd file.io-cli-tddschn
$ poetry install
Changelog
1.0.5
- Add -v, --verbose option to print server response in JSON
- Use poetry for developing and packaging
v1.0.4
- Fix missing entrypoint in new setup script
v1.0.3
- Fix declared dependencies in setup script
v1.0.2
- Replaced
time.clock
(removed in python 3.8) withtime.perf_counter
- Minimum Python version is 3.3
v1.0.1
- Add
-t, --tar
and-z, --gzip
options - Fix NameError when using
-c, --clip
- Fix progress bar left incomplete
v1.0.0
- Initial version
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for file_io_cli_tddschn-1.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e1449b879c734bff0f7866391fd7314106193493efc50f1e71942c06f658e68 |
|
MD5 | 900afd25ac47be194874542658fabb53 |
|
BLAKE2b-256 | 736a4ebc99d7ccfc36223a9703e593d57694b45d2110ff65989a64423bdb5d5d |
Close
Hashes for file_io_cli_tddschn-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17344874992d3d5b57d5f8775e66ba8acd058a7101b749446c07b9f02c202f3c |
|
MD5 | 76f61cc5142ab24dab95848acee9303d |
|
BLAKE2b-256 | 19366844a3ad4faaadd45dcb9ec8d73bfa11b248ce33e167a81b73893dde5c7f |