b5fec97682008737b031220f8be5be1592dcf423
The fix ensures the response object is deserialized via `await response.json()` before accessing the `"success"` key, preventing an `AttributeError` when the raw response lacks a `.get()` method. This corrects the empty reply issue when input is missing or malformed.
devRanta
devRanta is an async devrant client written in and for Python. Authentication is only needed for half of the functionality and thus username and password are optional parameters by constructing the main class of this package (Api).
You can find last packages in tar and wheel format here.
Running
make run
Testing
Tests are only made for methods not requireing authentication. I do not see value in mocking requests.
make test
How to use
Implementation:
from devranta.api import Api
api = Api(username="optional!", password="optional!")
async def list_rants():
async for rant in api.get_rants():
print(rant["user_username"], ":", rant["text"])
See tests for examples on how to use.
Todo
- voting comment
- edit message
Languages
Python
94.5%
Makefile
5.5%