farcaster-py
farcaster-py copied to clipboard
Hub interface class and supporting code
Description
Initial, basic, hub interface class and supporting code.
Can be used like this:
from farcaster.hub.generated import request_response_pb2
hub = Hub(mnemonic="x", hub_address="nemes.farcaster.xyz:2283")
request = request_response_pb2.FidRequest(fid=50)
response = hub.client.GetCastsByFid(request)
assert len(response.messages) > 266
Related Issue
Type of Change
- [ ] 📚 Examples / docs / tutorials / dependencies update
- [ ] 🔧 Bug fix (non-breaking change which fixes an issue)
- [ ] 🥂 Improvement (non-breaking change which improves an existing feature)
- [x] 🚀 New feature (non-breaking change which adds functionality)
- [ ] 💥 Breaking change (fix or feature that would cause existing functionality to change)
- [ ] 🔐 Security fix
Checklist
- [ ] I've read the
CODE_OF_CONDUCT.md
document. - [ ] I've read the
CONTRIBUTING.md
guide. - [ ] I've updated the code style using
make codestyle
. - [ ] I've written tests for all new methods and classes that I created.
- [ ] I've written the docstring in Google format for all the methods and classes that I used.