Skip to main content

Python bindings for the nod library.

Project description

py-nod

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

Usage

Unpacking

import nod

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

context = nod.ExtractionContext()
context.set_progress_callback(progress_callback)

try:
    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))

Packing

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)
try:
    disc_builder.build_from_directory("dir_out")    
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.

Source Distribution

nod-1.3.0.tar.gz (870.8 kB view details)

Uploaded Source

Built Distributions

nod-1.3.0-cp39-cp39-win_amd64.whl (8.9 MB view details)

Uploaded CPython 3.9 Windows x86-64

nod-1.3.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

nod-1.3.0-cp39-cp39-macosx_10_14_x86_64.whl (596.3 kB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

nod-1.3.0-cp38-cp38-win_amd64.whl (8.9 MB view details)

Uploaded CPython 3.8 Windows x86-64

nod-1.3.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

nod-1.3.0-cp38-cp38-macosx_10_14_x86_64.whl (595.9 kB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

nod-1.3.0-cp37-cp37m-win_amd64.whl (8.9 MB view details)

Uploaded CPython 3.7m Windows x86-64

nod-1.3.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

nod-1.3.0-cp37-cp37m-macosx_10_14_x86_64.whl (595.4 kB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

nod-1.3.0-cp36-cp36m-win_amd64.whl (8.9 MB view details)

Uploaded CPython 3.6m Windows x86-64

nod-1.3.0-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

nod-1.3.0-cp36-cp36m-macosx_10_14_x86_64.whl (596.4 kB view details)

Uploaded CPython 3.6m macOS 10.14+ x86-64

File details

Details for the file nod-1.3.0.tar.gz.

File metadata

  • Download URL: nod-1.3.0.tar.gz
  • Upload date:
  • Size: 870.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for nod-1.3.0.tar.gz
Algorithm Hash digest
SHA256 0fda8b2bb563fb9f5429ae43568e497353a65727ccc35b94884bfb0f234b75ff
MD5 173b30a82d0ec13149a8263d958eb9f4
BLAKE2b-256 e5e9ecd0c8eebc01bea85b1de75821a33afb4dadf58b9a3db4ffa2d6ba44d819

See more details on using hashes here.

File details

Details for the file nod-1.3.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: nod-1.3.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 8.9 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for nod-1.3.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e3b07bee6c43ab3dd543b2d223871ba1dbc95045b31322184028c20559962ebf
MD5 cceeb5caec896b0d3894e4c2f3be3234
BLAKE2b-256 361dffc1eaf8b084752c09417f391003e447ceeaa52b7ec48047f62c86fdee4b

See more details on using hashes here.

File details

Details for the file nod-1.3.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for nod-1.3.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 7bc1814466e7dada945f8dd51c498beddad7c4414a9c52dac57f49848823304a
MD5 d3746433ef37988945be672cb33da5d6
BLAKE2b-256 c38a46139fe859c0f403349093dcdbcd8772f5e047674502cbb651ea84977e41

See more details on using hashes here.

File details

Details for the file nod-1.3.0-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: nod-1.3.0-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 596.3 kB
  • Tags: CPython 3.9, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for nod-1.3.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 5eff73f1b5556fd1b766988e7ec4408057aded791f599189a5bc76f276a52f4f
MD5 733d1606acd15e2f0270c162427de16c
BLAKE2b-256 097738583fd755de044e285919dc1085cb20e0804266f21df4cce9e9dd39afb5

See more details on using hashes here.

File details

Details for the file nod-1.3.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: nod-1.3.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 8.9 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for nod-1.3.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6886ec893315460b5a0bff8002e8aeed43d2b031ee0a018aa447e8fcb7ee5573
MD5 debe258008b5f78c060d72dbbdae7192
BLAKE2b-256 7fec9c7309ca9d6694822955d5cc41afecb6e08ef3f2a7b8305f0f6c8b177a8a

See more details on using hashes here.

File details

Details for the file nod-1.3.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for nod-1.3.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 0d4428c7c8d45c70912ca585cd069bf0dc847de2e14a46cc4adc631d57213e4c
MD5 63f63eaf50880c7d8ea0312fe94c4567
BLAKE2b-256 06a43575703a07d84443610daa6dce9680199e5d20bfe5516e143bdf0b920bdb

See more details on using hashes here.

File details

Details for the file nod-1.3.0-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: nod-1.3.0-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 595.9 kB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for nod-1.3.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 b9b36252ddc6c12c615d0c1d89c7bc8825011f9d40283bf8cf020a19c3c08141
MD5 53c89ac74efb144a472d439851949883
BLAKE2b-256 5432243c4291cdd49b12b8ad845ce3df178a7826031d25d5aff308342e80d6b0

See more details on using hashes here.

File details

Details for the file nod-1.3.0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: nod-1.3.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 8.9 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for nod-1.3.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 93dd04b0d0d1fc2eedc3e79bb6879cd0b65b6d144694b4ea65d714647b65efb9
MD5 08bced02f0e65322e6540deca08a0d40
BLAKE2b-256 6c1001a5cc5de8acc3a1bb3cdfdc3669c73ae29bc70d735eb37bf1e121d4dccc

See more details on using hashes here.

File details

Details for the file nod-1.3.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for nod-1.3.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 dc324fc9c0824a27a75e14ce8f794de6e30903c9448908bf771fd6ebe60da589
MD5 f347a7189251cb17da3ad4f59f54d15f
BLAKE2b-256 85a9dcc8c3e234dcff68bbeae85c7963636ac8e0f2f51f67f2c14cc8c9546705

See more details on using hashes here.

File details

Details for the file nod-1.3.0-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: nod-1.3.0-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 595.4 kB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for nod-1.3.0-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 4b4966b42a83c9efda30f0186fa95e7910da9a614b0ccee8cd5093bcac5695ae
MD5 a68817661a1ec1e2bd03f88a1d2a51d7
BLAKE2b-256 4270de4ccb886fccfb4037ff683a5495c11b160c9ec418886e78eeb73d05f900

See more details on using hashes here.

File details

Details for the file nod-1.3.0-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: nod-1.3.0-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 8.9 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for nod-1.3.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 441968bdf868b45a8626ca65bce95133949de683594dbd5011567d652adfd552
MD5 64ca8249f0a62229d5dab0ba06d59a0a
BLAKE2b-256 6ffd1bf7bdc59ef33a8e9ea2ec28987545e70d00b06d4ce4e8c76a66153368e1

See more details on using hashes here.

File details

Details for the file nod-1.3.0-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for nod-1.3.0-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 8f282569cc668c5d3b516c3546c288e5e406f34bd6046f1a7813ec43b738578b
MD5 39c1695ec740861126718131c8a2b967
BLAKE2b-256 2cdd29bf448cc716de6c8b21478e21a3919703e3abdd9e2a4c87b42bbc8649d4

See more details on using hashes here.

File details

Details for the file nod-1.3.0-cp36-cp36m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: nod-1.3.0-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 596.4 kB
  • Tags: CPython 3.6m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for nod-1.3.0-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 3e8d39097f8f0db52ff9dc07d71c67c55252954fa12a6aeb99fcbf6a20e07a30
MD5 cdd911e2f07b209b84ee3e8c53b800ce
BLAKE2b-256 8ce81ebee32b2deac3a59ce7600ae42cd84b21aa77a5b7fa0c69a86517d4c70b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page