Skip to content

Use FrozenDocumentLoader when HTTP loaders are unavailable #307

Description

@anatoly-scherbakov

At import time, PyLD currently selects RequestsDocumentLoader when requests is installed, AioHttpDocumentLoader when aiohttp is installed, and otherwise a dummy loader that raises on use.

Consider using FrozenDocumentLoader as the third fallback so bundled contexts remain available when neither HTTP dependency is installed.

This would change the fallback behavior for URLs outside BUNDLED_CONTEXTS, so assess compatibility, error behavior, default-loader documentation, and tests before implementation.

Origin: #301 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions