tetanes-py
Python bindings for TetaNES - a NES emulator written in Rust.
Install
pip install tetanes-py
Or from source:
pip install git+https://github.com/alexeiquickcode/tetanes.git#subdirectory=tetanes-python
Usage
Basic emulator usage:
import tetanes_py
# Create emulator
env = tetanes_py.NesEnv(headless=True)
# Load ROM from file
with open("game.nes", "rb") as f:
rom_data = f.read()
env.load_rom("game.nes", rom_data)
# Step through frames
obs = env.step(0) # 0 = no button pressed
Gymnasium Environment
Works with OpenAI Gym/Gymnasium for RL:
import gymnasium as gym
import tetanes_py
env = gym.make("ExampleGame-v0", rom_path="game.nes")
obs, info = env.reset()
for _ in range(1000):
action = env.action_space.sample()
obs, reward, terminated, truncated, info = env.step(action)
if terminated or truncated:
obs, info = env.reset()
Requirements
- Python 3.9+
- NumPy
- Gymnasium (optional, for RL environment)
License
MIT OR Apache-2.0
Metadata
Release files for tetanes-py 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tetanes_py-0.1.9-cp38-abi3-win_amd64.whl | CPython 3.8 | abi3 | Windows x86-64 | Details for tetanes_py-0.1.9-cp38-abi3-win_amd64.whl |
| tetanes_py-0.1.9-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.8 | abi3 | Linux glibc 2.17+ x86-64 | Details for tetanes_py-0.1.9-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
| tetanes_py-0.1.9-cp38-abi3-macosx_11_0_arm64.whl | CPython 3.8 | abi3 | macOS 11.0+ ARM64 | Details for tetanes_py-0.1.9-cp38-abi3-macosx_11_0_arm64.whl |
Total release size: 1.3 MB
Release files / tetanes_py-0.1.9-cp38-abi3-win_amd64.whl
| Download URL | tetanes_py-0.1.9-cp38-abi3-win_amd64.whl |
|---|---|
| Size | 353.3 kB |
| Tags | CPython 3.8 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
0c0470386da6e1904980a96d09fc990825c3e722a9164276ebba450b5330ed22
|
|
BLAKE2b-256 checksum How to use checksums |
bdf48abcb97560f00f7840dfc52de9af87e595d99562048e5ee0fea5bff242bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / tetanes_py-0.1.9-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | tetanes_py-0.1.9-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 483.3 kB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
85b6a652b121764f74f359f26a2a29f5a1734b6510dce2f337461de966494c15
|
|
BLAKE2b-256 checksum How to use checksums |
fe999e3b4ad76e987978624a0fe1852e23685a1b0c8a5be9d31692a9789132cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / tetanes_py-0.1.9-cp38-abi3-macosx_11_0_arm64.whl
| Download URL | tetanes_py-0.1.9-cp38-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 436.8 kB |
| Tags | CPython 3.8 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
56b560f34e0e2dc1d788ba971e15d190b831b48eb2bc3e7302a72ec0b36fcf00
|
|
BLAKE2b-256 checksum How to use checksums |
502d6762dac790dc58c806bf4802a4e4cb29954ea5f2bbc6d8228aff02ce7574
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for tetanes-py 0.1.9
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.