Skip to content

Working example of using the python sdk#14

Open
johngian wants to merge 3 commits intointerledger:mainfrom
johngian:working-example-python-sdk
Open

Working example of using the python sdk#14
johngian wants to merge 3 commits intointerledger:mainfrom
johngian:working-example-python-sdk

Conversation

@johngian
Copy link
Copy Markdown
Contributor

@johngian johngian commented Mar 7, 2026

This PR fixes some issues identified in the code while running a real world example. On top of that, it replicates the peer to peer example from the nodejs implementation of the SDK. This was done in order to have a once off way to verify that the majority of the functionality can work in a real environment.

This PR ships with some docs under /examples/peer-to-peer/README.md on what the example does.

@johngian johngian force-pushed the working-example-python-sdk branch 4 times, most recently from 83d14d6 to 1117cf6 Compare March 7, 2026 08:20
@johngian johngian changed the title Working example python sdk Working example of using python sdk Mar 7, 2026
@johngian johngian changed the title Working example of using python sdk Working example of using the python sdk Mar 7, 2026
@johngian johngian force-pushed the working-example-python-sdk branch from 1117cf6 to a7f3b3f Compare March 7, 2026 09:14
johngian added 3 commits March 7, 2026 17:20
* Use OutgoingPaymentWithSpentAmounts to pass model verification
* Fix hash mismatch because of trailing slash
* Add default=None for optional fields
* Fix assignment typo on get_outgoing_payments
* Make updatedAt optional because some time the API response doesn't return it
* Minor oversights because of lack of testing in a real env
* Docs for the example are on README.md
* Uses docker-compose to simplify orchestration
* It replicates the example from the nodejs sdk repo
* Spins off a temporary sidecar service to handle callback
* Everything is locked to current latest
* Remove deprecated dependency and serialize field manually
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant