# strledger - Ledger Hardware Wallet Stellar Python bindings.
![example](https://github.com/lightsail-network/strledger/blob/main/img/example.png)
## Installation
```shell
pip install -U strledger
```
## Cli Usage
```text
Usage: strledger [OPTIONS] COMMAND [ARGS]...
Stellar Ledger commands.
This project is built on the basis of ledgerwallet, you can check ledgerwallet for
more features.
Options:
-v, --verbose Display exchanged APDU.
--help Show this message and exit.
Commands:
app-info Get Stellar app configuration info.
get-address Get Stellar public address.
sign-auth Sign a base64-encoded soroban authorization (HashIDPreimage).
sign-hash Sign a hex encoded hash.
sign-tx Sign a base64-encoded transaction envelope.
version Get strledger version info.
```
## Library Usage
```python
from strledger import StrLedger
client = StrLedger()
# Use the Stellar Python SDK to build a transaction, see https://github.com/StellarCN/py-stellar-base
transaction_envelope = ...
client.sign_transaction(transaction_envelope=transaction_envelope, keypair_index=0)
print(f"signed tx: {transaction_envelope.to_xdr()}")
```
Raw data
{
"_id": null,
"home_page": "https://github.com/lightsail-network/strledger",
"name": "strledger",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.8",
"maintainer_email": null,
"keywords": "stellar, ledger",
"author": "overcat",
"author_email": "4catcode@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/c0/60/52dfb165e0db3302f568a90a5f03a52e1448da75c209555ad9c538e49e8a/strledger-0.8.1.tar.gz",
"platform": null,
"description": "# strledger - Ledger Hardware Wallet Stellar Python bindings.\n\n![example](https://github.com/lightsail-network/strledger/blob/main/img/example.png)\n\n## Installation\n```shell\npip install -U strledger\n```\n\n## Cli Usage\n```text\nUsage: strledger [OPTIONS] COMMAND [ARGS]...\n\n Stellar Ledger commands.\n\n This project is built on the basis of ledgerwallet, you can check ledgerwallet for\n more features.\n\nOptions:\n -v, --verbose Display exchanged APDU.\n --help Show this message and exit.\n\nCommands:\n app-info Get Stellar app configuration info.\n get-address Get Stellar public address.\n sign-auth Sign a base64-encoded soroban authorization (HashIDPreimage).\n sign-hash Sign a hex encoded hash.\n sign-tx Sign a base64-encoded transaction envelope.\n version Get strledger version info.\n```\n\n## Library Usage\n\n```python\nfrom strledger import StrLedger\n\nclient = StrLedger()\n# Use the Stellar Python SDK to build a transaction, see https://github.com/StellarCN/py-stellar-base\ntransaction_envelope = ...\nclient.sign_transaction(transaction_envelope=transaction_envelope, keypair_index=0)\nprint(f\"signed tx: {transaction_envelope.to_xdr()}\")\n```",
"bugtrack_url": null,
"license": "MIT",
"summary": "Ledger Hardware Wallet Stellar Python bindings.",
"version": "0.8.1",
"project_urls": {
"Bug Tracker": "https://github.com/lightsail-network/strledger/issues",
"Documentation": "https://github.com/lightsail-network/strledger",
"Homepage": "https://github.com/lightsail-network/strledger",
"Repository": "https://github.com/lightsail-network/strledger"
},
"split_keywords": [
"stellar",
" ledger"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4d276b6fea4765d6aaa2250a8e1715e2dd2829e1c3e2fba8ea79a6af4a2a1c02",
"md5": "2db64110345f2285e78e52e6908d6bae",
"sha256": "92d08d6686613face1cd4054e6faa70aa8654c214d1bdf5b502a881241334517"
},
"downloads": -1,
"filename": "strledger-0.8.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2db64110345f2285e78e52e6908d6bae",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8",
"size": 9313,
"upload_time": "2024-07-25T00:43:35",
"upload_time_iso_8601": "2024-07-25T00:43:35.920416Z",
"url": "https://files.pythonhosted.org/packages/4d/27/6b6fea4765d6aaa2250a8e1715e2dd2829e1c3e2fba8ea79a6af4a2a1c02/strledger-0.8.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c06052dfb165e0db3302f568a90a5f03a52e1448da75c209555ad9c538e49e8a",
"md5": "d602d7836d90190a275de66bc89f8411",
"sha256": "522780961c82006c53eeb46f6b85ddcde3b04792fc318887b98b9a5dd21c1da0"
},
"downloads": -1,
"filename": "strledger-0.8.1.tar.gz",
"has_sig": false,
"md5_digest": "d602d7836d90190a275de66bc89f8411",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 7419,
"upload_time": "2024-07-25T00:43:37",
"upload_time_iso_8601": "2024-07-25T00:43:37.746560Z",
"url": "https://files.pythonhosted.org/packages/c0/60/52dfb165e0db3302f568a90a5f03a52e1448da75c209555ad9c538e49e8a/strledger-0.8.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-25 00:43:37",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "lightsail-network",
"github_project": "strledger",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "strledger"
}