๐ŸŒ
Reddit
reddit.com โ€บ r/python โ€บ pyspring - a python web framework inspired by spring boot.
r/Python on Reddit: PySpring - A Python web framework inspired by Spring Boot.
June 15, 2025 -

I've been working on something exciting - PySpring, a Python web framework that brings Spring Boot's elegance to Python. If you're tired of writing boilerplate code and want a more structured approach to web development, this might interest you!

- What's cool about it:

  • Auto dependency injection (no more manual wiring!)

  • Auto configuration management

  • Built on FastAPI for high performance

  • Component-based architecture

  • Familiar Spring Boot-like patterns

    • Recent PRs:

      • Route Mapping Decorators Implementation #3

      • Add Support for Qualifiers and Component Registration Validation

  • GitHub: https://github.com/PythonSpring/pyspring-core

  • Example Project: https://github.com/NFUChen/PySpring-Example-Project

Note: This project is in active development. I'm working on new features and improvements regularly. Your feedback and contributions would be incredibly valuable at this stage!If you like the idea of bringing Spring Boot's elegant patterns to Python or believe in making web development more structured and maintainable, I'd really appreciate if you could:

  • Star the repository

  • Share this with your network

  • Give it a try in your next project

Every star and share helps this project grow and reach more developers who might benefit from it. Thanks for your support! ๐Ÿ™I'm actively maintaining this and would love your feedback! Feel free to star, open issues, or contribute. Let me know what you think!

๐ŸŒ
GitHub
github.com โ€บ amemifra โ€บ Spring-Jython
GitHub - amemifra/Spring-Jython: Java integration of Python script and classes into a Spring Boot Web Application. Powered by Jython ยท GitHub
Java integration of Python script and classes into a Spring Boot Web Application. Powered by Jython - amemifra/Spring-Jython
Starred by 12 users
Forked by 11 users
Languages ย  Python 99.3% | Java 0.7%
Discussions

java - Running a Python script from Spring-Boot Web Application on embedded Tomcat - Stack Overflow
I am trying to make a web-app that takes input from the user using HTML Form on Spring-boot (Which is running on embedded Tomcat); I need to pass this input to a Python script sitting somewhere on my More on stackoverflow.com
๐ŸŒ stackoverflow.com
Execute Python script from Spring boot
If you specifically want to execute python code and other solutions doesn't work for you then you can create a service using django or flask or any other python backend framework with a rest endpoint. Then call the rest endpoint from your Spring Boot server using WebClient or RestTemplate. More on reddit.com
๐ŸŒ r/SpringBoot
4
2
November 29, 2023
java - How to call a python program from spring boot? - Stack Overflow
I am using implicit library in python to implement a recommendation system. The model is ready, but the problem is my application is java based(spring boot). Now I've the model, matrices and everyt... More on stackoverflow.com
๐ŸŒ stackoverflow.com
What is the standard framework used in the Python world for Kubernetes, similar to Spring Boot in Java?
This is... not a thing. I'm no Java dev, but as far as I can tell Spring Boot has nothing to do with Kubernetes specifically. It's a way of packaging up web applications to run anywhere (including Kubernetes). Python doesn't have an equivalent framework. You deploy a WSGI app along with a WSGI server such as gunicorn. If you want a single-artefact solution then you would use a Docker container - which surely has become the norm on Java too. More on reddit.com
๐ŸŒ r/learnpython
9
0
July 19, 2024
๐ŸŒ
StackShare
stackshare.io โ€บ stackups โ€บ python-vs-spring-boot
Python vs Spring Boot | What are the differences? | StackShare
Development Paradigm: Python follows a more procedural and object-oriented programming paradigm, allowing developers to write code that is easier to understand and maintain. In contrast, Spring Boot follows a more declarative programming paradigm, providing developers with a higher level of abstraction and reducing the amount of boilerplate code.
๐ŸŒ
Baeldung
baeldung.com โ€บ home โ€บ java โ€บ how to call python from java
How to Call Python From Java | Baeldung
August 27, 2025 - Assuming that we have Jython on the CLASSPATH, the framework should automatically discover that we have the possibility of using this scripting engine and enable us to ask for the Python script engine directly.
๐ŸŒ
Spring
docs.spring.io โ€บ spring-python โ€บ 1.2.x โ€บ sphinx โ€บ html โ€บ overview.html
1. Overview โ€” Spring Python v1.2.1.FINAL documentation
Spring Python intends to take the concepts that were developed, tested, and proven with the Spring Framework, and carry them over to the language of Python.
Find elsewhere
๐ŸŒ
PyPI
pypi.org โ€บ project โ€บ pyctuator
pyctuator ยท PyPI
Monitor Python web apps using Spring Boot Admin.
      ยป pip install pyctuator
    
Published ย  Jan 17, 2024
Version ย  1.2.0
๐ŸŒ
Dreamix
dreamix.eu โ€บ home โ€บ insights โ€บ tech โ€บ how to use jython with spring boot
How to use Jython with Spring Boot - Dreamix
July 16, 2024 - It fully covers the python language and has the pip module manager. From my experience working in an bespoke development company, Spring is the de facto standard for enterprise applications in the recent years and by using interfaces and dependency injection we can seamlessly integrate our code with the existing java codebase. This way we can get the best out of both worlds and create even better products. In my example I will create a Spring Boot ...
๐ŸŒ
Reddit
reddit.com โ€บ r/springboot โ€บ execute python script from spring boot
r/SpringBoot on Reddit: Execute Python script from Spring boot
November 29, 2023 - try{ ProcessBuilder processBuilder = new ProcessBuilder("C:\\Users\\abc\\anaconda3\\python.exe", "./someScript.py"); // first arg is the path to your Python and second arg is the path to your py script processBuilder.redirectErrorStream(true); // redirect errors to the same stream Process process = processBuilder.start(); int exitCode = process.waitFor(); if (exitCode != 0) { log.error("Error: Python script exited with code " + exitCode); } } catch (Exception e) { e.printStackTrace(); log.error("Error while running Python script: " + e.getMessage()); } ... I wrote how to call a bash script using groovy years ago. It's not exactly what you're asking but you may find some inspiration. https://www.jcfrancisco.dev/posts/testing-scripts-with-groovy/ Spring Boot Best Practices That Should Fail Your Build
๐ŸŒ
Medium
jxausea.medium.com โ€บ spring-boot-integrated-python-engine-quick-start-demo-24d3f96cc4aa
Spring boot integrated python engine quick start demo | by Harries | Medium
March 12, 2024 - package com.et.python; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class DemoApplication { public static void main(String[] args) { SpringApplication.run(DemoApplication.class, args); } }
๐ŸŒ
Better Stack
betterstack.com โ€บ community โ€บ guides โ€บ scaling-python โ€บ spring-boot-vs-django
Spring Boot vs. Django | Better Stack Community
September 11, 2025 - Spring Boot is Java's go-to framework for building production-ready applications with minimal configuration. It comes with embedded servers, auto-configuration, and production monitoring out of the box, letting you focus on business logic instead ...
๐ŸŒ
Reddit
reddit.com โ€บ r/django โ€บ university student here. java springboot or python django for jobs when i graduate?
r/django on Reddit: University student here. Java Springboot or Python Django for jobs when I graduate?
July 20, 2024 -

Everyone needs a job to pay for bills and buy stuff. So I have been driving into python and it's libraries and got started with flask and django. Also it is quite useful in AI as well, so that's also a reason. (I could just import libraries and do stuff and learn and build along the way)

It is not a matter of whether I should I do django or springboot but of to which to dedicate the most time so that my learning could be the most fruitful. I'm 21 of age.

Top answer
1 of 5
12
Spring probably has more jobs but for longevity of a career, go with Python and Go.
2 of 5
6
IMHO Spring, hands down. Some comparisons: Docs & Learnability: Django has great docs, Spring kinda requires you to have existing knowledge and there are many holes in it Speed: Python is terrible, Java/Kotlin pretty fast. We got together at work to write reasonably optimized web apps and Rust was only 2x faster than Kotlin/Java Typesystem: Python has mypy and typings but it's not popular, Kotlin has a fantastic typesystem Buildsystem: pip/venv is terrible, gradle/maven are great and terrible Databases: Django has good defaults, Hibernate has shitty ones. Both are great though, you just have to watch out and really learn Hibernate to not fuck up. Using most of Hibernate's features will make your app slow and buggy. Flyway is fantastic for database migrations. Model first is a mistake. Security: Spring Security is often too complex, especially when you want to implement custom auth; Django doesn't cover the basics in core like CORS and CSP Templating: hands down Django. Thymeleaf or any alternatives suck Middleware: Spring has Filters and Interceptors which both have different use cases and are not interoperable; Django uses Middleware Speed of Development: You need to invest 3 days to develop something in Spring that can get done in 3 hours in Django Maintainability: the one redeeming quality of Django are fantastic changelogs. But they break so many things and there's no type checker to help you. Django requiring 3rdparty libs like DRF/parler makes the problem even worse IMHO Hotness/How modern are they: Python is stuck in the 2000s. As is Django. Where are the functional programming features? No, generators/list comprehensions are not a replacment for Streams/Sequences. for loops are error prone and hard to reason about. Kotlin can be compiled to JS, WASM, JVM, Objective-C and Native machine code. Not having a good, default package manager these days is a joke. There's async in Python but no structured concurrency. GIL still exists. Ecosystem: Spring is where it's at. Django thirdparty apps are often a huge headache and Django (similar to Python) is not up to date with the rest of the world. Spring has so many core projects that are well maintained and most problems in Java have been figured out years ago, meaning: stable dependencies. Ubiquity: Java and Kotlin are everywhere. Python has it's niche in education, scripting and AI.
๐ŸŒ
Quora
quora.com โ€บ Should-I-abandon-Spring-Boot-Java-for-Python-Django
Should I abandon Spring Boot/Java for Python/Django? - Quora
Answer (1 of 3): Python, being dynamically typed language, is a tool, that in the hands of a competent developer provides great power. With Django, you will be able to create your first web-based app capable of working with the data in a database using powerful admin interface within the course ...