GithubHelp home page GithubHelp logo

gungorfeyz / beancount-mercury Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mtlynch/beancount-mercury

0.0 0.0 0.0 111 KB

Beancount importer for Mercury Startup Checking

License: MIT License

Shell 18.28% Python 81.72%

beancount-mercury's Introduction

beancount-mercury

PyPI CircleCI License

beancount-mercury provides an Importer for converting CSV exports Mercury checking transactions into Beancount v2 format.

Installation

pip install beancount-mercury

Usage

Add the Mercury importer to your account as follows:

import beancount_mercury

CONFIG = [
    beancount_mercury.CheckingImporter(
        'Assets:Checking:Mercury',
        currency='USD',
        account_patterns=[
          # These are example patterns. You can add your own.
          ('GITHUB', 'Expenses:Cloud-Services:Source-Hosting:Github'),
          ('Fedex',  'Expenses:Postage:FedEx'),
        ]
    ),
]

The account_patterns parameter is a list of (regex, account) pairs. For each line in your Mercury CSV, CheckingImporter will attempt to create a matching posting on the transaction by matching the payee or narration to the regexes. The regexes are in priority order, with earlier patterns taking priority over later patterns.

Once this configuration is in place, you can use bean-extract to convert a Mercury CSV export of transactions to beancount format:

bean-extract config.py mercury-transactions.csv

Resources

See awesome-beancount for other publicly available Beancount importers.

beancount-mercury's People

Contributors

dependabot[bot] avatar mtlynch 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.