> Markdown version of [/videos/100690-practical-python-ai-on-the-jvm-with-graalpy-and-pyronaut](https://www.wearedevelopers.com/videos/100690-practical-python-ai-on-the-jvm-with-graalpy-and-pyronaut). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # Practical Python AI on the JVM with GraalPy and Pyronaut Stop spinning up separate microservices just to use Python AI in your Java apps. Embed Python directly into the JVM with GraalPy and Pyronaut to eliminate network latency and outpace FastAPI. - **Speakers:** [Sachin Pikle](https://www.wearedevelopers.com/@sachin-pikle) - **Event:** Conference India 2026 - **Published:** November 25, 2026 - **Duration:** 26:02 - **URL:** https://www.wearedevelopers.com/videos/100690-practical-python-ai-on-the-jvm-with-graalpy-and-pyronaut - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/3194f378dcf9be23320397b2a0a33afb/thumbnails/thumbnail.jpg?time=30000ms ## Summary Integrating Python's AI and data ecosystem into Java applications traditionally requires separate microservices, introducing network latency, operational overhead, and data movement costs. Sachin Pikle explores how to unify these ecosystems by running Python directly inside the JVM using GraalPy and Pyronaut. GraalPy, a Python 3 runtime built on the GraalVM Truffle framework, embeds JIT-compiled Python into Java applications. This turns cross-language calls into sandboxed, in-process calls and compiles everything into a single JAR or GraalVM Native Image. Using Micronaut and the GraalPy Maven plugin, developers can pin PyPI dependencies like VADER sentiment analysis in `pom.xml`, define contracts via Java interfaces, and inject Python implementations directly into Java controllers. For teams preferring to write primarily in Python while retaining JVM capabilities, Pyronaut offers a high-performance framework built on GraalPy, Micronaut, and Netty. Pyronaut allows developers to write Python applications that leverage Micronaut annotations for dependency injection, JSON serialization, Jakarta validation, and zero-SQL database operations via Micronaut Data. It also integrates seamlessly with Testcontainers and pytest, while significantly outperforming FastAPI and Flask in throughput benchmarks. By verifying package compatibility and adopting this unified architecture, teams can keep the JVM as their application backbone while utilizing Python where it adds the most value. **Keywords:** graalpy, pyronaut, micronaut framework, java python interoperability, embedding python in jvm, graalvm truffle framework, graalvm native image, micronaut data jdbc, vader sentiment analysis, testcontainers oracle database, graalpy maven plugin, ahead-of-time compilation, python ai on jvm, dependency injection in python, pytest micronaut integration ## Chapters 1. **Combining Java and Python ecosystems on the JVM** (00:03) — Running separate microservices for Java and Python introduces network latency and operational overhead, which can be avoided by combining Maven Central and PyPI libraries within a single JVM application. 1. **Embedding Python inside the JVM using GraalPy** (01:57) — GraalPy provides a Truffle-based Python 3 runtime with JIT compilation, native image compatibility, and sandboxed in-process interoperability between Java and Python. 1. **Building a sentiment analysis application with Micronaut and GraalPy** (03:21) — The GraalPy Maven plugin and Micronaut integration enable pinning PyPI dependencies like VADER in pom.xml and injecting Python modules directly into Java interfaces. 1. **Introducing Pyronaut for high-performance Python applications on Micronaut** (10:17) — Pyronaut reverses the integration model by allowing developers to write Python applications that leverage Micronaut features like Netty, ahead-of-time compilation, and cloud SDKs. 1. **Running a Pyronaut application with Oracle Database and Testcontainers** (12:11) — Pyronaut automatically generates OpenAPI documentation and integrates with Testcontainers to provision an Oracle database on the fly for storing sentiment analysis results. 1. **Implementing controllers, data validation, and repositories in Python** (15:22) — Using Micronaut Data and Jakarta validation annotations within Python classes eliminates boilerplate code for JSON serialization, input validation, and SQL query generation. 1. **Testing and packaging Pyronaut applications for deployment** (19:58) — Pyronaut integrates with pytest fixtures for dependency-injected testing, uses pyproject.toml for configuration, and packages applications as wheels, containers, or GraalVM native images. 1. **Comparing Pyronaut performance benchmarks and package compatibility** (22:24) — Benchmarks demonstrate higher throughput for Pyronaut compared to FastAPI and Flask, alongside broad compatibility with major Python AI libraries like NumPy and SciPy. ## Related Moments - [Addressing the Python bias in AI frameworks for Java](https://www.wearedevelopers.com/videos/1604-supercharge-agentic-ai-apps-a-devex-driven-approach-to-cloud-native-scaffolding) (from "Supercharge Agentic AI Apps: A DevEx-Driven Approach to Cloud-Native Scaffolding") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/5b2c696045ae3c83c2ef17767368906a/thumbnails/thumbnail.jpg?time=200805ms - [Rise of Python in real-time data processing](https://www.wearedevelopers.com/videos/1233-python-based-data-streaming-pipelines-within-minutes) (from "Python-Based Data Streaming Pipelines Within Minutes") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/ac9a481ba963b349fd438e61d5e9c941/thumbnails/thumbnail.jpg?time=146155ms - [Utilizing Java frameworks to interface with AI models](https://www.wearedevelopers.com/videos/844-enter-the-brave-new-world-of-genai-with-vector-search) (from "Enter the Brave New World of GenAI with Vector Search") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/9603ab4cad02218daecd3265703f19a3/thumbnails/thumbnail.jpg?time=184865ms - [Choosing the right language for AI workloads](https://www.wearedevelopers.com/videos/100274-agentic-ai-in-go) (from "Agentic AI in Go") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/62e692a2c939a483c9a69716216bc8ce/thumbnails/thumbnail.jpg?time=36790ms - [Choosing Java over Python for enterprise AI ecosystems](https://www.wearedevelopers.com/videos/1550-ai-agents-graph-your-following-tool-in-your-java-ai-journey) (from "AI Agents Graph: Your following tool in your Java AI journey") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/5d72b20611422c21dd87c05046db07e4/thumbnails/thumbnail.jpg?time=86205ms - [The versatility of Python across tech domains](https://www.wearedevelopers.com/videos/527-debugging-schrodinger-s-app) (from "Debugging Schrödinger's App") - **Thumbnail URL:** https://customer-goifxnzhrq3d0d54.cloudflarestream.com/e7deab1419fe25a90b9e7cd2d900245c/thumbnails/thumbnail.jpg?time=30000ms ## Related Articles - [MLOps And AI Driven Development](https://www.wearedevelopers.com/magazine/82-mlops-and-ai-driven-development) - [How we Build The Software of Tomorrow](https://www.wearedevelopers.com/magazine/120-how-we-build-the-software-of-tomorrow) - [Everything a Developer Needs to Know About MCP with Neo4j](https://www.wearedevelopers.com/magazine/604-everything-a-developer-needs-to-know-about-mcp-with-neo4j) - [Dev Digest 137 - AI'm not sure about this](https://www.wearedevelopers.com/magazine/485-dev-digest-137-ai-m-not-sure-about-this) ## Related Jobs - [Tech Lead Java/Spring](https://www.wearedevelopers.com/jobs/ext/4814922-tech-lead-java-spring) at **Neo4J** - [GenAI Python Systems Engineer -Senior Manager](https://www.wearedevelopers.com/jobs/ext/4852503-genai-python-systems-engineer-senior-manager) at **PwC** - [GenAI Python Systems Engineer - Senior Associate](https://www.wearedevelopers.com/jobs/ext/4832773-genai-python-systems-engineer-senior-associate) at **PwC** - [Junior Data Scientist](https://www.wearedevelopers.com/jobs/48638-junior-data-scientist) at **Almedia** - [GenAI Python Systems Engineer - Senior Associate](https://www.wearedevelopers.com/jobs/ext/4834938-genai-python-systems-engineer-senior-associate) at **PwC** - [GenAI Python Systems Engineer - Senior Associate](https://www.wearedevelopers.com/jobs/ext/4906995-genai-python-systems-engineer-senior-associate) at **PwC**