PyCon Portugal 2025

When AI Writes Python: The Future of OSS Libraries
2025-07-24 , Auditorium

The rise of AI-first architectures represents both an unprecedented opportunity and an existential threat to the Python open-source ecosystem. As AI code generation becomes integrated into every layer of software development, which Python libraries will thrive, and which will vanish? This talk maps the emerging failure points in AI-first architectures and presents concrete strategies for Python maintainers and contributors to evolve their projects for this new reality. Drawing from real-world case studies at companies like Incident.io, Sentry, and Elsevier, I'll demonstrate how Python remains crucial in AI engineering while highlighting the urgent adaptations our community must make to secure its future.


Python has always been the foundation of modern data science and machine learning. But as AI-first architectures reshape software development, our community faces a series of contradictions: our language powers the AI revolution that simultaneously threatens to replace significant portions of our ecosystem.

In this talk, I'll walk through a comprehensive analysis of where AI integration is creating new failure points in the software development lifecycle and how Python projects are being affected. From "hallucination failures" during requirements gathering to "regression introduction" during system evolution, I'll show exactly where and how things go wrong.
But this isn't a doomsday talk! I'll present actionable strategies Python maintainers and contributors can implement to safeguard and evolve their libraries:
1. Understanding the vulnerability spectrum: I'll share research on which types of Python libraries are most vulnerable to AI replacement (string manipulation, simple transformations) versus those that will remain essential (computation-heavy libraries like NumPy, hardware interfaces, security-critical components).
2. Building AI-resistant libraries: Practical examples of how Python libraries can evolve by focusing on performance optimization, hardware acceleration, and deterministic guarantees that AI solutions can't match.
3. From wrappers to frameworks: How vulnerable "convenience" libraries can transform into essential frameworks that guide and constrain AI-generated code, as seen in libraries like LangChain and LlamaIndex.
4. Going meta: Python tools for AI governance: How Python developers can build the critical tools for AI quality assurance, validation, and security that will be essential in an AI-first world.

Throughout the talk, I'll ground these insights with real-world examples from companies building AI-enhanced products, showing where Python continues to play crucial roles and where it's being squeezed out.

Intended Audience:

This talk is for Python library authors, maintainers, contributors, and anyone interested in the future of open source in an AI-accelerated world. Attendees should have basic familiarity with Python's open source ecosystem, but no deep ML/AI knowledge is required.


Audience Level:

Intermediate

What are the main topics of your talk?:

System Architecture, Open Source Development

Archana Vaidheeswaran leads AI safety initiatives at Apart Research and creates technical courses as a LinkedIn Learning Instructor. As a former Product Manager at Women Who Code, she architected systems serving a 350,000+ global community. Named among Singapore's 100 Women in Tech 2023, she combines her experience in TinyML research, AI security policy development, and large-scale system architecture to bridge the gap between theory and practice. As a Board Director at Women in Machine Learning and a fellow at Python Software Foundation, she champions responsible AI development through community-driven initiatives.