Skip to main content

Common utilities and base functionalities for all skills in the Private Assistant ecosystem.

Project description

Private Assistant Commons

Overview

private-assistant-commons is a shared library designed to provide common utilities and foundational components essential for developing various skills within the Private Assistant ecosystem. This package includes base classes, utility functions, and common validation routines like messsages that standardize and streamline the development of new skills.

Features

  • Base Skill Class: Provides a templated parent class from which all specific skill implementations inherit.
  • MQTT Utilities: Includes helper functions and classes for managing MQTT connections and message handling.
  • Validation Utilities: Offers standardized validation functions to ensure message integrity across different skills.
  • Common Configurations: Centralizes common configurations and settings that are used across multiple skills.

Getting Started

Prerequisites

Ensure you have Python 3.11+ installed, as this library uses features available in Python 3.11 and later.

Installation

Install private-assistant-commons by running the following command:

Certainly! Let's craft both a concise description for your pyproject.toml and a more detailed description for your README.md for the new package named private-assistant-commons. This package is intended to serve as the foundation for shared utilities and components across all skills in your private assistant system.

Description for pyproject.toml

This short description succinctly summarizes the purpose of the shared utilities package for inclusion in the pyproject.toml file:

description = "Common utilities and base functionalities for all skills in the Private Assistant ecosystem."

Description for README.md

For the README.md file, you'll want a more detailed description that explains the purpose, contains setup instructions, and outlines how to use the utilities. Here’s a proposed structure:

# Private Assistant Commons

## Overview

`private-assistant-commons` is a shared library designed to provide common utilities and foundational components essential for developing various skills within the Private Assistant ecosystem. This package includes base classes, utility functions, and common validation routines that standardize and streamline the development of new skills.

## Features

- **Base Skill Class**: Provides a templated parent class from which all specific skill implementations inherit.
- **MQTT Utilities**: Includes helper functions and classes for managing MQTT connections and message handling.
- **Validation Utilities**: Offers standardized validation functions to ensure message integrity across different skills.
- **Common Configurations**: Centralizes common configurations and settings that are used across multiple skills.

## Getting Started

### Prerequisites

Ensure you have Python 3.11+ installed, as this library uses features available in Python 3.11 and later.

### Usage

Import and use the utilities in your skill implementations:

```python
from private_assistant_commons import BaseSkill

class SwitchSkill(BaseSkill):
    def __init__(self, ...):
        super().__init__(...)

Contributing

Contributions to private-assistant-commons are welcome! Please read our contributing guidelines on how to propose bug fixes, improvements, or new features.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

private_assistant_commons-2.1.0.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

private_assistant_commons-2.1.0-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file private_assistant_commons-2.1.0.tar.gz.

File metadata

File hashes

Hashes for private_assistant_commons-2.1.0.tar.gz
Algorithm Hash digest
SHA256 7b3e0bf80112964af00dd748158ce6512620c523faf8b1d5b33660b7ec5e18c6
MD5 244eb568d84e693c157341de207e1c8e
BLAKE2b-256 61cbf938ab156950a0a8526292eed647af0f67f3980b26f492f5665202469ed5

See more details on using hashes here.

Provenance

The following attestation bundles were made for private_assistant_commons-2.1.0.tar.gz:

Publisher: python_build_package.yml on stkr22/private-assistant-commons-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file private_assistant_commons-2.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for private_assistant_commons-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 200f8cb0f186cfa887743f6fc02a5896ede2f31990ff6f9b40a3d5eeb53c8630
MD5 a52bad67a38f785dd2a5a20b65dfa723
BLAKE2b-256 9ad541db129a0227f2a88065b4e438522df120c342c9d3a3f690ddb6d5ced6ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for private_assistant_commons-2.1.0-py3-none-any.whl:

Publisher: python_build_package.yml on stkr22/private-assistant-commons-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page