Skip to main content

Offline decoder for ISO 10962 CFI (Classification of Financial Instruments) codes

Project description

cfi-decoder

Offline decoder for ISO 10962 CFI (Classification of Financial Instruments) codes.

How It Works

The decoder takes a 6-character CFI code and maps each position to human-readable descriptions:

  • Position 1: Financial instrument category (e.g., E = Equities, D = Debt)
  • Position 2: Subcategory/group within that category (e.g., S = Shares for Equities)
  • Positions 3-6: Specific attributes based on the category-group combination

The decode() function returns a pipe-separated string of descriptions for each position.

Example

from cfi_decoder import decode

result = decode("ESVUFR")
# Output: "Equities | Shares (Common/Ordinary) | Voting | Free | Fully Paid | Registered"

Implementation

The decoder is implemented as a series of dictionary lookups against lookup tables defined in src/cfi_decoder/_data.py. The tables map CFI code characters to their human-readable descriptions for each position.

Models Used

This project was developed using Claude AI:

  • Claude Opus 4.6
  • Claude Sonnet 4.6
  • Claude Haiku 4.5

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cfi_decoder-0.1.1.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cfi_decoder-0.1.1-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file cfi_decoder-0.1.1.tar.gz.

File metadata

  • Download URL: cfi_decoder-0.1.1.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for cfi_decoder-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f7eb78078ebf2df9f0962138f48ae0c623815c3bb9c865d4509973cc6860ab66
MD5 3a83cb96428b3ed27ebedc37f3628916
BLAKE2b-256 95dc0e494c0e03f5eb7fd3267ba412dac8392832c9937f11cfe77b1d40171569

See more details on using hashes here.

File details

Details for the file cfi_decoder-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: cfi_decoder-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for cfi_decoder-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 79a3684f77d9fbdbb8cb3f1670ed9bc1902bf12543eaee1cb949045171edf952
MD5 325d3889f9c55c7a9ceb47d42adab539
BLAKE2b-256 ee2fe191233d8bcc473be57a0cf5cc8b95f51d893b4993dca1195dfba3eccaae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page