Package: cli-pylinx
pylinxalinx-serverCLIA lightweight Python CLI for uploading and managing your files on alinx-serverinstance.UsageHelp command:Usage: pylinx [OPTIONS] COMMAND [ARGS]...

Options:
  --working-dir TEXT  Manually sets the working directory. Any relative
                      argument paths use this as the base.

  -v, --verbose       Print more information
  --config TEXT       Set the custom configuration file
  --version
  -y, --yes           Skip interactive questions, if possible
  --help              Show this message and exit.

Commands:
  configure     Manage your configuration (interactive)
  delete (del)  Delete a file with the provided delete key
  info (i)      Show information about a file (expiration, size, ...)
  upload (u)    Upload a fileUpload command help:Usage: pylinx upload [OPTIONS] FILE_PATH

  Upload a file

Options:
  -r, --randomize         whether to randomize the file name  [default: False]
  -e, --expiry-days TEXT  for how many days should the file be retained
                          (maximum is set by the server!)

  -d, --delete-key TEXT   what the delete key should be [default: random]
  -a, --access-key TEXT   what the access key (file password) should be
  -f, --filename TEXT     custom filename [default: same as file]
  --help                  Show this message and exit.Seepylinx [command] --helpfor more detailed help for each available command.Installation1. PrerequisitesPoetryis the dependency manager of choice for this project, so youneed to have it installed(or if you really don't want to use it, seeb) Pip install).
Additionally, this project is compatible with Python 3.8+ (Poetry will insist on it).2. Installationa) Install script(recommended)The simplest way to installpylinxis to use the provided install script.
It will create a virtualenv in the current directory usingPoetryto avoid polluting your global package list.Bash with curl:curl-sSLhttps://raw.githubusercontent.com/DefaultSimon/pylinx/master/scripts/install_pylinx.py--outputinstall_pylinx.py&&pythoninstall_pylinx.pyOn Windows with Powershell(Invoke-WebRequest-Urihttps://raw.githubusercontent.com/DefaultSimon/pylinx/master/scripts/install_pylinx.py-UseBasicParsing-OutFileinstall_pylinx.py);pythoninstall_pylinx.pyYou will still be asked to add the resulting path to yourPATHvariable manually.
Uninstalling is as simple as updatingPATHand removing the directory that was made.b) Pip installNOTE: This package is publised on PyPi ascli-pylinx, notpylinx!If other methods are unavailable for you or fail, you can install pylinx using eitherpython -m pip install cli-pylinx(latest release) orpython -m pip install git+https://github.com/DefaultSimon/pylinx.git(up-to-date with the repository)Note that this will install packages to your global Python install, so the first method with Poetry and virtualenv might be preffered.A note forWindowsusers: using this type of install, you will not be able to add pylinx to your right-click "context" menu using the provided scripts.c) Manual install(advanced)If you do not want to run the install script, you can also do the installation manually.clone this repository to a location of your choosingexecutepoetry installin the root directorycopy thepylinxbinary andpylinx-script.pyscript to somewhere in yourPATH(or, as the installer does it - make a localbindirectory, copy the two files there and add them to yourPATHvariable)3. ConfigurationPylinx uses a single TOML configuration file namedlinxConfig.toml. A blank configuration file is available underconfig/linxConfig.EXAMPLE.toml.Pylinx offers three ways of specifying your configuration file. First, if--config [filepath]is passed, it ignores any other configuration files.
Otherwise, it looks at the current directory, then~/.config/pylinx/.If no configuration file can be found in any of the above places, pylinx will refuse to run.While you can create and edit the configuration manually, pylinx also provides a handy command for doing this a bit more interactively -pylinx configure.4. Extras4.1. Right-click context menu on WindowsIf you are a Windows user, you might benefit from a quicker way of uploading files.
The script inscripts/win-add_to_context_menu.pywill add pylinx to the right-click (context) menu.
Simply runpython win-add_to_context_menu.pyand follow the instructions.