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)