-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* API Updates * Added `sign_*` to the public API, for users wishing to bypass the overhead of `sign` * Restored `sign_assets` with a deprecation * Added a changelog
- Loading branch information
Tom Augspurger
authored
Jul 8, 2021
1 parent
d928a1e
commit 3656b6d
Showing
4 changed files
with
67 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# 0.3.0 | ||
|
||
## New Features | ||
|
||
* `sign` now works on strings, `pystac.Item`, `pystac.Asset`, `pystac.ItemCollection`, and `pystac_client.ItemSearch` instances. | ||
* Added top-level methods `sign_item`, `sign_asset`, and `sign_item_collection` to directly sign objects of those types. | ||
|
||
## Deprecations | ||
|
||
* `sign_assets` is deprecated. Use `sign_item` instead. | ||
|
||
## Bug Fixes | ||
|
||
* `sign_item` now handles items with assets containing links to files outside of blob storage by returning the asset unchanged. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,23 @@ | ||
"""Planetary Computer Python SDK""" | ||
# flake8:noqa | ||
|
||
from planetary_computer.sas import sign # type:ignore | ||
from planetary_computer.settings import set_subscription_key # type:ignore | ||
from planetary_computer.sas import ( | ||
sign, | ||
sign_url, | ||
sign_item, | ||
sign_assets, | ||
sign_asset, | ||
sign_item_collection, | ||
) | ||
from planetary_computer.settings import set_subscription_key | ||
|
||
|
||
__all__ = [ | ||
"set_subscription_key", | ||
"sign_asset", | ||
"sign_assets", | ||
"sign_item_collection", | ||
"sign_item", | ||
"sign_url", | ||
"sign", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters