55 lines
1.3 KiB
Plaintext
55 lines
1.3 KiB
Plaintext
Metadata-Version: 2.1
|
|
Name: streamlit-ace
|
|
Version: 0.1.1
|
|
Summary: Ace editor component for Streamlit.
|
|
Home-page: https://share.streamlit.io/okld/streamlit-gallery/main?p=ace-editor
|
|
Author: okld
|
|
License: MIT
|
|
Platform: UNKNOWN
|
|
Requires-Python: >=3.6
|
|
Description-Content-Type: text/markdown
|
|
License-File: LICENSE
|
|
Requires-Dist: streamlit (>=0.63)
|
|
|
|
# 📝 Streamlit Ace
|
|
|
|
[![GitHub][github_badge]][github_link] [![PyPI][pypi_badge]][pypi_link]
|
|
|
|
## Installation
|
|
|
|
```sh
|
|
pip install streamlit-ace
|
|
```
|
|
|
|
## Getting started
|
|
|
|
```python
|
|
import streamlit as st
|
|
|
|
from streamlit_ace import st_ace
|
|
|
|
# Spawn a new Ace editor
|
|
content = st_ace()
|
|
|
|
# Display editor's content as you type
|
|
content
|
|
```
|
|
|
|
## Demo
|
|
|
|
[![Open in Streamlit][share_badge]][share_link]
|
|
|
|
[![Preview][share_img]][share_link]
|
|
|
|
[share_badge]: https://static.streamlit.io/badges/streamlit_badge_black_white.svg
|
|
[share_link]: https://share.streamlit.io/okld/streamlit-gallery/main?p=ace-editor
|
|
[share_img]: https://raw.githubusercontent.com/okld/streamlit-ace/main/preview.png
|
|
|
|
[github_badge]: https://badgen.net/badge/icon/GitHub?icon=github&color=black&label
|
|
[github_link]: https://github.com/okld/streamlit-ace
|
|
|
|
[pypi_badge]: https://badgen.net/pypi/v/streamlit-ace?icon=pypi&color=black&label
|
|
[pypi_link]: https://pypi.org/project/streamlit-ace
|
|
|
|
|