Wrapper around the Mega API. Based on the work of Julien Marchand.
Install using pip, including any optional packages you want...
$ pip install python-mega
...or clone the project from github.
$ git clone git@juanriaza/python-mega.git
$ cd python-mega
$ pip install -r requirements.txt
With your credentials:
frommegaimportMegaemail='kim@dot.com'password='olakase'm=Mega.from_credentials(email, password)…or you can use an ephemeral account:
m=Mega.from_ephemeral()And fire some requests:
# list of filesfiles=m.get_files()
# download a filem.download_file(file_id, file_key)
# upload a filem.uploadfile('/home/kim/mega/secret_plans')
# download from an urlm.download_from_url('https://mega.co.nz/#!wYo3AYZC!Zwi1f3ANtYwKNOc07fwuN1enOoRj4CreFouuGqi4D6Y')$ ./tests.py
31th Jan 2012
- First release.
- Many thanks to Julien Marchand for the initial work.
- All of the contributors to this project.
