semvec/pypi-packages huggingface dataset:
confidentialmindserver 0.1.1
Core functionality for interfacing with the ConfidentialMind stack
License: Apache-2.0
Requires Python: >=3.10

# 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

```python
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

```python
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

```python
# 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.
robotframework-libraryproxy 0.3.0
Call RobotFramework keywords from Python
License: Apache-2.0
Requires Python: <4.0,>=3.10
Keywords: Test, Testing, RobotFramework

# robotframework-libraryproxy

Simple library for calling RobotFramework keywords from Python, with the possibility to log them in the output.

Example Python library:

```python
from Browser import Browser
from robotlibraryproxy import library_proxy

def do_something_in_browser(self):
    with library_proxy(Browser) as browser:
        browser.new_browser(headless=False)
        browser.new_page("https://example.com")
        browser.click("text=More Information...")

```

or another way as python descriptor:

```python
from Browser import Browser
from robotlibraryproxy import library_proxy


class Dummy:

    browser: Browser = library_proxy()

    def do_something_in_browser(self):
        self.browser.new_browser(headless=False)
        self.browser.new_page("https://example.com")
        self.browser.click("text=More Information...")

```

Example Test case that uses this library:

```robotframework
*** Settings ***

Library    Dummy.py

# Library    Browser

*** Test Cases ***

a simple test
    Do Something In Browser

```

An excerpt from the Robot log:


![Example from robot log](doc/example_screenshot.png)

more comming soon...