You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Client.open falls back to the STAC_URL environment variable if no url is provided as an argument #48
New Search.get_pages() iterator function to retrieve pages as raw JSON, not as ItemCollections
StacApiIO class added, subclass from PySTAC StacIO. A StacApiIO instance is used for all IO for a Client instance, and all requests
are in a single HTTP session, handle pagination and respects conformance
conformance.CONFORMANCE_CLASSES dictionary added containing all STAC API Capabilities from stac-api-spec
collections subcommand to CLI, for saving all Collections in catalog as JSON
Client.get_collections overrides Catalog to use /collections endpoint if API conforms
Client.get_collection(<collection_id>) for getting specific collection
Client.get_items and Client.get_all_items override Catalog functions to use search endpoint instead of traversing catalog
Changed
Update to use PySTAC 1.1.0
IO changed to use PySTAC's new StacIO base class.
Search.item_collections() renamed to Search.get_item_collections()
Search.item_collections() renamed to Search.get_items()
Conformance is checked by each individual function that requires a particular conformance
STAC API testing URLs changed to updated APIs
ItemSearch.get_pages() function moved to StacApiIO class for general use
Logging is now enabled in the CLI in all cases.
If data are being printed to stdout, logging goes to stderr. #79
Improved logging for GET requests (prints encoded URL)
Fixed
Running stac-client with no arguments no longer raises a confusing exception #52
The regular expression used for datetime parsing #59
Client.from_file now works as expected, using Client.open is not required, although it will fetch STAC_URL from an envvar
Removed
get_pages and simple_stac_resolver functions from pystac_client.stac_io (The new StacApiIO class understands Link objects)
Client.search() no longer accepts a next_resolver argument
pystac.extensions modules, which were based on PySTAC's previous extension implementation, replaced in 1.0.0
stac_api_object.StacApiObjectMixin, replaced with conformance checking in StacApiIO
PySTAC Collection objects can no longer be passed in as collections arguments to the ItemSearch class (just pass ids)
Catalog.get_collection_list (was alias to get_child_links) because made assumption about this being an API only. Also redundant with Catalog.get_collections
Search.item_collections()
Search.items()
STAC_URL environment variable in Client.open(). url parameter in Client is now required
STAC_URL environment variable in CLI. CLI now has a required positional argument for the URL