{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/6"}],"enrichment":{"capability":"Provides asynchronous and synchronous interfaces for querying and interacting with Substrate-based blockchains, using cyscale for SCALE codec decoding.","skillfed_tags":["substrate-blockchain","async-rpc","abandoned-project"],"use_cases":["Query account balances or storage state from Polkadot or other Substrate networks in an async application without blocking.","Build a bot or monitoring tool that repeatedly fetches block hashes and runtime metadata, leveraging the built-in LRU and disk caches to reduce network calls.","Integrate Substrate chain queries into a larger async service (e.g., a web API or background worker) that needs non-blocking blockchain reads.","Decode SCALE-encoded blockchain data quickly using cyscale's optimized codec instead of the slower py-scale-codec.","Persist blockchain metadata and query results to disk for tools like btcli that need cache survival across restarts."],"what_it_does":"Async-substrate-interface is a Python library that wraps asynchronous and synchronous access to Substrate-based blockchains (like Polkadot). It lets you query chain state, decode data using the SCALE codec, and interact with blockchain RPC endpoints without blocking your event loop. The library provides both an AsyncSubstrateInterface for async/await patterns and a synchronous SubstrateInterface for blocking code, plus specialized variants like DiskCachedAsyncSubstrateInterface that persist query results to disk across runs.\n\nThe package depends on aiosqlite, cyscale, typing_extensions, websockets, and xxhash to handle async database operations, fast SCALE decoding, type hints, WebSocket connections, and hashing. It includes three layers of caching\u2014in-memory LRU for both sync and async, plus optional disk persistence\u2014tunable via environment variables. The main gotcha is a namespace conflict with py-scale-codec (scalecodec); the documentation explicitly requires that only cyscale be installed.","worth_installing":"No\u2014not for new projects. The repository is archived and the project is marked abandoned, meaning no active maintenance, security updates, or bug fixes are forthcoming. While the code may work for stable Substrate networks today, you assume all responsibility for future compatibility and security issues. Consider this only if you are maintaining legacy code that already depends on it and cannot migrate to an actively maintained alternative."},"id":"async-substrate-interface","links":{"html":"https://skillfed.io/packages/async-substrate-interface","md":"https://skillfed.io/packages/async-substrate-interface.md","pypi":"https://pypi.org/project/async-substrate-interface/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2026-06-29","license_spdx":null,"license_treatment":"permissive","name":"async-substrate-interface","python_support":"supports_current","summary":"Asyncio library for interacting with substrate. Mostly API-compatible with py-substrate-interface"},"popularity":{"monthly_downloads":382937,"position":7083,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.2.1"}
