EDIT: This project has been mostly finished as of now. The GitHub Project is linked below, but please bear in mind that it also has a wiki on how this package works.
A couple of days ago I asked in this reddit post on the wrong place if .json compatibility would be possible with the moveset-usage files on smogon.stats.
It was honestly quite good that there was no traction behind it, as it inspired me to make something of my own.
Here is the GitHub project for it. It's an importable python file with functions in it to both request and convert the files into usable JSON compatible dictionaries.
I have already rooted out some of the issues that were in it, but there are probably some more (though most likely easily fixable) which turns this:
into this:
There were still some slight issues I ran into during the creation of this, which I have put on the GitHub project's main and wiki page, as well have I opened an issue on it.
Now this is of course only in Python (and probably not perfect). I'd like to start refining this and maybe (help) porting this over to other languages, or possibly even plug it into the site itself.
I reckon it would be very useful to have this as an endpoint for get-requests as that would skip having to port it over to many other languages entirely.
I will probably start making it compatible with other files as well in the near future, which I can then either put in a new file in the same repo or in the same one.
Thanks for reading, have a nice day :)
A couple of days ago I asked in this reddit post on the wrong place if .json compatibility would be possible with the moveset-usage files on smogon.stats.
It was honestly quite good that there was no traction behind it, as it inspired me to make something of my own.
Here is the GitHub project for it. It's an importable python file with functions in it to both request and convert the files into usable JSON compatible dictionaries.
I have already rooted out some of the issues that were in it, but there are probably some more (though most likely easily fixable) which turns this:

into this:

There were still some slight issues I ran into during the creation of this, which I have put on the GitHub project's main and wiki page, as well have I opened an issue on it.
Now this is of course only in Python (and probably not perfect). I'd like to start refining this and maybe (help) porting this over to other languages, or possibly even plug it into the site itself.
I reckon it would be very useful to have this as an endpoint for get-requests as that would skip having to port it over to many other languages entirely.
I will probably start making it compatible with other files as well in the near future, which I can then either put in a new file in the same repo or in the same one.
Thanks for reading, have a nice day :)
Last edited: