DEV Community

Cover image for Currency Converter using Python 🐍 & Steamlit
James Gibbard
James Gibbard

Posted on • Originally published at devbytes.co.uk

Currency Converter using Python 🐍 & Steamlit

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)