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.8.1.tar.gz
(1.0 MB
view hashes)
Built Distributions
nod-1.8.1-cp39-cp39-win_amd64.whl
(14.6 MB
view hashes)
nod-1.8.1-cp38-cp38-win_amd64.whl
(14.6 MB
view hashes)
Close
Hashes for nod-1.8.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaaf78051b8a9bc173cb04d48cd0798767ea42a95e4acc4421d945f1276ba2ff |
|
MD5 | 25bec7a5bd7d01855d0385f2326b2036 |
|
BLAKE2b-256 | f0ac3ce53b92c8db5198dc2e152c17d54e71adeb4ac3d9526612c898d301ebef |
Close
Hashes for nod-1.8.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbb6fb77dbf04ed24b8f71a342f89b29bde57d6e10f425557460c392392721fb |
|
MD5 | 15c14ee74619990f9b0f54606eaa48f2 |
|
BLAKE2b-256 | acbbb31929229d4967f2780100002f515555b2e8ead3ea0678f2fae29bb58790 |
Close
Hashes for nod-1.8.1-cp311-cp311-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a0f16c24c57c90b4578a2846f69347424ac0ed294f718fdb251d9a6726359a6 |
|
MD5 | 3af56ae21cf12106272ad84bc48a25c6 |
|
BLAKE2b-256 | 94415a27dd95af70fd6c59cce5ca409726ab95f8ae359f1f5835b9ef3fe120d2 |
Close
Hashes for nod-1.8.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5ea0cb9536c6ee9ee9705e86c2b1d97e77eb4a9b7fe14296dee1a5223732824 |
|
MD5 | b00f6c5915d3bc3f38df887f9edd0f03 |
|
BLAKE2b-256 | 37aa048950458568989e352742c609298cc2bd98d0663d47c219bd8add09a191 |
Close
Hashes for nod-1.8.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d08cf166d7478ea2db50ffad3a8f9e6256516d80cd157d775081b59c33273dab |
|
MD5 | 7ae48eb6e08482d9edfa719d3c6e1874 |
|
BLAKE2b-256 | 7d74d9ce0ee4b76fa27f7e2c62492924669d2792fd7bf55450ab914661ca88b9 |
Close
Hashes for nod-1.8.1-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f7308bd7005e35d169b88812d316ac0ae0b2cebb6a4cec84544c039871124c7 |
|
MD5 | 212d4af4d9d26d4ee4512b1fe95ec513 |
|
BLAKE2b-256 | f927c37b0eaedb5f24e9459ac501625fac6d127fd7d3aad15eb95a8544d9dd3b |
Close
Hashes for nod-1.8.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99348c736cf697a723bf56b53c410aea0be803b165ca4e9cd77bce9bcb8799d9 |
|
MD5 | b379059de8792d9bb4d663e0dfb31fee |
|
BLAKE2b-256 | 038a06d3ef78e70b736b314cd4c376ff51875c0aaae15c2e4fc6eb8bfc37cc76 |
Close
Hashes for nod-1.8.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb98df8acd13758c278daee4d8179c3c03310d6a5cf167d83129dcb096071f19 |
|
MD5 | b284cb8c2bfab1542e07c0de9eb17998 |
|
BLAKE2b-256 | dfa8d32e12c5eed9719affba7a3654d84d1caeb53547aa60a299882c65d66b6b |
Close
Hashes for nod-1.8.1-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8402a5bc5eb8b9d0ef0a17dfd5ccb01b98e615ab57d992fe00b390a1a1af1f72 |
|
MD5 | e26ef5c1d12aa4d14c5d4ac32fabb03a |
|
BLAKE2b-256 | 5e33598f1764f74093e2d758cfe4dec44aaf89116da7ca850fe172445fef6038 |
Close
Hashes for nod-1.8.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18629b641c51a148bc09cc85794061ea55a9378caea7fedf80ef207b5dda1098 |
|
MD5 | c4d03778672456fb0ca3cfc2418c4950 |
|
BLAKE2b-256 | 094771e1462cbed1b2eca75acd8498a73c6316386f620df32f343a9663a41aea |
Close
Hashes for nod-1.8.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e45ce74a1a95cdd32357f922a8b9a48140dbe610b108a32a99996fb2314852b5 |
|
MD5 | c72294f7ef15ab9a2b821458f971d184 |
|
BLAKE2b-256 | 7aa10fad0c1e35003402ba8ee363f9e0c5965bc9fb10adcec25d9fdc59a30bd2 |
Close
Hashes for nod-1.8.1-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46db382d57d4455e5cc8808efa36799f102832c6d50ca69c782998ec99bb9149 |
|
MD5 | a65b5869c9c8aef200a6ed5680c1ab73 |
|
BLAKE2b-256 | 9da6eafa09e464b50adb0fd15b023d0d76a302dc5647522cd0cff310bf29196a |
Close
Hashes for nod-1.8.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35c6931f1922253b178d68163914f8c0bb9ac3c97d0962560b6c1c49c79f101a |
|
MD5 | ca79396e2769371c9267629eb842e274 |
|
BLAKE2b-256 | 6a2e8252eaa5f98d3cebe5c2c761f41ccd43c4a3705fc27191fdce232f1d28dd |
Close
Hashes for nod-1.8.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98cae83e9e333a5970ac599930bffaf8cd50eb36b3bb0fd941df32d503f66b06 |
|
MD5 | 809c96e4a000f18050894a6e0aa5270a |
|
BLAKE2b-256 | cc9988c80a485fcdcddde3f229caff1c2aed9faeddf63d68a9fadb51a4342c47 |
Close
Hashes for nod-1.8.1-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c958844d233ea0ae8ec468a0821f1f65b655943707ded8e1fa0aab407c58b130 |
|
MD5 | fbb7a03386027f8b3f74f65df4fa57e2 |
|
BLAKE2b-256 | 17e8fa610a7c1c922620aa48b55cd68a01878031c8fd126f5f977a1ff091a457 |