nbase-converter
nbase-converter is a native Rust/Arrow Python package for reading, writing, and converting
SAS7BDAT, SAS XPORT v5/v8, and Parquet datasets.
This is an alpha release. Final Windows SAS 9.4 validation of the production SAS7BDAT writer
remains required before stable 1.0.0 compatibility is declared.
Install
python -m pip install nbase-converter==0.0.1
Python 3.11 through 3.14 is supported on 64-bit Linux, macOS, and Windows.
Example
from nbase_converter import filter_field, read_dataset, write_dataset
result = read_dataset(
"input.xpt",
columns=["USUBJID", "AGE"],
filter=filter_field("AGE") >= 18,
output="pandas",
)
write_dataset(
result.data,
"output.parquet",
target_format="parquet",
overwrite=True,
)
The public dataset operations are:
read_dataset: materialized, streaming, or metadata-only reads with projection, row bounds, encoding selection, and structured filters.write_dataset: Arrow-compatible writes to Parquet, XPT v5/v8, or SAS7BDAT.convert_dataset: bounded-memory full-file conversion between supported formats.
Structured filters are created with filter_field, combined with filter_all, filter_any,
or filter_not, and evaluated by these leaf helpers:
- comparisons:
filter_equal,filter_not_equal,filter_less_than,filter_less_than_or_equal,filter_greater_than, andfilter_greater_than_or_equal; - collections and text:
filter_in,filter_between,filter_contains,filter_starts_with, andfilter_ends_with; - missing values:
filter_is_missing,filter_is_not_missing,filter_is_null, andfilter_is_not_null.
Python comparison operators are also available on filter_field(...). Public result and metadata
contracts ship as TypedDict definitions, and the wheel is marked as a typed package.
The default cross-format type policy accepts Float64 and UTF-8 text. Local filesystem paths are the only supported storage interface in this release.
Source, issues, release notes, and the full contract are available from the Bitbucket repository.
Metadata
Release files for nbase-converter 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nbase_converter-0.0.1.tar.gz | 357.4 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nbase_converter-0.0.1-cp311-abi3-win_amd64.whl | CPython 3.11 | abi3 | Windows x86-64 | Details |
| nbase_converter-0.0.1-cp311-abi3-manylinux_2_34_x86_64.whl | CPython 3.11 | abi3 | Linux glibc 2.34+ x86-64 | Details |
| nbase_converter-0.0.1-cp311-abi3-macosx_10_12_x86_64.whl | CPython 3.11 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 9.9 MB
Release files / nbase_converter-0.0.1.tar.gz
| Download URL | nbase_converter-0.0.1.tar.gz |
|---|---|
| Size | 357.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e53e7ed6a59ee3e1b65642cb9796aed4190b14b42809139f94df7ca53b4d8e6
|
|
BLAKE2b-256 checksum How to use checksums |
c4a5c8f04f4a81b6ea5a451cfebd34b77b1f1bfb439b501ee9b5e017bc39d8b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / nbase_converter-0.0.1-cp311-abi3-win_amd64.whl
| Download URL | nbase_converter-0.0.1-cp311-abi3-win_amd64.whl |
|---|---|
| Size | 3.1 MB |
| Tags | CPython 3.11 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
e9a5b62a467a33435b82bf15d224b439b29cb725a3220e5d2015f272043099cd
|
|
BLAKE2b-256 checksum How to use checksums |
ff1bf719c20de952cbbd88e150eeb84240c689b0cb7eefec3d4f65188aafd22b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / nbase_converter-0.0.1-cp311-abi3-manylinux_2_34_x86_64.whl
| Download URL | nbase_converter-0.0.1-cp311-abi3-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 3.4 MB |
| Tags | CPython 3.11 Linux glibc 2.34+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
e0d3dd27cc2a98898be778134e5cf687af3e47dedbc982ff6ef100e404e8bdbf
|
|
BLAKE2b-256 checksum How to use checksums |
c188159cca3419328a018e6a77c2505e6196d39262bdbc344829cc41a0bba96c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / nbase_converter-0.0.1-cp311-abi3-macosx_10_12_x86_64.whl
| Download URL | nbase_converter-0.0.1-cp311-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 3.1 MB |
| Tags | CPython 3.11 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
6689b4f3fb21f7bd6fec6d676226a939ede4e60facd3ad3f7888857030686cf2
|
|
BLAKE2b-256 checksum How to use checksums |
df711ddb19c9a231c540eb37e79bf4b87d3474a940642e3938aba6e929e1bcca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","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":true}
|