python wrapper for Openload.co API.
$ pip install pyopenload
All API features are implemented.
Retrieve account info
from openload import OpenLoad
ol = OpenLoad('login', 'key')
account_info = ol.account_info()
print(account_info)
Upload file
from openload import OpenLoad
ol = OpenLoad('login', 'key')
uploaded_file_info = ol.upload_file('/home/username/file.txt')
print(uploaded_file_info)
Retrieve file info
from openload import OpenLoad
ol = OpenLoad('login', 'key')
# Random file id.
file_id = 'YMTqhQAuzVX'
file_info = ol.file_info(file_id)
print(file_info)
documentation is available at https://pyopenload.readthedocs.io/.