datamarket 0.9.53__py3-none-any.whl → 0.9.55__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 datamarket might be problematic. Click here for more details.

@@ -64,5 +64,8 @@ class AWSInterface:
64
64
  def read_file_as_bytes(self, s3_path: str) -> io.BytesIO:
65
65
  return io.BytesIO(self.get_file(s3_path)["Body"].read())
66
66
 
67
- def upload_file(self, local_path: str, s3_path: str) -> None:
68
- self.s3.Bucket(self.bucket).upload_file(local_path, s3_path)
67
+ def upload_file(self, local_path: str, s3_path: str, **kwargs) -> None:
68
+ if not self.bucket:
69
+ logger.warning("No active bucket selected")
70
+ return
71
+ self.s3.Bucket(self.bucket).upload_file(local_path, s3_path, **kwargs)
@@ -36,7 +36,7 @@ class FTPInterface:
36
36
  self.current_profile: Optional[Dict[str, Any]] = (
37
37
  self.profiles[0] if self.profiles else None
38
38
  )
39
- self.ftp = self.current_profile["session"]
39
+ self.ftp = self.current_profile["session"] if self.current_profile else None
40
40
 
41
41
  def switch_profile(self, profile_name: str) -> None:
42
42
  for profile in self.profiles:
@@ -1,9 +1,8 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.3
2
2
  Name: datamarket
3
- Version: 0.9.53
3
+ Version: 0.9.55
4
4
  Summary: Utilities that integrate advanced scraping knowledge into just one library.
5
5
  License: GPL-3.0-or-later
6
- License-File: LICENSE
7
6
  Author: DataMarket
8
7
  Author-email: techsupport@datamarket.es
9
8
  Requires-Python: >=3.12,<3.13
@@ -3,10 +3,10 @@ datamarket/exceptions/__init__.py,sha256=-Vu-RZNKjW6fYCLqbUJTkKNuHeA8Yi_gyR50oZN
3
3
  datamarket/exceptions/main.py,sha256=MP5ql6M7DoMbBf-Dg_2ohcUFdWXgzv-dXHntPPit31s,453
4
4
  datamarket/interfaces/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  datamarket/interfaces/alchemy.py,sha256=mQwjDqBpz1QHRV2JTCALvn5iK_ky69oE2Gw-EtRXsqQ,14664
6
- datamarket/interfaces/aws.py,sha256=7KLUeBxmPN7avEMPsu5HC_KHB1N7W6Anp2X8fo43mlw,2383
6
+ datamarket/interfaces/aws.py,sha256=0KWVMClVmyR50xGR_7rkvDCPobixgU8Gy_pz-j25bVU,2506
7
7
  datamarket/interfaces/azure.py,sha256=4lxjL4O4nGO8aDmzY8m9x6vzgYpzQaBWwhERrTuwtqA,4936
8
8
  datamarket/interfaces/drive.py,sha256=3nhx3THr2SHNWKYwme9F2nPpvsqyEMFIxz0whF2FjHk,4840
9
- datamarket/interfaces/ftp.py,sha256=kj6Q60lWA2oUamQmfdAQVkXj7Mzc0BS1onTTX-tBl7w,2778
9
+ datamarket/interfaces/ftp.py,sha256=EJQBhbHncZxNO-2xL9vS7PpwwbeE_Q8m-toG8hDS_VA,2812
10
10
  datamarket/interfaces/nominatim.py,sha256=HLk0FcdfbOVCF_i71l-Hlb17swL0W1a3Gg2n5OLD0tM,15507
11
11
  datamarket/interfaces/peerdb.py,sha256=cwYwvO740GyaPo9zLAwJsf3UeJDGDiYzjQVM9Q6s-_g,23652
12
12
  datamarket/interfaces/proxy.py,sha256=updoOStKd8-nQBbxWbnD9eOt6HksnYi-5dQ0rEySf5M,3152
@@ -27,7 +27,7 @@ datamarket/utils/strings/normalization.py,sha256=rj0wfJSjqcCRp-ruHqc5pylO3_TOmY5
27
27
  datamarket/utils/strings/obfuscation.py,sha256=8gMepfjPq0N4_IpKR6i2dy_9VJugQ3qJiRiRvKavB3s,5246
28
28
  datamarket/utils/typer.py,sha256=FDF3l6gh3UlAFPsHCtesnekvct2rKz0oFn3uKARBQvE,814
29
29
  datamarket/utils/types.py,sha256=vxdQZdwdXrfPR4Es52gBgol-tMRIOD6oK9cBo3rB0JQ,74
30
- datamarket-0.9.53.dist-info/METADATA,sha256=k1wSWRCTNjm9dLCiqJHt5-X3Z04Btd2dtzS2NAsw98o,7348
31
- datamarket-0.9.53.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
32
- datamarket-0.9.53.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
33
- datamarket-0.9.53.dist-info/RECORD,,
30
+ datamarket-0.9.55.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
31
+ datamarket-0.9.55.dist-info/METADATA,sha256=vd7oF92t0jzK6sbxgdY98nQv8r0B6HthT-NC9s1j4wM,7326
32
+ datamarket-0.9.55.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
33
+ datamarket-0.9.55.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.2.1
2
+ Generator: poetry-core 2.1.3
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any