https://github.com/richgrov/Eyethon
A lightweight, embeddable Python interpreter
https://github.com/richgrov/Eyethon
interpreter microcontroller python
Last synced: 4 months ago
JSON representation
A lightweight, embeddable Python interpreter
- Host: GitHub
- URL: https://github.com/richgrov/Eyethon
- Owner: richgrov
- Created: 2024-09-08T07:07:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-07T03:20:35.000Z (8 months ago)
- Last Synced: 2025-06-07T04:22:14.012Z (8 months ago)
- Topics: interpreter, microcontroller, python
- Language: Python
- Homepage:
- Size: 299 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Eyethon
(pronounced "eye-thon")
A lightweight, embeddable, inspectable Python interpreter
## Why?
In the age of AI, writing code will be a task more for machines rather than humans. Models excel at
writing Python, but it performance and lack of portability restrict its use. Eyethon aims to
interpret a subset of Python that's not only runnable, but who's syntax tree is inspectable to be
converted to other languages, formats, or domains.
## Goals and non-goals
Eyethon hopes to:
- Be very lightweight
- Support some of Python's standard library
- Provide an API for running and inspecting code
MicroGD **does not** hope to:
- Use Just-in-time compilation
- Adhere 100% to every detail of Python (although this would be ideal)
# Roadmap
- ✅ Tokenization (97% passing)
- ✅ Parsing (55% passing)
- 🔄 Compiling
- 🔄 Interpreting
- ❌ Optimization
- 🔄 Rust and C API
- ❌ LSP
- ❌ Debugger
Eyethon uses tests from
[PocketPy](https://github.com/godotengine/godot/tree/master/modules/gdscript/tests)
to test spec compliance.
For now, working features are prioritized over performance and 100% compatibility.