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.0.tar.gz (19.5 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.0-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cfi_decoder-0.1.0.tar.gz
  • Upload date:
  • Size: 19.5 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.0.tar.gz
Algorithm Hash digest
SHA256 2143ab7817e63b816d97260da74d09e5dab701f272c784c73016221e933de493
MD5 326ce0f1cbf8f6676a84ecae9ac49d64
BLAKE2b-256 27230c28e538231b2a0d509cc88f85efcba879a7304bf68c804c9bb8906d4e3f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cfi_decoder-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 13ae677aed59b551d6bb9452c31e912108ac3f7c0755924af43d2e688ff11aec
MD5 429b53258adea20005117c60448e52e9
BLAKE2b-256 adf4f62840b8dc7f17c948601fb9f344ba9bd489e76fd0c8c4ca317e1eee8801

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