neonize icon indicating copy to clipboard operation
neonize copied to clipboard

The documentation of the library seems entirely broken

Open George3d6 opened this issue 7 months ago • 2 comments

Asyncio example:

import asyncio
from neonize.aioze.client import NewAClient
from neonize.aioze.events import MessageEv, ConnectedEv

async def main():
    client = NewAClient("async_bot")
    
    @client.event
    async def on_message(client: NewAClient, event: MessageEv):
        if event.message.conversation == "ping":
            await client.reply_message("pong! 🏓", event.message)
    
    await client.connect()

asyncio.run(main())

Literally nothing happens, just runs with no outputs and stops, no db file is created, no errors logs, an unused ConnectedEv

Adding an await event.wait() (`from neonize.aioze.events import event) makes it run ... but, no auth seq is initiated so it's... well, idk what it's doing, certainly not working.


The Basic client setup example

Crashes with:

Traceback (most recent call last):
  File "/Users/george/granadahealth/codebase/be/wttp.py", line 9, in <module>
    client = NewClient(
             ^^^^^^^^^^
TypeError: NewClient.__init__() got an unexpected keyword argument 'database'

The quick start is broken to (see #148 ) -- it's rather hard to tell if this is because the wrapper is no longer up to date with the underlying library or just lacks documentation (the "docs" link is a list of method, functions and types --- so it doesn't much help)

As it stands it's hard to figure out if this is a 99% working library where no attention went into documenting it or a completely forgotten project that would require a lot of maintenance to bring up to speed.

George3d6 avatar Aug 18 '25 22:08 George3d6

It seems to be an issue with the latest version posted to PyPi

0.3.11 was working just fine for me, but when I update to 0.3.11.post1 , I get no output as well.

BlauerMan avatar Sep 23 '25 14:09 BlauerMan

Updated to the latest version (0.3.11.1) from releases but the issue persists.

0.3.11 was working perfectly fine with no issues, but the same code on 0.3.11.1 doesn't even produce any output.

BlauerMan avatar Sep 23 '25 14:09 BlauerMan