Coder Social home page Coder Social logo

amirpasha93 / tresor-import Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zirkler/tresor-import

0.0 1.0 0.0 6.85 MB

Extract transactions from PDF statements of brokers/banks or "Portfolio Performance" CSV exports. Compatible with Tresor One activities

Home Page: https://parqet.com

License: GNU Affero General Public License v3.0

JavaScript 100.00%

tresor-import's Introduction

Parqet-Import - The open source import of Parqet

This is the PDF and CSV Import used on Parqet.com. This software is meant to be reviewed for transparency and security by users of Parqet. Use of this library is granted for private, non-commercial, open-source products.
For a commercial license for closed-source projects, contact [email protected]

Supported Brokers

All brokers supported by tresor-import are listed in the documentation.

Installation

npm install @tresor.one/import

Usage

import getActivities from '@tresor.one/import';

async fileHandler() {
  const results = await Promise.all(Array.from(this.$refs.myFiles.files).map(getActivities));
  results.forEach(result => {
    console.log(result);
  });
}

The function getActivities returns an objects with the following fields:

Name Description
file The file name of the input file.
activities List of activities which was parsed from the input file. The activity object is broken down here.
status The status code which contains the information about the reason why no activities was found. For Details see the status table.
successful The simple way to check if at least one activity was found and the status code is equals zero.

The status field can contains one of the following values, described here.

How to calculate the amount

To understand the amount calculation please read the amount documentation here (in German).

Contribute

To contribute:

  1. fork the repo
  2. install and start npm i && npm start
  3. open the logged URL, usually http://localhost:5000, in your browser
  4. Import a PDF. Content is shown in your Javascript console
  5. Write a parser in src/brokers to parse that content - see src/brokers/comdirect.js for inspiration
  6. Add and run all tests npm t
  7. Create a Pull Request

Licensing

Usage of this codebase is permitted according to the GNU Affero General Public License v3 (AGPL-3.0).

HERE'S AN INCOMPLETE SUMMARY. READ THE FULL LICENSE BEFORE USING.

  • You are permitted to:
    • Use this codebase in any way you want including commercially
    • Modify and distribute the codebase in any way you want
  • You MUST:
    • Respect the copyright which is held by the maintainers of this project
    • Disclose all changes you made to the code and also publish any code directly based on this code
    • Give attribution to the original maintainers when using this project (especially when used commercially)
  • You can not
    • Sublicense this codebase
    • Expect any liability, warranty or similar by the original maintainers. However, we want to improve this project as much as possible so feedback is heard!

See also the following image, taken from TL;DR Legal. apgl3 Overview from TL;DR Legal

tresor-import's People

Contributors

dredav avatar sirgibihm avatar codeofsumit avatar dependabot[bot] avatar d-a-n avatar zirkler avatar johnbra avatar felixheck avatar oxi0 avatar mickra avatar flkrnr avatar jansepke avatar dmelancon avatar carstenhag avatar 0xflotus avatar chrisaige avatar zemmor avatar toolsche avatar timokoessler avatar svmproject avatar roscha444 avatar r-weisser avatar phaus avatar moritzkoerber avatar michikrug avatar manuelrauber avatar kkosmrli avatar jhonnen avatar bauerj avatar heisenbyte avatar

Watchers

Alexander Remesch 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.