Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"SAP" streaming parser API? #11

Open
pepijndevos opened this issue Aug 9, 2022 · 1 comment
Open

"SAP" streaming parser API? #11

pepijndevos opened this issue Aug 9, 2022 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@pepijndevos
Copy link

I might implement this if I feel like it but just wanted to drop the idea here. So basically this library is ideal for micropython on low memory devices, but doesn't have a way to parse bigger-than-ram inputs.

It seems like the core API up until _break_down is already an iterator that reads from a file-like object. So it seems like you'd just have to write a IterWire subclass that returns an iterator like (path, value) instead of assembling a dict or tuple. Would be a fun puzzle.

@pepijndevos pepijndevos changed the title "SAP" parser API? "SAP" streaming parser API? Aug 9, 2022
@dogtopus
Copy link
Owner

dogtopus commented Aug 9, 2022

Interesting idea. I currently don't have time dedicated to this library but feel free to send a PR if anyone got it working.

@dogtopus dogtopus added the enhancement New feature or request label Mar 2, 2023
@dogtopus dogtopus added this to the v2.1.0 milestone Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants