piecash


Namepiecash JSON
Version 1.2.0 PyPI version JSON
download
home_pagehttps://github.com/sdementen/piecash
SummaryA pythonic interface to GnuCash SQL documents.
upload_time2021-10-19 08:44:56
maintainersdementen
docs_urlhttps://pythonhosted.org/piecash/
authorsdementen
requires_python
licenseMIT
keywords gnucash python binding interface sqlalchemy
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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://github.com/sdementen/piecash/workflows/CI/badge.svg
    :target: https://github.com/sdementen/piecash/actions

.. 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:

- export to ledger-cli format (http://www.ledger-cli.org/)
- export to QIF format
- import/export prices (CSV format)

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)
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sdementen/piecash",
    "name": "piecash",
    "maintainer": "sdementen",
    "docs_url": "https://pythonhosted.org/piecash/",
    "requires_python": "",
    "maintainer_email": "sdementen@gmail.com",
    "keywords": "GnuCash,python,binding,interface,sqlalchemy",
    "author": "sdementen",
    "author_email": "sdementen@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/3a/31/c9990a65b9e58c90d5b6daeb190fb87c65237c2e8a36bc2f343480aeef05/piecash-1.2.0.tar.gz",
    "platform": "any",
    "description": "piecash\n=======\n\n.. image:: https://badges.gitter.im/sdementen/piecash.svg\n   :alt: Join the chat at https://gitter.im/sdementen/piecash\n   :target: https://gitter.im/sdementen/piecash?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n\n.. image:: https://github.com/sdementen/piecash/workflows/CI/badge.svg\n    :target: https://github.com/sdementen/piecash/actions\n\n.. image:: https://ci.appveyor.com/api/projects/status/af7mb3pwv31i6ltv/branch/master?svg=true\n    :target: https://ci.appveyor.com/project/sdementen/piecash\n\n.. image:: https://readthedocs.org/projects/piecash/badge/?version=master\n    :target: http://piecash.readthedocs.org\n\n.. image:: https://img.shields.io/pypi/v/piecash.svg\n    :target: https://pypi.python.org/pypi/piecash\n\n.. image:: https://img.shields.io/pypi/pyversions/piecash.svg\n    :target: https://pypi.python.org/pypi/piecash/\n\n.. image:: https://img.shields.io/pypi/dd/piecash.svg\n    :target: https://pypi.python.org/pypi/piecash/\n\n.. image:: https://requires.io/github/sdementen/piecash/requirements.svg?branch=master\n    :target: https://requires.io/github/sdementen/piecash/requirements/?branch=master\n\n.. image:: https://coveralls.io/repos/sdementen/piecash/badge.svg?branch=master&service=github\n    :target: https://coveralls.io/github/sdementen/piecash?branch=master\n\n\nPiecash provides a simple and pythonic interface to GnuCash files stored in SQL (sqlite3, Postgres and MySQL).\n\n:Documentation: http://piecash.readthedocs.org.\n:Gitter: https://gitter.im/sdementen/piecash\n:Github: https://github.com/sdementen/piecash\n:PyPI: https://pypi.python.org/pypi/piecash\n\n\nIt is a pure python package, tested on python 3.6 to 3.9, that can be used as an alternative to:\n\n- the official python bindings (as long as no advanced book modifications and/or engine calculations are needed).\n  This is specially useful on Windows where the official python bindings may be tricky to install or if you want to work with\n  python 3.\n- XML parsing/reading of XML GnuCash files if you prefer python over XML/XLST manipulations.\n\npiecash test suite runs successfully on Windows and Linux on the three supported SQL backends (sqlite3, Postgres and MySQL).\npiecash has also been successfully run on Android (sqlite3 backend) thanks to Kivy buildozer and python-for-android.\n\nIt allows you to:\n\n- open existing GnuCash documents and access all objects within\n- modify objects or add new objects (accounts, transactions, prices, ...)\n- create new GnuCash documents from scratch\n\nScripts are also available to:\n\n- export to ledger-cli format (http://www.ledger-cli.org/)\n- export to QIF format\n- import/export prices (CSV format)\n\nA simple example of a piecash script:\n\n.. code-block:: python\n\n    with open_book(\"example.gnucash\") as book:\n        # get default currency of book\n        print( book.default_currency )  # ==> Commodity<CURRENCY:EUR>\n\n        # iterating over all splits in all books and print the transaction description:\n        for acc in book.accounts:\n            for sp in acc.splits:\n                print(sp.transaction.description)\n\nThe project has reached beta stage.\n\n.. important::\n\n   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.\n   Versions of piecash as of 1.0.0 supports python >=3.6 and books from gnucash 3.0.x series.\n\n.. warning::\n\n   1) Always do a backup of your gnucash file/DB before using piecash.\n   2) Test first your script by opening your file in readonly mode (which is the default mode)",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A pythonic interface to GnuCash SQL documents.",
    "version": "1.2.0",
    "split_keywords": [
        "gnucash",
        "python",
        "binding",
        "interface",
        "sqlalchemy"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3a31c9990a65b9e58c90d5b6daeb190fb87c65237c2e8a36bc2f343480aeef05",
                "md5": "1527f8a4e52a582182a3f27fc3978542",
                "sha256": "89639f0661d492242783f39c8d147ea45c321dc4111f93eca2979f070f5f176d"
            },
            "downloads": -1,
            "filename": "piecash-1.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "1527f8a4e52a582182a3f27fc3978542",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 1207875,
            "upload_time": "2021-10-19T08:44:56",
            "upload_time_iso_8601": "2021-10-19T08:44:56.366263Z",
            "url": "https://files.pythonhosted.org/packages/3a/31/c9990a65b9e58c90d5b6daeb190fb87c65237c2e8a36bc2f343480aeef05/piecash-1.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-10-19 08:44:56",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "sdementen",
    "github_project": "piecash",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "appveyor": true,
    "tox": true,
    "lcname": "piecash"
}
        
Elapsed time: 0.02669s