Metadata-Version: 2.4
Name: ccoe-service-utils
Version: 2.1.1
Summary: A package containing utils for ccoe services
Author-email: Nicolaj Orluff Lauridsen <nicolaj.lauridsen@stark.dk>, Simon Schou Haue <simon.schou.jensen@stark.dk>
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: azure.identity
Requires-Dist: azure.storage.queue
Requires-Dist: requests

# Python Package for CCoE Service Utils

## Overview

The CCoE Service Utils package is a comprehensive utility library designed to streamline and enhance the development of services within the Cloud Center of Excellence (CCoE).

## Features

- `get_variables_from_env`: Retrieves environment variables and returns them as a dictionary.
- `get_authorization_header`: Generates an authorization header for the given scope using the provided credentials.
- `get_http_session`: Creates and returns an HTTP session with automatic retry mechanisms.
- `strtobool`: Convert a string to a boolean.
- `MailContentType`: Enum class for specifying mail content types (`PLAIN`, `HTML`).
- `EmailMessage`: Data class for defining email messages with attributes such as recipients, subject, content, and more.
- `MailQueueService`: Class for sending emails using a queue service.
- `get_custom_logger`: Creates and returns a custom logger that logs at the info level to stdout.
- `get_admin_account_email`: Returns a string containing the email of an admin account.
- `DynamicWorkloadMapping`: Data class for mapping dynamic workload mapping.
- `CostManagementService`: Class for adding cost allocations to a workload.
