A Python parser for Grisbi's .gsb
files.
gsbparse
provides two main classes for easily using content of a Grisbi's .gsb
file in Python: gsbparse.AccountFile
and gsbparse.Transactions
.
Both classes are instantiated with a pointer to a .gsb
file: either filepath (str
) or a file object itself.
You can install gsbparse
from PyPI:
pip install gsbparse
from gsbparse import AccountFile
AccountFile("path/to/my_account_file.gsb")
This project adheres to Semantic Versioning, and releases descriptions can be found in CHANGELOG.md
.
For pyvenv
:
python -m venv .venv/
source .venv/bin/activate
git clone [email protected]:EBoisseauSierra/gsbparse.git
cd gsbparse
pip install --upgrade pip
pip install -e '.[dev,test]'
The pre-commit hooks defined in this repo ensure that code formating and linting is applied on any piece of code committed. This should enable a cleaner code base and less “formatting noise” in commits.
To install the hooks, simply run:
pre-commit install
- Fork this repo (https://github.com/EBoisseauSierra/gsbparse/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request