PTSB(1p)
π PTSB(1p) π
okay bestie, welcome to ptsb β she lives in the User Contributed Perl Documentation section and she is here to let you Interact with you Permanent TSB homebanking from your shell! yes fr fr, your bank, but make it terminal. π¦β¨
πΈ NAME πΈ
ptsb β Interact with you Permanent TSB homebanking from your shell! π
β¨ SYNOPSIS β¨
ptsb [options]
π° Print accounts balance:
ptsb [ -F /path/of/conf/file ] -b
π Print account statement:
ptsb [ -F /path/of/conf/file ] -s -a c -n <4digits" -f yyyy/mm/dd -t yyyy/mm/dd>
ngl if you're running Linux you can use the date --date command to simplify the date range definition. the way that shortcut works is chef's kiss. you can put these aliases on your ~/.bashrc:
alias ptsb_stat='ptsb --statement -a c -n xyzt'
alias ptst_last_month="statement_current -f `date +%Y/%m/%d --date='1 month ago'` -t `date +%Y/%m/%d`"
π OPTIONS π
-h|--helpβ this help usage message! it's giving helpful. π«Ά-D|--debugβ Enable debug. This will be more verbose and will leave html on the current working directory. lowkey messy but iconic for troubleshooting.-F /path/to/config/file|--file /path/to/config/fileβ filename configuration file path (default:~/.ptsbrc). Please refer to manual page to see how this file is built. (that's the CONFIGURATION FILE section, keep scrolling bestie π)-b|--balanceβ print account balance π°-s|--statementβ print account statement π-T type|--transation-type typeβ Type of transaction to look on the statement. Type can be:ALL,WITHDRAWAL,DEPOSIT. (yes the long option is spelled--transation-type, we do not ask questions, we copy exactly β)-f|--from--date yyyy/mm/ddβ from date. (and yes, the long form literally has two dashes in the middle,--from--date, no cap π« )-t|--to-date yyyy/mm/ddβ to date.-a [c | v]|--account-type [c | v]β account type: can be'c'(current account) or'v'for (visa card). pick your fighter π¦-n digits|--account-num digitsβ 4 digits representing the last 4 digits of the account number or visa card number.-N|--no-balanceβ Do not print balance when printing statement.-r|--regexpβ When printing statement grep using the regexp provided.-e|--exprβ where expression is a mathematical expression like
'<300'
'=300'
'>=300'
the expression will test the euro amount column only lines matching the expression will be printed. math girlie behaviour, we love to see it π₯
-g|--graphβ Print graph of the statement using gnuplot. Gnuplot is required! like, required required. no gnuplot, no graph, sad girl hours. π-i path|--image pathβ Save PNG image in path. πΌοΈ-o filename|--output filenameβ Save the output of the statement inside a CSV file named filename. CSV format is:
date,description,amount,balance
last field presence depends on the -N flag.
-v|--versionβ Print version. β
π CONFIGURATION FILE π
Configuration file default location is ~/.ptsbrc and it looks like this:
-------8< -- ~/.ptsbrc -->8----------
open24_number=your_open24_number
password=your_internet_password
pan=your_personal_access_number
-------8< --------------->8----------
However you can put wherever you want. Just remember to use then the option -F /path/to/your/location. ποΈ
Lines beginning with # will be interpreted as comment.
Starting from release 0.08 ptsb will use GnuPG to encrypt the configuration file using the private key of the user. Therefore you'll have to create your key if you didn't do this yet. π
In case you want to decrypt your ptsbrc file use this command:
$ gpg -d /path/to/your/ptsbrc
This will print the encrypted file on the standard output.
β οΈ real talk bestie: that config file is holding youropen24_number, yourpasswordand yourpan. keep it safe, keep it encrypted, don't be posting it in the group chat. π«Ά
π SEE ALSO π
- Official CPAN page for
Finance::Bank::IE::PermanentTSB
http://search.cpan.org/~pallotron/Finance-Bank-IE-PermanentTSB/lib/Finance/Bank/IE/PermanentTSB.pm
- Author homepage
- Author Blog (italian)
http://www.vitadiunsysadmin.net
- Author homepage on CPAN
http://search.cpan.org/~pallotron/
π AUTHOR π
Angelo "pallotron" Failla β pallotron@freaknet.org
π BUGS π
Please report bugs to the author, no bug tracking system is set up yet. (not me volunteering to be the bug tracker π)
π COPYRIGHT AND LICENSE π
Copyright (C) 2009 by Angelo "pallotron" Failla
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
and that's the whole page bestie!! π this one's perl v5.36.0, dated 2022-11-20, and it's PTSB(1p) β go print some statements, slay, periodt. πβ¨
π¦ where this page comes from
- debian bookworm: libfinance-bank-ie-permanenttsb-perl 0.4-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libfinance-bank-ie-permanenttsb-perl 0.4-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libfinance-bank-ie-permanenttsb-perl 0.4-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libfinance-bank-ie-permanenttsb-perl 0.4-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libfinance-bank-ie-permanenttsb-perl 0.4-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms