ccubed / PyMoe

Welcome to Pymoe, the only python lib you'll ever need if you need anime/manga on the python platform.
https://ccubed.github.io/PyMoe/
MIT License
84 stars 13 forks source link

VNDB Enhancements #11

Closed ccubed closed 7 years ago

ccubed commented 8 years ago

I wonder if anyone even uses the VNDB binding but here goes. I'm an effort to bring upgrades, I'm thinking about borrowing some of my encapsulations from the MAL design for get and set. Set and Get are super complicated queries and I've thought about how to make them better. I decided I can make them somewhat easier on the programmer by using a structure and some Enums. Essentially, this would allow the programmer to create an instance of a Set object that you would assign variables to and then internally I can convert those values into a proper query. So for instance:

a = SetCmd()
a.type = stype["votelist"]
a.id = 122
a.fields # would just show vote
a.fields.vote = 25

Would this interrupt anyone's work flow? Does it make it better? Worse?

ccubed commented 8 years ago

Assuming I get no responses on this, I'm going to look at deploying this by 11/19

ccubed commented 7 years ago

I have already started work on this. No reason to leave this open.