FixedWidth
Two-way fixed-width <--> Python dict converter.
Decision gist · record as of 2026-08-14
Yes, if you need to work with fixed-width files. The package is lightweight, permissively licensed, and has proven stable in production. However, be aware that maintenance is aging (last release 2018) and Python version support is unspecified—test compatibility with your target Python version before relying on it in new projects.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with a single lightweight dependency (six).
- Maintenance is aging—last release was in 2018 and the repository has not been updated since 2025-04-22, though it remains unarchived and the package has been in production use for several years without modification.
License · maintenance · safety
BSD (permissive) — BSD permissive license places no restrictions on use, modification, or distribution in proprietary or open-source projects.
last release 2018-06-07 (2990 days) · last repo commit 2025-04-22 · 49 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,085,695 downloads/mo, #4,386 on PyPI
Alternatives
Verify before relying
pip install FixedWidth
from fixedwidth import FixedWidth
config = {
'name': {'type': 'string', 'start_pos': 1, 'end_pos': 10, 'alignment': 'left', 'padding': ' '}
}
fw = FixedWidth(config)
record_dict = fw.parse(fixed_width_line)
fixed_width_line = fw.to_fixed_width(record_dict)- Whether the package works with modern Python versions beyond those it was originally tested against
- Whether the repository's last commit date (2025-04-22) indicates active maintenance or is a stale timestamp
- Current compatibility with six and whether six remains actively maintained
What it is and what it does
FixedWidth is a Python library for bidirectional conversion between fixed-width text records and Python dictionaries. It uses a configuration dictionary to define field positions, types, alignment, and padding, then parses fixed-width strings into dicts or serializes dicts back to fixed-width format. The library supports string, integer, and decimal types, with configurable date formatting and decimal precision.
The package has a minimal dependency footprint (only six) and low install friction. It was designed for production use and has reportedly run unchanged for several years. However, maintenance is aging—the latest release dates to 2018, and there is no recent activity. The library's main value lies in handling legacy fixed-width data formats, which remain common in certain data integration scenarios.
Use it for
- Parse fixed-width records into Python dicts for processing or database import
- Generate fixed-width output files for systems that require strict positional field formatting
- Debug and validate fixed-width file specifications by catching configuration errors early
- Convert between fixed-width flat-file formats and in-memory Python data structures
- Integrate fixed-width data pipelines in batch processing workflows
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to work with fixed-width files.
The package is lightweight, permissively licensed, and has proven stable in production. However, be aware that maintenance is aging (last release 2018) and Python version support is unspecified—test compatibility with your target Python version before relying on it in new projects.
Install
fixedwidth on PyPI
Before you install
Low install friction with a single lightweight dependency (six). Maintenance is aging—last release was in 2018 and the repository has not been updated since 2025-04-22, though it remains unarchived and the package has been in production use for several years without modification.
License in practice
BSD permissive license places no restrictions on use, modification, or distribution in proprietary or open-source projects.
Quickstart
pip install FixedWidth
from fixedwidth import FixedWidth
config = {
'name': {'type': 'string', 'start_pos': 1, 'end_pos': 10, 'alignment': 'left', 'padding': ' '}
}
fw = FixedWidth(config)
record_dict = fw.parse(fixed_width_line)
fixed_width_line = fw.to_fixed_width(record_dict)
Verify before relying
- Whether the package works with modern Python versions beyond those it was originally tested against
- Whether the repository's last commit date (2025-04-22) indicates active maintenance or is a stale timestamp
- Current compatibility with six and whether six remains actively maintained
Package facts
| License | BSD permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagesix |
| Maintenance | Aging 2,990 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,085,695 / month, #4,386 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: FixedWidth-1.3-py3-none-any.whl
Tags
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 › “fixed-width file parser”
- FixedWidthConverts between Python dictionaries and fixed-width text files in…
- copybookCopybook parses VSAM copybook definitions and extracts field…
- overpunchParses and formats overpunch-encoded numbers, a legacy numeric…
Give your agent the search over MCP, or paste the wish link into any chat.
More Text Processing packages
A drop-in replacement for Python's standard `re` module that adds advanced regex features like nested sets, fuzzy matching, lookaround in conditionals, and full Unicode case-folding while maintaining backward compatibility.
pyparsing provides a library for building text parsers directly in Python code using composable grammar classes, handling quoted strings, whitespace variation, and embedded comments without regex or lex/yacc.
Install it if you need to parse text or define grammars programmatically.
fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.
Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.
Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.
RapidFuzz provides fast fuzzy string matching using Levenshtein Distance and related metrics, implemented mostly in C++ with Python bindings for rapid similarity scoring and approximate string matching.
Install it if you need fuzzy string matching; it's a solid replacement for FuzzyWuzzy with better licensing and performance.
tinycss2 parses CSS strings into token and block objects, and generates CSS strings from those objects, following the CSS Syntax Level 3 specification without enforcing specific properties or values.
Install it if your project requires CSS tokenization or syntax manipulation.
See also copybook · py-markdown-table · parse · fixedint · overpunch · stringparser · avro-gen · python-mecab-ko · lat-lon-parser · tabulate