beancount-mercury
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.
Metadata
Release files for beancount-mercury 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| beancount-mercury-0.1.4.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| beancount_mercury-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.2 kB
Release files / beancount-mercury-0.1.4.tar.gz
| Download URL | beancount-mercury-0.1.4.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc91f9afe8624e8f1c15e8384e87fb9b70b31ba53484638f6a8003e4b6ee60fd
|
|
BLAKE2b-256 checksum How to use checksums |
27adcb727217f6b171cb8f0867069e20c69cdf6c0e9ba437f70cc1ddd9bbeabc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/6.8.0 pkginfo/1.9.6 requests/2.31.0 requests-toolbelt/1.0.0 tqdm/4.66.1 CPython/3.9.13
|
Release files / beancount_mercury-0.1.4-py3-none-any.whl
| Download URL | beancount_mercury-0.1.4-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aa99f60b057f489f332c31f2bdb53e5b12f57c6d7b9311d259c619b9994ba102
|
|
BLAKE2b-256 checksum How to use checksums |
d2071af69810bb51bb6c0f6ffae689718bdbef99a5be0c11a73059ba5ed716e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/6.8.0 pkginfo/1.9.6 requests/2.31.0 requests-toolbelt/1.0.0 tqdm/4.66.1 CPython/3.9.13
|