semvec/pypi-packages huggingface dataset:
sp-graph-layout 1.5.0
A library for visualizing directed graphs.
License: MIT
Requires Python: >=3.8

Graph Layout
============

## Overview

A library for visualizing directed graphs.

|                                   rank dir = TB                                    |                                   rank dir = LR                                    |
|:----------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------:|
| ![](https://github.com/CyberZHG/GraphLayout/blob/main/docs/images/example1_tb.svg) | ![](https://github.com/CyberZHG/GraphLayout/blob/main/docs/images/example1_lr.svg) |
| ![](https://github.com/CyberZHG/GraphLayout/blob/main/docs/images/example2_tb.svg) | ![](https://github.com/CyberZHG/GraphLayout/blob/main/docs/images/example2_lr.svg) |

## Documentation

* [Documentation](https://cyberzhg.github.io/GraphLayout/)

    * [Installation](https://cyberzhg.github.io/GraphLayout/install.html)
    * [Basic Concepts](https://cyberzhg.github.io/GraphLayout/basic.html)
    * [Graph Attributes](https://cyberzhg.github.io/GraphLayout/graph_attr.html)
    * [Vertex Attributes](https://cyberzhg.github.io/GraphLayout/vertex_attr.html)
    * [Edge Attributes](https://cyberzhg.github.io/GraphLayout/edge_attr.html)
partner-availability-config 0.1.1
Simple package for managing partner availability configurations across tenants
License: MIT
Requires Python: >=3.8
Keywords: partner, availability, configuration, tenant

# Partner Availability Configuration

Simple Python package for managing partner availability configurations across tenants.

## Installation

```bash
pip install partner-availability-config
```

## Usage

```python
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from partner_availability import PartnerAvailabilityService, Base

# Setup your database connection
engine = create_engine("postgresql://user:pass@localhost/db")
Base.metadata.create_all(engine)
SessionLocal = sessionmaker(bind=engine)

# Initialize service
service = PartnerAvailabilityService(get_session=SessionLocal)

# Use the 3 core methods
# 1. Get enabled partners
partners = service.get_enabled_partners("tenant1")

# 2. Check if partner is active
is_active = service.is_partner_active("tenant1", "partner_a")

# 3. Update configuration
service.update_partner_config("tenant1", {
    "enabled_partners": ["partner_a", "partner_b"],
    "is_active": True,
    "api_key": "your_api_key"
})
```

## Database Schema

The package creates a `partner_availability_config` table:

- `tenant` (VARCHAR, PRIMARY KEY) - Tenant identifier
- `is_active` (BOOLEAN) - Whether configuration is active
- `api_key` (VARCHAR) - API key for tenant
- `enabled_partners` (JSON) - List of enabled partner identifiers

## Methods

### `get_enabled_partners(tenant: str) -> List[str]`
Returns list of enabled partner identifiers for a tenant.

### `is_partner_active(tenant: str, partner_id: str) -> bool`
Returns True if partner is active for the tenant.

### `update_partner_config(tenant: str, config_data: Dict) -> None`
Updates or creates partner configuration for a tenant.