What this thread does
The constraint
The agent must work offline from files already delivered with the project, without pip, npm, downloads or user-level configuration. An existing compatible runtime is still required. If no third-party code may be supplied at all, Python's standard library handles CSV but has no Parquet reader; Parquet needs an additional implementation. See the standard-library index.
CSV with the Python already present
Use csv.DictReader and filter or aggregate the rows in Python. It is a parser, not a SQL engine. This illustrative count assumes a UTF-8 CSV with a header and a country column; it is not run.
import csv
with open('data.csv', encoding='utf-8', newline='') as source:
matches = sum(row['country'] == 'DK' for row in csv.DictReader(source))
print(matches)
Keep the script in the project and invoke it with the existing Python interpreter. No package installation or user configuration is needed. Choose the encoding and delimiter explicitly for the actual file. Fields normally arrive as strings, so numeric comparisons need explicit conversion. These behaviors and newline='' are documented in the Python CSV reference.
Why pure Python is not enough evidence
Joe Crobak's parquet-python README describes a pure-Python reader, but its setup.py requires thriftpy2, adds optional python-snappy, and ships .thrift data files. It declares Apache-2.0. The README reports tests on Python 2.7, 3.6 and 3.7 and incomplete or untested format support. Copying its parquet directory alone is not a dependency-free solution; its README documents pip, not a supported standalone vendored bundle.
Similarly, mrobee's pyparquet README declares MIT and requires Thrift and Snappy. Its manifest requires Python >=3.14 and both packages. Neither candidate establishes a dependency-free pure-Python Parquet path.
A files-only Parquet option if Node is already present
“Pure JavaScript, no dependencies” — Hyperparam, hyparquet README
Hyparquet documents local reads through asyncBufferFromFile and parquetReadObjects. Its package.json declares no runtime dependencies and selects src/node.js for Node. Its MIT license permits redistribution with the required notices retained.
A proposed vendoring layout is to deliver a pinned copy of the complete src tree, package.json and LICENSE under vendor/hyparquet/ before the offline session. Preserve the manifest's ES-module setting. A project-owned .mjs wrapper can import ./vendor/hyparquet/src/node.js directly and use the documented local-file API, selecting columns and a bounded row range before filtering results. This layout is an inference from the Node entry point and its relative exports, not an upstream files-only installation recipe or a tested bundle.
The default reader supports only uncompressed and Snappy Parquet. Other codecs require the separate hyparquet-compressors package; that extra bundle is outside this proposal. This is JavaScript, not a pure-Python answer. It supplies reading and projection, not a promised general SQL replacement.
Single-file Python packaging
Python's maintainers document zipapp bundles containing the app and its dependencies. This can make an already prepared Python tool a single delivered file; it does not supply a Parquet decoder. Their dependency-staging example uses pip before delivery. C extensions cannot load directly from the ZIP; they must be supplied outside it with compatible binaries. A wheel or zipapp label alone therefore does not establish a portable, pure-Python Parquet solution.
Python software and documentation use PSF License Version 2, with documentation code examples additionally available under 0BSD; see Python's license.
Limits
- If no download means no acquisition even before delivery, use only code already present. Vendoring cannot create missing code. If only Python is available and no Parquet reader has been supplied, use CSV or obtain an upstream CSV export.
- This research did not establish a dependency-free pure-Python Parquet reader. That is a finding about the checked candidates, not proof that none exists.
- Prebundling avoids runtime installation; someone must still select, acquire and validate the bundle beforehand. No Node runtime installation, extra codec bundle or Python dependency bundle is included here.
- Examples and proposed packaging are not run. No compatibility, speed or memory benchmark is claimed.
parquetReadObjectsmaterializes its selected rows, so bound the read for agent output.
Sources
Read on 19 October 2026.
- Python standard-library index, CSV reference, zipapp documentation, and license terms — Python Software Foundation.
- parquet-python README and setup.py — Joe Crobak.
- pyparquet README and pyproject.toml — mrobee.
- Hyparquet README, package.json, LICENSE, src/node.js, and src/index.js — Hyperparam.
Started from a post by @Hyperparam, packaged by the editor. Original post