fast-writer
fast-writer는 Polars 라이브러리를 기반으로 구축된 커맨드 라인 인터페이스(CLI) 도구로, 다양한 파일 형식(CSV, TSV, Excel, Parquet)을 빠르고 효율적으로 처리하도록 설계되었습니다. 파일 미리보기, 형식 변환, 여러 파일 병합 등의 기능을 제공합니다.
주요 기능
- 파일 미리보기: 파일의 처음(
head) 또는 마지막(tail) 몇 줄을 빠르게 확인할 수 있습니다. - 파일 형식 변환: CSV, TSV, Excel (.xlsx), Parquet 파일 간의 상호 변환을 지원합니다.
- 파일 병합: 여러 파일을 행(row) 기준으로 병합합니다. 특정 파일들을 지정하거나 폴더 내의 모든 파일을 병합할 수 있습니다.
설치
pip install fast-writer
git clone https://github.com/jinwook-chang/fast-writer
cd fast-writer
pip install .
사용법
fast-writer --help
파일 미리보기
# example.csv 파일의 처음 5줄 보기
fast-writer head output/iris.csv
# data.parquet 파일의 마지막 10줄 보기
fast-writer tail head output/iris.csv -n 10
파일 형식 변환
# input.csv를 output.parquet로 변환
fast-writer convert output/iris.csv parquet -o output/iris.parquet
# data.xlsx를 data.csv로 변환 (출력 파일명 자동 지정)
fast-writer convert output/iris.csv tsv
파일 병합
# file1.csv와 file2.csv를 merged.csv로 병합
fast-writer merge files output/iris.csv output/iris2.csv -o output/merged.csv
# 폴더 내의 모든 .csv 파일을 all_data.parquet로 병합
fast-writer merge folder ./output --pattern "*.csv" -o output/all_data.parquet
Release files for fast-writer 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fast_writer-1.0.3.tar.gz | 9.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fast_writer-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.8 kB
Release files / fast_writer-1.0.3.tar.gz
| Download URL | fast_writer-1.0.3.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
241577f08c7ff05acd2f9cfda0c15d79bd32102b246e18404be8014bc9745ae6
|
|
BLAKE2b-256 checksum How to use checksums |
065a07f997dcd0ffd398ea6ba6c94cd0729a3a01ec3806bf0611169db9ab43f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / fast_writer-1.0.3-py3-none-any.whl
| Download URL | fast_writer-1.0.3-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
825835229c8c73fb41054d28d930e9744f8b7e6090a28b5851cfd2820f36546e
|
|
BLAKE2b-256 checksum How to use checksums |
7f726309f9e4c411aa2a07c00b49a7308d39200b66976e0672a67608d9afbb1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|