Skip to content

feat: Add plain text formatter for Dataset#634

Closed
RamiNoodle733 wants to merge 2 commits intojazzband:masterfrom
RamiNoodle733:add-text-formatter
Closed

feat: Add plain text formatter for Dataset#634
RamiNoodle733 wants to merge 2 commits intojazzband:masterfrom
RamiNoodle733:add-text-formatter

Conversation

@RamiNoodle733
Copy link

Adds a plain text formatter for Dataset export as requested in #317.

Features

  • Simple text format output for human-readable data display
  • Supports configurable column widths
  • Handles alignment for numeric and text columns

Fixes #317

Rami added 2 commits February 5, 2026 00:45
- Add detailed parameter descriptions
- Add usage example
- Document requirement for headers to be set
- Document return value and exceptions

Fixes #366
Add a new text formatter that exports datasets as space-padded plain text,
suitable for terminal display.

Features:
- Column widths are automatically calculated based on content
- Configurable max_width and padding options
- Headers are displayed with a separator line
- Data is truncated gracefully if it exceeds max_width

Usage:
    data.export('text')
    data.export('text', max_width=120, padding=2)

Fixes #317
@RamiNoodle733 RamiNoodle733 closed this by deleting the head repository Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plain text / Terminal formatter

1 participant