π₯ 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).
π uv Python Package Manager
We highly recommend using uv for its fast dependency management and built-in virtual environment handling.
To start a new project:
This creates a structured Python project with pyproject.toml (and a uv.lock file once dependencies are synced).
Using uv in an existing project:
If you already have a project folder (optionally with a pyproject.toml), you can initialize it with:
Then add dependencies as needed:
Creating & Using a Virtual Environment:
uv creates and manages a .venv for your project when you install dependencies. To install everything from pyproject.toml:
This will sync all the dependencies into the virtual environment.
Install HESTIA:
Inside your project directory, run:
This adds HESTIA to your dependencies and installs it into the projectβs virtual environment.
π¦ 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 freezeto 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...π