Uploaded November 2019 | Updated September 2026, 23 minutes ago
John Reese
2019.northbaypython.org/schedule/presentation/9
This talk will start with basic concepts of functions, including how they are represented in memory, how state is tracked, and how function calls interact with the stack. We’ll then cover the common methods of running multiple functions concurrently, as well as the benefits and difficulties of concurrency in Python.
We’ll then introduce the concept of coroutines, a variant of functions, and discuss how coroutines manage state and execution differently from functions. We’ll show some high level examples of coroutines that communicate with each other, and look at how they can be of use for I/O bound workloads.
Then we’ll finish by showing how coroutines are implemented in Python, what the async/await keywords are actually doing when you use them in your code, and how all of these concepts are leveraged by the AsyncIO framework to build high performance applications in modern, clean Python.
AsyncIO uses coroutines to deliver high performance from a single thread. But coroutines can be mysterious. How do they work? Starting from first principles, we’ll take a look at the basic concepts of coroutines and the unique problems they solve, then finish by deconstructing the core pieces of the AsyncIO framework.
This talk is for developers of all backgrounds. No CS degree required!
A Python conference north of the Golden Gate
North Bay Python is a single-track conference with a carefully curated set of talks representing the diverse Python community and their different areas of interest.
If a topic is less to your interest, or you've met some people you really want to sit down and chat with, we'll have plenty of areas away from the main theatre to catch up and chat.
Our goal is to keep prices as low as possible. That means we won't be catering lunch. Instead, you can look forward to extra-long lunch breaks you can use to explore all of the great food options around the venue.
Produced by NDV: youtube.com/channel/UCQ7dFBzZGlBvtU2hCecsBBg?sub_confirmation=1
Sun Nov 3 14:00:00 2019 at Mystic Theatre
John Reese
2019.northbaypython.org/schedule/presentation/9
This talk will start with basic concepts of functions, including how they are represented in memory, how state is tracked, and how function calls interact with the stack. We’ll then cover the common methods of running multiple functions concurrently, as well as the benefits and difficulties of concurrency in Python.
We’ll then introduce the concept of coroutines, a variant of functions, and discuss how coroutines manage state and execution differently from functions. We’ll show some high level examples of coroutines that communicate with each other, and look at how they can be of use for I/O bound workloads.
Then we’ll finish by showing how coroutines are implemented in Python, what the async/await keywords are actually doing when you use them in your code, and how all of these concepts are leveraged by the AsyncIO framework to build high performance applications in modern, clean Python.
AsyncIO uses coroutines to deliver high performance from a single thread. But coroutines can be mysterious. How do they work? Starting from first principles, we’ll take a look at the basic concepts of coroutines and the unique problems they solve, then finish by deconstructing the core pieces of the AsyncIO framework.
This talk is for developers of all backgrounds. No CS degree required!
A Python conference north of the Golden Gate
North Bay Python is a single-track conference with a carefully curated set of talks representing the diverse Python community and their different areas of interest.
If a topic is less to your interest, or you've met some people you really want to sit down and chat with, we'll have plenty of areas away from the main theatre to catch up and chat.
Our goal is to keep prices as low as possible. That means we won't be catering lunch. Instead, you can look forward to extra-long lunch breaks you can use to explore all of the great food options around the venue.
Produced by NDV: youtube.com/channel/UCQ7dFBzZGlBvtU2hCecsBBg?sub_confirmation=1
Sun Nov 3 14:00:00 2019 at Mystic Theatre

 (pronounced magical), a framework for defining GraphQL APIs, including [generating from SQLAlchemy](https://magql-sqlalchemy.autoinvent.dev) models and [integrating with Flask](https://flask-magql.autoinvent.dev). Magql is extensible, looks familiar to developers who are used to Flask, and provides convenience on top of the official Python GraphQL library. Ill discuss why I decided to write this library, and how I went about it, including some of the technical challenges presented by GraphQLs complexity. GraphQLs nested schema and query language allows for some unique and weird possiblities compared to traiditional HTTP/REST APIs, and Ill show off some clever examples that demonstrate its potential. But that complexity can also lead to difficulties. Ultimately, the decision between GraphQL and REST is not clear cut, and this talk will also discuss some of our findings after using Magql and GraphQL in production, and where we want to go next.
Produced by NDV: https://youtube.com/channel/UCQ7dFBzZGlBvtU2hCecsBBg?sub_confirmation=1
Sun Jun 30 14:25:00 2024 at Reis River Ranch Magical (or not) GraphQL - David Lord (Nbpy2024)](https://i.ytimg.com/vi/Gw5P3q2pqa0/mqdefault.jpg)



 adds a range of auditing hooks to the Python runtime, enabling system administrators to see into how it is being used. You can inspect every piece of code that is compiled and executed, intercept calls that modify trace functions, and collect information on code that uses native functions through `ctypes`.
This session will look at why we need security transparency in Python. We will look at actual examples of malware written in Python, and see how the hooks provided by PEP 551 enable administrators to detect and prevent attacks on their systems.
About North Bay Python
A single-track conference north of the Golden Gate, focused on community, collaboration, and all things Python.
North Bay Python is a two-day, single-track Python conference held at the Mystic Theatre in Historic Downtown Petaluma, California, over the weekend of December 2 & 3, 2017.
Were a nonprofit conference for professionals, enthusiasts and students alike. Were focused on inclusion, accessibility, diversity, and affordability. Most importantly, were planning a great lineup of talks from all over the Python ecosystem, with plenty of time to meet new people and develop new ideas.
Our venue, the Mystic Theatre in Downtown Petaluma, is a beautiful example of an early 1900s Vaudeville theatre. You can find over 50 different food and drink options a short walk away, and the nearest hotel is only a block away.
A Python conference north of the Golden Gate
North Bay Python is a single-track conference with a carefully curated set of talks representing the diverse Python community and their different areas of interest.
If a topic is less to your interest, or youve met some people you really want to sit down and chat with, well have plenty of areas away from the main theatre to catch up and chat.
Our goal is to keep prices as low as possible. That means we wont be catering lunch. Instead, you can look forward to extra-long lunch breaks you can use to explore all of the great food options around the venue. Why does Python need security transparency?](https://i.ytimg.com/vi/K7qUVyeh10U/mqdefault.jpg)




