Sign In

Close
Forgot your password? No account yet?

PyWeasyl - Python bindings for Weasyl! by rechner

I've been working on some projects that'll interact with the Weasyl API and thought I'd share it as a package for other developers to use.

See more at my github!

PyWeasyl - Python bindings for Weasyl!

rechner

Journal Information

Views:
338
Comments:
6
Favorites:
2
Rating:
General

Comments

  • Link

    What all will it do, in layman's terms for the non programming minded?

    • Link

      We interact with websites like Weasyl in a way that humans can understand, but is hard for software that isn't running on the same website to interact with. An API (Application Programming Interface) offers a way for programs to interact with other programs in a way that's easier for programs to deal with.

      What I've done is take the web API that Weasyl offers and wrote a module that makes it easy to use in the Python programming language. So anyone who wants to write software that uses Weasyl's data can do so easily from python, without having to worry about the specifics of how Weasyl's API works.

      To give you an idea, to find out how many notifications a user has without pyweasyl, it would take about 30 lines of code to deal with sending the request, handling errors, parsing the response, so on... but with pyweasyl, it'd just be:

      api = Weasyl()
      api.message_summary()

      And that's it! Much shorter than having to deal with the requests yourself. (I hope that made sense D:)

      • Link

        It makes sense to me, thanks. even in my current sleep deprived drunken state hehe. I was just curious.

  • Link

    I wonder if we can get IFFT working with Weasyl. Especially handy for like... a push notification when your favorite artist starts streaming perhaps?

    • Link

      Whoops, I ment IFTTT. (IF this then that!)

  • Link

    Dude if this works then you've made a project I'm making much less time consuming/better. :3