{"id":22072560,"url":"https://github.com/broxus/nekoton-python","last_synced_at":"2025-09-10T01:33:20.018Z","repository":{"id":118804723,"uuid":"604354493","full_name":"broxus/nekoton-python","owner":"broxus","description":"Python bindings for Nekoton","archived":false,"fork":false,"pushed_at":"2025-05-19T18:24:13.000Z","size":1953,"stargazers_count":7,"open_issues_count":2,"forks_count":3,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-09-01T15:45:53.143Z","etag":null,"topics":["blockchain","everscale","venom-blockchain","venom-developer-program","venom-sdk"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/broxus.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,"publiccode":null,"codemeta":null}},"created_at":"2023-02-20T22:07:01.000Z","updated_at":"2025-05-19T18:23:39.000Z","dependencies_parsed_at":"2023-10-17T05:10:01.191Z","dependency_job_id":"dc8ea647-5520-4192-a08a-f2c9dcfac91c","html_url":"https://github.com/broxus/nekoton-python","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/broxus/nekoton-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/broxus%2Fnekoton-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/broxus%2Fnekoton-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/broxus%2Fnekoton-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/broxus%2Fnekoton-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/broxus","download_url":"https://codeload.github.com/broxus/nekoton-python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/broxus%2Fnekoton-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274396493,"owners_count":25277391,"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":"2025-09-09T02:00:10.223Z","response_time":80,"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","everscale","venom-blockchain","venom-developer-program","venom-sdk"],"created_at":"2024-11-30T21:13:43.996Z","updated_at":"2025-09-10T01:33:19.968Z","avatar_url":"https://github.com/broxus.png","language":"Rust","readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/venom-blockchain/developer-program\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/venom-blockchain/developer-program/main/vf-dev-program.png\" alt=\"Logo\" width=\"366.8\" height=\"146.4\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# nekoton-python \u0026emsp;  [![Latest Version]][pypi.org]\n\nPython bindings for Nekoton\n\n## Usage\n\n### Install\n\n```\npip install nekoton\n```\n\n### Example\n\n```python\nimport asyncio\nimport nekoton as nt\n\ngiver_abi = nt.ContractAbi(\"\"\"{\n    \"ABI version\": 1,\n    \"functions\": [{\n        \"name\": \"sendGrams\",\n        \"inputs\": [\n            {\"name\": \"dest\", \"type\": \"address\"},\n            {\"name\": \"amount\", \"type\": \"uint64\"}\n        ],\n        \"outputs\": []\n    }],\n    \"events\": []\n}\"\"\")\n\nsend_grams = giver_abi.get_function(\"sendGrams\")\nassert send_grams is not None\n\n\nclass Giver:\n    def __init__(self, transport: nt.Transport, address: nt.Address):\n        self._transport = transport\n        self._address = address\n\n    @property\n    def address(self) -\u003e nt.Address:\n        return self._address\n\n    async def give(self, target: nt.Address, amount: nt.Tokens):\n        # Prepare external message\n        message = send_grams.encode_external_message(\n            self._address,\n            input={\n                \"dest\": target,\n                \"amount\": amount,\n            },\n            public_key=None\n        ).without_signature()\n\n        # Send external message\n        tx = await self._transport.send_external_message(message)\n        if tx is None:\n            raise RuntimeError(\"Message expired\")\n\n        # Wait until all transactions are produced\n        await self._transport.trace_transaction(tx).wait()\n\n\nasync def main():\n    transport = nt.JrpcTransport('https://jrpc-broxustestnet.everwallet.net')\n    await transport.check_connection()\n\n    giver = Giver(transport, Address('-1:1111111111111111111111111111111111111111111111111111111111111111'))\n\n    await giver.give(giver.address, nt.Tokens(10))\n\n\nasyncio.run(main())\n```\n\n### Local development\n\n* Install [`maturin`](https://www.maturin.rs/installation.html).\n* Configure virtual env:\n  ```bash\n  python -m venv .env\n  source .env/bin/activate\n  ```\n* Dev build:\n  ```bash\n  maturin develop\n  ```\n* Publish\n  ```bash\n  maturin build --release --zig --strip\n  maturin upload path/to/generated/file.whl\n  ```\n\n## Contributing\n\nWe welcome contributions to the project! If you notice any issues or errors, feel free to open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the [License Apache].\n\n[latest version]: https://img.shields.io/pypi/v/nekoton\n[pypi.org]: https://pypi.org/project/nekoton/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbroxus%2Fnekoton-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbroxus%2Fnekoton-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbroxus%2Fnekoton-python/lists"}