hydromt.typing.FSSpecFileSystem#

pydantic model hydromt.typing.FSSpecFileSystem[source]#

Pydantic compatible fsspec AbstractFileSystem.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

field protocol: str = 'file'#
field storage_options: dict[str, Any] [Optional]#
get_fs() AbstractFileSystem[source]#

Get the underlying fsspec filesystem.

serialize() dict[str, Any][source]#

Serialize the filesystem to a dict.

static create(input: Any) FSSpecFileSystem[source]#

Create an fsspec filesystem from various inputs.

model_post_init(context: Any, /) None#

This function is meant to behave like a BaseModel method to initialise private attributes.

It takes context as an argument since that’s what pydantic-core passes when calling it.

Args:

self: The BaseModel instance. context: The context.