$npx skillfedfor your agent

scalecodec

Python SCALE Codec Library

With conditionsPyPI InternetReleased Oct 2025345.4K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — scalecodec-1.2.12-py3-none-any.whl
v1.2.12 · released 2025-10-16 · Python <4,>=3.6 · 3 runtime deps: more-itertools, base58, requests

Yes, if you are building on Substrate or Polkadot. The package is stable, permissively licensed, and has low install friction. Maintenance is aging but the repository is not archived and the package remains in active use. No known vulnerabilities. Not relevant for non-blockchain Python projects.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.6 or later; designed for Substrate/Polkadot ecosystem integration.
  • Low install friction with a pure Python wheel.
  • Maintenance is aging—last commit was 302 days ago—but the repository remains active and the package is marked Production/Stable.

License · maintenance · safety

permissive license (permissive) — Licensed under Apache Software License (permissive), allowing commercial and private use with minimal restrictions.

last release 2025-10-16 (302 days) · last repo commit 2025-10-16 · 59 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 345,396 downloads/mo, #7,363 on PyPI

Verify before relying

pip install scalecodec

from scalecodec.base import RuntimeConfiguration
from scalecodec.types import U16

config = RuntimeConfiguration()
value = U16(42)
encoded = value.encode()
print(encoded.hex())
  • Whether the package handles all Substrate runtime types beyond the basic examples shown in the description.
  • Performance characteristics when encoding/decoding large or deeply nested data structures.
  • Compatibility with the latest Substrate runtime versions and breaking changes.
Same gist for agents: .md · .json

What it is and what it does

Scalecodec is a Python implementation of the SCALE codec, the serialization format used by Substrate and Polkadot-based blockchains. It provides encoding and decoding for a range of data types—from basic integers and booleans to complex aggregates like vectors and bit sequences—using little-endian fixed-width and compact integer formats to minimize network overhead.

The package is typically used by developers building tools, wallets, or indexers that interact with Substrate chains, where they need to serialize Python objects into SCALE format for on-chain calls or deserialize chain data back into Python types. It depends on more-itertools, base58, and requests, and targets Python 3.6 and later.

Use it for

  • Serialize transaction data for submission to Polkadot or Kusama networks.
  • Deserialize blockchain state and event data returned from Substrate RPC endpoints.
  • Build indexers or data pipelines that read and transform on-chain events.
  • Encode function arguments for extrinsic calls in Substrate-based applications.
  • Integrate blockchain data into Python-based analytics or monitoring tools.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are building on Substrate or Polkadot.

The package is stable, permissively licensed, and has low install friction. Maintenance is aging but the repository is not archived and the package remains in active use. No known vulnerabilities. Not relevant for non-blockchain Python projects.

Install

scalecodec on PyPI

Before you install

Low install friction with a pure Python wheel. Maintenance is aging—last commit was 302 days ago—but the repository remains active and the package is marked Production/Stable.

Requires Python 3.6 or later; designed for Substrate/Polkadot ecosystem integration.

License in practice

Licensed under Apache Software License (permissive), allowing commercial and private use with minimal restrictions.

Quickstart

pip install scalecodec

from scalecodec.base import RuntimeConfiguration
from scalecodec.types import U16

config = RuntimeConfiguration()
value = U16(42)
encoded = value.encode()
print(encoded.hex())

Verify before relying

  • Whether the package handles all Substrate runtime types beyond the basic examples shown in the description.
  • Performance characteristics when encoding/decoding large or deeply nested data structures.
  • Compatibility with the latest Substrate runtime versions and breaking changes.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release <4,>=3.6
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
more-itertoolsbase58requests
MaintenanceAging 302 days since the last release
Last repo commit
First released
Downloads345,396 / month, #7,363 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Evidence: scalecodec-1.2.12-py3-none-any.whl

Tags

Capabilities
scale codec encoding decodingsubstrate serializationpolkadot data serializationblockchain scale codeccompact integer encodingsubstrate network protocolscale codec python
Topics
blockchainsubstrate-polkadotserialization
PyPI keywords
scalecodecpolkascanpolkadotsubstrateblockchainkusama

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “scale codec encoding decoding”

  • scalecodecEncodes and decodes data using the SCALE codec, a lightweight…
  • cyscaleCython-accelerated encoder and decoder for the SCALE codec used by…
  • substrate-interfaceInterfaces with Substrate blockchain nodes to query storage, compose…

Give your agent the search over MCP, or paste the wish link into any chat.

More Internet packages

botocore Worth it
PyPI · Internet · released Aug 2026

Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.

Install it if you need programmatic access to AWS services.

permissive licensepure Python · 3.10+
1.5Bdownloads / mo
aiobotocore Worth it
PyPI · Internet · released Aug 2026

Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.

Install it if you need to call AWS services from async Python code; it is the standard way to do so.

Apache-2.0pure Python · 3.10+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
filelock Worth it
PyPI · Libraries · released Aug 2026

Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.

MITpure Python · 3.10+
717.1Mdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
googleapis-common-protos Worth it
PyPI · Internet · released Aug 2026

Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.

Apache-2.0pure Python · 3.10+
513.7Mdownloads / mo

See also cobs · cyscale · substrate-interface · async-substrate-interface · rlp · bech32m · pyasn1 · prophy · eth-rlp · pytoniq-core