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 dict with three
sub dicts: 'meta', 'stats', and 'equipment'. See keys.txt for a list of all
keys.
Can raise a ParseException if one of the validation checks fail or another error occurs.
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['equipment']['current rupees']}')
print(f'Collection Rate: {sram_map['stats']['collection rate']}')
print(f'Menu Time: {sram_map['stats']['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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file z3r_sramr_py-0.2.4-cp38-none-win_amd64.whl.
File metadata
- Download URL: z3r_sramr_py-0.2.4-cp38-none-win_amd64.whl
- Upload date:
- Size: 112.4 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac813b0669177a093d808ef93673c7d65f83fb33106ba685d22c9316d6856fb7
|
|
| MD5 |
376aa24e271f637119aa4cf69b4cb2f8
|
|
| BLAKE2b-256 |
a673e2a92c5cb0b3c3235b5c05a6a41dd4869e23408c19294b4958d69957d42f
|
File details
Details for the file z3r_sramr_py-0.2.4-cp38-cp38-manylinux1_x86_64.whl.
File metadata
- Download URL: z3r_sramr_py-0.2.4-cp38-cp38-manylinux1_x86_64.whl
- Upload date:
- Size: 143.2 kB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00731e943c54fd626521aebee46281e139de1c13d413fd39bbac4f0fc281c7e2
|
|
| MD5 |
9d7169da4fe9492840a6adbdc90912b6
|
|
| BLAKE2b-256 |
68f26c25d962eba8d462212459b9563c068d6cc42a6e2d0c8f5db60ed7809b33
|
File details
Details for the file z3r_sramr_py-0.2.4-cp38-cp38-macosx_10_7_x86_64.whl.
File metadata
- Download URL: z3r_sramr_py-0.2.4-cp38-cp38-macosx_10_7_x86_64.whl
- Upload date:
- Size: 119.9 kB
- Tags: CPython 3.8, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db83c8c68ad5a118ceb137bf9f7e421b05acadb6b429261a1c991aa13ed0fcb6
|
|
| MD5 |
6248af5a006c59f965dbfc4e2facd411
|
|
| BLAKE2b-256 |
c01490ee10b99e188f69e1c48b19de463427283573452552c6f0abaca4dd2e49
|
File details
Details for the file z3r_sramr_py-0.2.4-cp37-none-win_amd64.whl.
File metadata
- Download URL: z3r_sramr_py-0.2.4-cp37-none-win_amd64.whl
- Upload date:
- Size: 112.4 kB
- Tags: CPython 3.7, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b7c35c42b064782f558b312a3bd3e86ea1462fd28025d8200d76adecb23a7ce
|
|
| MD5 |
f15ae4f71e0943d80c59186b5d64fe33
|
|
| BLAKE2b-256 |
a8810b7645b88419d4a86196673bfd01d351761f79052d12cea5d05dccf903f0
|
File details
Details for the file z3r_sramr_py-0.2.4-cp37-cp37m-manylinux1_x86_64.whl.
File metadata
- Download URL: z3r_sramr_py-0.2.4-cp37-cp37m-manylinux1_x86_64.whl
- Upload date:
- Size: 143.2 kB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f2fcecd8dabccec186f6aab4cf2ccba6145b7c8ba2b58b6ea756200196d4feb
|
|
| MD5 |
c214f6739f90106f0571a8c9535f3e95
|
|
| BLAKE2b-256 |
9a20679bb92850695d0a35e156da0e036355d7e7a3fe2e541ba57efe036d0557
|
File details
Details for the file z3r_sramr_py-0.2.4-cp37-cp37m-macosx_10_7_x86_64.whl.
File metadata
- Download URL: z3r_sramr_py-0.2.4-cp37-cp37m-macosx_10_7_x86_64.whl
- Upload date:
- Size: 119.9 kB
- Tags: CPython 3.7m, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ddbaee3035ab98cd76b84f6cfc5d7da6ad9c67c33c1ed0827917dd940b061a7
|
|
| MD5 |
1d3d9833cecf59c7a849213c562dcfbb
|
|
| BLAKE2b-256 |
1f3fdfd3d551e703e58f8d76d08e4d04a61bc363ab35f16800a37545e7949abf
|
File details
Details for the file z3r_sramr_py-0.2.4-cp36-none-win_amd64.whl.
File metadata
- Download URL: z3r_sramr_py-0.2.4-cp36-none-win_amd64.whl
- Upload date:
- Size: 112.6 kB
- Tags: CPython 3.6, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90d1035f8c6ba86f2386fd204f5faad61fcb3c72c298e1c34871d649f40f5ff3
|
|
| MD5 |
7da00a62ccfcd3b93ddc381dd2059ea3
|
|
| BLAKE2b-256 |
637b5c8ae425efa489e272bb0c9d40a436ddea33b2d04324f56bd79ce15cb570
|
File details
Details for the file z3r_sramr_py-0.2.4-cp36-cp36m-manylinux1_x86_64.whl.
File metadata
- Download URL: z3r_sramr_py-0.2.4-cp36-cp36m-manylinux1_x86_64.whl
- Upload date:
- Size: 143.3 kB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58fee72a5796a0a3f9732ac39fe55cdaaeb92b9ed4f4c649df6ecdee1e044d2d
|
|
| MD5 |
1165ac2d32baa3a6fe5eda3949f50665
|
|
| BLAKE2b-256 |
bea8382bd2a52b357c282b65909cde6f9aa16854bfc9d9c87c337fd6cc2b46e7
|
File details
Details for the file z3r_sramr_py-0.2.4-cp36-cp36m-macosx_10_7_x86_64.whl.
File metadata
- Download URL: z3r_sramr_py-0.2.4-cp36-cp36m-macosx_10_7_x86_64.whl
- Upload date:
- Size: 120.0 kB
- Tags: CPython 3.6m, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
490f98b7a3b56c6b463bc289501eaa5e3e35e2ebc9e3f402dd71586b5bf49599
|
|
| MD5 |
94eb5035713d4a9e1931a6bd4cc4bcea
|
|
| BLAKE2b-256 |
1d447853c0ae9aae77bd096f64ba24da7118fc53633a4dcf118c0fe7d2cf8c6d
|
File details
Details for the file z3r_sramr_py-0.2.4-cp35-none-win_amd64.whl.
File metadata
- Download URL: z3r_sramr_py-0.2.4-cp35-none-win_amd64.whl
- Upload date:
- Size: 112.6 kB
- Tags: CPython 3.5, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83941d0f549281e7a62bf3a6172c1395518eef468e181e4aaa8e9c522b9a437a
|
|
| MD5 |
030a4d4613b91f1e6089a3c830780ec3
|
|
| BLAKE2b-256 |
4bc88edfdd8f82ac5775b6270a0bf0c97a1676a4ab158ece5f9b097099b707bf
|
File details
Details for the file z3r_sramr_py-0.2.4-cp35-cp35m-manylinux1_x86_64.whl.
File metadata
- Download URL: z3r_sramr_py-0.2.4-cp35-cp35m-manylinux1_x86_64.whl
- Upload date:
- Size: 143.3 kB
- Tags: CPython 3.5m
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60ffd97dff58f5f5f3455570f771631a6ce634ed9abe185988bfff97c9c994c7
|
|
| MD5 |
e4c5627907ea0664c85e7ccdf1496460
|
|
| BLAKE2b-256 |
77b4139f07b47adbaa07af48eee8cae41aa1c2c99a7de1a50084a87549aa888c
|