DEV Community

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

Posted on β€’ Originally published at devbytes.co.uk

1

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.

Image of Timescale

πŸš€ pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applicationsβ€”without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post β†’

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up