Home

Awesome

OgramCloud-CLI-client

This is CLI interface for the free UNLIMITED STORAGE of OgramCloud/Source-code service.

<img src="./img/occ.gif"/>

Explanations

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.

Production-Setup

Download the latest release

You just have to og on Releases and get the version you want for your system.

How to use it

# Just provide the file path of the file you want to send
occ -f ./your/file.path
# Just provide the file-key of your file
occ -i iooooiiiiiooooo
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

Development-Setup

How to install

git clone https://github.com/Sanix-Darker/ogramcloud-cli-client
pip install virtualenv
virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txt

How to launch

python3 -m app.main -f ./your/file.path
python3 -m app.main -i iooooiiiiiooooo
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
# 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

Author

LICENSE

MIT - LICENSE