Skip to content

version 1.3.3 - #318

Merged
ofajardo merged 12 commits into
masterfrom
dev
Jan 23, 2026
Merged

version 1.3.3#318
ofajardo merged 12 commits into
masterfrom
dev

Conversation

@ofajardo

Copy link
Copy Markdown
Collaborator

No description provided.

ofajardo and others added 12 commits January 5, 2026 17:26
- Add custom I/O handlers in _readstat_parser.pyx to bridge Python file objects to ReadStat C library
- Modify run_conversion() to detect file-like objects and use custom handlers
- Works for all read functions (SAV, SAS7BDAT, DTA, XPORT, POR)
- Add test in test_basic.py and test_narwhalified.py (pandas/polars compatible)
- Add README documentation with zip archive example

Addresses maintainer feedback:
- Uses run_conversion() directly instead of separate wrapper
- Preserves apply_value_formats and all other options
- File handle support works for all formats, not just SAV
Test demonstrates reading SAV files from remote sources via HTTP, showing real-world usage of file handle support. Uses built-in http.server - no external dependencies needed.
…andles

[Issue-308]: Add support for reading directly from file handles
…ing temporary directory for file handle for zip file
@ofajardo
ofajardo merged commit ff63f84 into master Jan 23, 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.

2 participants