Skip to content

Fragility of url auto-parsing logic #561

@TomNicholas

Description

@TomNicholas

We have code to automatically interpret a URI as being a local file, S3-compatible store, or HTTPStore using Obstore.

def default_object_store(filepath: str) -> ObjectStore:

But it feels a bit fragile and not really core to this package.

Can we just delegate the entire logic to another package? E.g. to obstore via https://github.com/developmentseed/obstore/blob/95e586fc6c8c9425fb682fdb9aedb16e0b0a2935/obstore/python/obstore/store.py#L656-L765

Related also to the API choice in #553, as we could choose to just make this the user's problem and stop guessing what they gave us.

cc @maxrjones

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions