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0.0a3
2.0.0a2
2.0.0a1
2.0.0
13.2.1
13.2.0
13.1.0
13.0.0b1
13.0.0b0
13.0.0
12.3.0
12.2.1
12.2.0
12.1.0
12.0.0b6
12.0.0b5
12.0.0b4
12.0.0b3
12.0.0b2
12.0.0b1
12.0.0b0
12.0.0
11.1.0
11.0.0
10.0.0
1.4.0
1.3.2
1.3.1
1.3.0
1.2.2
1.2.1
1.2.0
1.1.4
1.1.3
1.1.2
1.1.0
1.0.3
1.0.2
1.0.1
1.0.0
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.9
0.1.10
توضیحات
The Python Stellar SDK library provides APIs to build transactions and connect to Horizon and Stellar RPC server.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | stellar-sdk-9.4.0 |
| نام | stellar-sdk |
| نسخه کتابخانه | 9.4.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | ['overcat <4catcode@gmail.com>'] |
| نویسنده | - |
| ایمیل نویسنده | overcat <4catcode@gmail.com>, Eno <appweb.cn@gmail.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/stellar-sdk/ |
| مجوز | - |
# Stellar Python SDK
[](https://github.com/StellarCN/py-stellar-base/actions)
[](https://stellar-sdk.readthedocs.io/en/latest/)
[](https://pypi.python.org/pypi/stellar-sdk)
[](https://codecov.io/gh/StellarCN/py-stellar-base)
[](https://pypi.python.org/pypi/stellar-sdk)
[](https://developers.stellar.org/docs/learn/fundamentals/stellar-consensus-protocol)
py-stellar-base is a Python library for communicating with
a [Stellar Horizon server](https://developers.stellar.org/docs/data/apis/horizon) and [Stellar RPC server](https://developers.stellar.org/docs/data/apis/rpc). It is used for building Stellar apps on Python. It supports **Python 3.10+** as
well as PyPy 3.10+.
It provides:
- a networking layer API for Horizon endpoints.
- a networking layer API for Stellar RPC server methods.
- facilities for building and signing transactions, for communicating with a Stellar Horizon and Stellar RPC instance, and for submitting transactions or querying network history.
## Documentation
py-stellar-base's documentation can be found at https://stellar-sdk.readthedocs.io.
## Installing
```text
pip install --upgrade stellar-sdk
```
If you need to use asynchronous, please use the following command to install the required dependencies.
```text
pip install --upgrade stellar-sdk[aiohttp]
```
If you need to [Shamir backup](https://trezor.io/learn/advanced/standards-proposals/what-is-shamir-backup) support, please use the following command to install the required dependencies.
```
pip install --upgrade stellar-sdk[shamir]
```
We follow [Semantic Versioning 2.0.0](https://semver.org/), and I strongly
recommend that you specify its major version number in the dependency
file to avoid the unknown effects of breaking changes.
## A Simple Example
You can find more examples [here](./examples).
```python
# Alice pay 10.25 XLM to Bob
from stellar_sdk import Asset, Server, Keypair, TransactionBuilder, Network
alice_keypair = Keypair.from_secret("SBFZCHU5645DOKRWYBXVOXY2ELGJKFRX6VGGPRYUWHQ7PMXXJNDZFMKD")
bob_address = "GA7YNBW5CBTJZ3ZZOWX3ZNBKD6OE7A7IHUQVWMY62W2ZBG2SGZVOOPVH"
server = Server("https://horizon-testnet.stellar.org")
alice_account = server.load_account(alice_keypair.public_key)
base_fee = 100
transaction = (
TransactionBuilder(
source_account=alice_account,
network_passphrase=Network.TESTNET_NETWORK_PASSPHRASE,
base_fee=base_fee,
)
.add_text_memo("Hello, Stellar!")
.append_payment_op(bob_address, Asset.native(), "10.25")
.set_timeout(30)
.build()
)
transaction.sign(alice_keypair)
response = server.submit_transaction(transaction)
print(response)
```
## stellar-contract-bindings
stellar-contract-bindings allows you to generate Python bindings for Stellar Soroban smart contracts, it makes calling
Stellar Soroban contracts easier. click [here](https://github.com/lightsail-network/stellar-contract-bindings) for more information.
## stellar-model
stellar-model allows you to parse the JSON returned by Stellar Horizon
into the Python models, click [here](https://github.com/StellarCN/stellar-model) for more information.
## Contributing
Contributions are welcome! See [CONTRIBUTING.md](./CONTRIBUTING.md) for more details.
## Links
- Document: https://stellar-sdk.readthedocs.io
- Code: https://github.com/StellarCN/py-stellar-base
- Examples: https://github.com/StellarCN/py-stellar-base/tree/main/examples
- Issue tracker: https://github.com/StellarCN/py-stellar-base/issues
- License: [Apache License 2.0](https://github.com/StellarCN/py-stellar-base/blob/master/LICENSE)
- Releases: https://pypi.org/project/stellar-sdk/
Thank you to all the people who have already contributed to py-stellar-base!
نیازمندی
| مقدار | نام |
|---|---|
| - | mnemonic>=0.20 |
| - | pydantic>=2.0.0 |
| - | pynacl>=1.4.0 |
| - | requests>=2.0.0 |
| - | requests-sse>=0.3 |
| ython_versio | toml>=0.10.2; |
| - | typing-extensions>=4.0.0 |
| - | xdrlib3>=0.1.1 |
| xtr | aiohttp>=3.9.1; |
| xtr | aiohttp-sse-client>=0.2.1; |
| xtr | shamir-mnemonic>=0.3.0; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| <4.0,>=3.10 | Python |
نحوه نصب
نصب پکیج whl stellar-sdk-9.4.0:
pip install stellar-sdk-9.4.0.whl
نصب پکیج tar.gz stellar-sdk-9.4.0:
pip install stellar-sdk-9.4.0.tar.gz