• db0@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        15
        ·
        1 year ago

        We have quite a few examples and the code is statically typed and well commented. I hope we can figure out an automatic doc creation system

        • maegul@lemmy.ml
          link
          fedilink
          arrow-up
          9
          ·
          1 year ago

          Where … for those who don’t know … Motörhead was band headed by a fellow named … “Lemmy” (who’s partly responsible for the name of this place!)

    • makingStuffForFun@lemmy.ml
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      I’d love to write a bot for my own community. I used to use praw, when reddit was a thing.

      Can you see your wrapper being used this way? If so, is it ready for this yet? If so, is there any example code or docs on this?

      Thanks for your work, it’s very much appreciated.

    • Machefi@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 year ago

      (Sorry for repeating myself, my instance had a minor rollback)

      Where does the name come from and what’s going on on that logo? It looks like a snake with sunglasses, but I can’t locate it’s head or tail.

      • varaki@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        The late singer of the legendary metal band named Motörhead was called Ian Fraser Kilmister, but he was known by his nickname “Lemmy”. That’s where the name comes from, Python combined with Motörhead.

    • carlesmu
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Thanks for the wrapper :)

      Two questions:

      1. Where can I find the relation between languages and the languages_id ints?

      2. When I log in into a lemmy instance I check the protected member _requestor.nodeinfo to detect if the problem it’s the connection or the user/password:

        lemmy = Lemmy(instance)
        
        if not lemmy.log_in(user, password):
            if not lemmy._requestor.nodeinfo:
                raise LemmyException(f"Sorry, cannot connect to lemmy instance {instance}.")
            raise LemmyException(
                f"Sorry, cannot login {user} into {instance}. Bad user or wrong password."
            )
        

        There is a better way to validate it?

    • redrum@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      I think that this question from my non bot account has not reached you:

      @carlesmu@lemmygrad.ml wrote:

      Thanks for the wrapper :)

      Two questions:

      1. Where can I find the relation between languages and the languages_id ints?

      2. When I log in into a lemmy instance I check the protected member _requestor.nodeinfo to detect if the problem it’s the connection or the user/password:

         lemmy = Lemmy(instance)
        
         if not lemmy.log_in(user, password):
             if not lemmy._requestor.nodeinfo:
                 raise LemmyException(f"Sorry, cannot connect to lemmy instance {instance}.")
             raise LemmyException(
                 f"Sorry, cannot login {user} into {instance}. Bad user or wrong password."
             )
        

        There is a better way to validate it?

      • db0@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        I believe pythorhead writes a specific log when you try too login to a non python instance. The node info likewise has a function to retrieve it