Skip to main content

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) 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

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_tddschn-1.0.5.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

file_io_cli_tddschn-1.0.5-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file file_io_cli_tddschn-1.0.5.tar.gz.

File metadata

  • Download URL: file_io_cli_tddschn-1.0.5.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.3 Darwin/22.4.0

File hashes

Hashes for file_io_cli_tddschn-1.0.5.tar.gz
Algorithm Hash digest
SHA256 a20d0fe73b3f16e20789fea5634925ac44e81e7e91f620fa9dae9df4f67e2862
MD5 3e83d156cf09f9db0a31a98ef795c984
BLAKE2b-256 57b00ae86822443ce592488eb530eedaedc1f0f9966acc448527ccbbef739f0c

See more details on using hashes here.

File details

Details for the file file_io_cli_tddschn-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for file_io_cli_tddschn-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 cb0e71017bbc96249b37c23c356030a6316fa19284f0af9460b6f2a9175fa5ba
MD5 95299ed5e4c0c1cda161f9128e78820d
BLAKE2b-256 879dd1f86527d8cc650d33671baf87fb98f25ba128044a9dbea7061bd467df9c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page