RZ-Sample
poetry + streamlit + fast api boilerplate for python development.
Installation Guide
Prerequisites
- Python ≥ 3.11
- Poetry ≥ 2.2.1
- Streamlit ≥ 1.49.1
Getting Started
Poetry Setup
curl -sSL https://install.python-poetry.org | python3 -
# OR
pip install poetry>=2.2.1
Virtual Environment Configuration
poetry config virtualenvs.path /your/desired/path
Ensure below files are configured (create if not exist) properly to run the project;
.env.development.env.production
Install Dependencies
poetry lock --no-cache --regenerate
poetry install --all-extras --with dev
Or manually
make install
How to Run
Configure ENVIRONMENT
setup .env.development and .env.production in project root
# for local configuration(linux)
export ENV=development
# for production(linux)
export ENV=production
Run Streamlit App
make dev
# OR with custom port
poetry run sample dev --port 8051
then open UI on : http://localhost:8501
to run on different port use --port option
poetry run sample dev --port 1234
Run FastAPI Server
make api
# OR with custom port
poetry run sample api --port 5000
Access: http://127.0.0.1:5000
🧹 Linting & Code Quality
Pre-commit hooks are enabled. If commits fail, run:
make lint
or run individual
poetry run black .
poetry run flake8 .
poetry run mypy .
poetry run ruff check .
CLI Shortcuts
make dev → Launch Streamlit UI
make api → Launch FastAPI
current version will be printed on start of above commands.
Troubleshooting
sometimes there might be chances that virtual environment get corrupted then delete the old virtual environment and start afresh.
poetry env info
# this will provide virtual environment name
poetry env remove <environment-full-name>
License
References
Metadata
Release files for rz-sample 2.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rz_sample-2.0.2.tar.gz | 111.0 kB | With provenance | Details for rz_sample-2.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rz_sample-2.0.2-py3-none-any.whl | Python 3 | none | any | Details for rz_sample-2.0.2-py3-none-any.whl |
Total release size: 225.1 kB
Release files / rz_sample-2.0.2.tar.gz
| Download URL | rz_sample-2.0.2.tar.gz |
|---|---|
| Size | 111.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd7aec2e61ac9d6877c8d77e315aa8e0648e67b384b345c1d8601be274099396
|
|
BLAKE2b-256 checksum How to use checksums |
21f47e2cc4089735faea064874fe42edc1906b2e07303b26f5b58ff2ceede46d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 25, 2026.
Transparency logRelease files / rz_sample-2.0.2-py3-none-any.whl
| Download URL | rz_sample-2.0.2-py3-none-any.whl |
|---|---|
| Size | 114.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
239e406956dc046c594d850a399ab272b3e7435c57e7c0146063bece5d13944d
|
|
BLAKE2b-256 checksum How to use checksums |
c1c163942fa9d77c4660d593e7402f149c4f554ac12f1fa70e179c1cba51fba4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 25, 2026.
Transparency logSecurity for rz-sample 2.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for rz_sample-2.0.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 25, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.