semvec/pypi-packages huggingface dataset:
log-configurator 0.0.3
simple tool to facilitate logging - made for my personal use
Requires Python: <4.0,>=3.12

# log configurator
Simple configurator for the python logging package that allows simultaneous file and shell logging

## installation
The log configurator can easily be installed from pypi
```
pip install log-configurator
```

## usage

Import the package and the default python logging

```python
import log_configurator
import logging
```

Configure python logging
```python
log_configurator.setup_root_logger()
```

Create a logging instance in your module as usual and log with it
```python
logger = logging.getLogger(__name__)
logger.info('Log Horizon')
```

### buffer initial output
If you need more complex argument parsing before you can configure the logger you can buffer it and have it logged once you configure your logger.

```python
initial_log = log_configurator.buffer_log()
logger = logging.getLogger(__name__)
logger.info('Early log information')

# <your setup code goes here>

log_configurator.setup_root_logger()
logger.debug(initial_log.getvalue())
```
The early log output currently can only be logged with one severity level.
netbox-software-tracker 0.3.7
Software and golden images for netbox devices

# Netbox Software Tracker

[Netbox](https://github.com/netbox-community/netbox) plugin that adds the capability to track software and assign golden images to devices




## Compatibility

This plugin in compatible with [NetBox](https://netbox.readthedocs.org/) 4.0 and later.

## Installation

If Netbox was installed according to the standard installation instructions. It may be necessary to activate the virtual environment.

```
source /opt/netbox/venv/bin/activate
```

The plugin is available as a Python package in pypi and can be installed with pip

```
pip install netbox-software-tracker
```
Enable the plugin in /opt/netbox/netbox/netbox/configuration.py:
```
PLUGINS = ["netbox-software-tracker"]
```
Restart NetBox and add `netbox-software-tracker` to your local_requirements.txt



## Contributing
Developing tools for this project based on [ntc-netbox-plugin-onboarding](https://github.com/networktocode/ntc-netbox-plugin-onboarding) repo.

Issues and pull requests are welcomed.
country-registry 0.1.2
Return useful information for every country in the ISO 3166 standard.
Requires Python: <4.0,>=3.12

# Country Data Management

A Python package for managing and retrieving country-related data, including country information, subdivisions, and translated country names.

## Features

- Retrieve country data using ISO country codes
- Access country subdivisions (states, provinces, etc.)
- Get translated country names in different languages
- Handle data from JSON files stored in a structured directory format

## Installation

```bash
pip install country-registry
```

## Usage

### Initialize the Client

```python
from country_registry import CountryRegistry

client = CountryRegistry()
```

### Get Country Data

```python
from country_registry import CountryRegistry

client = CountryRegistry()
# Get data for a specific country using ISO code
country_data = client.get_country_data_by_code("US")
```

### Get Subdivisions

```python
from country_registry import CountryRegistry

client = CountryRegistry()

# Get all subdivisions for a country as list
subdivisions = client.get_country_subdivisions_by_code("US")

# Get a specific subdivision by code
subdivision = client.get_country_subdivision_by_codes("US", "CA")
```

### Get Translations

```python
from country_registry import CountryRegistry

client = CountryRegistry()

# Get all country names in a specific language
spanish_names = client.get_translated_countries_names_by_lang_code("es")

# Get a specific country name in a language
spanish_name = client.get_translated_country_name_by_codes("es", "US")
```

## Data Format
TODO add data format here

## Error Handling

The package includes robust error handling:
- Returns `None` for non-existent country codes
- Returns `None` for non-existent subdivision codes
- Returns empty list `[]` for countries without subdivisions
- Returns empty dict `{}` for missing translation files
- Logs errors using the `loguru` logger

## Dependencies

- Python 3.6+
- loguru
- pathlib

## License

MIT License

Copyright (c) 2024

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
dtx-apis-prompts-utils 0.2.1
Detoxio APIs Prompts parsing and processing utils
Requires Python: <4.0,>=3.10

# dtx-apis-prompts-utils

## Overview

**dtx-apis-prompts-utils** is a Python library designed for parsing and processing prompts within the Detoxio API ecosystem. This utility provides tools for managing complex prompt structures, base64 decoding, multi-turn interactions, and threat classification. 

## Features

- **Complex Prompt Handling**: Parse and manage structured prompts with roles like `USER`, `SYSTEM`, and `ASSISTANT`.
- **Base64 Decoding**: Automatically decode base64-encoded strings into JSON.
- **Multi-turn Prompts**: Handle multi-turn conversation flows seamlessly.
- **Threat Classification**: Integrate labels and categories for prompt-based threat classification.

## Installation

To install the library, use:

```bash
pip install dtx-apis-prompts-utils
```

## Usage

### Parsing Prompts

```python
from dtx_apis_prompts_utils import ComplexPromptMsgParser

parser = ComplexPromptMsgParser()
parsed_prompt = parser.parse(base64_encoded_or_json_string)

if parsed_prompt:
    print(parsed_prompt.prompt)
```

### Multi-turn Conversations

```python
from dtx_apis_prompts_utils import DtxPrompt

dtx_prompt = DtxPrompt(prompt="Hello, how are you?", safe=True, threat_class="LOW", threat_category="General")
generator = dtx_prompt.get_multi_turn_prompts_gen()

conversation = generator.next_prompt()
print(conversation)
```

## License

This project is licensed under the Custom detoxio License
Django-GCC-PhoneNumbers 0.0.3
A flexible and extensible phone number validation package for GCC countries and Egypt.
Requires Python: >=3.6

# Django_Phone_Number_Field_GCC 📞

**A flexible and extensible phone number validation package for GCC countries and Egypt.**

[![PyPI](https://img.shields.io/pypi/v/Django-GCC-PhoneNumbers)](https://pypi.org/project/Django-GCC-PhoneNumbers/)

---

## Overview

**Django_Phone_Number_Field_GCC** is a Python package designed to validate phone numbers for **GCC countries** (Saudi Arabia, UAE, Qatar, Kuwait, Oman, Bahrain) and **Egypt**. It provides a **custom Django field** that can be easily integrated into your Django models, along with flexible validation options.

### Key Features:
- **Country-Specific Validation**: Validate phone numbers based on the country code (e.g., `EG` for Egypt, `SA` for Saudi Arabia).
- **Flexible Field Options**: Supports Django field arguments like `max_length`, `blank`, and `null`.
- **Allow All GCC Countries**: Optionally validate phone numbers for all GCC countries at once.
- **Extensible**: Easily add new countries or validation rules.

---

## Installation

Install the package via `pip`:

```bash
pip install phonevalidatorx
```

```bash
from django.db import models
from phonevalidatorGCC.fields import PhoneNumberField

class UserProfile(models.Model):
    # Example: Accept phone numbers from all GCC countries
    gcc_phone = PhoneNumberField(
        allow_all_country=True,
        max_length=15,
        blank=True,
        null=True,
        help_text="Enter a phone number from any GCC country."
    )

    # Example: Accept only Egyptian phone numbers
    egypt_phone = PhoneNumberField(
        country_code='EG', # Changeable for any of these ['EG', 'SA', 'AE', 'QA', 'KW', 'OM', 'BH']
        max_length=11,
        blank=False,
        null=False,
        help_text="Enter a valid Egyptian phone number."
    )

    def __str__(self):
        return f'GCC Phone: {self.gcc_phone}, Egypt Phone: {self.egypt_phone}'
```