cognite-extractor-utils 7.0.2__py3-none-any.whl → 7.0.3__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.
@@ -16,5 +16,5 @@
16
16
  Cognite extractor utils is a Python package that simplifies the development of new extractors.
17
17
  """
18
18
 
19
- __version__ = "7.0.2"
19
+ __version__ = "7.0.3"
20
20
  from .base import Extractor
@@ -162,9 +162,9 @@ class IOFileUploadQueue(AbstractUploadQueue):
162
162
  file_meta, _url = self.cdf_client.files.create(
163
163
  file_metadata=file_meta, overwrite=self.overwrite_existing
164
164
  )
165
- elif size > pow(5, 9):
165
+ elif size > 5 * 1024 * 1024 * 1024:
166
166
  # File bigger than 5Gb
167
- self.logger.warning(f"File {file_meta.source} has more than 5Gb")
167
+ self.logger.warning(f"File {file_meta.source} is larger than 5GiB, file will not be uploaded")
168
168
  file_meta = FileMetadata()
169
169
  else:
170
170
  file_meta = self.cdf_client.files.upload_bytes(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cognite-extractor-utils
3
- Version: 7.0.2
3
+ Version: 7.0.3
4
4
  Summary: Utilities for easier development of extractors for CDF
5
5
  Home-page: https://github.com/cognitedata/python-extractor-utils
6
6
  License: Apache-2.0
@@ -1,4 +1,4 @@
1
- cognite/extractorutils/__init__.py,sha256=2lG10jlln2GBVFsgvhjHFvBLyPUQgeESNNfejOuuRuU,739
1
+ cognite/extractorutils/__init__.py,sha256=GyvtIzhNZFrNOGD1lAq_6pxbbbGcFmgrJNIhjY79Tpk,739
2
2
  cognite/extractorutils/_inner_util.py,sha256=gmz6aqS7jDNsg8z4RHgJjMFohDLOMiaU4gMWBhg3xcE,1558
3
3
  cognite/extractorutils/base.py,sha256=o5oFzGBaszv7-HWMVG2ATmZwZfzi8enyrYIKwUagyCQ,16148
4
4
  cognite/extractorutils/configtools/__init__.py,sha256=L-daaqInIsmHcjb2forJeY0fW8tz1mlteOUo7IsWnrU,3059
@@ -15,13 +15,13 @@ cognite/extractorutils/uploader/_base.py,sha256=-aFfoMSBGd9YUUMHL3ZQpLIuNMA7TNkl
15
15
  cognite/extractorutils/uploader/_metrics.py,sha256=J2LJXb19L_SLSJ_voNIQHYLp0pjxUKevpH1q_xKX6Hk,3247
16
16
  cognite/extractorutils/uploader/assets.py,sha256=2E90N1kxsaA6Ah4h0_r_dTVhDYY_68ItRWrHYkkltJw,5628
17
17
  cognite/extractorutils/uploader/events.py,sha256=NZP2tMoU_rh_rb-EZiUBsOT5KdNABHN4c9Oddk0OsdE,5680
18
- cognite/extractorutils/uploader/files.py,sha256=A0HxmXLT6lK2QEZf-55Ma0FiisUl1a-VWxKF3SB07GM,13869
18
+ cognite/extractorutils/uploader/files.py,sha256=eRaFmnmUNr034HTm85JVzvl6wP3mMT5co6QmPyZ7yoo,13911
19
19
  cognite/extractorutils/uploader/raw.py,sha256=wFjF90PFTjmByOWx_Y4_YfDJ2w2jl0EQJ2Tjx2MP2PM,6738
20
20
  cognite/extractorutils/uploader/time_series.py,sha256=VptUq129MY0t8yw4rxeL0kOhz2dMibz4XdyvfhfYGj8,26840
21
21
  cognite/extractorutils/uploader_extractor.py,sha256=E-mpVvbPg_Tk90U4S9JybV0duptJ2SXE88HB6npE3zI,7732
22
22
  cognite/extractorutils/uploader_types.py,sha256=5MKT14DUnTFVD5Nx4Zvnfp2SfaICuTKLWAFAYaZishk,1045
23
23
  cognite/extractorutils/util.py,sha256=1Atq4-N2Pyi6GrxMa1PEfMCTqhPiLb2YoUXTzd60Roc,17179
24
- cognite_extractor_utils-7.0.2.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
25
- cognite_extractor_utils-7.0.2.dist-info/METADATA,sha256=pE7JlOYLjX4ry0sfTGY-1uPgQ5c556g04Lqd8bXiCKg,5437
26
- cognite_extractor_utils-7.0.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
27
- cognite_extractor_utils-7.0.2.dist-info/RECORD,,
24
+ cognite_extractor_utils-7.0.3.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
25
+ cognite_extractor_utils-7.0.3.dist-info/METADATA,sha256=YJXCJSXMRj8T5DS3Ix3qArW6qt3Gc6EdsKG6LipVp0g,5437
26
+ cognite_extractor_utils-7.0.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
27
+ cognite_extractor_utils-7.0.3.dist-info/RECORD,,