Hi
user
Admin Login:
Username:
Password:
Name:
How to Use Static Typing in Python with Type Hints, MyPy and Pydantic
--client
pyohio
--show
pyohio_2024
--room orchid_east 15473 --force
Next: 10 Validating Complex Types Using Pydantic
show more...
Marks
Author(s):
Jack Bennett
Location
Orchid East
Date
jul Sat 27
Days Raw Files
Start
11:45
First Raw Start
11:30
Duration
00:30:00
Offset
0:14:49
End
12:15
Last Raw End
12:30
Chapters
00:00
0:13:25
Total cuts_time
26 min.
https://www.pyohio.org/2024/program/talks/is-python-your-type-of-programming-language
raw-playlist
raw-mp4-playlist
encoded-files-playlist
host
archive
mp4
svg
png
assets
release.pdf
Is_Python_Your_TYPE_of_Programming_Language_How_to_Use_Static_Typing_in_Python_with_Type_Hints_MyPy_and_Pydantic.json
logs
Admin:
episode
episode list
cut list
raw files day
marks day
marks day
image_files
State:
---------
borked
edit
encode
push to queue
post
richard
review 1
email
review 2
make public
tweet
to-miror
conf
done
Locked:
clear this to unlock
Locked by:
user/process that locked.
Start:
initially scheduled time from master, adjusted to match reality
Duration:
length in hh:mm:ss
Name:
Video Title (shows in video search results)
Emails:
email(s) of the presenter(s)
Released:
Unknown
Yes
No
has someone authorised pubication
Normalise:
Channelcopy:
m=mono, 01=copy left to right, 10=right to left, 00=ignore.
Thumbnail:
filename.png
Description:
Python's dynamic typing system famously offers flexibility, but this can sometimes lead to runtime errors that are hard to detect or predict. In many cases, the programmer knows what type a variable "should" be, but in earlier language versions the only option to enforce this was by writing custom, run\-time type checks. Since Python 3\.5, the language has offered type hints, which are optional annotations that suggest (but do not require) that a variable has a particular type. Combined with static type checkers like MyPy and run\-time data validation frameworks like Pydantic, type hints offer Python programmers a powerful system to implement static types in a highly standardized way. This presentation explores these new standards for static typing in Python through the lens of two powerful and versatile libraries: MyPy and Pydantic. These tools build upon Python’s type hints to help you improve your code reliability and effectiveness with minimal extra effort. At the end of this presentation you will be able to: * Use type hints, MyPy, and Pydantic to define and enforce static data types in Python. * Identify important use cases where static types provide greater code reliability and quality. * Leverage these tools to increase the resilience of your code against bad data, and deliver more useful and actionable error messages sooner. MyPy is a type checker that leverages built\-in type hints to identify possible type errors during a separate static analysis stage. By integrating a MyPy step into your development, testing, and deployment processes, you can catch type\-related errors at the start of the development cycle. This reduces debugging time, improves code quality, and often heads off potential production failures long before they occur. We will discuss MyPy's key features, how to integrate it into existing projects, and how it works together with Python's built\-in dynamic typing. Pydantic is a data validation library that leverages Python's type hints to check incoming data at run time. Pydantic's data models ensure that incoming data conforms to defined schemas. This feature is especially useful in data\-intensive applications for guaranteeing data integrity and standardizing error reporting. Key application areas include ETL, streaming data, and RESTful APIs (in fact, the popular FastAPI framework leans heavily on Pydantic for data validation). We will learn about Pydantic's applications in data parsing, and in building data models that enhance code resilience and simplify error\-checking and logging. Through reference to practical examples and best practices, this talk will demonstrate how you can use MyPy and Pydantic to leverage the static typing capabilities in the core Python language to create more correct, maintainable, and resilient Python applications.
markdown
Comment:
production notes
2024-07-27/11_30_11.ts
Apply:
11:30:11 - 11:46:45 ( 00:16:34 )
S:
11:30:11 -
E:
12:00:10
D:
00:29:59
(
End:
994.0)
show more...
vlc ~/Videos/veyepar/pyohio/pyohio_2024/dv/orchid_east/2024-07-27/11_30_11.ts :start-time=00.0 --audio-desync=0
Raw File
Cut List
11:30:11
seconds: 0.0
Wall: 11:30:11
Duration
00:29:59
12:00:10
seconds: 994.0
Wall: 11:46:45
Comments:
mp4
mp4.m3u
dv.m3u
Split:
Sequence:
:
delete
2024-07-27/11_30_11.ts
Apply:
11:46:45 - 12:00:10 ( 00:13:25 )
S:
11:30:11 -
E:
12:00:10
D:
00:29:59
(
Start:
994.0)
show more...
vlc ~/Videos/veyepar/pyohio/pyohio_2024/dv/orchid_east/2024-07-27/11_30_11.ts :start-time=0994.0 --audio-desync=0
Raw File
Cut List
11:30:11
seconds: 994.0
Wall: 11:46:45
Duration
00:29:59
12:00:10
seconds: 0.0
Wall: 11:30:11
Comments:
mp4
mp4.m3u
dv.m3u
Split:
Sequence:
:
delete
2024-07-27/12_00_10.ts
Apply:
12:00:10 - 12:13:42 ( 00:13:32 )
S:
12:00:10 -
E:
12:30:09
D:
00:29:59
(
End:
812.0)
show more...
vlc ~/Videos/veyepar/pyohio/pyohio_2024/dv/orchid_east/2024-07-27/12_00_10.ts :start-time=00.0 --audio-desync=0
Raw File
Cut List
12:00:10
seconds: 0.0
Wall: 12:00:10
Duration
00:29:59
12:30:09
seconds: 812.0
Wall: 12:13:42
Comments:
mp4
mp4.m3u
dv.m3u
Split:
Sequence:
:
delete
2024-07-27/12_00_10.ts
Apply:
12:13:42 - 12:30:09 ( 00:16:27 )
S:
12:00:10 -
E:
12:30:09
D:
00:29:59
(
Start:
812.0)
show more...
vlc ~/Videos/veyepar/pyohio/pyohio_2024/dv/orchid_east/2024-07-27/12_00_10.ts :start-time=0812.0 --audio-desync=0
Raw File
Cut List
12:00:10
seconds: 812.0
Wall: 12:13:42
Duration
00:29:59
12:30:09
seconds: 0.0
Wall: 12:00:10
Comments:
mp4
mp4.m3u
dv.m3u
Split:
Sequence:
:
delete
Rf filename:
root is .../show/dv/location/, example: 2013-03-13/13:13:30.dv
Sequence:
get this:
check and save to add this
2024-07-27/11_30_11.ts
2024-07-27/12_00_10.ts
Veyepar
Video Eyeball Processor and Review