GithubHelp home page GithubHelp logo

coda-rs's Introduction

coda-rs - Parse Coda files Build Status

Utility to parse coda files (https://www.febelfin.be/sites/default/files/files/standard-coda-2.5-en.pdf).

This is a utility to tail text from an HTTP endpoint. It works similarly to doing tail -f with a local file. Typically, the source should be a growing text file (like a log file) served by a server supporting the Range header in http.

Usage

$ coda-rs -h                                                                                                            Usage:
    coda-rs [OPTIONS] CODA

Parse coda files

positional arguments:
  coda                  Coda file to parse

optional arguments:
  -h,--help             show this help message and exit
  -j,--json             Convert coda files to json
  -e,--encoding ENCODING
                        Encoding for reading, use a whatwg label - See
                        https://encoding.spec.whatwg.org/#concept-encoding-get
                        (default to utf-8)
  -v,--version          Show version

Example

# To read a file in windows-1252 (aka iso-8859-1, aka cp1252, aka latin1)
$ coda-rs --json -e latin1 FILE.CD2

Features

  • Parse Header
  • Parse old balance (1)
  • Parse movement record (2.1)
  • Parse movement record (2.2)
  • Parse movement record (2.3)
  • Specify encoding for reading (default to utf-8)
  • Parse information record (3.1)
  • Parse information record (3.2)
  • Parse information record (3.3)
  • Parse free communication (4)
  • Parse new balance (8)
  • Parse trailer record (9)
  • Generate JSON file
  • Support account number and currency code (see 7.5 of spec)
  • Trim text
  • Load multiple files
  • Sort by file reference

TODO

  • Support bigdecimal
  • Support Structured/Unstructured communication
  • JSON in array
  • User friendly : List headers / oldbalance / newbalance
  • List movements
  • Create db (sqllite?)
  • Handle globalisation
  • Check the file is a valid coda file
  • Add Enum for reason (2.2 - 113)
  • Add code documentation

coda-rs's People

Contributors

bn3t avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

bendem

coda-rs's Issues

Warnings and formatting

I've started playing around with your project and I think I'm going to use and tinker with it a bit to integrate it in a java application. Would you be interested in a PR fixing warnings, applying rustfmt and edition 2018 changes to the repo or would you rather I don't touch the current style of files?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.