Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Web App Development Made Simple with Streamlit
Web App Development Made Simple with Streamlit

Web App Development Made Simple with Streamlit: A web developer's guide to effortless web app development, deployment, and scalability

eBook
$21.99 $31.99
Paperback
$29.98 $39.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Web App Development Made Simple with Streamlit

Getting to Know Streamlit – A Brief Overview

Streamlit is a Python library that allows developers to quickly create interactive web applications with plottings, widgets, themes, and more. It provides an intuitive and easy-to-use interface that makes it simple to create custom web apps with minimal coding effort. It offers a range of built-in widgets and components, such as sliders, dropdowns, and text inputs, that can be used to create interactive visualizations and dashboards. The library also supports real-time data updates and even integrates with popular data science tools, such as pandas, Matplotlib, and TensorFlow.

Compared to other Python libraries for creating web apps, such as Flask and Django, Streamlit focuses on providing an intuitive interface for creating interactive visualizations and dashboards in a very simple and fast way. Flask and Django are more general-purpose web frameworks that can be used for a wider range of web applications, but they require more...

The importance of turning an idea into a prototype – the changing scenario in computing methods

Computing has advanced dramatically over the past few decades. Earlier systems relied on programs that were installed and run on individual personal computers. Users would purchase software licenses, install the programs themselves, and then access those applications from their desktops. If you wanted to use an application on another computer, you had to install it there as well.

This model dominated computing for many years but was limited and static. It lacked interconnectivity and did not facilitate true collaboration or data sharing across machines. Users were confined to the specific software they installed locally and had to manage separate copies of files and settings on each computer they used.

The rise of networks, improved connectivity, and the early internet started to change this. New possibilities emerged for distributed software, real-time collaboration, and synchronized...

The importance of a full Python web framework

Building and publishing web applications on the cloud today relies on several key frameworks, languages, and techniques. Some of the most important are as follows:

  • Web frameworks: Frameworks such as React, Angular, and Node.js make developing web apps easier and more efficient. They handle key tasks such as routing, state management, building components, and handling events. Developers can focus on writing code for their specific applications instead of building infrastructure.
  • Server-side languages: Languages such as PHP, Ruby on Rails, Python, Java, and C# are used on the server side to handle requests, access databases, build APIs, and generate dynamic web content. Node.js, which uses JavaScript, has also become very popular for server-side development.
  • JavaScript: JavaScript is the primary language of the frontend web. It is used to build client-side interfaces, animate and create interactive content, handle user input...

Local versus the cloud

There are some key differences to keep in mind when developing software applications versus cloud-based web applications:

  • Installation: Traditional software needs to be installed on local machines or servers. This includes copying files, setting permissions, possibly configuring settings, and other setup steps. Web apps hosted on cloud platforms such as AWS, GCP, and Azure are deployed and managed by the cloud provider. No local installation is required.
  • Updates: Software updates typically require manual installation on all machines where the application is installed. Web apps hosted on the cloud are automatically updated when developers push new code deployments. Users always get the latest version without any manual work.
  • Scalability: Servers hosting traditional software applications would require manual configuration to scale resources up or down as needed. Cloud infrastructure is infinitely scalable on demand through API calls or automatic...

Python libraries for web applications (Flask and Django)

Here’s an overview of some popular Python libraries for building web applications:

  • Flask: A lightweight and flexible web framework. It’s great for building small to mid-sized apps. Some of its main features are as follows:
    • It has a minimal and intuitive core that can be easily extended. This makes it suitable for anyone looking to create web applications.
    • It supports extensions and integrates with many Python libraries. This allows you to easily expand its functionality.
    • It has built-in support for routing, templates, file uploading, and more, which means it’s quite easy to build APIs and render HTML templates.
    • It’s suited for both small and large-scale projects. Many big companies such as Airbnb and Pinterest use Flask.

    Let’s look at some situations when we should use Flask:

    • Building a small to mid-sized website or web app
    • When we need more flexibility and control than what a microframework...

Examples of Streamlit’s capabilities

Here are some useful examples of Streamlit’s capabilities:

  • Interactive data exploration: Streamlit is great for building dashboards that allow users to explore datasets interactively. Users can filter, sort, pivot, search, select features, and analyze data from multiple perspectives.
  • Prototyping minimum viable products (MVPs): Streamlit’s ease of use makes it perfect for building quick prototypes and MVPs. New ideas can be converted into shareable web apps in no time without any complex setup. This “code-first” approach speeds up iteration and feedback.
  • Model deployment: Streamlit apps can expose trained machine learning (ML) models as web services. This allows other apps, scripts, or users to interact with and make predictions from the models. Apps become deployable, productive ML applications and platforms.
  • Embeddings: Streamlit code and widgets can be embedded into Jupyter notebooks, JupyterLab...

The importance of turning an idea into a prototype

The faster an idea can be turned into a tangible prototype, the greater the opportunities and advantages. There are several key benefits to building rough prototypes as quickly as possible:

  • Get customer feedback early: By creating prototypes that embody an idea, even in a basic form, you can get real user feedback much sooner. Customers can experience the idea, comment on what they like and don’t like, and suggest important changes to make the final product more useful and appealing. Incorporating feedback early avoids wasting time and resources developing features or designs that don’t resonate with customers.
  • Discover flaws and issues early: Early prototypes highlight any problems with how an idea might work in practice. Issues that are hard to identify conceptually become immediately obvious when developing a prototype. These issues can then be addressed, and alternative approaches can be explored before...

Summary

In this chapter, we introduced Streamlit from a theoretical point of view and looked at several reasons that make this framework an incredible tool for creating web applications and prototypes quickly and easily. Turning an idea into a prototype – or even better, into a working web application – quickly, easily, and painlessly is a terrific weapon in our hands. The power of such a library can only be fully expressed by using it, so let’s not wait any longer and start setting up our coding environment!

To start coding, we still need some things: a good operating system with a Python installation, an integrated development environment (IDE), virtual environments, and more.

In the next chapter, we are going to ensure that everything we need will be available and fully functioning. Don’t worry – this installation will act as the foundation for all our future developments!

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Identify and overcome web development challenges, crafting dedicated application skeletons using Streamlit
  • Understand how Streamlit's widgets and components work to implement any kind of web app
  • Manage web application development and deployment with ease using the Streamlit Cloud service
  • Purchase of the print or Kindle book includes a free PDF eBook

Description

This book is a comprehensive guide to the Streamlit open-source Python library and simplifying the process of creating web applications. Through hands-on guidance and realistic examples, you’ll progress from crafting simple to sophisticated web applications from scratch. This book covers everything from understanding Streamlit's central principles, modules, basic features, and widgets to advanced skills such as dealing with databases, hashes, sessions, and multipages. Starting with fundamental concepts like operation systems virtualization, IDEs, development environments, widgets, scripting, and the anatomy of web apps, the initial chapters set the groundwork. You’ll then apply this knowledge to develop some real web apps, gradually advancing to more complex apps, incorporating features like natural language processing (NLP), computer vision, dashboards with interactive charts, file uploading, and much more. The book concludes by delving into the implementation of advanced skills and deployment techniques. By the end of this book, you’ll have transformed into a proficient developer, equipped with advanced skills for handling databases, implementing secure login processes, managing session states, creating multipage applications, and seamlessly deploying them on the cloud.

Who is this book for?

This book is for Python programmers, web developers, computer science students, and IT enthusiasts with a foundation in Python (or any programming language) who have a passion for creating visually appealing applications. If you already know how to write programs, this book will help you evolve into an adept web application developer skilled at converting command-line tools into impressive, cloud-hosted applications.

What you will learn

  • Develop interactive web apps with Streamlit and deploy them seamlessly on the cloud
  • Acquire in-depth theoretical and practical expertise in using Streamlit for app development
  • Use themes and customization for visually appealing web apps tailored to specific needs
  • Implement advanced features including secure login, signup processes, file uploaders, and database connections
  • Build a catalog of scripts and routines to efficiently implement new web apps
  • Attain autonomy in adopting new Streamlit features rapidly and effectively

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Feb 09, 2024
Length: 350 pages
Edition : 1st
Language : English
ISBN-13 : 9781835086315
Languages :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Feb 09, 2024
Length: 350 pages
Edition : 1st
Language : English
ISBN-13 : 9781835086315
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 103.96 146.97 43.01 saved
.NET MAUI Projects
$35.99 $51.99
Web App Development Made Simple with Streamlit
$29.98 $39.99
Streamlit for Data Science
$37.99 $54.99
Total $ 103.96 146.97 43.01 saved Stars icon

Table of Contents

22 Chapters
Part 1: Getting Started with Streamlit Chevron down icon Chevron up icon
Chapter 1: Getting to Know Streamlit – A Brief Overview Chevron down icon Chevron up icon
Chapter 2: Setting Up the Python Coding Environment Chevron down icon Chevron up icon
Chapter 3: Exploring Streamlit’s Features and Functionality Chevron down icon Chevron up icon
Part 2: Building a Basic Web App for Essential Streamlit Skills Chevron down icon Chevron up icon
Chapter 4: Streamlit Essentials – Configuring the Environment, Managing Packages, and More Chevron down icon Chevron up icon
Chapter 5: Organizing and Displaying Content with Columns, Expanders, and NLP Techniques Chevron down icon Chevron up icon
Chapter 6: Implementing NLP Techniques for Text Analysis and Processing in Streamlit Chevron down icon Chevron up icon
Chapter 7: Sharing and Deploying Your Apps on the Cloud Using Streamlit Share Chevron down icon Chevron up icon
Part 3: Developing Advanced Skills with a Covid-19 Detection Tool Chevron down icon Chevron up icon
Chapter 8: Advanced Environment Setup and Package Management for Building an AI-Powered Web App Chevron down icon Chevron up icon
Chapter 9: Optimizing Streamlit Web App UX with Customization and UI Features Chevron down icon Chevron up icon
Chapter 10: Utilizing Pretrained Models to Create Specialized and Personalized Web Applications Chevron down icon Chevron up icon
Chapter 11: Deploying and Managing Complex Libraries on Streamlit Share Chevron down icon Chevron up icon
Part 4: Advanced Techniques for Secure and Customizable Web Applications Chevron down icon Chevron up icon
Chapter 12: Smart File Uploading – Advanced Techniques for Professional Web Applications Chevron down icon Chevron up icon
Chapter 13: Creating a Secure Login and Signup Process for Web Applications Chevron down icon Chevron up icon
Chapter 14: Customizing Pages, Personalizing Themes, and Implementing Multi-Pages Chevron down icon Chevron up icon
Chapter 15: Enhancing Web Apps with Forms, Session State, and Customizable Subdomains Chevron down icon Chevron up icon
Chapter 16: Takeaways and Conclusion Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Most Recent
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3
(10 Ratings)
5 star 40%
4 star 50%
3 star 10%
2 star 0%
1 star 0%
Filter icon Filter
Most Recent

Filter reviews by




Hobby-Programmierer Jul 20, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Very well written, well thought out. Most of the code examples work fine. The individual chapters build on each other in a meaningful way and the background is always explained thoroughly. Very few mistakes only. A follow-up book based on this would be great !
Amazon Verified review Amazon
wPastor Jun 08, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is the best book currently on the market about web application development using Python and StreamLit.The author explains step by step and in a clear and precise way the patterns to take into account to develop our applications.
Amazon Verified review Amazon
Akshay Manohar kurhekar Apr 21, 2024
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Rosario Moscato's 'Web App Development Made Simple with Streamlit' stands out as a beacon of clarity in the often murky waters of web application development. With a seamless blend of lucid explanations and hands-on exercises, Moscato navigates readers through the intricate landscape of Streamlit with finesse. From foundational concepts to advanced techniques, each chapter unfolds like a roadmap, guiding readers from conceptualization to deployment with ease. What truly sets this book apart is its emphasis on practical learning; through a series of insightful projects and real-world examples, readers not only grasp the intricacies of Streamlit but also gain invaluable experience in building robust web applications. Whether you're a seasoned developer or a newcomer to the world of web app development, Moscato's book is an indispensable companion on your journey to mastering Streamlit and unleashing your creativity in the digital realm.
Amazon Verified review Amazon
Amazon Customer Mar 18, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I'm not usually one to leave reviews, but this book left an impression that I had to share. Recently I suggested our recent undergrad intern dive into Streamlit for an in-house project, and to my surprise, she delivered the bulk of it in just two weeks—crediting this book for her rapid progress. Intrigued, I checked it out, and I must say, it's impressive. This book strikes the perfect balance between detail and accessibility, guiding readers from basic awareness to expert level in no time. I have acquired a couple more copies for other interns. If you're seeking a rapid path to Streamlit mastery, this book is your answer
Amazon Verified review Amazon
Rohit Mar 15, 2024
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
This book unravels the complexities of crafting web applications through the synergy of Streamlit and Python. This work serves as an indispensable manual for novices like me and seasoned developers aiming to refine their craft. From the initial steps of configuring the Python development environment to the intricacies of cloud deployment, this book is a treasure trove for those passionate about cutting-edge web development methodologies. Its lucid narratives, hands-on illustrations, and in-depth exploration of Streamlit's capabilities render it a quintessential companion for transforming innovative concepts into dynamic web applications. An emphatic endorsement for budding web artisans! It's just the piece that I needed to set up my streamlit demo.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.