semvec/pypi-packages huggingface dataset:
nua-sdk 1.1.9
SDK for NUA shared components
Requires Python: >=3.9

# NUA SDK

## Overview

The NUA SDK provides shared components and utilities for NUA security agents. This package serves as a foundation for building and extending NUA's security automation capabilities.

## Installation
You can install the NUA SDK by running:
```sh
pip install nua-sdk
```
## .env for authentication agent.
You must have this value in your .env to make sure the authentication agent will work properly
```sh
AUTH_AGENT_URL=auth agent deployment URL
```

## Use authentication agent
```sh
from nua_sdk import AuthenticationAgent
results = AuthenticationAgent(message=message).authenticate()
```
novikovtv-parser-tenchat 1.0.6
This is the TenChat search engine parser
Requires Python: >=3.11

# VK Parser

## Пример

```python
import os
from enum import Enum

from dotenv import load_dotenv
from pydantic import BaseModel
from novikovtv_parser_tenchat.main import make_csv_file


class ParserAPIType(int, Enum):
    """Перечисление типов парсера API."""
    Deferred = 0  # Отложенный парсинг
    Day = 1  # Дневной парсинг
    Night = 2  # Ночной парсинг


class ParserRequest(BaseModel):
    """Модель запроса на парсинг."""
    tg_user_id: int
    query: str
    type: ParserAPIType


async def vk(parser_request: ParserRequest):
    """Выполняет парсинг TenChat по запросу пользователя."""
    load_dotenv()

    login = os.getenv("LOGIN_TENCHAT")
    password = os.getenv("PASSWORD_TENCHAT")
    max_communities = int(os.getenv("MAX_COMMUNITIES_TENCHAT"))
    search_query = parser_request.query

    csv_text = await make_csv_text(login, password, search_query, max_communities)
```