farcaster-py icon indicating copy to clipboard operation
farcaster-py copied to clipboard

Support Hubs

Open fmhall opened this issue 1 year ago • 0 comments

🚀 Feature Request

Support hubs, and make the user experience as close to the traditional Warpcast API experience as possible.

🔈 Motivation

The Warpcast API is being deprecated at the end of the year.

📎 Additional context

Hubs use protobuf, so to interface with them we must generate protobuf types for each request/response and message type.

This makes the user experience a lot worse in Python, so we will need to create helper classes and functions that abstract away as much of the overhead as possible.

Initial work can be found here: #518

Progress:

  • [x] Create initial Hub client class
  • [x] Add generated protobuf classes
  • [x] Implement initial tests and Proof of Concept
  • [ ] Support every message type in the Hubble protocol
  • [ ] Create helper methods and classes to abstract away nuance of protobuf
  • [ ] Explore strong typing for request/response and message types
  • [ ] Write unit tests and integration tests for all hub endpoints and helper functions

fmhall avatar Sep 08 '23 21:09 fmhall