Meallia / pyorangecloud

PyOrangeCloud is a python binding (client library) of the Orange Cloud API. The Orange Cloud API allows programmatically to access user data (folders, files) stored within the Orange Cloud.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PREREQUISITES

INSTALLING

Go to directory of the distribution and run 'python setup.py install'. This will copy pyorangecloud.py to your python site so that it is permanently available. Since it is a simple python module you may alternatively copy to your work directory and use it without installation. Also if not already installed, install the third party "requests" python module (under Apache-2.0 license) (see http://docs.python-requests.org)

QUICK TEST

Open the pyorangecloud_launcher.py in your favorite editor, and edit the configuration variables CLIENT_ID, CLIENT_SECRET, REDIRECT_URI, and if needed edit PROXIES, TOKEN_STORAGE_DEFAULT and PATHS_STORAGE_DEFAULT. Ensure you have a user account on Orange Cloud and that as a user you have accepted terms and conditions Ensure you have just obtained a fresh authorization code from a user

Then launch:

  • python pyorangecloud_launcher.py -c {userAuthCode} freeservice

    This will display user free space.

  • python pyorangecloud_launcher.py -c {userAuthCode} listFolder

    This will display user root directory

Pass -d H to get http traces, pass -h to get the list of all commands

USAGE DOCUMENTATION

See the included html file pyorangecloud_doc.html or visit the doc provided online in the wiki page.

LICENSE

The sofware is licensed under Apache-2.0 terms. See the file "LICENSE.txt" for a copy of licensing info.

Have fun!

About

PyOrangeCloud is a python binding (client library) of the Orange Cloud API. The Orange Cloud API allows programmatically to access user data (folders, files) stored within the Orange Cloud.

License:Apache License 2.0


Languages

Language:Python 72.8%Language:HTML 27.2%