Skip to main content

retrieves AR$ rates from fixer.io API

Project description

Lechuga

:leaves:

"Lechuga" (lettuce) is a commonly used slang financial term in Argentina to refer to US Dollars.

Installation

Requirements:

$ poetry add git+https://github.com/drkloc/lechuga.git

Or install directly with pip:

$ pip install git+https://github.com/drkloc/lechuga.git

Setup an environment variable with the Fixer IO API access key:

export FIXERIOKEY=YOUR_API_KEY

What it does

It retrieves data from the fixer.io API && prints it using pretty colors right to the cli output.

How it works

Help

$ lechuga --help

Usage: lechuga.py [OPTIONS]

Options:
  --n INTEGER  How far in the past should we go?
  --help       Show this message and exit.

Get latest n rates

 lechuga --n 20

 Fecha         USD      EURO 
----------  -------  --------
2018-11-11    35.42     40.1
2018-11-12    35.54     39.92
2018-11-13    36.01     40.73
2018-11-14    35.89     40.6
2018-11-15    36.04     40.82
2018-11-16    35.92     41.02
2018-11-17    35.76     40.84
2018-11-18    35.78     40.84
2018-11-19    35.91     41.13
2018-11-20    36.18     41.14
2018-11-21    36.27     41.3
2018-11-22    36.43     41.54
2018-11-23    37.56     42.61
2018-11-24    37.56     42.61
2018-11-25    37.58     42.61
2018-11-26    39.08     44.29
2018-11-27    38.54     43.55
2018-11-28    38.45     43.71
2018-11-29    37.73     42.98
2018-11-30    37.73     42.67

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lechuga-0.3.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lechuga-0.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file lechuga-0.3.tar.gz.

File metadata

  • Download URL: lechuga-0.3.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.11 Darwin/25.3.0

File hashes

Hashes for lechuga-0.3.tar.gz
Algorithm Hash digest
SHA256 d6ca3dfbbec4d831c8e614f870e3c0dd8965ba9d46f7e77d69ddc19a2edd96f7
MD5 70eb82ecda119713368ff68a7de5ae35
BLAKE2b-256 ab517a676c5bca827bbac9fd3376bed82a979c3203876a97089ae2c3ff38a65c

See more details on using hashes here.

File details

Details for the file lechuga-0.3-py3-none-any.whl.

File metadata

  • Download URL: lechuga-0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.11 Darwin/25.3.0

File hashes

Hashes for lechuga-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3f884610871b202b6e9f5542f58f55a160fb664ce47d67de6f7fdd6bc5dbbe83
MD5 4a3bd0bc2403eb8867a050680672dce9
BLAKE2b-256 78e04b7e36151ce28dabd0543662c239cd8b6d9352c90e6db71b9d5e289f4437

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page