Coder Social home page Coder Social logo

FR: import beancount format about tophat HOT 6 OPEN

athenodoros avatar athenodoros commented on August 23, 2024
FR: import beancount format

from tophat.

Comments (6)

simonmichael avatar simonmichael commented on August 23, 2024 2

Hi @Athenodoros - https://github.com/tgrosinger/ledger-obsidian has a typescript parser of the ledger format (similar to beancount's). In case it's useful.

from tophat.

Athenodoros avatar Athenodoros commented on August 23, 2024 1

Hey both - love that you're interested. I've had a look, and beancount definitely looks like a reasonable fit for what I'm going for here: most of the language maps pretty directly to existing primitives in TopHat.

That said, I can't immediately see an authoritative JS library for the file format, and I feel like doing that here is probably scope creep beyond what this project should be. If there's something out there though, I could maybe look at using it as an import/export target?

Failing that, it looks like Python has solid interfaces to beancount and could probably convert pretty easily between the TopHat json imports/exports (no documentation right now, but downloading the test data as json should be pretty self-explanatory) and the beancount format. You could probably convert them over pretty easily that way, if you're happy with the programming side?

from tophat.

tgrosinger avatar tgrosinger commented on August 23, 2024

Very curious to see if this goes anywhere. I've been toying with creating an app very similar to this but backed by a ledger file. This could possibly save me a bunch of work 🙂

from tophat.

tgrosinger avatar tgrosinger commented on August 23, 2024

True. I could also break that out into a separate repo. I'm planning on continuing to add more of the ledger spec over time.

from tophat.

simonmichael avatar simonmichael commented on August 23, 2024

Oh! @tgrosinger knows. :)

from tophat.

Athenodoros avatar Athenodoros commented on August 23, 2024

I think I'd be open to it in a standalone package, although I'd definitely want to see it before committing either way - like I say, I don't want to blow this out too much in a different direction...

Let me know if you end up doing it - I think on the TopHat side the integration would be pretty straight-forward.

from tophat.

Related Issues (13)

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.