schemas.py 664 Bytes
Newer Older
1
2
3
4
5

from pydantic import BaseModel, Field


class S3Config(BaseModel):
6
7
    """S3 config
    """
8
9
10
11
12
13
14
15
    bucket_name: str = Field(description='s3 bucket name', min_length=1)
    access_key: str = Field(description='s3 access key', min_length=1)
    secret_key: str = Field(description='s3 secret key', min_length=1)
    endpoint_url: str = Field(description='s3 endpoint url', min_length=1)
    addressing_style: str = Field(description='s3 addressing style', default='auto', min_length=1)


class PageInfo(BaseModel):
16
17
    """The width and height of page
    """
18
19
    w: float = Field(description='the width of page')
    h: float = Field(description='the height of page')