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

GPT-4 generated Python port #18

Open
aiwebb opened this issue Apr 25, 2023 · 1 comment
Open

GPT-4 generated Python port #18

aiwebb opened this issue Apr 25, 2023 · 1 comment

Comments

@aiwebb
Copy link

aiwebb commented Apr 25, 2023

https://gist.github.com/aiwebb/cea116f09b7a5413177158d6f2e88749

Couldn't find any existing Python solutions that handled the problem quite as well as this library – ijson is the closest, but unfortunately discards incomplete fields at the end – so I ported it and it's working very well. Dropping here for discoverability.

@matthewdeanmartin
Copy link

Oh great minds think alike! I did the same thing (let chatgpt4 translate it), ran mypyc on it so it runs at native speed and published it pypi.

I also translated the unit tests & added some more stress testing & compared it against the 2 other python libraries that do much the same thing.

https://pypi.org/project/untruncate-json/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants