Skip to content

Repository files navigation

python-mega

Build Status

Overview

Wrapper around the Mega API. Based on the work of Julien Marchand.

Installation

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

How to use it?

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')

Running the tests

$ ./tests.py

Changelog

0.1.0

31th Jan 2012

  • First release.

Acknowledgements

  • Many thanks to Julien Marchand for the initial work.
  • All of the contributors to this project.

About

Wrapper around the Mega API

Topics

Resources

Stars

104 stars

Watchers

11 watching

Forks

Releases

Packages

Used by

Contributors

Languages