Publish a Component
Publish to PyPI
Publishing your Streamlit Component to PyPI makes it easily accessible to Python users around the world. This step is completely optional, so if you won’t be releasing your component publicly, you can skip this section!
For static Streamlit Components, publishing a Python package to PyPI follows the same steps as the
core PyPI packaging instructions. A static Component likely contains only Python code, so once you have your
setup.py file correct and
generate your distribution files, you're ready to
upload to PyPI.
Bi-directional Streamlit Components at minimum include both Python and JavaScript code, and as such, need a bit more preparation before they can be published on PyPI. The remainder of this page focuses on the bi-directional Component preparation process.
