📥 Installation
HESTIA uses the following dependencies which will be installed automatically:
python-dotenv
– Loads environment variables from.env
.coloredlogs
– Provides colored log output for better readability.elasticsearch
– Required for sending logs to Elasticsearch.python-json-logger
– Formats logs as structured JSON (useful for Logstash & Kibana).fastapi
– Likely used for exposing logs via an API endpoint.requests
– Standard HTTP library for making API calls.structlog
– Enhances logging with structured data.httpx
– Async HTTP client (may be used for async logging or external APIs).
🎭 Poetry
We highly recommends using Poetry for its outstanding dependency management.
To start a new project:
This creates a structured Python project with pyproject.toml
.
Adding Poetry to an existing project:
Follow the interactive prompts to define project dependencies.
Creating & Using a Virtual Environment:
Poetry automatically creates and manages a virtual environment when installing dependencies. To explicitly create a virtual environment:
Activate the virtual environment:
Check the environment:
If you have an existing pyproject.toml, install all dependencies with:
Install HESTIA:
Inside your project directory, run:
📦 pip
HESTIA Asynchronous Logger is published as a python package and can be installed with
pip
, ideally by using a [virtual environment]. Open up a terminal and install with:
-
HESTIA uses [semantic versioning].
This will make sure that you don't accidentally [upgrade to the next major version], which may include breaking changes that silently corrupt your site. Additionally, you can use
pip freeze
to create a lockfile, so builds are reproducible at all times:Now, the lockfile can be used for installation:
This will automatically install compatible versions of all dependencies. HESTIA always strives to support the latest versions, so there's no need to install those packages separately.
🐙 GitHub
HESTIA can be directly used from [GitHub] by cloning the repository into a subfolder of your project root which might be useful if you want to use the very latest version:
🤩 CONGRAGULATIONS! Continue to the usage. Let's keep going...🚀