Skip to content

jcdesimp/upld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

upld.py

Small python script to quickly upload a file to a remote destintion (typically a web server) and get the public URL for sharing a file quickly to your own server.

usage: upld.py [-h] [-n Filename] [-c] File

Quick upload a file.

positional arguments:
  File         File to upload

optional arguments:
  -h, --help   show this help message and exit
  -n Filename  Destination filename
  -c           Copy the URL to the clipboard

Main configuration variables are located at the top of the script.

Implementation of the upload_file function can be easily modified to suit your needs. Right now it does a system call to scp.

Expects to run on python 3

For the copy to clipboard functinality it uses a python package called clipboard This is the only extenal dependency.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages