Skip to content

Repository files navigation

Currency converter service

Endpoints

GET /api/rates

curl -X "GET" "http://localhost:8000/api/rates?from=EUR&to=RUB&value=5000"
{"value": 400000}

Dependencies

External API

Python libs

  • FastAPI - Web framework
  • AioHttp - Library for async requests
  • Attrs - Like python dataclasses, works better with cattrs
  • Cattrs - library for structuring and unstructuring data

Setup

Clone repository

git clone git@github.com:didhatLab/currency_api.git
cd currency_api

After build and run docker container

docker build -t currency_api .
docker run -e open_exchange_app_id='your_open_exchange_app_id' -p 8000:8000 currency_api

Possible improvements

  • Add request caching in Redis from open exchanger
  • Add e2e tests

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages