stac-asset
stac-asset copied to clipboard
Read and download STAC Assets, using a variety of authentication schemes
Hi, first of all thank you for this project. As I have writter [here](https://github.com/stac-utils/pystac-client/issues/565#issuecomment-1644024933), I would like to download a ms-building id stack. And I have tried to do it...
All the pieces are there, so we should allow downloading of a file using our clients (even though it has nothing to do with STAC).
A in the middle of a download should remove any partially-created-but-not-finished files, and empty directories should then be nuked.
E.g. this might be the CLI command to copy an item collection, with all of its assets, to a new location: ```shell stac-asset copy s3://one-bucket/item-collection.json s3://other-bucket/item-collection.json ```
Should be `canonical`. Maybe an option to include it, or maybe always include? Hard to say...
Right now we're autodiscovering it, and this is fragile. Also unit test each name, since we might use the names as keys in https://github.com/AtomicMaps/secure-assets.
We use `await` in the examples which means you can't just execute them. This probably will require some reading around to figure out the best way to have async code...
Since we're touching all the bytes (at least in the download case) doing a checksum isn't much of a lift.