กลับไปหน้า Tools

GetNotes Tools

streamlit/streamlit

Tool นี้คืออะไร

Streamlit เป็นเครื่องมือ Open Source ที่ช่วยให้นักพัฒนาสามารถสร้างและแชร์เว็บแอปพลิเคชันเชิงโต้ตอบจากสคริปต์ Python ได้อย่างรวดเร็ว เหมาะสำหรับผู้ที่ต้องการสร้างแดชบอร์ด รายงาน หรือแอปพลิเคชันข้อมูลอื่น ๆ โดยใช้โค้ด Python ที่เรียบง่ายและมีประสิทธิภาพ

ข้อมูลโปรเจกต์

ดาว

45.4K

Forks

4.3K

License

Apache-2.0

อัปเดต GitHub ล่าสุด

29 ก.ค. 2569

เพิ่มใน GetNotes

14 ก.ค. 2569

Repository

streamlit/streamlit

เหมาะกับงาน

ข้อมูลและ AnalyticsDeveloper Tools

เหมาะกับอาชีพ

Ecosystem

Python

แปลและเรียบเรียงโดย AI

เนื้อหาฉบับภาษาไทย

ใช้อ่านเพื่อทำความเข้าใจเบื้องต้น โปรดตรวจสอบรายละเอียดสำคัญกับเอกสารต้นฉบับด้านล่าง

Streamlit logo

ยินดีต้อนรับสู่ Streamlit 👋

วิธีที่เร็วกว่าในการสร้างและแชร์แอปข้อมูล

Streamlit คืออะไร?

Streamlit ช่วยให้คุณเปลี่ยนสคริปต์ Python ให้เป็นเว็บแอปพลิเคชันเชิงโต้ตอบได้ภายในไม่กี่นาที แทนที่จะใช้เวลาหลายสัปดาห์ สร้างแดชบอร์ด สร้างรายงาน หรือสร้างแอปแชท เมื่อคุณสร้างแอปแล้ว คุณสามารถใช้ แพลตฟอร์ม Community Cloud ของเราเพื่อปรับใช้ จัดการ และแชร์แอปของคุณได้

ทำไมต้องเลือก Streamlit?

  • เรียบง่ายและเป็น Pythonic: เขียนโค้ดที่สวยงาม อ่านง่าย
  • การสร้างต้นแบบที่รวดเร็วและโต้ตอบได้: ให้ผู้อื่นโต้ตอบกับข้อมูลของคุณและให้ข้อเสนอแนะได้อย่างรวดเร็ว
  • การแก้ไขแบบสด: เห็นแอปของคุณอัปเดตทันทีที่คุณแก้ไขสคริปต์
  • โอเพนซอร์สและฟรี: เข้าร่วมชุมชนที่มีชีวิตชีวาและมีส่วนร่วมในอนาคตของ Streamlit

การติดตั้ง

เปิดเทอร์มินัลและรัน:

bash
$ pip install streamlit
$ streamlit hello

หากคำสั่งนี้เปิดแอป Streamlit Hello ที่ยอดเยี่ยมของเราในเบราว์เซอร์ของคุณ แสดงว่าคุณพร้อมใช้งานแล้ว! หากไม่เป็นเช่นนั้น โปรดไปที่ เอกสารของเรา สำหรับการติดตั้งเฉพาะ

แอปนี้มีตัวอย่างมากมายของสิ่งที่คุณสามารถทำได้ด้วย Streamlit ไปที่ส่วน เริ่มต้นอย่างรวดเร็ว เพื่อทำความเข้าใจว่าทั้งหมดทำงานอย่างไร

Streamlit Hello

เริ่มต้นอย่างรวดเร็ว

ตัวอย่างเล็กๆ น้อยๆ

สร้างไฟล์ใหม่ชื่อ streamlit_app.py ในไดเรกทอรีโปรเจกต์ของคุณด้วยโค้ดต่อไปนี้:

python
import streamlit as st
x = st.slider("Select a value")
st.write(x, "squared is", x * x)

ตอนนี้รันเพื่อเปิดแอป!

code
$ streamlit run streamlit_app.py

ตัวอย่างเล็กๆ น้อยๆ

ขอเพิ่มเติม!

Streamlit มาพร้อมกับ องค์ประกอบอันทรงพลังเพิ่มเติมมากมาย เพื่อเพิ่มสีสันให้กับแอปข้อมูลของคุณและสร้างความประทับใจให้กับผู้เข้าชม ตัวอย่างบางส่วน:

ชุมชนนักสร้างสรรค์ที่มีชีวิตชีวาของเรายังขยายขีดความสามารถของ Streamlit โดยใช้ 🧩 Streamlit Components

รับแรงบันดาลใจ

มีสิ่งมากมายที่คุณสามารถสร้างได้ด้วย Streamlit:

ดู แกลเลอรีของเรา! 🎈

Community Cloud

ปรับใช้ จัดการ และแชร์แอปของคุณได้ฟรีโดยใช้ Community Cloud ของเรา! ลงทะเบียน ที่นี่

แหล่งข้อมูล

  • สำรวจ เอกสาร ของเราเพื่อเรียนรู้ว่า Streamlit ทำงานอย่างไร
  • ถามคำถามและรับความช่วยเหลือใน ฟอรัมชุมชน ของเรา
  • อ่าน บล็อก ของเราสำหรับเคล็ดลับจากนักพัฒนาและผู้สร้าง
  • ขยายขีดความสามารถของ Streamlit โดยการติดตั้งหรือสร้าง Streamlit Components ของคุณเอง
  • ช่วยให้ผู้อื่นค้นหาและเล่นกับแอปของคุณโดยใช้ Streamlit GitHub badge ใน repository ของคุณ:
markdown
[![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](URL_TO_YOUR_APP)

Streamlit App

มีส่วนร่วม

🎉 ขอบคุณสำหรับความสนใจในการช่วยปรับปรุง Streamlit! 🎉

ก่อนที่จะมีส่วนร่วม โปรดอ่านแนวทางของเราที่นี่: https://github.com/streamlit/streamlit/blob/develop/CONTRIBUTING.md

ใบอนุญาต

Streamlit เป็นโอเพนซอร์สและฟรีโดยสมบูรณ์ และได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0

เอกสารโปรเจกต์

อ่านเอกสารต้นฉบับ

README วิธีติดตั้ง วิธีใช้งาน และข้อกำหนดจาก repository ต้นฉบับ

ดูไฟล์บน GitHub

Streamlit logo

Welcome to Streamlit 👋

A faster way to build and share data apps.

What is Streamlit?

Streamlit lets you transform Python scripts into interactive web apps in minutes, instead of weeks. Build dashboards, generate reports, or create chat apps. Once you’ve created an app, you can use our Community Cloud platform to deploy, manage, and share your app.

Why choose Streamlit?

  • Simple and Pythonic: Write beautiful, easy-to-read code.
  • Fast, interactive prototyping: Let others interact with your data and provide feedback quickly.
  • Live editing: See your app update instantly as you edit your script.
  • Open-source and free: Join a vibrant community and contribute to Streamlit's future.

Installation

Open a terminal and run:

bash
$ pip install streamlit
$ streamlit hello

If this opens our sweet Streamlit Hello app in your browser, you're all set! If not, head over to our docs for specific installs.

The app features a bunch of examples of what you can do with Streamlit. Jump to the quickstart section to understand how that all works.

Streamlit Hello

Quickstart

A little example

Create a new file named streamlit_app.py in your project directory with the following code:

python
import streamlit as st

x = st.slider("Select a value")
st.write(x, "squared is", x * x)

Now run it to open the app!

code
$ streamlit run streamlit_app.py

Little example

Give me more!

Streamlit comes in with a ton of additional powerful elements to spice up your data apps and delight your viewers. Some examples:

Our vibrant creators community also extends Streamlit capabilities using  🧩 Streamlit Components.

Get inspired

There's so much you can build with Streamlit:

Check out our gallery! 🎈

Community Cloud

Deploy, manage and share your apps for free using our Community Cloud! Sign-up here.

Resources

  • Explore our docs to learn how Streamlit works.
  • Ask questions and get help in our community forum.
  • Read our blog for tips from developers and creators.
  • Extend Streamlit's capabilities by installing or creating your own Streamlit Components.
  • Help others find and play with your app by using the Streamlit GitHub badge in your repository:
markdown
[![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](URL_TO_YOUR_APP)

Streamlit App

Contribute

🎉 Thanks for your interest in helping improve Streamlit! 🎉

We have paused accepting pull requests from outside the Streamlit maintainer team. You can still make a valuable contribution by reporting bugs, requesting features, improving or upvoting existing issues, commenting on open specs, creating custom components, and contributing to streamlit-extras.

Read our contribution guide for details.

License

Streamlit is completely free and open-source and licensed under the Apache 2.0 license.

#data-analysis#data-science#data-visualization#deep-learning#developer-tools#machine-learning#python#streamlit