Releases: caltechlibrary/commonpy
Release 1.13.0
Release 1.12.4
Changes in this release:
- Revise the retry algorithm in
timed_request()
again. - Make
timed_request()
print the response text in case of failures - Remove
extra_requires
fromsetup.py
because it caused installation problems due to the syntax of the requirements file and I don't have patience for figuring out whatsetuptools
needs this time.
Release 1.12.3
This release updates the version of the dateparser
package in requirements.txt
, to avoid a deprecation warning when using CommonPy's parsed_datetime(...)
function.
Release 1.12.2
This release updates the versions of dependencies in requirements.txt
.
Release 1.12.1
This version prevents certain exceptions from being buried and ignored, and improves the network failure retry algorithm.
Release 1.12.0
Additions in this release:
- New function
network
in thenetwork_utils
module. It is a companion tonet
and takes the same arguments, but returns only one value (the response). If an error occurs, it raises the error as an exception. This makes it possible for callers to usenetwork(...)
in somewhat more Pythonic style thannet(...)
, by wrapping the call tonetwork(...)
intry
-except
.
Changes in this release:
- Removed
slice
fromdata_utils
module because it shadows a Python built-in. - Fixed
hostname
innetwork_utils
to be more general and not hardwire a test forhttp
. - Fixed a bunch of
flake8
warnings.
Release 1.11.0
Additions in this release:
- New class
CaseFoldSet
, which is similar toCaseFoldDict
but is (as its name implies) a set instead of a dict.
Changes in this release:
- Fixed a bug in the class documentation in the
README.md
file. - Add missing dependency for twine in
requirements-dev.txt
- Use lazy
import
s in more places, for faster load times.
Release 1.10.0
Changes in this release:
data_utils.flattened
now outputs[]
as the value of dict or mapping keys whose original values are an empty sequence (e.g., when the value of a dict key is[]
). Previously, it would outputNone
as the value, which was an unexpected transformation of the input.
Bug fixes in this release:
- Fixed a bug in
data_utils.flattened
that caused it to ignore theseparator
argument in some cases. - Fixed a missing import of
freezegun
inrequirements-dev.txt
. - Pin the imported version of regex 2022.3.2, because more recent versions cause calls to
dateparser
to encounter an error ("regex._regex_core.error: bad escape \d at position 7").
Release 1.9.5
The main functional change in this release is that error objects returned by net(...)
will have error message bodies returned by network services, where possible.
Internally, there has been some refactoring of the Makefile and addition of things like GitHub template files.
Release 1.9.4
This release merely changes the version of httpx required by requirements.txt
. No other changes.