substrate-interface-polkascan


Namesubstrate-interface-polkascan JSON
Version 0.1 PyPI version JSON
download
home_pagehttps://github.com/polkascan/py-substrate-interface-extension-polkascan
Summarypy-substrate-interface extension to utilize Polkascan API indexes
upload_time2023-06-02 13:42:44
maintainer
docs_urlNone
authorStichting Polkascan (Polkascan Foundation)
requires_python>=3.7, <4
license
keywords substrate-interface extension polkascan api
VCS
bugtrack_url
requirements substrate-interface gql pytest
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Python Substrate Polkascan Extension

[![Latest Version](https://img.shields.io/pypi/v/substrate-interface-polkascan.svg)](https://pypi.org/project/substrate-interface-polkascan/)
[![Supported Python versions](https://img.shields.io/pypi/pyversions/substrate-interface-polkascan.svg)](https://pypi.org/project/substrate-interface/)
[![License](https://img.shields.io/pypi/l/substrate-interface-polkascan.svg)](https://github.com/polkascan/py-substrate-interface-extension-polkascan/blob/master/LICENSE)


## Description
This extension enables [Substrate Interface](https://github.com/polkascan/py-substrate-interface) to use indexes provided by [Polkascan Explorer API](https://github.com/polkascan/explorer#explorer-api-component)   

## Installation
```bash
pip install substrate-interface-polkascan
```

## Initialization

```python
from substrateinterface import SubstrateInterface 
from substrateinterface_polkascan.extensions import PolkascanSearchExtension

substrate = SubstrateInterface(url="ws://127.0.0.1:9944")

substrate.register_extension(PolkascanSearchExtension(url='http://127.0.0.1:8000/graphql/'))
```

## Usage

### Filter events

```python
events = substrate.extensions.filter_events(pallet_name="Balances", event_name="Transfer", page_size=25)
```

### Filter extrinsics

```python
extrinsics = substrate.extensions.filter_extrinsics(
    ss58_address="12L9MSmxHY8YvtZKpA7Vpvac2pwf4wrT3gd2Tx78sCctoXSE",
    pallet_name="Balances", call_name="transfer_keep_alive", page_size=25
)
```

## License
https://github.com/polkascan/py-substrate-interface-extension-polkascan/blob/master/LICENSE



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/polkascan/py-substrate-interface-extension-polkascan",
    "name": "substrate-interface-polkascan",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7, <4",
    "maintainer_email": "",
    "keywords": "substrate-interface extension polkascan api",
    "author": "Stichting Polkascan (Polkascan Foundation)",
    "author_email": "info@polkascan.org",
    "download_url": "https://files.pythonhosted.org/packages/9b/60/6d9e71fdc62096cd9a7a40652dcd03df1d955f0493eb8c31f33cae99ae48/substrate-interface-polkascan-0.1.tar.gz",
    "platform": null,
    "description": "# Python Substrate Polkascan Extension\n\n[![Latest Version](https://img.shields.io/pypi/v/substrate-interface-polkascan.svg)](https://pypi.org/project/substrate-interface-polkascan/)\n[![Supported Python versions](https://img.shields.io/pypi/pyversions/substrate-interface-polkascan.svg)](https://pypi.org/project/substrate-interface/)\n[![License](https://img.shields.io/pypi/l/substrate-interface-polkascan.svg)](https://github.com/polkascan/py-substrate-interface-extension-polkascan/blob/master/LICENSE)\n\n\n## Description\nThis extension enables [Substrate Interface](https://github.com/polkascan/py-substrate-interface) to use indexes provided by [Polkascan Explorer API](https://github.com/polkascan/explorer#explorer-api-component)   \n\n## Installation\n```bash\npip install substrate-interface-polkascan\n```\n\n## Initialization\n\n```python\nfrom substrateinterface import SubstrateInterface \nfrom substrateinterface_polkascan.extensions import PolkascanSearchExtension\n\nsubstrate = SubstrateInterface(url=\"ws://127.0.0.1:9944\")\n\nsubstrate.register_extension(PolkascanSearchExtension(url='http://127.0.0.1:8000/graphql/'))\n```\n\n## Usage\n\n### Filter events\n\n```python\nevents = substrate.extensions.filter_events(pallet_name=\"Balances\", event_name=\"Transfer\", page_size=25)\n```\n\n### Filter extrinsics\n\n```python\nextrinsics = substrate.extensions.filter_extrinsics(\n    ss58_address=\"12L9MSmxHY8YvtZKpA7Vpvac2pwf4wrT3gd2Tx78sCctoXSE\",\n    pallet_name=\"Balances\", call_name=\"transfer_keep_alive\", page_size=25\n)\n```\n\n## License\nhttps://github.com/polkascan/py-substrate-interface-extension-polkascan/blob/master/LICENSE\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "py-substrate-interface extension to utilize Polkascan API indexes",
    "version": "0.1",
    "project_urls": {
        "Homepage": "https://github.com/polkascan/py-substrate-interface-extension-polkascan"
    },
    "split_keywords": [
        "substrate-interface",
        "extension",
        "polkascan",
        "api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "482bd753958187aa7894cd1e5f29d6334b1290fea573ff448940a15511aa330f",
                "md5": "ed7a706370b563c3b4bf92170f8e74b7",
                "sha256": "66becf6961e8de2bb8154249449d6628c988f87d3148ffd95b4c1a03512edf60"
            },
            "downloads": -1,
            "filename": "substrate_interface_polkascan-0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ed7a706370b563c3b4bf92170f8e74b7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7, <4",
            "size": 8327,
            "upload_time": "2023-06-02T13:42:43",
            "upload_time_iso_8601": "2023-06-02T13:42:43.160817Z",
            "url": "https://files.pythonhosted.org/packages/48/2b/d753958187aa7894cd1e5f29d6334b1290fea573ff448940a15511aa330f/substrate_interface_polkascan-0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9b606d9e71fdc62096cd9a7a40652dcd03df1d955f0493eb8c31f33cae99ae48",
                "md5": "c4f1af560e9206f45333f30274c199db",
                "sha256": "58e487ac081061d1af2dc25197d25a4be3da9e2b7541284e5436a5e23dda03e8"
            },
            "downloads": -1,
            "filename": "substrate-interface-polkascan-0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "c4f1af560e9206f45333f30274c199db",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7, <4",
            "size": 10283,
            "upload_time": "2023-06-02T13:42:44",
            "upload_time_iso_8601": "2023-06-02T13:42:44.632917Z",
            "url": "https://files.pythonhosted.org/packages/9b/60/6d9e71fdc62096cd9a7a40652dcd03df1d955f0493eb8c31f33cae99ae48/substrate-interface-polkascan-0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-02 13:42:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "polkascan",
    "github_project": "py-substrate-interface-extension-polkascan",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "substrate-interface",
            "specs": [
                [
                    ">=",
                    "1.6"
                ],
                [
                    "<",
                    "2"
                ]
            ]
        },
        {
            "name": "gql",
            "specs": [
                [
                    "~=",
                    "3.4.0"
                ]
            ]
        },
        {
            "name": "pytest",
            "specs": [
                [
                    ">=",
                    "4.4.0"
                ]
            ]
        }
    ],
    "lcname": "substrate-interface-polkascan"
}
        
Elapsed time: 2.17193s