Skip to content

Latest commit

 

History

History
43 lines (37 loc) · 799 Bytes

README.md

File metadata and controls

43 lines (37 loc) · 799 Bytes

Dollar Price

Dollar Price is a scraper for the USD/PEN exchange pair. It can work as a cli app or as an API with docker.

Installation

git clone https://github.com/Ed1123/dollar-price.git
cd dollar-price
pip install -r requirements.txt

Run API server

uvicorn main:app [--reload]

Access rates in: http://127.0.0.1:8000/rates Access documentation in: http://127.0.0.1:8000/docs

Run locally

python3 -m dollar_price

Test

pytest

Deploy with deta.sh

  1. Create a deta account in https://web.deta.sh/
  2. Install deta with:
curl -fsSL https://get.deta.dev/cli.sh | sh
  1. Login through the terminal
deta login
  1. Create a project in the deta website
  2. Deploy with
deta new --python --name dollar-api .