No project description provided
Project description
z3r-sramr
Installation
pip install z3r-sramr-py
Functions
parse_sram(sram, validate_sram=true)
Accepts a bytes object and optional boolean argument. If you want to skip the SRAM validation
checks, you can pass False
as the second argument. Returns a flat dict of stats and general
information gleaned from the SRAM as strings. Can raise a ParseException if one of the
validation checks fail or another error occurs. See keys.txt for a list of all keys.
validate_sram(sram)
Accepts a bytes object. Returns True
if the object is valid ALTTPR SRAM and False
if one
of the checks fail. The parse_sram()
function calls this function by default.
Example
from z3rsramr import parse_sram
with open("example.srm", "rb") as f:
sram = f.read()
sram_map = parse_sram(sram)
print(f'Current Rupees: {sram_map['current rupees']}')
print(f'Collection Rate: {sram_map['collection rate']}')
print(f'Menu Time: {sram_map['menu time']}')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for z3r_sramr_py-0.1.1-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 678748b2f868acba493622cff9fe95cf0159573b752789f7b025ca90c67d3276 |
|
MD5 | fbe7f450f01225d59a6dd3469b6ca6eb |
|
BLAKE2b-256 | 81a2bafec4c1f8031bd41633629fb70b0c553338aea57fd956b02aa301fae228 |
Hashes for z3r_sramr_py-0.1.1-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e3876f4ce63958cd465bcd1d759e99a62455ca673de87d90a732793bd48a88e |
|
MD5 | c4c70462c85f77ec4406d9b5aee3b553 |
|
BLAKE2b-256 | 7587c4be32c8f5e7acf3ea0d7e4bf27d9c4c8c60a546b23ec4398e4714db6b10 |
Hashes for z3r_sramr_py-0.1.1-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 217d85fdce0eec45585c0cbbc9c573257dbb690f68703aa95ae3a828ec75cfed |
|
MD5 | c137de67b61e7ee4d8e627c22750d210 |
|
BLAKE2b-256 | 537cf35ffeb3872f141a013b3323b021d928c4d7ec53d7d28938ad54bed85a23 |
Hashes for z3r_sramr_py-0.1.1-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d11c6ff2edc690c564ae5d0d84ef7383d864f74245d0f1cda06711b666c9d92 |
|
MD5 | ebd4f7cd8fe5e0ac9af7f1de940e0f78 |
|
BLAKE2b-256 | 71d802a1a68b8d7bef49b422b7e392eeb7b8041489e72f11a2e92a20f703cf55 |
Hashes for z3r_sramr_py-0.1.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e8b00a14ebdf18f8f4c907cae774032998670e61864a22635d857cbcd4b1946 |
|
MD5 | 61ce7b0f29e94672ce242e66f187e0d6 |
|
BLAKE2b-256 | fab4e647440b21ecc17b10f84308eaafc146ac8b59b7571845f369fc4d260590 |
Hashes for z3r_sramr_py-0.1.1-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79fb125401f1999c2166e7f100827b559c76cf94d593499aa2f37b423d205b48 |
|
MD5 | a7c89c8ca40e389c2e3bcbab0a013d85 |
|
BLAKE2b-256 | 73c3134bc56fb5c2adbce5123ff829ed078c1c37c8e5e532475c001ab6744f34 |
Hashes for z3r_sramr_py-0.1.1-cp36-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdfc94bac6ca3ebaca8b000a659fe26a89398336f3a6c6927e279c84b77ae2fc |
|
MD5 | 3206df67cd7de8e773aa314989c8f7cc |
|
BLAKE2b-256 | 5f1830a1a6968191b66bf9f838fd4987db62f36fe2452d6cbe77166809965287 |
Hashes for z3r_sramr_py-0.1.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1111deeb979e6c54c684461f1b6261a166898980053e9bc8c0a9185553f4623 |
|
MD5 | 38dbeabb4bc6bff204c857ec5b90f363 |
|
BLAKE2b-256 | 26a793753b44aae06e658985bacda7fc3a5a0348d3c577752e0ed15bcd1a9c55 |
Hashes for z3r_sramr_py-0.1.1-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7681d8cee29f06f7fcff170421770ae1f8bb4794587ca4bc6e489906971afbd |
|
MD5 | 5aaf559cdf7bb85596f52a8ae4f29ce6 |
|
BLAKE2b-256 | dc832fc0bb5d2ed1734390ba49caf8854b84559924abf8674c0648cd8d25b249 |
Hashes for z3r_sramr_py-0.1.1-cp35-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a0001759536b4d5613c8cf74b93d75defff466bd850a90c4a89aa00d566d7cc |
|
MD5 | 87004985e3aa9622d279f7e040bbf48e |
|
BLAKE2b-256 | 00045f3923fc1cc7c54a9a6f296e1427b67046ae5654f95221427d0eb66ceb9a |
Hashes for z3r_sramr_py-0.1.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5653c764d1f6f110b53e955100e92b7f857f247fdea9dd288182e956d1150614 |
|
MD5 | 9a65b208c6f0ec4c434b643691a22dfa |
|
BLAKE2b-256 | 05c10f23e316342603dfc93c232bc0575589af452244fd7ed37ff6dd1577a14e |