edq-utils 0.1.5__py3-none-any.whl → 0.1.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of edq-utils might be problematic. Click here for more details.

edq/__init__.py CHANGED
@@ -2,4 +2,4 @@
2
2
  General Python tools used by several EduLinq projects.
3
3
  """
4
4
 
5
- __version__ = '0.1.5'
5
+ __version__ = '0.1.6'
edq/util/net.py CHANGED
@@ -887,13 +887,14 @@ def parse_content_dispositions(headers: typing.Union[email.message.Message, typi
887
887
 
888
888
  def parse_query_string(text: str,
889
889
  replace_single_lists: bool = True,
890
- ) -> typing.Dict[str, typing.Any]:
890
+ keep_blank_values: bool = True,
891
+ **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
891
892
  """
892
893
  Parse a query string (like urllib.parse.parse_qs()), and normalize the result.
893
894
  If specified, lists with single values (as returned from urllib.parse.parse_qs()) will be replaced with the single value.
894
895
  """
895
896
 
896
- results = urllib.parse.parse_qs(text)
897
+ results = urllib.parse.parse_qs(text, keep_blank_values = True)
897
898
  for (key, value) in results.items():
898
899
  if (replace_single_lists and (len(value) == 1)):
899
900
  results[key] = value[0] # type: ignore[assignment]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: edq-utils
3
- Version: 0.1.5
3
+ Version: 0.1.6
4
4
  Summary: Common utilities used by EduLinq Python projects.
5
5
  Author-email: Eriq Augustine <eriq@edulinq.org>
6
6
  License: MIT License
@@ -1,4 +1,4 @@
1
- edq/__init__.py,sha256=JWuQig2oh9EbAaMaO0ZUA1GK6IWZ6OTe1Zv7BiGki-o,86
1
+ edq/__init__.py,sha256=zzlJP1062nfEQu7AZNJwQURNoVHqDTUn7JuBdLU9Y4M,86
2
2
  edq/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  edq/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  edq/cli/version.py,sha256=SxarRVD_AVA-nD4pLVMe6ZjSJpMr7h_r3DgYYs42vjE,591
@@ -68,15 +68,15 @@ edq/util/hash.py,sha256=yjXGBCZNvMm49RaPCi9Ygf5FLUpGUrbVU7v8l8hn5Hc,1369
68
68
  edq/util/hash_test.py,sha256=GzvCwgPdzsOn5o63lE8cUurAnj-4arHnYCUcctTnWMQ,2714
69
69
  edq/util/json.py,sha256=nl_cxrlP97RX1BFtys8IT_3IfO0-XvBDQBe6YdrblB4,5936
70
70
  edq/util/json_test.py,sha256=utUVRbw3z42ke4fpRVI294RrFHcMKms8khVYRkISNk4,8009
71
- edq/util/net.py,sha256=3heVBv2PR8SkiNwFK3sW8qrdXiafpD1_TB2lbfFC0KE,34527
71
+ edq/util/net.py,sha256=rrm7ZmtvMMtvIpQmxRLOg6OUtrWXBlyCmLpI1RyjuMM,34613
72
72
  edq/util/parse.py,sha256=zA-GGbY5WF-rfAcWFlnYjDXQaNkxhoyLJ8X81UceCLw,786
73
73
  edq/util/pyimport.py,sha256=26OIuCXELyqtwlooMqDEs4GJQrkrAgxnXNYTlqqtsBY,2852
74
74
  edq/util/pyimport_test.py,sha256=Xno0MIa3yMTfBfoTgjKCIMpr1ZShU6bvo9rBRdecXQU,4202
75
75
  edq/util/reflection.py,sha256=jPcW6h0fwSDYh04O5rUxlgoF7HK6fVQ2mq7DD9qPrEg,972
76
76
  edq/util/time.py,sha256=anoNM_KniARLombv2BnsoHuCzDqMKiDdIzV7RUe2ZOk,2648
77
77
  edq/util/time_test.py,sha256=iQZwzVTVQQ4TdXrLb9MUMCYlKrIe8qyF-hiC9YLTaMo,4610
78
- edq_utils-0.1.5.dist-info/licenses/LICENSE,sha256=MS4iYEl4rOxMoprZuc86iYVoyk4YgaVoMt7WmGvVF8w,1064
79
- edq_utils-0.1.5.dist-info/METADATA,sha256=hzjgzjrj2uICOExh_Ca7jHTMIMXmkImmvM-_1GY-69w,7535
80
- edq_utils-0.1.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
81
- edq_utils-0.1.5.dist-info/top_level.txt,sha256=znBHSj6tgXtcMKrUVtovLli5fIEJCb7d-BMxTLRK4zk,4
82
- edq_utils-0.1.5.dist-info/RECORD,,
78
+ edq_utils-0.1.6.dist-info/licenses/LICENSE,sha256=MS4iYEl4rOxMoprZuc86iYVoyk4YgaVoMt7WmGvVF8w,1064
79
+ edq_utils-0.1.6.dist-info/METADATA,sha256=HD5uwUBWkF0QuE8DO7iuxTVdviSOPyrm-yc_AipERWA,7535
80
+ edq_utils-0.1.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
81
+ edq_utils-0.1.6.dist-info/top_level.txt,sha256=znBHSj6tgXtcMKrUVtovLli5fIEJCb7d-BMxTLRK4zk,4
82
+ edq_utils-0.1.6.dist-info/RECORD,,