-
Notifications
You must be signed in to change notification settings - Fork 53
IO updates, new StacApiIO class #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
9983673
linting
matthewhanson bca15d2
initial StacIO updates
matthewhanson cfe7e1a
StacApiIO updates
matthewhanson accf058
remove extensions implementation that were based on old PySTAC extens…
matthewhanson e3364a5
updated changelog
matthewhanson c9d5ba4
updated CHANGELOG
matthewhanson de16bab
update cli to use search.get_all_items()
matthewhanson 242699d
refactor IO, create StacApiIO
matthewhanson 7b6f72c
bump to beta version
matthewhanson 2d7dbbf
updated ItemCollection class
matthewhanson d3fb58d
refactor client and item_search to use new StacApiIO class
matthewhanson a14cbe5
Merge branch 'main' of https://github.com/stac-utils/pystac-api-clien…
matthewhanson 0158d05
update tests
matthewhanson c63aa08
allow ItemSearch to be used without specifying stac_io class (will cr…
matthewhanson 3ba2785
misc test updates
matthewhanson d4f2758
add ParametersError class
matthewhanson 17133d4
add conforms_to function to Client
matthewhanson 0e90618
fix matched function when providing limit
matthewhanson 1a91137
use new PySTAC ItemCollection class
matthewhanson 5732071
refactor conformance to use single base class to manage supported API…
matthewhanson 1d1866d
update CHANGELOG
matthewhanson e6eafe8
remove old stac api object class
matthewhanson 4222ef9
removed read_json, fixed upstream in PySTAC
matthewhanson cf7a8fc
return True from check_conformance
matthewhanson 701610f
update client tests
matthewhanson 448266e
add list of STAC_URLS for testing
matthewhanson b319c82
update tests with STAC_URLS array
matthewhanson 019baf2
add planetary computer root JSON
matthewhanson 7c431f9
new test file
matthewhanson a9304cd
updated VCR cassettes (for testing)
matthewhanson 737282c
remove passing in Collection objects to ItemSearch
matthewhanson 31ab075
set limit to min of limit or max-items
matthewhanson a3f300b
updated tests and cassettes
matthewhanson ade115c
linting updates
matthewhanson d7fb3ba
code formatting
matthewhanson 13be883
peg pystac dependency to a commit
matthewhanson 7c6cd62
pystac http repo link in setup
matthewhanson b805334
peg pystac to 1.0.0rc.1
matthewhanson 25a5886
do not convert items to ItemCollection in CLI before saving
matthewhanson 27dbc0d
remove client.from_file, fixed upstream in PySTAC
matthewhanson 8b9ad6b
use StacApiIO in CLI
matthewhanson cbece20
Update pystac_client/conformance.py
matthewhanson 40d8654
simplify logger propagation
matthewhanson 3192c8a
remove commented code
matthewhanson 1eb6d49
Merge branch 'mah/updates' of github.com:stac-utils/pystac-client int…
matthewhanson b7ed654
Update conforms_to docstring
matthewhanson a10557b
upate type for conformance
matthewhanson 4c13be2
Merge branch 'mah/updates' of github.com:stac-utils/pystac-client int…
matthewhanson af9ef01
raise error conformance class does not exist
matthewhanson 45cbf47
terseness
matthewhanson 237cf0a
Merge branch 'mah/updates' of github.com:stac-utils/pystac-client int…
matthewhanson 1a591de
fix indent
matthewhanson 88a0767
pass in empty string to _json_loads
matthewhanson 231e9e2
update from_dict in Client
matthewhanson e7bc770
revert to original saving/output of item collection in CLI
matthewhanson 07bc110
formatting updates
matthewhanson e114ee1
add ConformanceClass enum
matthewhanson 8e398c3
use warnings.warn for warnings
matthewhanson fafd842
update tests to remove deprecated functions
matthewhanson 124a0e6
linting updates
matthewhanson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,23 +1,5 @@ | ||
# flake8: noqa | ||
from pystac import STAC_IO | ||
import pystac.extensions.base | ||
|
||
from pystac_client.version import __version__ | ||
from pystac_client.stac_api_object import STACAPIObjectMixin | ||
from pystac_client.item_collection import ItemCollection | ||
from pystac_client.extensions import APIExtensions | ||
from pystac_client.item_search import ItemSearch | ||
from pystac_client.client import Client | ||
from pystac_client.conformance import ConformanceClasses | ||
|
||
from pystac_client.stac_io import read_text_method | ||
|
||
from pystac_client import extensions | ||
import pystac_client.extensions.context | ||
|
||
# Replace the read_text_method | ||
STAC_IO.read_text_method = read_text_method | ||
|
||
# Add API Extensions | ||
STAC_API_EXTENSIONS = pystac.extensions.base.RegisteredSTACExtensions( | ||
[extensions.context.CONTEXT_EXTENSION_DEFINITION]) |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.