{"id":27495128,"url":"https://github.com/div72/python-gridcoin","last_synced_at":"2025-04-17T02:27:40.152Z","repository":{"id":187009353,"uuid":"675090719","full_name":"div72/python-gridcoin","owner":"div72","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-08T15:24:15.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"devel","last_synced_at":"2024-05-01T19:35:03.315Z","etag":null,"topics":["gridcoin","library","python","rpc-client"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/div72.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}},"created_at":"2023-08-05T18:36:45.000Z","updated_at":"2023-08-11T05:42:41.000Z","dependencies_parsed_at":"2023-08-08T16:54:21.787Z","dependency_job_id":null,"html_url":"https://github.com/div72/python-gridcoin","commit_stats":null,"previous_names":["div72/python-gridcoin"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/div72%2Fpython-gridcoin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/div72%2Fpython-gridcoin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/div72%2Fpython-gridcoin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/div72%2Fpython-gridcoin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/div72","download_url":"https://codeload.github.com/div72/python-gridcoin/tar.gz/refs/heads/devel","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249302865,"owners_count":21247557,"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","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":["gridcoin","library","python","rpc-client"],"created_at":"2025-04-17T02:27:39.542Z","updated_at":"2025-04-17T02:27:40.146Z","avatar_url":"https://github.com/div72.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-gridcoin\n\nA python library for Gridcoin-related stuff. `python-gridcoin` is a [sans-IO library](https://sans-io.readthedocs.io/) so you'll have to bring your own networking library in order to use the networking related functions.\n\n## Installation\n\n```sh\npip install .\n\n# Alternatively, in edit mode for development:\n\npip install -e .\n```\n\n## Quickstart\n\n```python\nimport httpx # or requests\nfrom gridcoin.rpc import WalletRPC\n\n# Connect to the mainnet client automatically:\nrpc = WalletRPC(httpx.post)\n\n# Testnet:\nrpc = WalletRPC(httpx.post, testnet)\n\n# You can also provide your own URL to connect:\nrpc = WalletRPC(httpx.post, url=\"http://user:password@localhost:15715\")\n\nprint(rpc.help())\n```\n\nAsync IO is also supported:\n\n```python\nimport asyncio\n\nimport aiohttp\nfrom gridcoin.rpc import WalletRPC\n\n\nasync def main():\n    async with aiohttp.ClientSession() as client_session:\n        rpc = WalletRPC(client_session.post)\n        print(await rpc.getblockcount())\n\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n```\n\n## License\n\npython-gridcoin is under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiv72%2Fpython-gridcoin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiv72%2Fpython-gridcoin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiv72%2Fpython-gridcoin/lists"}