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.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| iietls-0.0.2.tar.gz | 3.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iietls-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / iietls-0.0.2.tar.gz
| Download URL | iietls-0.0.2.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd3d6fa5497f8e9392ab77df1a11a7e853cb5bab0e6c5884f54b5ca413122552
|
|
BLAKE2b-256 checksum How to use checksums |
668711482e2e3b4772a9d1738e1ef7e74809248a327a5bba845bb1c5fdd1679b
|
| 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.2-py3-none-any.whl
| Download URL | iietls-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
584648efa458fdf55282a79fc532e604558872d5af82e2bc36b5b31d640ab4ba
|
|
BLAKE2b-256 checksum How to use checksums |
c109e00547f10d7a6ff898deb075bda1b0e8f0c2172510e4d69b50a9d69e01b4
|
| 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.2
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.