{"id":15358579,"url":"https://github.com/tupui/soroban-cli-python","last_synced_at":"2026-03-04T02:02:53.710Z","repository":{"id":224408563,"uuid":"762874850","full_name":"tupui/soroban-cli-python","owner":"tupui","description":"API and CLI for Soroban contracts in Python","archived":false,"fork":false,"pushed_at":"2025-09-01T00:29:03.000Z","size":38,"stargazers_count":6,"open_issues_count":5,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-01T02:36:32.288Z","etag":null,"topics":["blockchain","cryptocurrency","smart-contracts","soroban","stellar","stellar-network"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/soroban/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tupui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-02-24T23:32:46.000Z","updated_at":"2025-09-01T00:29:05.000Z","dependencies_parsed_at":"2024-03-12T00:33:28.584Z","dependency_job_id":"81b41098-f44f-4a4d-8423-e674a8fe4482","html_url":"https://github.com/tupui/soroban-cli-python","commit_stats":{"total_commits":41,"total_committers":1,"mean_commits":41.0,"dds":0.0,"last_synced_commit":"68efd0ae3ef8900a1d3ad53838aba85892b6e478"},"previous_names":["tupui/soroban-cli-python"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/tupui/soroban-cli-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tupui%2Fsoroban-cli-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tupui%2Fsoroban-cli-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tupui%2Fsoroban-cli-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tupui%2Fsoroban-cli-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tupui","download_url":"https://codeload.github.com/tupui/soroban-cli-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tupui%2Fsoroban-cli-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30069237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T01:03:42.280Z","status":"online","status_checked_at":"2026-03-04T02:00:07.464Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","cryptocurrency","smart-contracts","soroban","stellar","stellar-network"],"created_at":"2024-10-01T12:41:51.636Z","updated_at":"2026-03-04T02:02:53.638Z","avatar_url":"https://github.com/tupui.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API and CLI for Soroban contracts in Python\n\nThis package provide tools to interact with Soroban contracts in Python. The\ngoal is to provide a simple feature set while not depending on the Rust SDK.\nThis can be useful in environment where Rust and the SDK might be more\ndifficult to get working (like a Raspberry Pi).\n\n## Getting started\n\n```\npip install soroban\n```\n\nThis provides a simple way to call contracts without needing to install the\nRust SDK and is a higher level interface compared to using the Python SDK.\n\n```python\nimport soroban\n\nsoroban.invoke(contract_id=\"AAAA...\", function_name=\"increment\")\n```\n\nIdentity and Network configurations are automatically pulled from the\nlocal configuration or the current working directory. See bellow.\n\nIt also provides a CLI\n```shell\nsoroban invoke C... version --source-account=...\n```\n\n## Usage\n\nThe main feature is to be able to call a Soroban contract function: `soroban.invoke`.\n\n```python\nimport soroban\n\nsoroban.invoke(contract_id=\"AAAA...\", function_name=\"increment\")\n```\n\nIt also supports passing arguments as a list of `stellar_sdk.SCVal`. This list\ncan be easily generated\n\n```python\nimport json\nimport soroban\n\nargs = json.load(...)\nargs = soroban.Parameters(args=args)\nsoroban.invoke(contract_id=\"AAAA...\", function_name=\"init\", args=args)\n```\n\nThe following JSON syntax is supported. Note that vectors are also supported:\n```json\n[\n  {\n    \"name\": \"issuer\",\n    \"type\": \"address\",\n    \"value\": \"C...\"\n  },\n  {\n    \"name\": \"distributor\",\n    \"type\": \"int128\",\n    \"value\": 10\n  },\n  {\n    \"name\": \"claimants\",\n    \"type\": \"vec\",\n    \"value\": [\n      {\n        \"type\": \"uint32\",\n        \"value\": 12\n      },\n      {\n        \"type\": \"int64\",\n        \"value\": 20\n      }\n    ]\n  }\n]\n```\n\nA few helper functions are also provided:\n\n- `soroban.create_account`: create and fund an account from a source account;\n- `soroban.create_asset`: create an asset using the classical issuer/distributor model.\n\n## Configuration\n\nThe source account and the network to use are set by instantiating `soroban.Identity`\nand `soroban.NetworkConfig`, respectively:\n\n```python\nimport soroban\n\nidentity = soroban.Identity()\nnetwork = soroban.NetworkConfig()\n```\n\nIn both cases, the configuration can be set by either adjusting init arguments,\nsetting up environment variables or using configuration files in toml.\n\nThe default path for `soroban.Identity` is `identity.toml` and for `soroban.NetworkConfig` it\nis `testnet.toml`. Here are examples of these files:\n\n```toml\nsecret_key = \"S...\"\n```\n\n```toml\nhorizon_url = \"https://horizon-testnet.stellar.org\"\nrpc_url = \"https://soroban-testnet.stellar.org\"\nnetwork_passphrase = \"Test SDF Network ; September 2015\"\n```\n\nAny of these fields can be set as an environment variable.\n\n## Acknowledgements\n\nThis repository has no affiliation with the Stellar Developer Foundation.\nThe official CLI can be found here https://github.com/stellar/soroban-cli\nShould this become useful, I am happy to transfer it as well to the SDF org!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftupui%2Fsoroban-cli-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftupui%2Fsoroban-cli-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftupui%2Fsoroban-cli-python/lists"}