Search icon CANCEL
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
$39.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Colour book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
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
Estimated delivery fee Deliver to Russia

Economy delivery 10 - 13 business days

$6.95

Premium delivery 6 - 9 business days

$21.95
(Includes tracking information)

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 Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Colour book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
Estimated delivery fee Deliver to Russia

Economy delivery 10 - 13 business days

$6.95

Premium delivery 6 - 9 business days

$21.95
(Includes tracking information)

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 $ 146.97
.NET MAUI Projects
$51.99
Web App Development Made Simple with Streamlit
$39.99
Streamlit for Data Science
$54.99
Total $ 146.97 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

Top Reviews
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
Top Reviews

Filter reviews by




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
Kumar Baibhav Feb 19, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Web App Development Made Simple with Streamlit" offers a comprehensive guide to mastering Streamlit for building powerful web applications effortlessly. The ebook provides clear, concise explanations and hands-on examples, making it perfect for beginners and experienced developers alike. Whether you're a data scientist, developer, or hobbyist, this book equips you with the skills needed to streamline your web development workflow. Dive into Streamlit and unlock the potential to bring your ideas to life in the digital realm.
Amazon Verified review Amazon
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
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela