Skip to main content

CLI Tools for writing data

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fast_writer-1.0.3.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fast_writer-1.0.3-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file fast_writer-1.0.3.tar.gz.

File metadata

  • Download URL: fast_writer-1.0.3.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fast_writer-1.0.3.tar.gz
Algorithm Hash digest
SHA256 241577f08c7ff05acd2f9cfda0c15d79bd32102b246e18404be8014bc9745ae6
MD5 cc62a2274fe32ab53670d630179c4d17
BLAKE2b-256 065a07f997dcd0ffd398ea6ba6c94cd0729a3a01ec3806bf0611169db9ab43f1

See more details on using hashes here.

File details

Details for the file fast_writer-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: fast_writer-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fast_writer-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 825835229c8c73fb41054d28d930e9744f8b7e6090a28b5851cfd2820f36546e
MD5 03f8ded2dfcd1e8e11fae50a340fceac
BLAKE2b-256 7f726309f9e4c411aa2a07c00b49a7308d39200b66976e0672a67608d9afbb1d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page