Skip to main content

spiky-nes

Python bindings for SpikyNES, a toy NES emulator.

Supported mappers: 0 (NROM), 1 (MMC1), 2 (UxROM), 3 (CNROM), 4 (MMC3).

Installation

pip install spiky-nes

Quick Start

import spiky_nes

emulator = spiky_nes.Emulator()
assert emulator.load_rom("game.nes")

emulator.press(spiky_nes.Button.START)
audio = emulator.run_frame(sample_rate=44100)
emulator.release(spiky_nes.Button.START)

rgba = emulator.frame_buffer()  # 256 * 240 * 4 bytes

Saving a frame with Pillow:

from PIL import Image

Image.frombytes("RGBA", (spiky_nes.SCREEN_WIDTH, spiky_nes.SCREEN_HEIGHT), emulator.frame_buffer()).save("frame.png")

Metadata

Release files for spiky-nes 0.1.0

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

Source distribution (sdist)

Source distribution for spiky-nes 0.1.0
File Size Uploaded Provenance Actions
spiky_nes-0.1.0.tar.gz 36.0 kB Without provenance Details for spiky_nes-0.1.0.tar.gz

Release files / spiky_nes-0.1.0.tar.gz

Download URL spiky_nes-0.1.0.tar.gz
Size 36.0 kB
Tags Source
SHA-256 checksum
How to use checksums
11ac283cb9905e0346e3cdbdade14d01e8134b6da0dbdf8949de1add07ed4761
BLAKE2b-256 checksum
How to use checksums
4c72068f572b24144df0a697a9fd873576e2afd3fa56f46a9c6223f8688f4f00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.20

Security for spiky-nes 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

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