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.2-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c069c31cb37e3dbb432c4c91e0a4c4b145935ea84312bf75b7946d0d651244cd |
|
MD5 | 8d69855e013a0794145009144a21903a |
|
BLAKE2b-256 | 7c57d20e1d600b3230a5848ef5ac55742de882ed7ab21c9f87469463b419bd53 |
Hashes for z3r_sramr_py-0.1.2-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f80f7464ebb03ee60022bf2b81e19e0279479a08d8b020d6effa5c36c91c293 |
|
MD5 | 41c505f071df4899f971f5a460739c8e |
|
BLAKE2b-256 | 555a4b5e7d6fe814cd4b478debd3a309205bd9c181ade0229aa2b59969ac61f4 |
Hashes for z3r_sramr_py-0.1.2-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f41410476066d100f268017fa310d35ad15f1fccca77025b8d05d9dfff9e76d9 |
|
MD5 | 9243dd98759eb9d3b3b1c40dd0b76a9b |
|
BLAKE2b-256 | 02c8add6a24ad16206f9093b5141824760067ab975f6b748add7c083061fb9f1 |
Hashes for z3r_sramr_py-0.1.2-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5fff4ba08e7ee4e4004e4c41e38fbdc61daa2bf292c4474f41af85f561acb48 |
|
MD5 | d9d3fd9326aba6e1138430ce3012297d |
|
BLAKE2b-256 | 4202fb5ae53d353144f52da22f2cb43814de852a2d419e561afcc006b256b144 |
Hashes for z3r_sramr_py-0.1.2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | addb2890fef35c8e29cab88f765bce1abf1c0051681e8ba248a0d0d1456f5fd8 |
|
MD5 | 5673e3d8c82211776f08ee99c0075eb8 |
|
BLAKE2b-256 | 3fdd40cabad2f3398f3b5dd4ca81dd99aa8472dbda3d61eb88db248c6941cf57 |
Hashes for z3r_sramr_py-0.1.2-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f61311c0154ebc95627567c128624a794eda3cbcd402413b7848ca881ee4f77e |
|
MD5 | 54b008a73d7109a147c0d1f5427fa4a2 |
|
BLAKE2b-256 | b631d8b762d4bb7f35a6f04e8426e606bb9caa55a6606cd4ffeffbf4db5d1d33 |
Hashes for z3r_sramr_py-0.1.2-cp36-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a05cad065d7c58a8e461a8847bd330b22a899f6be451e03c6a783808b272e21f |
|
MD5 | cc7eaed4a6f22520ad0a55577482f537 |
|
BLAKE2b-256 | eea62298a60d2a1793a5434ac6cd08024f598f3f6c00d6a72563d202d7f985d9 |
Hashes for z3r_sramr_py-0.1.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee12bdbf3c9645202a58f9a7cd036c15bb7caa3a57bcfd14f5d3bca970ccbfe7 |
|
MD5 | 4a50c1f678f173e8f1ba592ed4a18c37 |
|
BLAKE2b-256 | 87bc36404f7fac6590e58cac20da4d70f3816d96b3bad5fcedc3c17311ba8523 |
Hashes for z3r_sramr_py-0.1.2-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0addb0e25548065b8be78417fbcaa819b546f79e642297c25e3efb7f370a4c09 |
|
MD5 | 92cb3c0c921db18c786da4e19b1f0f99 |
|
BLAKE2b-256 | 0f2c348f6e1b73e5fd1a52913b4261b99b154f3f44b53fdcb712f7534db7d48f |
Hashes for z3r_sramr_py-0.1.2-cp35-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c08db362ae5984ab8f62f2ed4d131f3f19ea174e6265306e084f4f71a140feeb |
|
MD5 | 49730188117f4dce5b300b5146e18151 |
|
BLAKE2b-256 | 267afb280469bd64151f9082525109138e36becc04f8bef7a38d0f2f59c98706 |
Hashes for z3r_sramr_py-0.1.2-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0b1179185e03519606b578d683888c3904202e5d0c2321d07dc2c439a8025fe |
|
MD5 | b18e2098a9ef15d2578ed4dd35661217 |
|
BLAKE2b-256 | 1281c98bad4650d40b8a2fc5c60fc5e1aae672b130d166061104584612f4475b |