An open API service indexing awesome lists of open source software.

https://github.com/streamlit/example-app-invoice-generator


https://github.com/streamlit/example-app-invoice-generator

Last synced: 2 days ago
JSON representation

Awesome Lists containing this project

README

        

# 💰 Invoice Generator

A Streamlit app to show how you can easily use Streamlit to generate invoices as PDFs.

[![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://share.streamlit.io/streamlit/example-app-invoice-generator/main)


App screenshot
Invoice template


image

image

### How to run this demo
The demo has been deployed using Python 3.7. **We suggest creating a new virtual environment**, then running:

```
git clone https://github.com/streamlit/example-app-invoice-generator.git
cd example-app-invoice-generator
pip install -r requirements.txt
streamlit run streamlit_app.py
```

### About the app

- Code is powered by Streamlit 🎈 and deployed on [Streamlit Cloud](https://streamlit.io/cloud) ☁️
- It is super compact: only 50 lines of code. Check it out in [`streamlit_app.py`](https://github.com/streamlit/example-app-invoice-generator/blob/main/streamlit_app.py)

### About the template

- Template must be an HTML file with {{ my_variable }} variable placeholders as supported by [jinja](https://jinja.palletsprojects.com/en/3.1.x/).
- Our example template here is [`invoice_template.html`](https://github.com/streamlit/example-app-invoice-generator/blob/main/invoice_template.html) and you can see placeholders e.g. [here](https://github.com/streamlit/example-app-invoice-generator/blob/main/invoice_template.html#L329).

🪄 Tip: if you're not an HTML expert (or if you're lazy, or both) just kick-off your template using Google Docs at docs.new and then export it as HTML using File > Download > Web page (.html, zipped). For example, this is our original template in Google Docs!

### Questions? Comments?

Please ask in the [Streamlit community](https://discuss.streamlit.io).