All Projects → sdementen → Piecash

sdementen / Piecash

Licence: other
Pythonic interface to GnuCash SQL documents

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Piecash

Alphalens
Performance analysis of predictive (alpha) stock factors
Stars: ✭ 2,130 (+1138.37%)
Mutual labels:  finance
Math Php
Powerful modern math library for PHP: Features descriptive statistics and regressions; Continuous and discrete probability distributions; Linear algebra with matrices and vectors, Numerical analysis; special mathematical functions; Algebra
Stars: ✭ 2,009 (+1068.02%)
Mutual labels:  finance
Learnpythonforresearch
This repository provides everything you need to get started with Python for (social science) research.
Stars: ✭ 163 (-5.23%)
Mutual labels:  finance
Tiingo Python
Python REST Client for interacting with the Tiingo Financial Data API
Stars: ✭ 152 (-11.63%)
Mutual labels:  finance
Datagene
DataGene - Identify How Similar TS Datasets Are to One Another (by @firmai)
Stars: ✭ 156 (-9.3%)
Mutual labels:  finance
Algorithmictrading
This repository contains three ways to obtain arbitrage which are Dual Listing, Options and Statistical Arbitrage. These are projects in collaboration with Optiver and have been peer-reviewed by staff members of Optiver.
Stars: ✭ 157 (-8.72%)
Mutual labels:  finance
Interactivebrokers Algo System
Java/MySQL live algorithmic trading using Interactive Brokers API
Stars: ✭ 151 (-12.21%)
Mutual labels:  finance
Ynab Sdk Js
YNAB API JavaScript Library
Stars: ✭ 167 (-2.91%)
Mutual labels:  finance
Piggyvault
Family finance management app.
Stars: ✭ 152 (-11.63%)
Mutual labels:  finance
Presentations
Slide show presentations regarding data driven investing.
Stars: ✭ 162 (-5.81%)
Mutual labels:  finance
Pipeline Live
Pipeline Extension for Live Trading
Stars: ✭ 154 (-10.47%)
Mutual labels:  finance
Pyportfolioopt
Financial portfolio optimisation in python, including classical efficient frontier, Black-Litterman, Hierarchical Risk Parity
Stars: ✭ 2,502 (+1354.65%)
Mutual labels:  finance
Bdgt
Big finance tools in a small package
Stars: ✭ 159 (-7.56%)
Mutual labels:  finance
Py Market Profile
A library to calculate Market Profile (aka Volume Profile) for financial data from a Pandas DataFrame.
Stars: ✭ 153 (-11.05%)
Mutual labels:  finance
Pandas Datareader
Extract data from a wide range of Internet sources into a pandas DataFrame.
Stars: ✭ 2,183 (+1169.19%)
Mutual labels:  finance
Simfin Tutorials
Tutorials for SimFin - Simple financial data for Python
Stars: ✭ 150 (-12.79%)
Mutual labels:  finance
Bot18
Bot18 is a high-frequency cryptocurrency trading bot developed by Zenbot creator @carlos8f
Stars: ✭ 157 (-8.72%)
Mutual labels:  finance
Alpha Mind
quantitative security portfolio analysis. The analysis pipeline including data storage abstraction, alpha calculation, ML based alpha combining and portfolio calculation.
Stars: ✭ 171 (-0.58%)
Mutual labels:  finance
Mixture model trading public
Stars: ✭ 166 (-3.49%)
Mutual labels:  finance
Simfin
Simple financial data for Python
Stars: ✭ 162 (-5.81%)
Mutual labels:  finance

piecash

.. image:: https://badges.gitter.im/sdementen/piecash.svg :alt: Join the chat at https://gitter.im/sdementen/piecash :target: https://gitter.im/sdementen/piecash?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge

.. image:: https://travis-ci.org/sdementen/piecash.svg?branch=master :target: https://travis-ci.org/sdementen/piecash

.. image:: https://ci.appveyor.com/api/projects/status/af7mb3pwv31i6ltv/branch/master?svg=true :target: https://ci.appveyor.com/project/sdementen/piecash

.. image:: https://readthedocs.org/projects/piecash/badge/?version=master :target: http://piecash.readthedocs.org

.. image:: https://img.shields.io/pypi/v/piecash.svg :target: https://pypi.python.org/pypi/piecash

.. image:: https://img.shields.io/pypi/pyversions/piecash.svg :target: https://pypi.python.org/pypi/piecash/

.. image:: https://img.shields.io/pypi/dd/piecash.svg :target: https://pypi.python.org/pypi/piecash/

.. image:: https://requires.io/github/sdementen/piecash/requirements.svg?branch=master :target: https://requires.io/github/sdementen/piecash/requirements/?branch=master

.. image:: https://coveralls.io/repos/sdementen/piecash/badge.svg?branch=master&service=github :target: https://coveralls.io/github/sdementen/piecash?branch=master

Piecash provides a simple and pythonic interface to GnuCash files stored in SQL (sqlite3, Postgres and MySQL).

:Documentation: http://piecash.readthedocs.org. :Gitter: https://gitter.im/sdementen/piecash :Github: https://github.com/sdementen/piecash :PyPI: https://pypi.python.org/pypi/piecash

It is a pure python package, tested on python 3.6 to 3.9, that can be used as an alternative to:

  • the official python bindings (as long as no advanced book modifications and/or engine calculations are needed). This is specially useful on Windows where the official python bindings may be tricky to install or if you want to work with python 3.
  • XML parsing/reading of XML GnuCash files if you prefer python over XML/XLST manipulations.

piecash test suite runs successfully on Windows and Linux on the three supported SQL backends (sqlite3, Postgres and MySQL). piecash has also been successfully run on Android (sqlite3 backend) thanks to Kivy buildozer and python-for-android.

It allows you to:

  • open existing GnuCash documents and access all objects within
  • modify objects or add new objects (accounts, transactions, prices, ...)
  • create new GnuCash documents from scratch

Scripts are also available to:

A simple example of a piecash script:

.. code-block:: python

with open_book("example.gnucash") as book:
    # get default currency of book
    print( book.default_currency )  # ==> Commodity<CURRENCY:EUR>

    # iterating over all splits in all books and print the transaction description:
    for acc in book.accounts:
        for sp in acc.splits:
            print(sp.transaction.description)

The project has reached beta stage.

.. important::

If you want to work with python 2.7/3.4 and books from gnucash 2.6.x series, you can use piecash 0.19.0. Versions of piecash as of 1.0.0 supports python >=3.6 and books from gnucash 3.0.x series.

.. warning::

  1. Always do a backup of your gnucash file/DB before using piecash.
  2. Test first your script by opening your file in readonly mode (which is the default mode)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].