fsspec_data.schema¶
Attributes¶
Classes¶
str(object='') -> str |
|
Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Module Contents¶
- class fsspec_data.schema.SchemaFormat[source]¶
Bases:
str,enum.Enumstr(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.
Initialize self. See help(type(self)) for accurate signature.
- ARROW_IPC = 'arrow-ipc-schema'¶
- ARROW_JSON = 'arrow-json'¶
- JSON_SCHEMA = 'json-schema'¶
- class fsspec_data.schema.SchemaRef[source]¶
- url: str¶
- format: SchemaFormat | str | None = None¶
- storage_options: collections.abc.Mapping[str, Any]¶
- class fsspec_data.schema.SchemaProvenance[source]¶
- source: str¶
- format: str¶
- provider: str¶
- identifier: str | None = None¶
- version: str | None = None¶
- class fsspec_data.schema.ResolvedSchema[source]¶
- schema: pyarrow.Schema¶
- provenance: SchemaProvenance¶
- class fsspec_data.schema.SchemaDocument[source]¶
- data: bytes¶
- format: SchemaFormat¶
- provenance: SchemaProvenance¶
- type fsspec_data.schema.SchemaInput = pa.Schema | SchemaRef | str | Mapping[str, Any] | Sequence[Mapping[str, Any]] | None¶
- type fsspec_data.schema.SchemaDecoder = Callable[[bytes], pa.Schema]¶
- type fsspec_data.schema.SchemaProvider = Callable[[SchemaRef], SchemaDocument]¶
- class fsspec_data.schema.SchemaResolverRegistry[source]¶
- _decoders: dict[SchemaFormat, SchemaDecoder]¶
- _providers: dict[str, SchemaProvider]¶
- register(format: SchemaFormat | str, decoder: SchemaDecoder) None[source]¶
- resolve(reference: SchemaRef) ResolvedSchema[source]¶
- fsspec_data.schema.resolve_schema(value: pyarrow.Schema | SchemaRef | None, registry: SchemaResolverRegistry | None = None) ResolvedSchema | None[source]¶
- fsspec_data.schema.schema_from_options(value: collections.abc.Mapping[str, Any] | collections.abc.Sequence[collections.abc.Mapping[str, Any]]) pyarrow.Schema[source]¶
- fsspec_data.schema._field_from_options(value: collections.abc.Mapping[str, Any]) pyarrow.Field[source]¶
- fsspec_data.schema._format_from_url(url: str) SchemaFormat[source]¶
- fsspec_data.schema._resolve_fsspec_document(reference: SchemaRef) SchemaDocument[source]¶
- fsspec_data.schema._resolve_confluent_document(reference: SchemaRef) SchemaDocument[source]¶
- fsspec_data.schema.DEFAULT_SCHEMA_RESOLVERS¶