Connecting a Sproutcore Frontend to a Custom Python Backend

I’m developing a web application with a frontend built using Sproutcore and a custom Python API that manages transactions across several databases. What is an effective method to integrate the frontend with the backend?

I understand that Django can be quite monolithic, and I’d rather avoid its default ORM if possible. I’m seeking a solution that leverages Python. Any suggestions would be greatly appreciated!

Thank you!

Best, Suvir

hey suvir! have you ever considered using Flask for the integration? it’s lightweight, and you have the flexibility to use different ORMs or even go without one. how are you currently managing your APIs, and what do you think about websockets for real-time data handling? curious to hear more about ur project!

you might wanna look into Falcon as well! It’s super simple, fast, and perfect if you don’t need all the bells and whistles. You can directly manage ur db connections as you see fit. worth a look for sure if you’re aiming for a minimalist approach!

For integrating a Sproutcore frontend with a Python backend, you might want to explore Pyramid. It’s flexible and a powerful framework that would allow you to avoid being constrained by a monolithic structure. Pyramid supports custom routing and works well with various storage solutions, so you can choose whichever database approach suits your needs best. Its flexibility gives you plenty of room to optimize transactional operations between your frontend and backend without the overhead some other frameworks might impose.

Have you considered using FastAPI? It offers a modern way to build APIs and is known for its speed and asynchronous capabilities, which can handle a high number of requests efficiently. FastAPI also provides automatic data validation through Python type hints, making your codebase reliable and easy to maintain. It supports WebSockets as well, which can be useful if you need real-time data updates in your app. This setup could complement your current Python skills without being as heavyweight as Django.

have you explored connecting your sproutcore frontend with a Tornado backend? it’s known for its non-blocking IO and can handle long-live connections with clients seamlessly. curious about what kind of functionalities you’re aiming for, maybe real time or batch updates? would love to hear more about ur desired use case!