Commit graph

9 commits

Author SHA1 Message Date
61b9683743
Add !date and !decimal YAML constructors to avoid unsafe parsing mode
At some point the defaults for pyyaml were switched to safe parsing mode, so
that the previous arbitrary Python YAML tags like
"!!python/object/apply:datetime.date [2017, 9, 1]" no longer work. A better way
is to define our own explicit constructors to avoid unsafe mode.
2025-09-19 17:21:47 +10:00
Brett Smith
1e381664f4 tests: Use yaml.full_load when available.
Per <https://msg.pyyaml.org/load>.
2019-10-08 10:47:27 -04:00
Brett Smith
ab8559c75b csv: Support importing squared CSV spreadsheets.
See the test comment for more rationale.
2019-08-28 10:22:10 -04:00
Brett Smith
1b98ab2015 util: Rename to strparse.
Better describes what the functions in the module do.
2017-12-19 06:42:05 -05:00
Brett Smith
6ea28c2c89 util: Add parse_currency_dec.
The current importers trim lots of extraneous symbols and whitespace from
currency strings before passing them to Decimal().  This function takes care
of all that in a single place.
2017-12-18 23:04:05 -05:00
Brett Smith
fb0e4f2235 tests: Specify types in importers.yml, rather than munging them manually. 2017-12-18 10:28:05 -05:00
Brett Smith
a924d9fb1f tests: Support more Decimal values from importers without specifying them all. 2017-12-17 13:42:51 -05:00
Brett Smith
e5a0089eb9 importers: Add an importer for Stripe payments. 2017-11-09 16:18:03 -05:00
Brett Smith
5c73c40bcc import2ledger: First version.
This is a pretty feature-complete version 1.
I don't know why I waited this long to commit anything.
2017-10-22 13:40:20 -04:00