Skip to main content

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']}')

Release files for z3r-sramr-py 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for z3r-sramr-py 0.2.4
File
z3r_sramr_py-0.2.4-cp38-none-win_amd64.whl CPython 3.8 none Windows x86-64 Details
z3r_sramr_py-0.2.4-cp38-cp38-manylinux1_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.5+ x86-64 Details
z3r_sramr_py-0.2.4-cp38-cp38-macosx_10_7_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.7+ x86-64 Details
z3r_sramr_py-0.2.4-cp37-none-win_amd64.whl CPython 3.7 none Windows x86-64 Details
z3r_sramr_py-0.2.4-cp37-cp37m-manylinux1_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64 Details
z3r_sramr_py-0.2.4-cp37-cp37m-macosx_10_7_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.7+ x86-64 Details
z3r_sramr_py-0.2.4-cp36-none-win_amd64.whl CPython 3.6 none Windows x86-64 Details
z3r_sramr_py-0.2.4-cp36-cp36m-manylinux1_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 Details
z3r_sramr_py-0.2.4-cp36-cp36m-macosx_10_7_x86_64.whl CPython 3.6 CPython 3.6 pymalloc macOS 10.7+ x86-64 Details
z3r_sramr_py-0.2.4-cp35-none-win_amd64.whl CPython 3.5 none Windows x86-64 Details
z3r_sramr_py-0.2.4-cp35-cp35m-manylinux1_x86_64.whl CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64 Details

Total release size: 1.4 MB

Release files / z3r_sramr_py-0.2.4-cp38-none-win_amd64.whl

Download URL z3r_sramr_py-0.2.4-cp38-none-win_amd64.whl
Size 112.4 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
ac813b0669177a093d808ef93673c7d65f83fb33106ba685d22c9316d6856fb7
BLAKE2b-256 checksum
How to use checksums
a673e2a92c5cb0b3c3235b5c05a6a41dd4869e23408c19294b4958d69957d42f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.7.8

Release files / z3r_sramr_py-0.2.4-cp38-cp38-manylinux1_x86_64.whl

Download URL z3r_sramr_py-0.2.4-cp38-cp38-manylinux1_x86_64.whl
Size 143.2 kB
Tags CPython 3.8 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
00731e943c54fd626521aebee46281e139de1c13d413fd39bbac4f0fc281c7e2
BLAKE2b-256 checksum
How to use checksums
68f26c25d962eba8d462212459b9563c068d6cc42a6e2d0c8f5db60ed7809b33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.8.0

Release files / z3r_sramr_py-0.2.4-cp38-cp38-macosx_10_7_x86_64.whl

Download URL z3r_sramr_py-0.2.4-cp38-cp38-macosx_10_7_x86_64.whl
Size 119.9 kB
Tags CPython 3.8 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
db83c8c68ad5a118ceb137bf9f7e421b05acadb6b429261a1c991aa13ed0fcb6
BLAKE2b-256 checksum
How to use checksums
c01490ee10b99e188f69e1c48b19de463427283573452552c6f0abaca4dd2e49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.7.8

Release files / z3r_sramr_py-0.2.4-cp37-none-win_amd64.whl

Download URL z3r_sramr_py-0.2.4-cp37-none-win_amd64.whl
Size 112.4 kB
Tags CPython 3.7 Windows x86-64
SHA-256 checksum
How to use checksums
9b7c35c42b064782f558b312a3bd3e86ea1462fd28025d8200d76adecb23a7ce
BLAKE2b-256 checksum
How to use checksums
a8810b7645b88419d4a86196673bfd01d351761f79052d12cea5d05dccf903f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.7.8

Release files / z3r_sramr_py-0.2.4-cp37-cp37m-manylinux1_x86_64.whl

Download URL z3r_sramr_py-0.2.4-cp37-cp37m-manylinux1_x86_64.whl
Size 143.2 kB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
7f2fcecd8dabccec186f6aab4cf2ccba6145b7c8ba2b58b6ea756200196d4feb
BLAKE2b-256 checksum
How to use checksums
9a20679bb92850695d0a35e156da0e036355d7e7a3fe2e541ba57efe036d0557
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.8.0

Release files / z3r_sramr_py-0.2.4-cp37-cp37m-macosx_10_7_x86_64.whl

Download URL z3r_sramr_py-0.2.4-cp37-cp37m-macosx_10_7_x86_64.whl
Size 119.9 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
7ddbaee3035ab98cd76b84f6cfc5d7da6ad9c67c33c1ed0827917dd940b061a7
BLAKE2b-256 checksum
How to use checksums
1f3fdfd3d551e703e58f8d76d08e4d04a61bc363ab35f16800a37545e7949abf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.7.8

Release files / z3r_sramr_py-0.2.4-cp36-none-win_amd64.whl

Download URL z3r_sramr_py-0.2.4-cp36-none-win_amd64.whl
Size 112.6 kB
Tags CPython 3.6 Windows x86-64
SHA-256 checksum
How to use checksums
90d1035f8c6ba86f2386fd204f5faad61fcb3c72c298e1c34871d649f40f5ff3
BLAKE2b-256 checksum
How to use checksums
637b5c8ae425efa489e272bb0c9d40a436ddea33b2d04324f56bd79ce15cb570
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.7.8

Release files / z3r_sramr_py-0.2.4-cp36-cp36m-manylinux1_x86_64.whl

Download URL z3r_sramr_py-0.2.4-cp36-cp36m-manylinux1_x86_64.whl
Size 143.3 kB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
58fee72a5796a0a3f9732ac39fe55cdaaeb92b9ed4f4c649df6ecdee1e044d2d
BLAKE2b-256 checksum
How to use checksums
bea8382bd2a52b357c282b65909cde6f9aa16854bfc9d9c87c337fd6cc2b46e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.8.0

Release files / z3r_sramr_py-0.2.4-cp36-cp36m-macosx_10_7_x86_64.whl

Download URL z3r_sramr_py-0.2.4-cp36-cp36m-macosx_10_7_x86_64.whl
Size 120.0 kB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
490f98b7a3b56c6b463bc289501eaa5e3e35e2ebc9e3f402dd71586b5bf49599
BLAKE2b-256 checksum
How to use checksums
1d447853c0ae9aae77bd096f64ba24da7118fc53633a4dcf118c0fe7d2cf8c6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.7.8

Release files / z3r_sramr_py-0.2.4-cp35-none-win_amd64.whl

Download URL z3r_sramr_py-0.2.4-cp35-none-win_amd64.whl
Size 112.6 kB
Tags CPython 3.5 Windows x86-64
SHA-256 checksum
How to use checksums
83941d0f549281e7a62bf3a6172c1395518eef468e181e4aaa8e9c522b9a437a
BLAKE2b-256 checksum
How to use checksums
4bc88edfdd8f82ac5775b6270a0bf0c97a1676a4ab158ece5f9b097099b707bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.7.8

Release files / z3r_sramr_py-0.2.4-cp35-cp35m-manylinux1_x86_64.whl

Download URL z3r_sramr_py-0.2.4-cp35-cp35m-manylinux1_x86_64.whl
Size 143.3 kB
Tags CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
60ffd97dff58f5f5f3455570f771631a6ce634ed9abe185988bfff97c9c994c7
BLAKE2b-256 checksum
How to use checksums
77b4139f07b47adbaa07af48eee8cae41aa1c2c99a7de1a50084a87549aa888c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.8.0

Release history Release notifications | RSS feed

This release

0.2.4 This release

11 release files

0.2.3

11 release files

0.2.2

11 release files

0.2.1

11 release files

0.2.0

4 release files

0.1.2

11 release files

0.1.1

11 release files

0.1.0

11 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page