/ct-parsers

CoinTracker CSV Parser and Validator library

Primary LanguagePythonMIT LicenseMIT

CT Parsers

pypi python Build Status codecov

A library and CLI for validating and converting CSVs for import into CoinTracker.

Features

  • Validates that a CSV file conforms to CoinTrackers Generic CSV format
  • Provides a CLI for testing locally

Installation

# Clone repository
git clone https://github.com/birdcar/ct-parsers
# Change directory into repository
cd ct-parsers
# install with pip
pip install .

Usage

# use ct-parse to parse a valid CoinTracker CSV file
ct-parse tests/fixtures/cointracker/kg.csv
# use ct-parse to parse invalid CoinTracker CSV files
for file in $(ls tests/fixtures/cointracker/kb*.csv); do ct-parse $file; done

Credits

This package was created with Cookiecutter and the waynerv/cookiecutter-pypackage project template.