Hello guys, I want to start off with a huge thanks to Niels Lohmann for the amazing json library and point to point documentation. With his help I am now able to easily parse the JSON response, and the intuitive syntax is helping me extract contents from JSON in C++ just like I would do in python.
Today I didn't do much in the code perspective, instead I tried to understand the responses from Pypi while sending requests. When I queried a simple library like pandas, I was at first shocked to see the ~43k line response which alone was around 37 MB (Yes that is 37 MegaBytes). I have to first extract the latest version from the JSON, which at first, I thought can be done by comparing the version numbers. But it has a problem, some versions of pandas are like "1.4.0rc0"
that will return error if compared traditionally and this is not only with pandas, but I also saw this naming scheme with other libraries. Therefore, I'll have to design another way that extracts the latest version. Also, I saw that Pypi also returns the urls for downloading packages for all operating systems. So, I also have to check which OS will the users use and then download the correct wheel package and build it.
This all will take a lot of time, but I am confident that I will be able to give it the time it deserves and create something good for all of us.
Thanks! 🫡
Top comments (0)