pandera.typing.fastapi.UploadFile#
- class pandera.typing.fastapi.UploadFile(data, filename, file, *args, **kwargs)[source]#
Pandera-specific subclass of fastapi.UploadFile.
This type uses
pandera.typing.DataFrame
to read files into dataframe format based on thepandera.models.SchemaModel
configuration.Initialize UploadFile object that has a
data
property that contains validated data.- Parameters
data (
Any
) – pandera-validated data- Filename
Attributes
data
filename
file
headers
spool_max_size
Methods
Initialize UploadFile object that has a
data
property that contains validated data.Pydantic validation method for validating dataframes in the context of a file upload.