- Back support for python from 2.7 to 3.12
- New somutils.config module to load python configurations in a portable way
- Fix requirement 'google-auth' not working for py2
- Added testutils.enterContext, a polyfill for unittest.TestCase.enterContext introduced in Python 3.11. Eases the use of context handlers in setUp.
- py2: requests dropped py2
- Documentation updated
- py2: certifi dropped py2
- py2 tests fixed (mutating looping dict)
pgconfig_from_environ
added to use standard pqsl env vars as means of configurationpgconfig_from_environ
custom var prefixes to enable multiple databases
- Fix: sql2csv refered to an unexisting variable
- Some traces removed
- new utilities:
tsv
module: quick serialization of dict objects as TSV files (tsvread
/tsvwrite
)testutils.temp_path()
: context manager to get a self destructed temporary directory as Pathtestutils.working_dir(path)
: context manager to run code with a changed working directorytestutils.sandbox_dir()
: context manager to run code with a self-destructed temporary directory as the working dirdbutils.runsql
: running parametrized sql filesdbutils.runsql_cached
: like runsql but using a tsv file as cache to avoid repeated execution
sql2csv
deconstructed on the previous functionssql2csv
has a new-o
option to dump to a file- Test coverage from 23% to 80%
- First changelog entry
- Fixes Python 2.7 compat (conditionally version constrained dependencies)
- isodates fixed missimplementations
- isodates.daterange(first_date, last_date)
- isodates.localisodate (iso date string to datetime at local 00:00)
- isodates.utcisodate (iso date string to datetime at UTC 00:00)
- isodates.naiveisodate (iso date string to datetime at naive 00:00)
- isodates.isodatetime (parses iso datetime keeping it native or timezoned)
- isodates.localisodatetime (reinterprets naive, converts timezoned)
- isodates.utcisodatetime (reinterprets naive, converts timezoned)
- removed isodates.naiveisodatetime
- Importable sql2csv
- pytest as test runner
- Continuous integration with github actions