Giter VIP home page Giter VIP logo

cbr-bankform-reader's Introduction

cbr-bankform-reader

Reads bank form data from DBF and text files. Emits clean data by row, storable in a database. Supports form 101 and 102.

Principal operations:

.dbf -> csv with headers
.txt -> csv with headers
csv with headers -> ordered dict stream (strings as values)
ordered dict stream (strings as values) -> typed ordered dict stream (strings, ints, dates)

Each form yields its own resulting stream as typed ordered dicts.

Resulting streams:

  • f101
  • f102
  • plan101
  • plan102
  • names

Stage 1: source .dbf and .txt files referenced by filename Stage 2: streams are referenced by form, public/private, date and content.

Pseudocode:

def get_steam_iterator(date, form, content, domain):
  content in ["data", "plan", "names"]
  form in ["101", "102"]
  domain in ["public", private]
  date unbound
  
  path = get_path(date, form, content, domain)
      folder = get_folder(form, content, domain)
      filenames, readers = get_file_reader_pair(date, form, content)
      return (paths, readers) tuple
  *** reader = get_reader(form, content)
  *** return reader(path)

  

Stage 2 includes: folder structre and

cbr-bankform-reader's People

Contributors

epogrebnyak avatar

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.