This repo contains the code for both the webapplication running on https://up.psty.io and also the command line tool that interfaces with it.
Upsty is a tool that is inspired by https://transfer.sh which used to be nice to use until they kept having downtime. With the service we host allowing file uploads and pastes, this felt like a nice additon to add.
The backend folder contains the Flask application running the service. This is a simple single file Flask app that utilizes a config file in backend/config.json
. Before starting development make sure to set up all the information inside of that config file.
curl --upload-file <filepath> https://up.psty.io/<filename>
- Flask
- boto3
flask run
This will run a server on http://localhost:5000
The command line tool is a pip
program that you can install by running pip install upsty
. This will remove the need for cURL and simply interfaces with the API on https://up.psty.io already.
usage: upsty [-h] filepath filename
positional arguments:
filepath Path to file for upload.
filename Filename to download as.
optional arguments:
-h, --help show this help message and exit
Written by Max Bridgland
View Here