Skip to main content

pipeline status coverage report GitLab issues GitLab merge requests

CSV Transaction History Detective

PyPI Release PyPI - Downloads PyPI - License

Getting started

  1. Install csvthd
  2. Create your config.json file (see config.json.template.md for a template)
  3. See usage

Installation

pip install csvthd

Usage

Important: The majority of filters/options can be combined together infinitely many times.

On each call, if data is filtered out by another filter, that data will continue to be ignored by the next filter applied. In practice this means that even large transaction histories shouldn't take long to process even when many many filters are being used.

Show help

csvthd --help

Filter

Transaction details

-i/--include

Only show transactions that include all of the specified strings in their details

  • Case insensitive
  • Multiple strings supported (each transaction's details must include all of the strings specified)
# only show transactions with details including the word "paypal"
csvthd -i paypal

# only show transactions with details including "paypal" and "steam"
csvthd -i paypal -i steam

-E/--exclude

Only show transactions that don't include any of the specified strings in their details

  • Case insensitive
  • Multiple strings supported (each transaction's details mustn't include any of the strings specified)
# only show transactions without details containing the word "paypal"
csvthd -E paypal

# only show transactions without details containing "paypal" or "chemist warehouse"
csvthd -E paypal -E "chemist warehouse"

# only show transactions with details containing "paypal", but not "steam"
csvthd -i paypal -E steam

Amount

-a/--amount

Only show transactions with amounts under/over/equal to a given value

  • Multiple numbers supported (each transaction amount must satisfy all conditions specified)
# only show transactions over $20.00
csvthd -a over 20

# only show transactions under $10.00
csvthd -a under 10

# only show transactions between $20.00 to $30.00
csvthd -a over 20 -a under 30

# only show transactions of exactly $25.00
csvthd -a equal 25

Date

-d/--date

Only show transactions before/after/on a given date.

# only show transactions after or on 1 Jan 2022
csvthd -d after 01/01/2022

# only show transactions before or on 21 Feb 2022
csvthd -d before 21/02/2022

# only show transactions on 10 Apr 2022
csvthd -d on 10/04/2022

# only show transactions from 1 Jan 2022 - 1 Feb 2022
csvthd -d after 01/01/2022 -d before 01/02/2022

Type

-t/--transaction-type

Only show transactions where money is sent/received

# only show transactions where money is sent
csvthd -t out

# only show transactions where money is received
csvthd -t in

# only show transactions with details containing "paypal" where money received
csvthd -i paypal -t in

# get the sum of all money received with "paypal" in details but not "return"
csvthd -i paypal -t in -E return -S

Account Name

-A/--account-name

Only show transactions from account names that include the provided text.

# only show transactions where the account name includes "commbank"
csvthd -A commbank

# get the sum of all transactions where the account name includes "paypal"
csvthd -A paypal -S

Sorting

Sort by

-s/--sort-by

# list transactions from latest to oldest (default)
csvthd -s date

# list transactions from lowest to highest
csvthd -s amount

Reverse sorting order

-r/--reverse-sort

# list latest transactions first
csvthd

# list oldest transactions first
csvthd -r

# list smallest transactions first
csvthd -s amount

# list largest transactions first
csvthd -s amount -r

Reports

Sum amount

-S/--sum

Show the sum of the transaction amounts (after filtering)

# print the sum of all transactions
csvthd -S

# get the sum of transactions with "paypal" in their details
csvthd -S -i paypal

Development

Build

./development-scripts/build.sh

Metadata

Release files for csvthd 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for csvthd 0.6.1
File Size Uploaded Provenance Actions
csvthd-0.6.1.tar.gz 9.5 kB Without provenance Details for csvthd-0.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for csvthd 0.6.1
File Interpreter ABI Platform Actions
csvthd-0.6.1-py3-none-any.whl Python 3 none any Details for csvthd-0.6.1-py3-none-any.whl

Total release size: 19.5 kB

Release files / csvthd-0.6.1.tar.gz

Download URL csvthd-0.6.1.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7223963456c7a63439e4f2e7a72e5c2c2033f1ae7648145f694da393b02e0e62
BLAKE2b-256 checksum
How to use checksums
130e80ad60fbc8e13b055fabd84fe42a347b6973cc8da97faea726c1cb7f8a92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release files / csvthd-0.6.1-py3-none-any.whl

Download URL csvthd-0.6.1-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea7e0916811e06c68fdb21dc71d7b68381c4fa2c3ad96ca3de13568734955dc6
BLAKE2b-256 checksum
How to use checksums
3facf9690f24fe6c9c87ddd947a814271413b19d7d5bb8b05605cdb6b112f5c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Security for csvthd 0.6.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page