Skip to main content

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] [-N UPLOAD_TIMES]
                   [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
  -N UPLOAD_TIMES, --upload-times UPLOAD_TIMES
                        upload the file N times

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

Upload a file 3 times concurrently:

$ file.io -N 3 file_io_cli_tddschn/cli.py

https://file.io/Vv7QtVfMVBr2
https://file.io/10Y2DgoXDJwQ
https://file.io/rCoWI2PN58cg

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.1.2

  • Add -N, --num-threads option to upload files multiple times concurrently
  • Fix the uploaded file name when using relative path like .

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

Release files for file-io-cli-tddschn 1.1.5

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-tddschn 1.1.5
File Size Uploaded
file_io_cli_tddschn-1.1.5.tar.gz 6.9 kB Details

Built distribution (wheel)

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

Total release size: 16.5 kB

Release files / file_io_cli_tddschn-1.1.5.tar.gz

Download URL file_io_cli_tddschn-1.1.5.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4477d14e4ab25cf2310c99ce98e416b838d3d1d75474e76497b1cd4319148efe
BLAKE2b-256 checksum
How to use checksums
94da6ca436dbb04fb07a94208c29b5de68f71bf65c05ebc4bd2459283990637c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.11.3 Darwin/22.5.0

Release files / file_io_cli_tddschn-1.1.5-py3-none-any.whl

Download URL file_io_cli_tddschn-1.1.5-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd52cc1102ffbd9e64678a2c2ea9b7ef7b036efd58aab834ec945ac09be56d5e
BLAKE2b-256 checksum
How to use checksums
5a096707d0f73c14fa430321eb59155690844fdffd6178122a24c51e20c589f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.11.3 Darwin/22.5.0

Release history Release notifications | RSS feed

This release

1.1.5 This release

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.6

2 release files

1.0.5

2 release files

0.1.1

2 release files

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