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.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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
file.io-cli-1.0.3.tar.gz
(5.7 kB
view details)
Built Distribution
File details
Details for the file file.io-cli-1.0.3.tar.gz
.
File metadata
- Download URL: file.io-cli-1.0.3.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ed6b3d17fc552df686858a15d3b9e88b8fb275d209ac26d7857f3570e6f2bd1 |
|
MD5 | 351ba1e2941120840d7202661f73dec0 |
|
BLAKE2b-256 | b402fca033a77d102657996f23930ad365c4c83b2ebcd73baa8b66e5ef1a0492 |
File details
Details for the file file.io_cli-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: file.io_cli-1.0.3-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c6fd58727553f86abfb799a567219db0e0e492c3c2ae99507ec00c134d30a13 |
|
MD5 | 4314c8ea16581df3e2d43856daf82b19 |
|
BLAKE2b-256 | 341724743cd9d958e8612e35d476222e9b0c6a7ca9284e2d52874118e2e66e67 |