This is CLI interface for the free UNLIMITED STORAGE of OgramCloud/Source-code service.
In this short demo we send a file Marsh.mp3 on OgramCloud using occ; then we delete it locally and regenerate it from its file-key.
You just have to og on Releases and get the version you want for your system.
- To upload a file, just hit :
# Just provide the file path of the file you want to send
occ -f ./your/file.path- To get the file with the file-key, just hit :
# Just provide the file-key of your file
occ -i iooooiiiiiooooo- To get help :
occ -h usage: occ [-h] [-f FILEPATH] [-i ID] [-c CHATID] [-u HOSTURL] optional arguments: -h, --help show this help message and exit -f FILEPATH, --filepath FILEPATH File path of the file we want to upload -i ID, --id ID OgramCloud Id for regenerating our file -c CHATID, --chatid CHATID Chat Id on Telegram account, see documentation of (https://ogramcloud.com) -u HOSTURL, --hosturl HOSTURL The host url of OgramCloud
- After cloning the project :
git clone https://github.com/Sanix-Darker/ogramcloud-cli-client
- After creating your Virtualenv :
pip install virtualenv
virtualenv -p python3 venv
source venv/bin/activate-
Copy the
example.config.txttoconfig.txtand provide corrects informations -
Install dependencies:
pip install -r requirements.txt
- To upload a file, just hit :
python3 -m app.main -f ./your/file.path
- To get the file with the file-key, just hit :
python3 -m app.main -i iooooiiiiiooooo
- To get help :
python3 -m app.main -h usage: main.py [-h] [-f FILEPATH] [-i ID] [-c CHATID] [-u HOSTURL] optional arguments: -h, --help show this help message and exit -f FILEPATH, --filepath FILEPATH File path of the file we want to upload -i ID, --id ID OgramCloud Id for regenerating our file -c CHATID, --chatid CHATID Chat Id on Telegram account, see documentation of (https://ogramcloud.com) -u HOSTURL, --hosturl HOSTURL The host url of OgramCloud
- To build the executable :
# You install pyinstaller pip3 install pyinstaller # To build the executable using pyinstaller pyinstaller main.py --name occ \ --hiddenimport=requests \ --hiddenimport=configparser \ --exclude-module=pytest \ --onefile
- Sanix-darker