soroban-cli icon indicating copy to clipboard operation
soroban-cli copied to clipboard

Add python as a target for bindings

Open tomerweller opened this issue 1 year ago • 1 comments

Python is the second most used SDK in the Stellar ecosystem (after JS). It is often used by market makers and autogenerated bindings could reduce the cost of integration with defi protocols

cc @overcat

tomerweller avatar Sep 27 '24 19:09 tomerweller

That's indeed a great idea. I've added this to my TODO list.

overcat avatar Sep 28 '24 05:09 overcat

What is the current status of this issue?

I would like to do 🦀

olivmath avatar Nov 07 '24 19:11 olivmath

Hi, @olivmath this issue requires some Python improvements, I will start working on the Python side this week (I've been tied up with other projects lately).

If you're interested in contributing, feel free to check out other issues, or you can wait until I finish the Python improvements.

Thanks!

overcat avatar Nov 11 '24 10:11 overcat

In Python SDK 12.0.0-beta4, we have significantly reduced the difficulty of calling contracts, and an example is provided in the release notes. This also makes the subsequent work of creating bindings much simpler; we only need to extend ContractClient.

cc @olivmath

overcat avatar Nov 22 '24 10:11 overcat

I implemented it in Python, and I think we can add a Python option in stellar-cli and link to this project instead of adding another implementation in this repository?

example:

> stellar contract bindings python
Please use `stellar-contract-bindings` to generate Python bindings: https://github.com/lightsail-network/stellar-contract-bindings

See https://github.com/lightsail-network/stellar-contract-bindings

overcat avatar Nov 26 '24 13:11 overcat

Thank you @overcat for this https://github.com/lightsail-network/stellar-contract-bindings

Closing this issue

janewang avatar Nov 26 '24 21:11 janewang