Buckets:
| from datetime import datetime | |
| from pydantic import BaseModel | |
| from typing import Annotated | |
| class User(BaseModel): | |
| id:int | |
| name:str="John Doe" | |
| signup_ts:datetime | None = None | |
| friends: list[int]=[] | |
| external_data={ | |
| "id":"123", | |
| "signup_ts":"2017-06-01 12:22", | |
| "friends":[1,"2",b"3"], | |
| } | |
| user=User(**external_data) | |
| print (user) | |
| print("\n"*2) | |
| print(user.id) | |
| def say_hello(name:Annotated[str,"This is just metadata"])->str: | |
| return f'Hello {name}' | |
| print(say_hello("tongue")) |
Xet Storage Details
- Size:
- 504 Bytes
- Xet hash:
- c6ae31b4e4a96e12952c374d1b61a87df4fb01d9e210e8af2406da3cd63e85e0
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.