No description
Find a file
Pablo Martin acc764afcf add test
2024-06-06 11:47:51 +02:00
.vscode set up testing 2024-06-03 18:46:34 +02:00
tests add test 2024-06-06 11:47:51 +02:00
xexe message format 2024-06-03 18:41:24 +02:00
.env-example more readme, env template 2024-06-06 11:41:05 +02:00
.gitignore add gitignore 2024-06-03 17:50:20 +02:00
poetry.lock add dotenv 2024-06-03 18:03:42 +02:00
pyproject.toml smoke test working 2024-06-03 18:37:17 +02:00
README.md more readme, env template 2024-06-06 11:41:05 +02:00

xexe

xexe is Superhog's tool to ingest currency rates from xe.com into our DWH. xexe is a Python CLI application, and this is the repository where it lives.

How to use the tool

Note: the app has only been used so far in a Linux environment. Windows support is dubious.

Install

  • Ensure you have Python 3.10> and poetry installed.
  • Run poetry install to install dependencies.
  • Test that everything is working by running poetry run xexe smoke-test. You should see a happy pig.

Set up credentials

To use xexe, you will need to have credentials for the xe.com API. Specifically, you need an account id and it's matching api key.

To set up your environment, you should create a .env file in the root of this repository. You can use the .env-example file as a reference. We also recommend running chmod 400 or chmod 600 on it for safety.

Once you have done this, you can run poetry run xexe xe-healthcheck. If the connection to the API was successful, you will see some output telling you so.

How to setup dev environment

Note: the app has only been used so far in a Linux environment. Windows support is dubious.

  • Ensure you have Python 3.10> and poetry installed.
  • Run poetry install to install dependencies.
  • Create a valid .env file
    • You can use the template at .env.example
    • Make sure to run a chmod 600 on it to protect secrets.
  • Test that everything is working by running poetry run xexe smoke-test. You should see a happy pig.