We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
app.py
socialstream
Modular Code Design
Configuration Management
secrets.toml
Logging
logging
Session State Management
Efficient Loading and Caching
@st.cache_data
@st.cache_resource
Layout and Responsiveness
st.columns
st.container
st.expander
Unit Tests
unittest
pytest
Continuous Integration
User Testing
Code Documentation
User Documentation
Hosting
CI/CD for Deployment
main
deploy
Monitoring and Maintenance
Code Quality
flake8
black
Security
Scalability
The text was updated successfully, but these errors were encountered:
Here are some machine-human-created guidelines @bugsz Let's follow to create re-usable code.
Sorry, something went wrong.
No branches or pull requests
Guidelines for Designing a Python Package for a Web Application Using Streamlit
1. Project Structure
app.py
as the entry point for your Streamlit appsocialstream
folder2. Core Components
Modular Code Design
Configuration Management
secrets.toml
) to manage settings and environment variables.Logging
logging
module or a third-party service like Sentry.3. Streamlit-Specific Design
Session State Management
Efficient Loading and Caching
@st.cache_data
and@st.cache_resource
decorators to cache expensive operations, such as data loading or model inference.Layout and Responsiveness
st.columns
,st.container
, andst.expander
.4. Testing and Validation
Unit Tests
unittest
orpytest
.Continuous Integration
User Testing
5. Documentation
Code Documentation
User Documentation
6. Deployment
Hosting
CI/CD for Deployment
main
ordeploy
).Monitoring and Maintenance
7. Best Practices
Code Quality
flake8
and formatters likeblack
to maintain code quality.Security
Scalability
The text was updated successfully, but these errors were encountered: