Skip to content

Commit

Permalink
Import python implementations from python, not rust wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgleith committed Oct 18, 2024
1 parent 4827cee commit 37eaee6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
15 changes: 9 additions & 6 deletions python/python/stacrs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
from . import stacrs
from .stacrs import (
import pystac
from .pystac import (
migrate,
migrate_href,
read,
search,
search_to,
validate,
validate_href,
write,
)

__doc__ = stacrs.__doc__
from .stacrs import (
migrate_href,
search_to,
validate_href,
)

__doc__ = pystac.__doc__
__all__ = [
"migrate",
"migrate_href",
Expand Down
4 changes: 2 additions & 2 deletions python/python/stacrs/pystac.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def search(
... max_items=1,
... ))
"""
items = stacrs.search(
items_dict = stacrs.search(
href,
intersects=intersects,
ids=ids,
Expand All @@ -164,7 +164,7 @@ def search(
filter=filter,
query=query,
)
return (Item.from_dict(d) for d in items)
return ItemCollection(Item.from_dict(d) for d in items_dict)


def validate(
Expand Down

0 comments on commit 37eaee6

Please sign in to comment.