Recently had reason to create a little currency converter app. I decided to do it it Python as I've not had the chance to use the language for a while.
I didnโt want to have to build a whole UI or access a fully blown db as it was just overkill.
After some research I decided on the following tech stack:
- Python 3.10
- Poetry - for dependency management
- Streamlit - for the UI framework
- CVS & Pandas - for data storage
- APILayer.io - for the currency convert API
I certainly had fun solving this little challenge.
Decided to spit the code architecture into sections to keep things neat and tidy.
.
โโโ currency-converter/
โโโ api.py -- remote api cal related functions
โโโ audit_log.py -- read/write from audit log
โโโ common.py -- common lists, etc
โโโ currency_converter.py -- main python file
There is a live demo of the app available here: https://jgibbarduk-currency-converter-currency-converter-v6ohj8.streamlit.app
Check out the source here: https://github.com/jgibbarduk/currency-converter
If you like the tech stack used or you have some suggestions, let me know in the comments.
Top comments (0)