Async Python client for devRant developer community.
Go to file
retoor 4d2c94ecea
All checks were successful
devranta build / Build (push) Successful in 1m29s
Rename build file.
2024-12-03 19:00:36 +01:00
.gitea/workflows Rename build file. 2024-12-03 19:00:36 +01:00
dist New build. 2024-12-03 17:59:38 +00:00
src Update comment. 2024-12-03 18:49:12 +01:00
.gitignore Initial commit. 2024-12-02 17:41:02 +01:00
Makefile Initial commit. 2024-12-02 17:41:02 +01:00
pyproject.toml Initial commit. 2024-12-02 17:41:02 +01:00
README.md Updated README.md. 2024-12-02 17:55:31 +01:00
setup.cfg Initial commit. 2024-12-02 17:41:02 +01:00

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