dcicutils 8.12.0.1b10__py3-none-any.whl → 8.13.0.1b1__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
dcicutils/es_utils.py CHANGED
@@ -1,6 +1,7 @@
1
1
  import logging
2
2
  import boto3
3
3
  from .misc_utils import PRINT
4
+ import dcicutils.hack_for_elasticsearch_numpy_usage # noqa
4
5
  from elasticsearch import Elasticsearch, RequestsHttpConnection
5
6
  from aws_requests_auth.boto_utils import BotoAWSRequestsAuth
6
7
 
dcicutils/ff_utils.py CHANGED
@@ -7,6 +7,7 @@ import requests
7
7
  import time
8
8
 
9
9
  from collections import namedtuple
10
+ import dcicutils.hack_for_elasticsearch_numpy_usage # noqa
10
11
  from elasticsearch.exceptions import AuthorizationException
11
12
  from typing import Dict, List, Optional
12
13
  from urllib.parse import parse_qs, urlencode, urlparse, urlunparse
@@ -0,0 +1,10 @@
1
+ # Though dcicutils is not dependent on numpy, elasticsearch pulls it in iff it is installed,
2
+ # and if it is numpy 2.x the numpy.float_ constant has been retired and any reference to it
3
+ # yields an error from numpy (AttributeError: np.float_ was removed in the NumPy 2.0 release.
4
+ # Use np.float64 instead); this reference to numpy.float_ occurs in elasticsearch/serializer.py.
5
+ # and we short-circuit it here by explicitly setting numpy.float_ to numpyh.float64.
6
+ try:
7
+ import numpy
8
+ numpy.float_ = numpy.float64
9
+ except Exception:
10
+ pass
@@ -1,6 +1,7 @@
1
1
  import datetime
2
2
  import logging
3
3
 
4
+ import dcicutils.hack_for_elasticsearch_numpy_usage # noqa
4
5
  from elasticsearch.exceptions import NotFoundError
5
6
  from .misc_utils import (
6
7
  environ_bool, PRINT, camel_case_to_snake_case, full_object_name,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dcicutils
3
- Version: 8.12.0.1b10
3
+ Version: 8.13.0.1b1
4
4
  Summary: Utility package for interacting with the 4DN Data Portal and other 4DN resources
5
5
  Home-page: https://github.com/4dn-dcic/utils
6
6
  License: MIT
@@ -24,13 +24,14 @@ dcicutils/env_manager.py,sha256=Nte1oiW_AQ-isatzsf-fiNpPWInLdfRxzPrATdNoKkI,9444
24
24
  dcicutils/env_scripts.py,sha256=gAoXOemg-zA4I_IPeRuymIfhNOYCw_WmPUa6kcSiWkg,3936
25
25
  dcicutils/env_utils.py,sha256=hJTXsn6GC55-55ja1ERBmUbeh-DjJABm74eYRGRaiSc,46970
26
26
  dcicutils/env_utils_legacy.py,sha256=J81OAtJHN69o1beHO6q1j7_J6TeblSjnAHlS8VA5KSM,29032
27
- dcicutils/es_utils.py,sha256=ZksLh5ei7kRUfiFltk8sd2ZSfh15twbstrMzBr8HNw4,7541
27
+ dcicutils/es_utils.py,sha256=bzhGkg0UqlYtGbpsiSo6RIyzgCnAKg0NosIX8y6iooI,7601
28
28
  dcicutils/exceptions.py,sha256=4giQGtpak-omQv7BP6Ckeu91XK5fnDosC8gfdmN_ccA,9931
29
29
  dcicutils/ff_mocks.py,sha256=6RKS4eUiu_Wl8yP_8V0CaV75w4ZdWxdCuL1CVlnMrek,36918
30
- dcicutils/ff_utils.py,sha256=oIhuZPnGtfwj6bWyCc1u23JbMB_6InPp01ZqUOljd8M,73123
30
+ dcicutils/ff_utils.py,sha256=UkX8Fd8EyyzTvJzqf5nTRwFEG08oc95NC-g8gYTv_XE,73183
31
31
  dcicutils/file_utils.py,sha256=zyNdRl1Fu3SrQwjJWaIMvQpi4DRaodNZCX7oTkiPJ-A,10916
32
32
  dcicutils/function_cache_decorator.py,sha256=XMyiEGODVr2WoAQ68vcoX_9_Xb9p8pZXdXl7keU8i2g,10026
33
33
  dcicutils/glacier_utils.py,sha256=Q4CVXsZCbP-SoZIsZ5NMcawDfelOLzbQnIlQn-GdlTo,34149
34
+ dcicutils/hack_for_elasticsearch_numpy_usage.py,sha256=c4pqGSUOzNzwCvYU39wWIdQB4ysctXefKiTgL4-iFU8,543
34
35
  dcicutils/http_utils.py,sha256=tNfH5JA-OwbQKEvD5HPJ3lcp2TSIZ4rnl__4d4JO8Gw,1583
35
36
  dcicutils/jh_utils.py,sha256=Gpsxb9XEzggF_-Eq3ukjKvTnuyb9V1SCSUXkXsES4Kg,11502
36
37
  dcicutils/kibana/dashboards.json,sha256=wHMB_mpJ8OaYhRRgvpZuihaB2lmSF64ADt_8hkBWgQg,16225
@@ -62,7 +63,7 @@ dcicutils/scripts/run_license_checker.py,sha256=z2keYnRDZsHQbTeo1XORAXSXNJK5axVz
62
63
  dcicutils/scripts/view_portal_object.py,sha256=rnlIoblDpoLPJ-Bor7OHxLgrVZyvqoxA0jmHW8ogg3s,29805
63
64
  dcicutils/secrets_utils.py,sha256=8dppXAsiHhJzI6NmOcvJV5ldvKkQZzh3Fl-cb8Wm7MI,19745
64
65
  dcicutils/sheet_utils.py,sha256=VlmzteONW5VF_Q4vo0yA5vesz1ViUah1MZ_yA1rwZ0M,33629
65
- dcicutils/snapshot_utils.py,sha256=ymP7PXH6-yEiXAt75w0ldQFciGNqWBClNxC5gfX2FnY,22961
66
+ dcicutils/snapshot_utils.py,sha256=YDeI3vD-MhAtHwKDzfEm2q-n3l-da2yRpRR3xp0Ah1M,23021
66
67
  dcicutils/ssl_certificate_utils.py,sha256=F0ifz_wnRRN9dfrfsz7aCp4UDLgHEY8LaK7PjnNvrAQ,9707
67
68
  dcicutils/structured_data.py,sha256=TA7kJ-utVj_xa5XnVs7VaG_XQicl5MUWmrVkDm0N8qE,64471
68
69
  dcicutils/submitr/progress_constants.py,sha256=5bxyX77ql8qEJearfHEvsvXl7D0GuUODW0T65mbRmnE,2895
@@ -73,8 +74,8 @@ dcicutils/trace_utils.py,sha256=g8kwV4ebEy5kXW6oOrEAUsurBcCROvwtZqz9fczsGRE,1769
73
74
  dcicutils/validation_utils.py,sha256=cMZIU2cY98FYtzK52z5WUYck7urH6JcqOuz9jkXpqzg,14797
74
75
  dcicutils/variant_utils.py,sha256=2H9azNx3xAj-MySg-uZ2SFqbWs4kZvf61JnK6b-h4Qw,4343
75
76
  dcicutils/zip_utils.py,sha256=_Y9EmL3D2dUZhxucxHvrtmmlbZmK4FpSsHEb7rGSJLU,3265
76
- dcicutils-8.12.0.1b10.dist-info/LICENSE.txt,sha256=qnwSmfnEWMl5l78VPDEzAmEbLVrRqQvfUQiHT0ehrOo,1102
77
- dcicutils-8.12.0.1b10.dist-info/METADATA,sha256=RsWzNeoHXfGGOmbefKInEOlGk9m-F9iQHV8aDJ-SqIY,3447
78
- dcicutils-8.12.0.1b10.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
79
- dcicutils-8.12.0.1b10.dist-info/entry_points.txt,sha256=51Q4F_2V10L0282W7HFjP4jdzW4K8lnWDARJQVFy_hw,270
80
- dcicutils-8.12.0.1b10.dist-info/RECORD,,
77
+ dcicutils-8.13.0.1b1.dist-info/LICENSE.txt,sha256=qnwSmfnEWMl5l78VPDEzAmEbLVrRqQvfUQiHT0ehrOo,1102
78
+ dcicutils-8.13.0.1b1.dist-info/METADATA,sha256=CkXdz7pX-f0eTVbNovWOVWGtSxL0qaIvDoh6KMYPgeg,3446
79
+ dcicutils-8.13.0.1b1.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
80
+ dcicutils-8.13.0.1b1.dist-info/entry_points.txt,sha256=51Q4F_2V10L0282W7HFjP4jdzW4K8lnWDARJQVFy_hw,270
81
+ dcicutils-8.13.0.1b1.dist-info/RECORD,,