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
Release history Release notifications | RSS feed
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.6.0.tar.gz
(1.0 MB
view hashes)
Built Distributions
nod-1.6.0-cp39-cp39-win_amd64.whl
(15.0 MB
view hashes)
nod-1.6.0-cp38-cp38-win_amd64.whl
(15.0 MB
view hashes)
Close
Hashes for nod-1.6.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05b2d4b91b89858f915e601e454d94544c9007b651b7c871bf8704b6383d960c |
|
MD5 | f5c941753f7290ac1a756d3f4136b122 |
|
BLAKE2b-256 | acc2ee97c3e98465dd827051063dd7cbb8c7e69efaf983ad7b09c510082dea23 |
Close
Hashes for nod-1.6.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34051d49ae28b5b67bbfe75788e21a6683da99f27b1a42a4f5565da99fe52eea |
|
MD5 | 105af19f2c577f5e90e17cc9cbd30138 |
|
BLAKE2b-256 | 2e586f5d33430bdab78862247e28b29cb2508640c5c33c58e5d7f1de2941ee57 |
Close
Hashes for nod-1.6.0-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f154162df99f82cea16555e01c332d321629ff569f70738a0fbdf39703029b46 |
|
MD5 | 5f45a68afeda57c13305219a2bf356a2 |
|
BLAKE2b-256 | cdbbd633bd635b54e862de730e68739f64962c8bd9ea07bbf86f81d6754c8296 |
Close
Hashes for nod-1.6.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af9d3d391c25032dbf5582b3b81c4e2f0f665f088e3740bca1c4a69de5f8a383 |
|
MD5 | cf9997cca32ab0d0f0501a0fca0fbdf2 |
|
BLAKE2b-256 | fd953ff276187df415e080385299d06e43edf04525c945cf27bf157caf8c9f32 |
Close
Hashes for nod-1.6.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec227b141d0d508afedb87c31a7cc8da1f745ceeeb6812d3147861822a261b64 |
|
MD5 | dfb629b8fa74daf01e88715510d8366f |
|
BLAKE2b-256 | 8d1ca2015d6bb7cb5e1ee494ee2c4ca4627bc00df82655b5dfa364bdaa397b01 |
Close
Hashes for nod-1.6.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eba70d04b28a9e664583d299ed92eae5a541c6657421958645739951fb836a01 |
|
MD5 | d81367b8e3be607bb50f84b10b7b0c26 |
|
BLAKE2b-256 | ef8739dc6128912441024487758048b8aac6da219fc8002a1eeae0579d10c764 |
Close
Hashes for nod-1.6.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c80bbf99be712c9418227ee8eba9ce21c49fb9ac0d082781ed5e873a7517d690 |
|
MD5 | 11ef26283ad9aa295c9e715ade7d327e |
|
BLAKE2b-256 | 9ef95b13673cee504778f04dd0f2342a663c153857b113c181e0af5c19bdf13c |
Close
Hashes for nod-1.6.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f51acdd44a588859288af56ba2397c6777f04a169528015968fbb4743fee03dd |
|
MD5 | 0c70cd53dfb824764b3b8f1a0f717d32 |
|
BLAKE2b-256 | 8d2043ccd67db760688a842112d65da1ef79d1a1d16d3ffa690480546eee7d7d |
Close
Hashes for nod-1.6.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbe4c68262aa915c5c595bd56e0326acf96555ff4be9b87bb3c1f4c774678d4e |
|
MD5 | 344e2cb638a1255de79ea9c8e4c86168 |
|
BLAKE2b-256 | e263e7558db8ee4bd00f15014cf116b5fb7053d630e418948442fa2599584449 |
Close
Hashes for nod-1.6.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64a84bdd66ea252bcfb89bad5d9de36ef38c87239f7ca51bbc7b549b4fa8b00c |
|
MD5 | 6ced3471c7a5b323eb0070cc9bdd0f85 |
|
BLAKE2b-256 | 1b758a7f50e6a691da7ad8e5933ec8ffb93009d5499abf7c39a907f3a1dfdca1 |
Close
Hashes for nod-1.6.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a87002f911245358ea9a335d2d6c06c221fb2d9a18cbbbfe973c00487c7ee8f0 |
|
MD5 | f9703002afdceb707da19eb52c86945c |
|
BLAKE2b-256 | 8783daaa604db64e20f886ee1f1af2bf6a6a697645469e0a861bcf5bf8e8b192 |
Close
Hashes for nod-1.6.0-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47e4a2a764c1c9ea6cd639cda6e64ac7cec51620406275e4d27502f1ed8c822e |
|
MD5 | 911452e4264d25d1c766947e05f46942 |
|
BLAKE2b-256 | 4702b15dbdf9a073328211c19ccfdb58a571872fa1a53363ecdd931592d83664 |
Close
Hashes for nod-1.6.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92dd3137a43a0fbc00226c6f2d2321b7858274657c9f45200ce121793a56c340 |
|
MD5 | 51337dbbce80102c0d81c786ba4a22f1 |
|
BLAKE2b-256 | 2240ba108f261b3c6e75a4f3908978f5cbfabf0e2fc3584f2b231013b578af4f |
Close
Hashes for nod-1.6.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3f2f0334ff1720beb761cba0dd47dc2a087495502d330edd760a7207cf37e4c |
|
MD5 | 73408388fa695861dc7765d8eb0e8263 |
|
BLAKE2b-256 | 5b3867b3dc545f92e7a9e69534728a09da387f78d661bcdd8becc57c32df09b9 |
Close
Hashes for nod-1.6.0-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48ef5aee803ecf091d47d2d1bf4067ef5e59a901644241e4d4e5c9803224487e |
|
MD5 | 32e1e6d7b73cce2376f8f75f203e8155 |
|
BLAKE2b-256 | 7ce579f819f19b0f7013f9d98be2ffa3973ee86decabeae24b4fb92098b979b6 |