Skip to main content

Pengar

Author:

Joar Wandborg

License:

AGPLv3 or later

Pengar is a work in progress.

Installation

  • Get the code:

    git clone https://github.com/joar/pengar.git && cd pengar
  • Install python-virtualenv:

    sudo apt-get install python-virtualenv
    virtualenv . && source bin/activate
  • Install dependencies:

    python setup.py develop

Usage

$ pengar debug
Social security number: 9010240000
Passcode:
INFO:pengar.swedbank:Requesting CSRF token...
INFO:pengar.swedbank:Submitting SSN login form...
INFO:pengar.swedbank:Submitting code...
INFO:pengar.swedbank:Requesting accounts...
{{ account data }}
INFO:pengar.swedbank:Requesting account 1, page 1
INFO:pengar.swedbank:Requesting account 1, page 2
INFO:pengar.swedbank:Requesting account 1, page 3
{{ transaction data }}

or if you want to put the results in a database for easy querying:

$ pengar update
[...]

then

sqlite3 pengar.sqlite

and then you can execute queries on the data:

SELECT note,
    SUM(amount),
    COUNT(amount)
FROM transaction
GROUP BY note
ORDER BY SUM(amount);

note

sum

count

ICA SUPERMARKET

-6948

28

Överföring Spar, 3k

-6000

2

Dalpay.is

-1712

1

Bankomatuttag

-1500

1

Thank you

  • Björn Sällarp whose code I inspected to get the URLs to Swedbank’s mobile site

  • requests authors, without you my code would have been twice as unreadable

Metadata

Release files for pengar 0.1.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 pengar 0.1.1
File Size Uploaded Provenance Actions
pengar-0.1.1.tar.gz 1.9 kB Without provenance Details for pengar-0.1.1.tar.gz

Release files / pengar-0.1.1.tar.gz

Download URL pengar-0.1.1.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e8fc48c4bc65e38b56a8df5733c9e5546d24ae7ecec6ae18d86f7c9dd51fa194
BLAKE2b-256 checksum
How to use checksums
604a95e248f0423bcf932213932b3f94ee9c0dd5b3975fb81a32eba5b75463a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pengar 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file No provenance

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