beancount-capitalone
beancount-capitalone provides an Importer for converting CSV exports Capital One bank transactions into Beancount v2 format.
Installation
pip install beancount-capitalone
Usage
Credit Cards
Add the Capital One Credit card importer to your account as follows:
import beancount_capitalone
CONFIG = [
beancount_capitalone.CreditImporter(
'Liabilities:Credit-Cards:CapitalOne',
currency='USD',
lastfour='1234', # Replace with last four digits of your account
account_patterns=[
# These are example patterns. You can add your own.
('GITHUB', 'Expenses:Cloud-Services:Source-Hosting:Github'),
('Fedex', 'Expenses:Postage:FedEx'),
]
),
]
Once this configuration is in place, you can use bean-extract to convert a CapitalOne CSV export of transactions to beancount format:
bean-extract config.py 2023-03-10_transaction_download.csv
API
account_patterns
The account_patterns parameter is a list of (regex, account) pairs. For each line in your CSV, the CapitalOne importer will attempt to create a matching posting on the transaction by matching the payee, narration, or the concatenated pair to the regexes.
The regexes are in priority order, with earlier patterns taking priority over later patterns.
Resources
See awesome-beancount for other publicly available Beancount importers.
Metadata
Release files for beancount-capitalone 0.1.1
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-capitalone-0.1.1.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| beancount_capitalone-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.4 kB
Release files / beancount-capitalone-0.1.1.tar.gz
| Download URL | beancount-capitalone-0.1.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30caa2c826a602f6767d28f60e869da9a480f434df4d5eb70adb4b1489c9ea5a
|
|
BLAKE2b-256 checksum How to use checksums |
06171205655e6f2c82340b3cae04e192d5115d8786ef8c7d82093d22e75a14b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/6.6.0 pkginfo/1.9.6 requests/2.28.2 requests-toolbelt/0.10.1 tqdm/4.65.0 CPython/3.9.13
|
Release files / beancount_capitalone-0.1.1-py3-none-any.whl
| Download URL | beancount_capitalone-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ad088c0d9c193ab14b3c54f619b67f2d795a1c7724effe5ca535011df87614be
|
|
BLAKE2b-256 checksum How to use checksums |
908e25a4de95edadb53f52093676c6cecc3f76de5b85455af902bc999d575ad3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/6.6.0 pkginfo/1.9.6 requests/2.28.2 requests-toolbelt/0.10.1 tqdm/4.65.0 CPython/3.9.13
|