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) 기준으로 병합합니다. 특정 파일들을 지정하거나 폴더 내의 모든 파일을 병합할 수 있습니다.

설치

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.0.tar.gz (9.3 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.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fast_writer-1.0.0.tar.gz
  • Upload date:
  • Size: 9.3 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.0.tar.gz
Algorithm Hash digest
SHA256 e54005d7a74ba228068a6133cec4f6428a4e529bbc4f4b3a0cf06cc64af44f82
MD5 ca646dfbef98386e2d0ff39a6c9740c6
BLAKE2b-256 054ef24ddb90898a15e7f8739083d4378cfc8e4550a058ac0620d6df13b47d9d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fast_writer-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93c964b50ae8a7a5e68472ef7b8eb4b303569d43f0e625c049f59434d2d388c9
MD5 28518236fcdaa92674eaefe504266eab
BLAKE2b-256 eab982619b504c72dbcd236cc39c01f19c6893b6f8f54ad271957d81b66ff905

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