All Projects → abemassry → Wsend

abemassry / Wsend

Licence: gpl-3.0
wsend: The opposite of wget

Programming Languages

shell
77523 projects
bash
514 projects

Projects that are alternatives of or similar to Wsend

Wsend Gpg
Encrypted end to end file transfer
Stars: ✭ 97 (+51.56%)
Mutual labels:  hacktoberfest, storage, curl, transfer
Fselect
Find files with SQL-like queries
Stars: ✭ 3,103 (+4748.44%)
Mutual labels:  cli, hacktoberfest, files
Executor
Watch for file changes and then execute command. Very nice for test driven development.
Stars: ✭ 14 (-78.12%)
Mutual labels:  cli, hacktoberfest, files
Autarky
Liberating disk space from 📁 node_modules
Stars: ✭ 203 (+217.19%)
Mutual labels:  cli, hacktoberfest, storage
Data Science At The Command Line
Data Science at the Command Line
Stars: ✭ 3,174 (+4859.38%)
Mutual labels:  cli, unix, curl
Bashupload
PHP/JavaScript file upload web app to upload files from command line & browser, and download them elsewhere. Frequently used to upload/download files on servers. Hosted version is available at bashupload.com.
Stars: ✭ 56 (-12.5%)
Mutual labels:  wget, cli, curl
Xidel
Command line tool to download and extract data from HTML/XML pages or JSON-APIs, using CSS, XPath 3.0, XQuery 3.0, JSONiq or pattern matching. It can also create new or transformed XML/HTML/JSON documents.
Stars: ✭ 335 (+423.44%)
Mutual labels:  wget, cli, curl
Stonks
Stonks is a terminal based stock visualizer and tracker that displays realtime stocks in graph format in a terminal. See how fast your stonks will crash.
Stars: ✭ 405 (+532.81%)
Mutual labels:  cli, hacktoberfest, curl
Curlie
The power of curl, the ease of use of httpie.
Stars: ✭ 877 (+1270.31%)
Mutual labels:  cli, curl
Swiftinfo
📊 Extract and analyze the evolution of an iOS app's code.
Stars: ✭ 880 (+1275%)
Mutual labels:  cli, hacktoberfest
Coronavirus Tracker Cli
Track conronavirus cases from command line. curl https://corona-stats.online/
Stars: ✭ 954 (+1390.63%)
Mutual labels:  cli, curl
Openebs
Leading Open Source Container Attached Storage, built using Cloud Native Architecture, simplifies running Stateful Applications on Kubernetes.
Stars: ✭ 7,277 (+11270.31%)
Mutual labels:  hacktoberfest, storage
Rocket.chat.apps Cli
The CLI for interacting with Rocket.Chat Apps
Stars: ✭ 37 (-42.19%)
Mutual labels:  cli, hacktoberfest
Lab
Lab wraps Git or Hub, making it simple to clone, fork, and interact with repositories on GitLab
Stars: ✭ 911 (+1323.44%)
Mutual labels:  cli, hacktoberfest
Laminas Cli
Console command runner, exposing commands written in Laminas MVC and Mezzio components and applications
Stars: ✭ 25 (-60.94%)
Mutual labels:  cli, hacktoberfest
Gdown
Download a large file from Google Drive (curl/wget fails because of the security notice).
Stars: ✭ 962 (+1403.13%)
Mutual labels:  wget, curl
Mrm
Codemods for your project config files
Stars: ✭ 900 (+1306.25%)
Mutual labels:  cli, hacktoberfest
Mod Pbxproj
A python module to manipulate XCode projects
Stars: ✭ 959 (+1398.44%)
Mutual labels:  cli, hacktoberfest
Android File Transfer Linux
Android File Transfer for Linux
Stars: ✭ 994 (+1453.13%)
Mutual labels:  cli, transfer
Git Req
Check out merge requests from your GitLab/GitHub hosted repositories from the command line with just the request number.
Stars: ✭ 50 (-21.87%)
Mutual labels:  cli, hacktoberfest

wsend

the opposite of wget

Overview

wsend is a Command Line Tool (CLI) for sending files. It's open-source and easy to use. We've designed wsend to be suitable for command line beginners and well seasoned users alike.

wsend requires bash and curl. And if you've ever run into this problem: http://xkcd.com/949/

wsend uses wsend.net for backend file handling.

Two-line wsend install

wget https://raw.githubusercontent.com/abemassry/wsend/master/install.sh -O - | bash
alias wsend="~/.wsend/wsend"

Note: This install command appends the alias to your .bashrc or equivalent

Or if you prefer the UNIX way

mkdir -p ~/bin # just in case
wget https://wsend.net/wsend | ~/bin/wsend
chmod +x ~/bin/wsend
export PATH=$PATH:~/bin # also put that in your .zshenv or whatever
wsend file.txt

For an easy way to remember

wget https://wsend.net/wsend
chmod +x wsend
./wsend file.txt

Your first file is sent and wsend has been installed.

Features

  • Sending files right from the command line without having to specify a directory
  • Gives you a url
  • Integrates well with unix pipes
  • Send a file without registering
  • User accounts available with large amounts of storage space
  • Optional time-to-live auto-expiring files
  • Optionaly send an email with link

Usage

Usage:

 wsend <file>

Common Commands:

Send a file

 wsend file.txt

Send a file in an email to your friend (if you have the mail command set up)

 wsend logfile.log | mail -s "Here was that log file you wanted" [email protected]

Register

 wsend --register

Login

 wsend --login

Refer a friend (receive 1GB for you and friend)

 wsend --refer [email protected]

Get a referral link to send to people

 wsend --refer-link

List Local Files (files that have been uploaded from this machine)

 wsend --list-local || wsend -ll

List Server Files (files stored on wsend.net)

 wsend --list-server || wsend -ls

List Server Files (files stored on wsend.net) urls only

 wsend --list-server-url || wsend -lsu

Delete Files

 wsend --rm https://wsend.net/dd976079cb4980a44c5dcd2ee07b817b/file.txt

Update Files

 wsend --update https://wsend.net/dd976079cb4980a44c5dcd2ee07b817b/file.txt file.txt

Get a qr code for your phone

 wsend --qr file.txt

Remove a file after a certain amount of time

 wsend --ttl 1h file.txt

 # in hours (h), days (d), or months (m)
 # e.g. 3h [3 hours], 4d [4 days], 2m [2 months]
 # m is a shorthand for 30d, 2m would be 60 days independent of
 # calendar month

Send an email with a link

 wsend --mail [email protected] file.txt

Pricing

Account Space Price
Unregistered (Anonymous) Account 200MB Free
Free Account 2GB Free
Supporter Paid Account 10GB $10/year or $1/month
Enthusiast Paid Account 75GB $30/year or $3/month
Hero Paid Account 100GB $50/year or $5/month

API

The API is REST like in the sense that there is a representational transfer of state. It isn't REST like in the sense that the only transport method that is used is HTTP POST.

To get a user id:

curl -F "start=1" https://wsend.net/createunreg

This should be saved to a file or a database

To send a file:

curl -F "uid=$id" -F "[email protected]$fileToSend" https://wsend.net/upload_cli

Where $id is the id from the previous request and $fileToSend is the file you would like to send.

To see if the user has storage space available to send this file:

curl -F "uid=$id" -F "size=$fileToSendSize" https://wsend.net/userspaceavailable

Where $fileToSendSize is the filesize in bytes.

To register a user:

curl -F "uid=$id" -F "email=$email" -F "password=$password" https://wsend.net/register_cli

You want to protect the password from showing up anywhere as security measure. For the wsend command line script the password is not echoed and passed directly as a variable.

To log in a user:

curl -F "email=$email" -F "password=$password" https://wsend.net/login_cli

To list files (returns a list in JSON):

curl -F "uid=$id" https://wsend.net/list_cli

To delete a file:

curl -F "link=$link" -F "uid=$id" $host/delete_cli

Where $link is a wsend.net url pointing to the file

FAQ

  1. Q: Why did you program this in Bash wasn't that painful? Bash isn't meant to do these things, you could have used python with pip, nodejs with npm, or ruby with rubygems.

    A: While it was painful we wanted this script to be ubiquitous as possible and bash was installed on all of our *nix machines. We do have plans to write this in the languages you mention and will work towards this in the future. If you would like to write a client in one of these languages it would be something we would both appreciate and support. UPDATE: node-wsend available on npm

  2. Q: What about wput? Isn't that the opposite of wget?

    A: wput is an ftp client and its aim is a little different than that of wsend. wsend uploads files through https which works on port 443 which in some restricted firewall situations may work (if you can access https pages). They serve different purposes and if you like wput as well as wsend we hope you can use them both, in different ways.

  3. Q: When are the Enthusiast and Hero accounts going to become available?

    A: As soon as we generate enough income with the Supporter accounts we can purchase more servers and more space. We do not want to degrade the quality of paid accounts because paying customers deserve the best treatment. We do not want to offer services that we can't fully 100% support until we are ready to.

  4. Q: What is the max filesize?

    A: For the Unregistered Account it is 200MB, for the Free account it is 2GB, for the Paid accounts it is 10GB.

  5. Q: I had an unregistered 200MB account. Can I get a listing of my files?

    A: If you register through the command line and then log into https://wsend.net you sould be able to get a listing of all of the files you have uploaded.

  6. Q: But I don't want to register, can't you list my files on the command line with a wsend --ls or some such?

    A: While command line account management is definitely in the works, we would really prefer it if you registered so you can make sure a file is actually yours before deleting. UPDATE: wsend -ls works from the command line to list your files. However you still need to register to use this command.

  7. Q: I have an unregistered account, why is my file not loading?

    A: We remove files from unregistered accounts when they become 30 days old or space is needed on the server whichever comes first.

  8. Q: I have a free account, why are my files missing?

    A: We remove files from free accounts when they become 30 days old or space is needed on the server whichever comes first.

  9. Q: But why, that doesn't seem right, no other service does this?

    A: The wsend program and service is primarily provided for sending files. We have to maintain the best service possible for paying users, once the paying user-base grows we can support more benefits for the unregistered and free accounts. This service is not meant to compete with other services that store files for free, it can be used as a quick and easy way to send files.

  10. Q: Can I use the wsend script to interface with another web service?

    A: By all means, its GPL licensed and you can adapt it to whatever service you would like or create your own.

  11. Q: I have a problem but it is not listed here, who should I ask?

    A: While we will try to respond to all requests, you can contact us at https://wsend.net/about If you are a paying user we will definitely respond and will not rest till your problem is resolved. Just fill out the contact form with your email that is registered to your paid account. Paid accounts are so important to us because it not only keeps the lights on and the hard drives spinning, it validates what we are doing and it says you support us, you support the community, and you support an open internet where everyone can exchange ideas. You are also joining us in contributing to something larger than ourselves.

Help

If you find wsend difficult to use, please open up a Github issue or if you see an area that can be improved send a pull request!

~.wsend/ directory

In this directory the executable bash script wsend is stored, along with the README.md documentation, the GPL COPYING licence, a file called version which stores the version and which wsend checks against the github repo to determine whether it should install updates, and a file called .id, which is an identifier for the command line user.

version

This file stores the version and wsend checks against the github repo to determine whether it should install updates.

.id

This file stores an identifier for the command line user

.list

This file stores a list of files that have been uploaded on this computer.

README.md

This file

COPYING

The GPL licence

wsend

The executable bash script, this can send files and also install the ~.wsend/ directory. The only user file it changes is the .bashrc file by appending the alias to the end. If you have bash installed but use another popular shell it will install it to that .*rc file

(C) Copyright 2020, wsend.net

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].