A Python client for linx.li.
This repository has been archived on 2020-11-03. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
2015-10-27 23:07:33 -07:00
.gitignore update description and gitignore 2015-04-19 18:27:46 -07:00
LICENSE add readme, license, and gitignore 2015-04-19 17:36:24 -07:00
linx.py bump version to 1.0.1 2015-04-19 18:44:05 -07:00
README.md add note about historical nature of repo 2015-10-27 23:07:33 -07:00
setup.py remove argparse from install_requires 2015-04-19 18:36:26 -07:00

linxpy

Note: This software has been superseded by golinx and is here for historical purposes only. Do not expect it to work.

A Python client for linx.li.

Installation

  1. git clone https://github.com/mutantmonkey/linxpy.git
  2. cd linxpy
  3. python setup.py install

Usage

Uploading Files

Upload hello.jpg:

linx hello.jpg

Upload hello.jpg, with an expiration time of 1 hour (3600 seconds):

linx -e 3600 hello.jpg

Upload hello.jpg, test.webm, and 20150401130001_AUD.flac:

linx hello.jpg test.webm 20150401130001_AUD.flac

Uploading from stdin

You can also upload from standard input:

echo "Hello world" | linx

Deleting Files

After files are uploaded, they can be deleted with the unlinx command:

unlinx https://linx.li/4vlx21i31.txt

This works because delete keys are automatically stored in ~/.local/share/linx.log as files are uploaded.