stellar / stellar-cli

CLI for Stellar developers
Apache License 2.0
74 stars 72 forks source link

Add python as a target for bindings #1633

Closed tomerweller closed 13 hours ago

tomerweller commented 2 months ago

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

overcat commented 2 months ago

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

olivmath commented 2 weeks ago

What is the current status of this issue?

I would like to do 🦀

overcat commented 2 weeks ago

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 commented 5 days ago

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 commented 21 hours ago

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

janewang commented 13 hours ago

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

Closing this issue