Fintechless Platform - MicroServices Architecture - Amazon SQS Incoming
You'll need poetry. This Python repository uses Poetry
for managing its packages and dependencies.
Exit from your current virtual environment, if activated. Execute the following command in order to install Poetry
:
pip install poetry
It is recommended you create a separate virtual environment (Python >=3.10) using venv
. In order to create
a new virtual environment, execute the following command:
poetry shell
In order to install the dependencies execute the following command in your shell:
poetry install
If you need to add a new dependency for development, you can execute the following command in your shell:
poetry add <NAME> --dev
If you need to add a new required dependency, you can execute the following command in your shell:
poetry add <NAME>
Before running the tests, spin up Kafka on your local machine. In order to do so, execute the following:
docker compose -f docker-compose.yml up -d
Once Kafka is up and running, you can run the tests by executing the following command in your shell:
poetry run tests
To stop Kafka, please execute the following command:
docker compose -f docker-compose.yml stop
This library uses black
in order to format the code using the PEP8 style guide. Execute the following command
to format the code (make sure to install all the dependencies with Poetry
):
poetry run format
This library uses pylint
to analyze the code in order to ensure that it's PEP8 compliant. Execute the following command
to analyze the code (make sure to install all the dependencies with Poetry
):
poetry run lint