nextmv 0.38.0__py3-none-any.whl → 0.38.0.dev0__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.
nextmv/__about__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "v0.38.0"
1
+ __version__ = "v0.38.0.dev0"
@@ -2548,7 +2548,7 @@ class Application:
2548
2548
 
2549
2549
  Retrieves a list of assets associated with a specific run. This method ONLY
2550
2550
  returns the asset metadata, the content needs to be fetched via the
2551
- `download_asset_content` method.
2551
+ `download_asset` method.
2552
2552
 
2553
2553
  Parameters
2554
2554
  ----------
@@ -2582,13 +2582,9 @@ class Application:
2582
2582
  asset_data["run_id"] = run_id
2583
2583
  return [RunAsset.from_dict(asset) for asset in assets_data]
2584
2584
 
2585
- def download_asset_content(
2586
- self,
2587
- asset: RunAsset,
2588
- destination: str | pathlib.Path | io.BytesIO | None = None,
2589
- ) -> Any | None:
2585
+ def download_asset(self, asset: RunAsset, destination: str | pathlib.Path | io.BytesIO | None = None) -> Any | None:
2590
2586
  """
2591
- Downloads an asset's content to a specified destination.
2587
+ Downloads an asset to a specified destination.
2592
2588
 
2593
2589
  Parameters
2594
2590
  ----------
@@ -2603,10 +2599,10 @@ class Application:
2603
2599
  Returns
2604
2600
  -------
2605
2601
  Any or None
2606
- If `destination` is None, returns the asset content: for JSON assets, a
2607
- `dict` parsed from the JSON response; for other asset types, the raw
2608
- `bytes` content. If `destination` is provided, the content is written
2609
- to the given destination and the method returns `None`.
2602
+ If ``destination`` is None, returns the asset content: for JSON assets, a
2603
+ ``dict`` parsed from the JSON response; for other asset types, the raw
2604
+ ``bytes`` content. If ``destination`` is provided, the content is written
2605
+ to the given destination and the method returns ``None``.
2610
2606
 
2611
2607
  Raises
2612
2608
  ------
@@ -2618,13 +2614,13 @@ class Application:
2618
2614
  >>> assets = app.list_assets("run-123")
2619
2615
  >>> asset = assets[0] # Assume we want to download the first asset
2620
2616
  >>> # Download to a file path
2621
- >>> app.download_asset_content(asset, "polygons.geojson")
2617
+ >>> app.download_asset(asset, "polygons.geojson")
2622
2618
  >>> # Download to an in-memory bytes buffer
2623
2619
  >>> import io
2624
2620
  >>> buffer = io.BytesIO()
2625
- >>> app.download_asset_content(asset, buffer)
2621
+ >>> app.download_asset(asset, buffer)
2626
2622
  >>> # Download and get content directly (for JSON assets)
2627
- >>> content = app.download_asset_content(asset)
2623
+ >>> content = app.download_asset(asset)
2628
2624
  >>> print(content)
2629
2625
  {'type': 'FeatureCollection', 'features': [...]}
2630
2626
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nextmv
3
- Version: 0.38.0
3
+ Version: 0.38.0.dev0
4
4
  Summary: The all-purpose Python SDK for Nextmv
5
5
  Project-URL: Homepage, https://www.nextmv.io
6
6
  Project-URL: Documentation, https://nextmv-py.docs.nextmv.io/en/latest/nextmv/
@@ -1,4 +1,4 @@
1
- nextmv/__about__.py,sha256=TdPLKw4e3k7e30CulJMVTdoN7MAhlwuoBr5ZI1SLWBI,24
1
+ nextmv/__about__.py,sha256=B3Rm3n9eSYc4eLAPE3W9zEDGU4NjLwJTxIYAUUXnZN8,29
2
2
  nextmv/__entrypoint__.py,sha256=dA0iwwHtrq6Z9w9FxmxKLoBGLyhe7jWtUAU-Y3PEgHg,1094
3
3
  nextmv/__init__.py,sha256=mC-gAzCdoZJ0BOVe2fDzKNdBtbXzx8XOxHP_7DdPMdQ,3857
4
4
  nextmv/_serialization.py,sha256=jYitMS1MU8ldsmObT-K_8V8P2Wx69tnDiEHCCgPGun4,2834
@@ -17,7 +17,7 @@ nextmv/status.py,sha256=SCDLhh2om3yeO5FxO0x-_RShQsZNXEpjHNdCGdb3VUI,2787
17
17
  nextmv/cloud/__init__.py,sha256=n8laWdl0BjKmJOgGdPLHYUY_eaqhmXlW0-421A3SfwM,5336
18
18
  nextmv/cloud/acceptance_test.py,sha256=fZdp4O6pZrl7TaiUrTFPp7O4VJt-4R_W2yo4s8UAS5I,27691
19
19
  nextmv/cloud/account.py,sha256=jIdGNyI3l3dVh2PuriAwAOrEuWRM150WgzxcBMVBNRw,6058
20
- nextmv/cloud/application.py,sha256=tJRi6lfzfsPemqe37p4MigpVEnvi5fSiufUmErLxKk4,144220
20
+ nextmv/cloud/application.py,sha256=9i6OqLYvVrYsDk0QJ6SAYVGWW743vA-ScvSnP5vZYWE,144149
21
21
  nextmv/cloud/assets.py,sha256=alw634ub-DR0CHQXZy_ObeGvQthPXFLdgzgbvbH1SGY,1376
22
22
  nextmv/cloud/batch_experiment.py,sha256=VmKgjBW6BpkH4loO0afMGNXrwJ5whhijQ99pm94vBto,10349
23
23
  nextmv/cloud/client.py,sha256=Yj4FE4GKsLHkYijAYXcotlyNfhAWANMuWetHXsYPg1M,18101
@@ -45,7 +45,7 @@ nextmv/local/geojson_handler.py,sha256=7FavJdkUonop-yskjis0x3qFGB8A5wZyoBUblw-bV
45
45
  nextmv/local/local.py,sha256=cp56UpI8h19Ob6Jvb_Ni0ceXH5Vv3ET_iPTDe6ftq3Y,2617
46
46
  nextmv/local/plotly_handler.py,sha256=bLb50e3AkVr_W-F6S7lXfeRdN60mG2jk3UElNmhoMWU,1930
47
47
  nextmv/local/runner.py,sha256=Fa-G4g5yaBgLeBfYU-ePs65Q3Ses_xYvXGhPtHpAkrU,8546
48
- nextmv-0.38.0.dist-info/METADATA,sha256=pwHkld0mBlgrNOibG0ruEVsRWDuJlC-rd1IyfuDGD3E,15990
49
- nextmv-0.38.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
50
- nextmv-0.38.0.dist-info/licenses/LICENSE,sha256=ZIbK-sSWA-OZprjNbmJAglYRtl5_K4l9UwAV3PGJAPc,11349
51
- nextmv-0.38.0.dist-info/RECORD,,
48
+ nextmv-0.38.0.dev0.dist-info/METADATA,sha256=j989AkAWEJkZW7y0eKU-RTOIZeH7oNcJzv1GKNwlHqE,15995
49
+ nextmv-0.38.0.dev0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
50
+ nextmv-0.38.0.dev0.dist-info/licenses/LICENSE,sha256=ZIbK-sSWA-OZprjNbmJAglYRtl5_K4l9UwAV3PGJAPc,11349
51
+ nextmv-0.38.0.dev0.dist-info/RECORD,,