Skip to main content

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) with time.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

Metadata

Release files for file.io-cli 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for file.io-cli 1.0.4
File Size Uploaded
file.io-cli-1.0.4.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for file.io-cli 1.0.4
File Interpreter ABI Platform
file.io_cli-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 12.6 kB

Release files / file.io-cli-1.0.4.tar.gz

Download URL file.io-cli-1.0.4.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ba349b7227299e274a1cbbed318195789dc1f91c779adce56c8bd05eadd4c506
BLAKE2b-256 checksum
How to use checksums
0000041fb20ac0d321e42a953f67f3492227407d64fdba0f3f647eea7787b69a
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / file.io_cli-1.0.4-py3-none-any.whl

Download URL file.io_cli-1.0.4-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d71a2d3a4c58a9ed7d216c2000c32fdb08ef7113271d127dd83e85f0412897f1
BLAKE2b-256 checksum
How to use checksums
913fd0a500a127195b3ef688e15e6ea5c5a4db54f5828a049b1489a9b90d8004
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page