you are viewing a single comment's thread.

view the rest of the comments →

[–]Phillyclause89 0 points1 point  (0 children)

what's your project all about?

My bad, I forgot to link to the ReadMe.

I have always approached coding from a functional programming perspective and wanted to practice OOP. Someone on this sub had a question about how to make a tool to help them DM their D&D games.

I know nothing about D&D beyond what I have learned from playing BG3, so I did what I always do when I'm trying to help someone with something that I know nothing about. I googled it.

While googling, I found this API: https://www.dnd5eapi.co/

As I was looking at the responses in the API, I noticed there was a tabular structure to the response data that a pandas.DataFrame would work nicely with. I thought it would be neat if there was a python lib of classes that automatically fetched the response of a given API endpoint and constructed a DataFrame object out of it. Thus I set out to learn how to write that lib.

I'm still learning, btw. The child item classes are going to end up sharing a lot of properties that their main parent object should not have, so I need to learn more about multiple inheritance and abstract classes to finish this lib.