Building Streamlit apps faster with the Xata connector

Putting the spotlight on Sergio Demis Lopez Martinez, the developer responsible for a new open source Streamlit: Xata connector.

Written by

Alex Francoeur

Published on

April 3, 2024

In the rapidly evolving space of data, analytics and app development Streamlit has risen as a new favorite for fast development of data focused apps. Sergio Demis Lopez Martinez, a 23-year-old student who is currently studying applied mathematics and computer science at the National Autonomous University of Mexico, is one of Streamlit’s biggest fans. His journey through academia and some freelance work has required him to build reliable applications quickly and frequently. This has lead him to choose Streamlit and Xata as his favorite stack for a fast, iterative, development cycle. The use of these two platforms together gave way to a new open source project, st-xatadb-connection, to enhance the synergy between Xata and Streamlit.

Streamlit : Xata connector, st-xatadb-connection
Streamlit : Xata connector, st-xatadb-connection

#

Xata + Streamlit, the perfect pairing

Both Streamlit and Xata aim to provide a development experience meant to maximize output and reduce delivery time. They work quite well together and enable developers to build great applications quickly without having to worry about the intricacies of the frontend or backend.

Most of the applications Sergio creates in Streamlit are applications focused on data summarization and realtime graphs. Streamlit has popular integrations with Plotly and Matplotlib that make it really easy to create data focused visuals for your application. With PostgreSQL and Elasticsearch underneath the hood, Xata provides aggregations across large volumes of relational data and the tools to slice and dice it — making it a great option for this use case.

The st_xatadb_connection package has been able to significantly reduce development time for Sergio, sometimes resulting in nearly a 90% reduction in lines of code. For example, this connector automatically saves and caches data with the client so you do not need to make calls to the database as frequently. This can help a lot when dealing with streaming data in real time, you can optimize for larger responses and longer sessions vs. needing to make more frequent calls.

In addition to real-time interaction with your data, there are other levels of abstraction to make working with Xata even easier. These include streamlined CRUD operations, simplified generation of reports / visualizations and an effortless connection setup.

If you’re building with Streamlit and Xata, this open source connector enhances the development experience significantly and we encourage you to check it out.

As the conversation steered towards what’s next, we asked Sergio what’s missing from Xata or what else he’d like to see out the platform. Here are some of his favorite parts of the platform.

  • Vector search. By far, this was Sergios favorite feature. He uses a lot of machine learning algorithms and builds AI applications, having vector search automatically paired with a relational database makes working with vectors super simple and helps him move quickly.
  • Python SDK. The Python SDK provided a great interface to Xata for his data analysis focused use cases.

When asked what else he’d like to see from Xata, he replied nothing additional. At the moment, Xata and the amount of data you can store with the free tier meets all of his needs.

Do you have a similar story or community contribution you’d like to share? Send us an email or ping us on Discord if you’d like to be featured in our community spotlight. Until then, happy building 🦋

Start free,
pay as you grow

Xata provides the best free plan in the industry. It is production ready by default and doesn't pause or cool-down. Take your time to build your business and upgrade when you're ready to scale.

Free plan includes
  • 10 database branches
  • High availability
  • 15 GB data storage
  • 15 GB search engine storage
  • 2 GB file attachments
  • 250 AI queries per month
Start freeExplore all plans
Free plan includes
  • 10 database branches
  • High availability
  • 15 GB data storage
  • 15 GB search engine storage
  • 2 GB file attachments
  • 250 AI queries per month
Add column to table

Copyright © 2024 Xatabase Inc.
All rights reserved.

Product

RoadmapFeature requestsPricingStatusAI solutionsFile attachments