Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.blue

6 replies

create_form(locals()) is so elegant! Each API endpoint is almost entirely described by the method signature alone, about as DRY as can be. Very clever (the good kind!)

4
lemmy.ml

Nice! I had created a partial implementation of the API in my own project but I think I'll replace it with yours this weekend :)

3

I like the idea of a Reddit-Lemmy cross-poster! It should make transitioning to Lemmy a bit easier for those used to seeing more Reddit-like content.

1
programming.dev

Just checked it out. Big fan of the simplicity you've kept with this. Do you think it would be worth adding in some kind of rate limiting functionality?

3
travisreply
lemmy.blue

I believe rate limits (messages, images, sign-ups etc.) can be defined for a site 1.) on creation using the create_site function and 2.) editing a site using the edit_site function.

1

I think that is if you are setting the rate limit for a new instance (which I suppose could only be useful when automating instance setup? Otherwise, I don't see a purpose for those endpoints).

What I meant was rate limiting functionality client side. So you can respect the rate limit of whatever instance you are interacting with. Either some kind of token bucket or exponential backoff.

1

You reached the end

GitHub - tjkessler/plemmy: A Python package for accessing the Lemmy API | Spyke