Uploaded November 2019 | Updated September 2026, 11 hours ago
Jonas Neubert
2019.northbaypython.org/schedule/presentation/17
Walk into any factory and you will see a Programmable Logic Controller (PLC). It's the small box that has a memory card and an Ethernet cable on one side, and lots of colorful wires connected to the other end. Inside runs the logic that turns inputs from sensors into outputs to robots, conveyor belts and other machinery. PLCs evolved from relay banks in the 1970s and have ruled the world of industrial automation since then.
In the first half of this talk we will take a look at how they work, how to program them, and why a strange language called "ladder logic" is (still) the lingua franca for programming them. In a short on-stage demo I will write some PLC code to control a device on stage.
It's 2019 now and just running a PLC isn't quite enough anymore. Everyone is talking about the "Industrial Internet of Things" and they have connected their PLCs to the company network. The second half of the talk will look at how we can connect to PLCs to read data and influence the running program with Python.
How do you program the physical world with Python? Programmable Logic Controllers (PLCs) are the devices that control HVAC systems, factories, power plants, ..., everything! In this talk, I will bring a traffic signal on stage and program a PLC to control it. We'll then go over several examples for how to use Python to collect data from the system and send data to influence its behavior.
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 16:00:00 2019 at Mystic Theatre
Jonas Neubert
2019.northbaypython.org/schedule/presentation/17
Walk into any factory and you will see a Programmable Logic Controller (PLC). It's the small box that has a memory card and an Ethernet cable on one side, and lots of colorful wires connected to the other end. Inside runs the logic that turns inputs from sensors into outputs to robots, conveyor belts and other machinery. PLCs evolved from relay banks in the 1970s and have ruled the world of industrial automation since then.
In the first half of this talk we will take a look at how they work, how to program them, and why a strange language called "ladder logic" is (still) the lingua franca for programming them. In a short on-stage demo I will write some PLC code to control a device on stage.
It's 2019 now and just running a PLC isn't quite enough anymore. Everyone is talking about the "Industrial Internet of Things" and they have connected their PLCs to the company network. The second half of the talk will look at how we can connect to PLCs to read data and influence the running program with Python.
How do you program the physical world with Python? Programmable Logic Controllers (PLCs) are the devices that control HVAC systems, factories, power plants, ..., everything! In this talk, I will bring a traffic signal on stage and program a PLC to control it. We'll then go over several examples for how to use Python to collect data from the system and send data to influence its behavior.
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 16: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)