Command-line tool to upload files to https://file.io
Project description
file.io-cli
$ pip install file.io-cli
Command-line tool to upload files to https://file.io
Synopsis
$ file.io --help
usage: file.io [-h] [--version] [-e E] [-n NAME] [-q] [-c] [-t PATH] [-z] [file]
Upload a file to file.io and print the download link. Supports stdin.
positional arguments:
file the file to upload
optional arguments:
-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)
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
Changelog
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-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9899db8aa0a323482614dd932963825e866d2ed80570ff314d3c31335b13810 |
|
MD5 | 247d93e76c21188ab922677237302d17 |
|
BLAKE2b-256 | c5cf3906f1978a0c42a30a1a924d1c2c9a37b75c607a4675d5efa582294755de |
Close
Hashes for file_io_cli_tddschn-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b5ea561f339a95f816ea53cecc603046e9499a7badfab0725a001854e1fa161 |
|
MD5 | ad83f003d4706572e954462d39bc4a29 |
|
BLAKE2b-256 | 1d55dabf128a3a6ff295e58711907020f7868c96c3a6254a5059dc3b0d2a97dd |