Megatools's wrapper
Project description
Megatools (1.10.3)
(UNDER CONSTRUCTION)
Simple python Megatools wrapper
Installation
pip install megatools
Usage
Initialization
from megatools import Megatools
megatools = Megatools() # Use megatools command in path
# OR
megatools = Megatools(executable="D:\\megatools\\megatools.exe")
Get mega link filename
filename = megatools.get_filename("https://mega.nz/#!PpVB0CTZ!bwa51HbeKaVjuCff_lzbH4nQnV27uBxmcF89PnnACvY")
# boot_T295XXU2ASJ1.img.tar
dl - download exported files from mega.nz
# Basic usage
megatools.dl("https://mega.nz/#!PpVB0CTZ!bwa51HbeKaVjuCff_lzbH4nQnV27uBxmcF89PnnACvY")
# With all optional arguments and their default values
megatools.dl("https://mega.nz/#!PpVB0CTZ!bwa51HbeKaVjuCff_lzbH4nQnV27uBxmcF89PnnACvY",
path=None,
no_progress=False,
print_names=False,
disable_resume=False,
username=None,
password=None,
reload=False,
limit_speed=0,
proxy=None,
netif=None,
ip_proto=None,
config=None,
ignore_config_file=False,
display_output=False,
debug=None,
version=None)
For more informations, please see megatools dl command
megatools dl --help
Another commands incomming
TODO
- Better get_filename algo, especially about error/returncode
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
megatools-0.0.4.tar.gz
(3.8 kB
view hashes)