cdown wrote:I've started writing a library to access the AUR API in Python 3, mostly as an exercise for me to learn what has changed since Python 2.
I recently learned Python. I learned about the great Python 2 and Python 3 division of opinions. After some time, I decided to read a list of the differences between Python 2 and 3. I was surprised. I discovered that, I just don't think they're all that different. But, I suppose it depends a lot on what type of application is being written.
What is your opinion?
If you've not been programming Python for a long time probably they look very similar, and they are. There have been a few times I've tripped up because of the changes to strings (mostly expectations about what type of object a particular method will return).
Out of curiosity, are you aware that there already is a Python-3 library for AUR automation and interaction?
I wasn't aware, but I didn't look very hard when I first started this project. At least now people will have multiple options to choose from.
I think my project also has a smaller scope than yours, I'm only intending to implement the RPC API. Another thing I want to implement down the road is out of the box compatibility with Python 2.6+, not sure if that already works with yours.
]]>I've started writing a library to access the AUR API in Python 3, mostly as an exercise for me to learn what has changed since Python 2.
I recently learned Python. I learned about the great Python 2 and Python 3 division of opinions. After some time, I decided to read a list of the differences between Python 2 and 3. I was surprised. I discovered that, I just don't think they're all that different. But, I suppose it depends a lot on what type of application is being written.
What is your opinion?
]]>search, msearch, and info are implemented. Main things missing:
- More unit test coverage
- Documentation (for now, look at tests-real to see what you should do, basically you just need AURClient.[method]).
- multiinfo queries
Please feel free to submit pull requests/etc. Once it's more complete I'll sort out an AUR package.
- GitHub: https://github.com/cdown/pyaur
- Travis: https://travis-ci.org/cdown/pyaur