Skip to main content

iietls

English | 中文

带显式编码的 CSV 流式读写。

安装

pip install iietls

用法

from iietls import iter_rows, write_rows

for row in iter_rows("data.csv", n_encoding="gbk"):
    handle(row)

write_rows("out.csv", ["a", "b"], [[1, 2], [3, 4]])

说明

逐行产出,不整份读入内存。编码必须显式传入(默认 UTF-8),中文环境常见的 GBK 文件请显式写 n_encoding="gbk"。列数与表头不一致时抛 ValueError,不自动截断补齐。

许可证

MIT


English

Stream CSV rows with an explicit encoding.

Install

pip install iietls

Usage

from iietls import iter_rows, write_rows

for row in iter_rows("data.csv", n_encoding="gbk"):
    handle(row)

write_rows("out.csv", ["a", "b"], [[1, 2], [3, 4]])

Notes

Rows are yielded one at a time, so file size does not bound memory. The encoding is explicit (UTF-8 by default). A row whose width differs from the header raises ValueError instead of being silently padded or truncated.

License

MIT

Metadata

Release files for iietls 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iietls 0.0.1
File Size Uploaded Provenance
iietls-0.0.1.tar.gz 3.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for iietls 0.0.1
File Interpreter ABI Platform
iietls-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.1 kB

Release files / iietls-0.0.1.tar.gz

Download URL iietls-0.0.1.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1e8fd313ff3726dc0f9b0b9f4d14a87ef2a7de6c6daefc98e7d096972e8f33c1
BLAKE2b-256 checksum
How to use checksums
883584fea7275141444f6e024130ed2962d67e234aa1bba502ce9757bd12a1af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Release files / iietls-0.0.1-py3-none-any.whl

Download URL iietls-0.0.1-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d03fd23ee7fcad127673da0429184fcb995a9c93a3771b25581029eb2781ec2
BLAKE2b-256 checksum
How to use checksums
fc259d24b6bf807cecdb8bda19c851e4bd4493735ca90a9bdbea8e75a64d2c53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Security for iietls 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page