Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.

ConfidentialMind Server

Overview

The ConfidentialMind Server package is a Python library that provides core functionality for interfacing with the ConfidentialMind stack. It manages configurations, handles connections between services, and provides utilities for both local development and deployment within the ConfidentialMind ecosystem.

Installation

pip install confidentialmindserver

Features

  • Configuration management with real-time updates
  • Service connectivity within the ConfidentialMind stack
  • Support for local development and stack deployment
  • Streamlit integration for configuration management

Usage

Initializing the ConfigManager

from confidentialmindserver.config_manager import ConfigManager, ConnectorSchema

config_manager = ConfigManager()
config_manager.init_manager(
    config_model=YourConfigModel,
    id="your_service_id",
    connectors=[ConnectorSchema(...)],
    use_local_configs=False
)

Using ConfigManager with Streamlit

from confidentialmindserver.config_manager_streamlit import init_config_manager

config_manager = init_config_manager(
    config_model=YourConfigModel,
    connectors=[ConnectorSchema(...)],
    id="your_service_id",
    use_local_configs=False
)

Accessing Configurations and Connectors

# Get the current configuration
config = config_manager.config

# Get the list of connectors
connectors = config_manager.connectors

# Get the stack ID for a specific connector
stack_id = config_manager.getStackIdForConnector("connector_config_id")

# Get the URL for a specific connector
url = config_manager.getUrlForConnector("connector_config_id")

Components

config_manager.py

  • ConfigManager: Main class for managing configurations and connectors.
  • ConnectorSchema: Defines the structure for service connectors.
  • ConfigPatch: Used for updating configurations.

config_manager_streamlit.py

  • init_config_manager: Initializes a ConfigManager instance with Streamlit caching.
  • get_config_manager: Retrieves a cached instance of ConfigManager.

Configuration

The package uses environment variables for certain configurations:

  • CONFIDENTIAL_MIND_LOCAL_DEV: Set to "True" for local development.
  • SERVICE_NAME: Used as the service identifier when running inside the stack.

Local Development

For local development:

  1. Set CONFIDENTIAL_MIND_LOCAL_DEV="True"
  2. Use use_local_configs=True when initializing the ConfigManager.

Note

This package is designed to work within the ConfidentialMind ecosystem. Ensure you have the necessary permissions and access to the ConfidentialMind stack before using this package in a production environment.

For more detailed information on the ConfidentialMind SDK and its capabilities, please refer to the main SDK documentation.

Release files for confidentialmindserver 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for confidentialmindserver 0.1.1
File Interpreter ABI Platform
confidentialmindserver-0.1.1-py3-none-any.whl Python 3 none any Details

Release files / confidentialmindserver-0.1.1-py3-none-any.whl

Download URL confidentialmindserver-0.1.1-py3-none-any.whl
Size 17.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
95cb0bac171a726e65c6565ec61cedf0728e533d2fafc9b793e2037bbe16cea3
BLAKE2b-256 checksum
How to use checksums
cd1b4a7d7ac075f2ccb2d1b8b7655001b89b83d62416e778793a83cd89fd0a49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page