lichess-org / berserk

Python client for the lichess API
https://lichess-org.github.io/berserk/
GNU General Public License v3.0
86 stars 43 forks source link

Implement missing API endpoints #6

Open benediktwerner opened 1 year ago

benediktwerner commented 1 year ago

The list below shows API endpoints that are currently still missing from berserk (generated by the check-endpoints.py script).

Feel free to choose any one and implement it.

See https://github.com/lichess-org/berserk/tree/master/berserk/clients for existing endpoint implementations.

New endpoints should have their responses typed. See https://github.com/lichess-org/berserk/blob/master/berserk/clients/opening_explorer.py/#L35 for an example of how to type dictionary responses.

For more info on the details of any specific endpoint, see https://lichess.org/api.

Also see the Get Started contributing section.

Virinas-code commented 1 year ago

I might start working on this issue, thanks for the list!

AKBuggy commented 1 year ago

@Virinas-code May I work with you on this. I want to learn how you are implementing.

Virinas-code commented 1 year ago

Literrally copy pasting code and changing endpoints and docs...

Virinas-code commented 1 year ago

(I'm testing it after. It isn't that hard to understand, you just need a bit of python knowledge.)

AKBuggy commented 1 year ago

Yes, I realise that since I am doing it for the first time, I am a little unsure on how to determine whether the code is functioning. I don't just mean coding; I mean the entire process. That's why I am requesting you, if possible, please teach me. Thank you.

thegrapesoda commented 1 year ago

@Virinas-code - do you have plans to implement /api/broadcast? If not, I have an implementation ready to go.

Virinas-code commented 1 year ago

If you have an implementation add it then, I'm not working on berserk right now, but I'll get back to it.

Virinas-code commented 1 year ago

I'll get back to berserk dev soon. What should I start with?

benediktwerner commented 1 year ago

I'd say just pick any endpoint or group of endpoints that sound useful or interesting.

Virinas-code commented 1 year ago

Ok, gonna fork it again and work on tablebase I think.

Virinas-code commented 1 year ago

I confirm I'm working on it right now.

skanjalkar commented 1 year ago

Hi,

I opened a PR #30 addressing some of these.

shaikhmudassir commented 1 year ago

Hi @benediktwerner I am starting to work on this checklist. Have any changes been made to it? It hasn't been updated since last month. Also, the above link for clients.py is broken.

benediktwerner commented 1 year ago

@shaikhmudassir I updated the list, two more endpoints have been implemented since. Though I guess still check the code before you add any new ones, it's always possible the list isn't 100% accurate. And the clients are now split into multiple files, I changed the link to the directory instead.

rpesche commented 1 year ago

I implemented one opening explorer endpoints: https://github.com/lichess-org/berserk/pull/32

Virinas-code commented 1 year ago

#43 Adding bulk pairing endpoints

No new tests were implemented. See #43 for more informations.

Virinas-code commented 1 year ago

What is the /api/racer endpoint? I can't find it in the docs.

benediktwerner commented 1 year ago

https://lichess.org/api#tag/Puzzles/operation/racerPost

Anupya commented 1 year ago

A majority of the still unchecked items (as of Nov 2nd 2023, 7:46 pm ET) have already been implemented and exist!

Here's what's still left:

kraktus commented 1 year ago

thanks, double checked and updated

jacksonthall22 commented 1 year ago

FYI, seems like client.analysis.get_cloud_evaluation() is not implemented (though it says it is in the readme): AttributeError: 'Client' object has no attribute 'analysis'

benediktwerner commented 12 months ago

That wasn't released yet, I released v0.13.2 with the recent changes.

rdev99 commented 8 months ago

Is this issue still open ?

If its open, how much api's are left

kraktus commented 8 months ago

Is this issue still open ?

If its open, how much api's are left

Hey, yes the endpoints not ticked are left to grab .

rdev99 commented 8 months ago

Thanks, I will work on it if anyone else is not working

kraktus commented 8 months ago

Cool, if you want to implement external-engine endpoints, make sure to check feedback given in #66 before

rdev99 commented 8 months ago

Hey,

I think these api's are already completed in the code but not ticked here.

https://explorer.lichess.ovh/master/pgn/{gameId}
https://explorer.lichess.ovh/masters

Also what is to be confirmed in https://explorer.lichess.ovh/lichess/history

FriedrichtenHagen commented 1 month ago

@kraktus I opened a pr that implements the advice given in #66. Could you take a look?