Skip to content

mirceapasoi/hub_py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hub_py

An incomplete port of @farcaster/hub-nodejs gRPC client and @farcaster/core protobuf definitions and utility functions for Python

Protocol buffers

To generate the latest protocol buffer Python code run this:

% ./src/hub_py/generate_proto.sh
A    src/hub_py/schemas
A    src/hub_py/schemas/gossip.proto
A    src/hub_py/schemas/hub_event.proto
A    src/hub_py/schemas/hub_state.proto
A    src/hub_py/schemas/id_registry_event.proto
A    src/hub_py/schemas/job.proto
A    src/hub_py/schemas/message.proto
A    src/hub_py/schemas/name_registry_event.proto
A    src/hub_py/schemas/request_response.proto
A    src/hub_py/schemas/rpc.proto
A    src/hub_py/schemas/sync_trie.proto
Exported revision 602.

Examples

For ease of use, the example scripts load data from a .env file:

FARCASTER_HUB=testnet1.farcaster.xyz:2283
FARCASTER_USE_SSL=true
FARCASTER_NETWORK=FARCASTER_NETWORK_TESTNET
# Used by write_data.py
FARCASTER_ID=<your-farcaster-id>
FARCASTER_MNEMONIC=<your-farcaster-mnemonic>
# If not specified, a random signer key will be generated
FARCASTER_SIGNER_KEY=<ed25519-private-key-for-signer>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published