PY BASE MODEL
Model data validator
Examples
Model with primitive type attributes
from base_model.base_model import BaseModel
class PrimitiveFieldsModel(BaseModel):
id: int
name: str
active: bool
size: float
Model with time type attributes
from datetime import datetime, date, time
from base_model.base_model import BaseModel
class TimeFieldsModel(BaseModel):
birthday: date
register: datetime
alarm: time
Model with list type attributes
from typing import List
from base_model.base_model import BaseModel
class ListFieldsModel(BaseModel):
names: List[str]
ages: List[int]
enables: List[bool]
Release files for base-model-guiosoft 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| base-model-guiosoft-0.0.3.tar.gz | 6.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| base_model_guiosoft-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.2 kB
Release files / base-model-guiosoft-0.0.3.tar.gz
| Download URL | base-model-guiosoft-0.0.3.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
49953d13de52c3516b73655c2e4359cc95ef1dc9895d6b66c8cb88937baf25f8
|
|
BLAKE2b-256 checksum How to use checksums |
021bb41c53dc7f2409d3a565c88be870b4d3c417c94b8262d152ba00cfae3a67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9
|
Release files / base_model_guiosoft-0.0.3-py3-none-any.whl
| Download URL | base_model_guiosoft-0.0.3-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
edccb7ffda7b371df5bd8dbe854fdec49e7b1f637e4d4c0a2f10d3de57b5f6a7
|
|
BLAKE2b-256 checksum How to use checksums |
b692c7912292b7a53e5a012ae0303900de4eb5c037159429aedf2b1231b2fb7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9
|