Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Python bindings for the nod library.

Project description


Python 3.6 bindings for the NOD, a library for traversing, dumping, and authoring GameCube and Wii optical disc images.



import nod

def progress_callback(path, progress):
    if args.verbose:
        print("Extraction {:.0%} Complete; Current node: {}".format(progress, path))

context = nod.ExtractionContext()

    disc, is_wii = nod.open_disc_from_image("game.iso")
    data_partition = disc.get_data_partition()
    if not data_partition:
        raise RuntimeError("Could not find a data partition in the disc.")
    data_partition.extract_to_directory("dir_out", context)
except RuntimeError as e:
    raise Exception("Could not extract disc at 'game.iso' to 'dir_out': {}".format(e))


import nod

if nod.DiscBuilderGCN.calculate_total_size_required("dir_out") is None:
    raise Exception("Image built with given directory would pass the maximum size.")

def fprogress_callback(progress: float, name: str, bytes: int):
    print("\r" + " " * 100, end="")
    print("\r{:.0%} {} {} B".format(progress, name, bytes), flush=True)

disc_builder = nod.DiscBuilderGCN("game.iso", fprogress_callback)
except RuntimeError as e:
    raise Exception("Failure building the image: {}".format(e))

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
nod-1.1.1-cp35-cp35m-manylinux2010_x86_64.whl (701.0 kB) Copy SHA256 hash SHA256 Wheel cp35
nod-1.1.1-cp36-cp36m-macosx_10_13_x86_64.whl (280.6 kB) Copy SHA256 hash SHA256 Wheel cp36
nod-1.1.1-cp36-cp36m-manylinux2010_x86_64.whl (702.1 kB) Copy SHA256 hash SHA256 Wheel cp36
nod-1.1.1-cp36-cp36m-win_amd64.whl (396.2 kB) Copy SHA256 hash SHA256 Wheel cp36
nod-1.1.1-cp37-cp37m-macosx_10_13_x86_64.whl (280.1 kB) Copy SHA256 hash SHA256 Wheel cp37
nod-1.1.1-cp37-cp37m-manylinux2010_x86_64.whl (702.4 kB) Copy SHA256 hash SHA256 Wheel cp37
nod-1.1.1-cp37-cp37m-win_amd64.whl (396.1 kB) Copy SHA256 hash SHA256 Wheel cp37
nod-1.1.1.tar.gz (115.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page