{"id":35780220,"url":"https://github.com/casper-network/casper-python-sdk","last_synced_at":"2026-01-07T06:00:11.804Z","repository":{"id":41256677,"uuid":"374713826","full_name":"casper-network/casper-python-sdk","owner":"casper-network","description":"Python library for interacting with a CSPR node","archived":false,"fork":false,"pushed_at":"2024-12-12T13:12:30.000Z","size":1799,"stargazers_count":16,"open_issues_count":1,"forks_count":16,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-09-24T23:37:22.324Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/casper-network.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2021-06-07T15:25:53.000Z","updated_at":"2025-04-09T10:18:43.000Z","dependencies_parsed_at":"2024-01-26T12:50:45.229Z","dependency_job_id":"b3bbbae9-4231-4986-8c3a-4980b9a79a70","html_url":"https://github.com/casper-network/casper-python-sdk","commit_stats":{"total_commits":279,"total_committers":6,"mean_commits":46.5,"dds":0.02508960573476704,"last_synced_commit":"a1eb392228c6ff4203c50b51721e51adf10f29b4"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/casper-network/casper-python-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casper-network%2Fcasper-python-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casper-network%2Fcasper-python-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casper-network%2Fcasper-python-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casper-network%2Fcasper-python-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/casper-network","download_url":"https://codeload.github.com/casper-network/casper-python-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casper-network%2Fcasper-python-sdk/sbom","scorecard":{"id":267397,"data":{"date":"2025-08-11","repo":{"name":"github.com/casper-network/casper-python-sdk","commit":"ce072e240fb9dbec263c2d6e93f6ef2f18e6e8f6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"15 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2024-230 / GHSA-248v-346w-9cwc","Warn: Project is vulnerable to: PYSEC-2024-225 / GHSA-6vqw-3v5j-54x4","Warn: Project is vulnerable to: GHSA-79v4-65xg-pq4g","Warn: Project is vulnerable to: GHSA-h4gh-qq45-vh27","Warn: Project is vulnerable to: GHSA-wj6h-64fc-37mp","Warn: Project is vulnerable to: PYSEC-2024-60 / GHSA-jjg7-2v4v-x38h","Warn: Project is vulnerable to: GHSA-cpwx-vrp4-4pq7","Warn: Project is vulnerable to: GHSA-gmj6-6f8f-6699","Warn: Project is vulnerable to: GHSA-h75v-3vvj-5mfj","Warn: Project is vulnerable to: GHSA-q2x7-8rv6-6q7h","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: GHSA-34jh-p97f-mpxf","Warn: Project is vulnerable to: GHSA-48p4-8xcf-vxj5","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T12:26:21.129Z","repository_id":41256677,"created_at":"2025-08-17T12:26:21.129Z","updated_at":"2025-08-17T12:26:21.129Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28233227,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2026-01-07T02:00:05.975Z","response_time":58,"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":[],"created_at":"2026-01-07T06:00:02.872Z","updated_at":"2026-01-07T06:00:11.759Z","avatar_url":"https://github.com/casper-network.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Casper Python SDK\n\nPython library for interacting with a CSPR node.\n\n##  Installation\n\n```\npip3 install pycspr\n```\n\n##  Usage\n\n### Cryptography\n\n* [How To: Apply a checksum ?](how_tos/crypto/how_to_apply_a_checksum.py)\n\n* [How To: Create Key Pairs ?](how_tos/crypto/how_to_create_key_pairs.py)\n\n* [How To: Hash data ?](how_tos/crypto/how_to_hash_data.py)\n\n* [How To: Sign data ?](how_tos/crypto/how_to_sign_data.py)\n\n### Deploys\n\n* [How To: Transfer funds between 2 accounts ?](how_tos/deploys/how_to_transfer.py)\n\n* [How To: Delegate funds to a validator ?](how_tos/deploys/how_to_delegate.py)\n\n* [How To: Undelegate funds from a validator ?](how_tos/deploys/how_to_undelegate.py)\n\n* [How To: Stake funds as a validator ?](how_tos/deploys/how_to_stake.py)\n\n* [How To: Unstake funds as a validator ?](how_tos/deploys/how_to_unstake.py)\n\n### Smart Contracts\n\n* [How To: Install a smart contract ?](how_tos/smart_contracts/how_to_install.py)\n\n* [How To: Invoke a smart contract ?](how_tos/smart_contracts/how_to_invoke.py)\n\n* [How To: Query a smart contract ?](how_tos/smart_contracts/how_to_query.py)\n\n### Node APIs\n\n* [How To: Use REST API ?](how_tos/node_apis/how_to_use_rest_client.py)\n\n* [How To: Use RPC API ?](how_tos/node_apis/how_to_use_rpc_client.py)\n\n* [How To: Use Speculative RPC API ?](how_tos/node_apis/how_to_use_speculative_rpc_client.py)\n\n* [How To: Use SSE API ?](how_tos/node_apis/how_to_use_sse_client.py)\n\n##  Development\n\n### Pre-Requisites\n\n[1. Setup Local CCTL Network](https://github.com/casper-network/cctl).\n\n[2. Install poetry](https://python-poetry.org).\n\n### Install SDK\n\n```\ncd YOUR_WORKING_DIRECTORY\ngit clone https://github.com/casper-network/casper-python-sdk.git\ncd casper-python-sdk\npoetry install\n````\n\n### Testing \n\n#### Important Environment Variables\n\n* Mandatory\n\n    * CCTL\n\n        * path to local clone of CCTL repo\n\n* Optional\n\n    * PYCSPR_TEST_NODE_HOST\n\n        * host of a test node\n        * default =  localhost\n\n    * PYCSPR_TEST_NODE_PORT_REST\n\n        * port of rest server exposed by test node\n        * default =  14101\n\n    * PYCSPR_TEST_NODE_PORT_RPC\n\n        * port of json-rpc server exposed by test node\n        * default =  11101\n\n    * PYCSPR_TEST_NODE_PORT_SSE\n\n        * port of sse server exposed by test node\n        * default =  18101\n\n    * PYCSPR_TEST_NODE_PORT_RPC_SPECULATIVE\n\n        * port of speculative execution server exposed by test node\n        * default =  25101\n\n#### Running Tests\n\n```\ncd YOUR_WORKING_DIRECTORY/casper-python-sdk\npoetry shell\npytest ./tests [TEST-FILTER]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasper-network%2Fcasper-python-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcasper-network%2Fcasper-python-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasper-network%2Fcasper-python-sdk/lists"}