fileup
is your go-to Python package for hassle-free uploading and sharing of files right from your command-line interface! 🖥️🔥 You can set a time limit after which the file will be automatically removed, ensuring the security of your data. 🕒🔒
To install fileup
, simply run the following command:
pip install -U fileup
Before you can start sharing your files, you'll need to create a configuration file at ~/.config/fileup/config
with the following structure:
base_url (example: nijholt.biz)
base_folder (example: /domains/nijholt.biz/public_html/)
file_up_folder (example: 'stuff', if fileup needs to put the files in nijholt.biz/stuff)
my_user_name
my_difficult_password
For a list of available commands, type fu -h
.
In a nutshell, you can use fileup
by running:
fu filename
If you're uploading a Jupyter notebook (*.ipynb
), the returned URL will be accessible via nbviewer.jupyter.org.
Check the output of fu -h
for more information on how to set a time limit for your file:
usage: fu [-h] [-t TIME] [-d] [-i] filename
Publish a file.
Create a config file at ~/.config/fileup/config with the following information and structure:
example.com
base_folder
file_up_folder
my_user_name
my_difficult_password
positional arguments:
filename
options:
-h, --help show this help message and exit
-t TIME, --time TIME If time is 0 the file will never be deleted, default is 90 days.
-d, --direct
-i, --img
fileup
currently supports the pbcopy
command, so the URL will be automatically copied to your clipboard on macOS systems. 📋✨
Please note that the automatic clipboard copying feature is only available for macOS users at the moment.
Give fileup
a try today and experience the convenience of effortless file sharing right from your command-line! 🎉👏