semvec/pypi-packages huggingface dataset:
UniversalBackupValidator 1.0.0
A tool for validating and verifying backup files.
Requires Python: >=3.7

# Universal Backup Validator

Universal Backup Validator is an open-source tool designed to ensure the integrity of your backup files. It validates `.zip`, `.tar`, and `.7z` files, performs checksum verification, and generates comprehensive reports in multiple formats.

---

## **Features**
- Validate the integrity of `.zip`, `.tar`, and `.7z` files.
- Checksum verification using popular algorithms like `sha256` and `md5`.
- Multi-threaded directory validation for improved performance.
- Generate reports in multiple formats: JSON, CSV, and HTML.
- Configurable log rotation to manage log storage.

---

## **Installation**

### Prerequisites
- Python 3.7 or later.

### Clone the Repository
```bash
git clone https://github.com/tudos4/UniversalBackupValidator.git
cd UniversalBackupValidator

Set Up a Virtual Environment

python -m venv env
source env/bin/activate  # On Windows, use `env\Scripts\activate`
pip install -r requirements.txt

Usage
Validate a Single File

To validate a single .zip file:

python src/cli.py --file test_files/valid.zip --checksum <checksum> --algorithm sha256

Validate Files in a Directory

To validate all supported files in a directory:

python src/cli.py --directory test_files_batch --report validation_report.json --report-format json

CLI Options

--file            Path to a file to validate.
--directory       Path to a directory containing files to validate.
--checksum        Expected checksum value for validation.
--algorithm       Checksum algorithm (default: sha256).
--report          Path to save the consolidated report.
--report-format   Format of the report (json, csv, html). Default is json.
--config          Path to a configuration JSON file.
--max-logs        Maximum number of logs to retain (default: 5).
--log-directory   Directory to store logs.

Examples
Validate a .tar file with a checksum:

python src/cli.py --file test_files/valid.tar --checksum <checksum_value> --algorithm md5

Generate a CSV Report for a Directory:

python src/cli.py --directory test_files_batch --report validation_report.csv --report-format csv

Generate an HTML Report:

python src/cli.py --directory test_files_batch --report validation_report.html --report-format html

Contribution

We welcome contributions to improve Universal Backup Validator! Follow these steps to contribute:

    Fork the Repository:
        Go to the GitHub repository.
        Click the "Fork" button.

    Create a New Branch:

git checkout -b my-feature-branch

Make Your Changes:

    Add your feature or fix bugs.

Commit Your Changes:

git commit -m "Describe your changes"

Push the Changes:

    git push origin my-feature-branch

    Open a Pull Request:
        Go to the original repository on GitHub.
        Open a pull request describing your changes.

License

This project is licensed under the MIT License. See the LICENSE file for more details.
Acknowledgments

    Developed by tudos4.
    Inspired by the need for robust backup file validation.
    Powered by Python and the colorama library for enhanced CLI output.


---
SferumAPI 0.1.1
API wrapper for Sferum platform
Requires Python: >=3.7

# SferumAPI

**SferumAPI** — это Python-библиотека, предоставляющая удобный интерфейс для работы с закрытым API Сферума. Она упрощает выполнение рутинных задач и позволяет легко интегрировать функционал Сферума в ваши проекты.

---

### Функционал

| **Функция**                           | **Статус** |
| ------------------------------------- | ---------- |
| 🔑 Авторизация пользователя в Сферуме | ✅         |
| 🔑 Авторизация сессии для звонков     | ✅         |
| ✉️ Отправка сообщений пользователю    | ✅         |
| 📥 Получение сообщений из чатов       | ✅         |
| 📥 Получение сообщений из каналов     | ✅         |
| 📞 Создание групповых звонков         | ✅         |
| 🔗 Подключение к групповым звонкам    | ❌         |
| 🛑 Завершение групповых звонков       | ✅         |
| 📞 Создание личных звонков            | ✅         |
| 🔗 Подключение к личным звонкам       | ❌         |
| 🛑 Завершение личных звонков          | ✅         |
| 📢 Отправка сообщений в каналы        | ❓         |

✅ — Реализовано  
❌ — В планах  
❓ — Под вопросом

---

### Зачем создана?

Каждую неделю приходится вручную выполнять норму по сообщениям и звонкам. Это рутинная и скучная задача, для которой не существовало готовых инструментов автоматизации. **SferumAPI** решает эту проблему, делая процесс быстрым и удобным.

---

### Установка

Установите библиотеку через pip:

```python
pip install SferumAPI
```

Или клонируйте репозиторий и установите её локально:

```bash
git clone https://github.com/l2700l/SferumAPI
cd SferumAPI
pip install .
```

---

### Пример использования

```python
import SferumAPI

# Инициализация

remixdsid = "" # значение берется из cookies
api = SferumAPI.SferumAPI(remixdsid=remixdsid)

# Получение историй сообщений

messages_history = api.messages.get_history(peer_id=0, count=1, offset=0) # peer_id - id чата в Сферум
print(messages_history.response.items[0].text)

channel_history = api.channels.get_history(channel_id=-1, count=1, offset=0)
print(channel_history.response.items[0].attachments[0].wall.attachments[0].photo.sizes[0].url)

# Звонки

api.calls.peer.set_peer_id(peer_id=0) # peer_id - id пользователя в Сферум
api.calls.peer.start()
input()
api.calls.peer.end()

# Отправка сообщения

api.messages.send_message(peer_id=0, text="SferumAPI") # peer_id - id пользователя в Сферум
```

---

### Обратная связь и вклад в развитие

Если у вас есть предложения по улучшению или вы нашли ошибку, создайте issue в репозитории. **Pull requests** приветствуются!

**Разработано с заботой о преподавателях и учителей ❤️**
ipcore 0.1.2
A Python library to query IP addresses using ipquery.io API
Requires Python: >=3.7

# ipquery

A Python library to query IP addresses using the [ipquery.io](https://ipquery.io) API. This library allows you to easily retrieve detailed information about IP addresses, including ISP data, geolocation details, and risk analysis.

## Features

- Query detailed information for a specific IP address.
- Fetch your own public IP address.
- Perform bulk queries for multiple IP addresses.
- Includes Pydantic models for easy data validation and parsing.

## Installation

Install the package using pip:

```bash
pip install ipcore
```

## Usage

### Importing the Package

```python
from ipapi.client import IPAPIClient
```

### Query a Specific IP Address

Fetch information about a specific IP address:

#### Synchronously

```python
from ipapi.client import IPAPIClient

client = IPAPIClient()
ip_info = client.query_ip("8.8.8.8")
print(ip_info)
```

#### Asychronously

```python
from ipapi.client import AsyncIPAPIClient

async def main():
    client = AsyncIPAPIClient()
    ip_info = await client.query_ip("8.8.8.8")
    print(ip_info)

if __name__ == "__main__":
    import asyncio
    asyncio.run(main())
```

#### Example Output:
```
IPInfo(ip='8.8.8.8', isp=ISPInfo(asn='AS15169', org='Google LLC', isp='Google LLC'),
location=LocationInfo(country='United States', country_code='US', city='Mountain View',
state='California', zipcode='94035', latitude=37.386, longitude=-122.0838, timezone='America/Los_Angeles', localtime='2024-11-09T12:45:32'),
risk=RiskInfo(is_mobile=False, is_vpn=False, is_tor=False, is_proxy=False, is_datacenter=True, risk_score=0))
```

### Fetch Your Own Public IP Address

Retrieve your machine's public IP address:

```python
ip = client.query_own_ip()
print(f"Your IP: {ip}")
```

#### Example Output:
```
Your IP: 203.0.113.45
```

### Bulk Query Multiple IP Addresses

Fetch details for multiple IP addresses in a single request:

```python
ips = ["8.8.8.8", "1.1.1.1"]
results = client.query_bulk(ips)
for ip_info in results:
    print(ip_info)
```

#### Example Output:
```
IPInfo(ip='8.8.8.8', ...)
IPInfo(ip='1.1.1.1', ...)
```

## Running Tests

If you want to run tests to verify functionality:

```bash
pytest tests/
```

## Requirements

- Python 3.7+
- Pydantic 2.x
- httpx

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.

## Links

- [GitHub Repository](https://github.com/ipqwery/ipapi-py)
- [PyPI Project Page](https://pypi.org/project/ipcore/)