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.0-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 145d370b7944070ea3e3a3d5c0b0edb803696ced975e40e07f216c5b8fcf5663 |
|
MD5 | 90b1a8fa320128391b56631e0384a6a8 |
|
BLAKE2b-256 | 6b0691fd011218fc37607a89ecb895b8f2d51548d3d9cc023afaca68c748fd6f |
Hashes for z3r_sramr_py-0.1.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb7558e0d4cc4148ceda11aa8440e9123446df873aa3c609096677a509112271 |
|
MD5 | 2ed223bd5b9d158b8d1e797d18451a42 |
|
BLAKE2b-256 | 4930c2d6e33a447867699d793709fc026578285cea334cfbeb04ce22f2ca912d |
Hashes for z3r_sramr_py-0.1.0-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ba463e447f2f2bbe319cf142c3afe3e09e65576a7ea92110d850f927199bc10 |
|
MD5 | 82fcda769adeb3e683746e6526a66274 |
|
BLAKE2b-256 | 011583796166410915324c27a592c0a47c574e9b067aa5d31472497e2441a47f |
Hashes for z3r_sramr_py-0.1.0-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 098c04fd0470e2cb187022c26df877a195430d5e89b5c47250591d3eb6ce28be |
|
MD5 | 7478ce33db5e1ecb01d9980385c5b6d6 |
|
BLAKE2b-256 | 32c787c49d605e824987ca3265daa853a89ff88182565be1e6b05c236ea836d6 |
Hashes for z3r_sramr_py-0.1.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3d5ad2efa9c78236169db47e370d37462f34371f0c1bbaf49fce87bc6e42265 |
|
MD5 | 6062e5e571c5652ee0107d9de014b9dd |
|
BLAKE2b-256 | 7a792b3995fda6f8ec35df52fef08c89ff4e87c671271c73b2eea2e2762375e4 |
Hashes for z3r_sramr_py-0.1.0-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 973e4d805bfaebe0dba768b2b766670c8f098d380262783737a2c685e5f6c4bc |
|
MD5 | f53eeae86300ba9655750fae7d777e72 |
|
BLAKE2b-256 | 2b341533caf96001e43311e674fbc8bdb48c4bf325204299ebad25bd76708c74 |
Hashes for z3r_sramr_py-0.1.0-cp36-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24cb7a18c1b7f2656c30f84bd8a1458c1980a26ac6f428ab9fb11767460cadaa |
|
MD5 | f51b3c7344193e57072dd58f3c393837 |
|
BLAKE2b-256 | ca98f0f3ad7e48f0cea363cfeadf3c91feb8a7e686060a2e3040e78373ab58cb |
Hashes for z3r_sramr_py-0.1.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18a654cc601737c1f9bf07b641db282deae7f0fe1264489d5760299ae86a9c2a |
|
MD5 | 103a25660033e2cab6643930ed211b15 |
|
BLAKE2b-256 | 1eae8ed1b35f78ce0bc3621cb09609ccd74edbbf8ab080d6d18f3eb629c67ab1 |
Hashes for z3r_sramr_py-0.1.0-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e1b01d69c5c3415685628b554325be63d8ca8bd4729280cf749fd7d69ba3811 |
|
MD5 | 05ec78a1ce8dc52a2ef6810c6a67aa55 |
|
BLAKE2b-256 | fe5bb5d1b6ff4619bf467ac4074bc0b3e42a82b12753273db21feab60cfe545c |
Hashes for z3r_sramr_py-0.1.0-cp35-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf737d13361b02ce108a7320520bb0e78eea9cb2f15212f884787d14291d5a64 |
|
MD5 | e5a2cb0a26d5adf9082c3b6e1b563dfd |
|
BLAKE2b-256 | e38b4f1d671f700c5aa59c118e28d6c47494af7f6c1ba1f343e2c94d17456cc9 |
Hashes for z3r_sramr_py-0.1.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fc072cceb2b2b82a8c9ca359e8d90e74179c1ef077a12228cd130949b142626 |
|
MD5 | 85330eb8ec824b6a5ace2becd1cae632 |
|
BLAKE2b-256 | 205ca42b481bdba4e342658c679df9f191fe0c0c1ceadf4da5419e4fadd9e57d |