semvec/pypi-packages huggingface dataset:
fractal-forest 0.2.0
A library for managing hierarchical numerical data structures
License: MIT
Requires Python: >=3.7

# fractal-forest

**fractal-forest** is a Python library designed for efficient management and analysis of hierarchical numerical data structures. It supports recursive tree structures where each node contains a tuple of an integer and a generic value. The library can be optimized for real-time distributed processing and OLAP compatibility.

## Features

- Recursive tree structures with multiple children per node
- Node values as tuples: `(int, Any)` for numerical aggregation and associated data
- Automated tree creation and child addition
- Integrity checks with automatic propagation of updates to parent and child nodes
- Designed for hierarchical structured data such as:
  - Financial data (e.g., budgeting, accounting hierarchies)
  - Inventory systems (e.g., product categories, stock levels)
  - Organizational charts
  - Nested project management tasks
  - Any domain requiring structured aggregation and integrity validation

## Installation

```bash
pip install fractal-forest
```

## Usage

```python
# usage_example.py
from fractal_forest import Fractal

# Create the root fractal
root = Fractal((10, "root"))

# Create child fractals
child1 = Fractal((5, "child1"))
child2 = Fractal((7, "child2"))

# Add children to root
root.add_child(child1)
root.add_child(child2)

# Print the tree structure after initial addition
print("Initial tree structure:")
root.print_tree()

# Access the updated value at root
print("Root value after aggregation:", root.value)  # Output will be (12, 'root') after aggregation

# Now update the value of child1, which triggers an update in the parent (root)
child1.update_value(6)  # New value of child1 is now 6 instead of 5

# Print the tree structure after update
print("\nTree structure after child1 update:")
root.print_tree()

# Access the updated value at root after update
print("Root value after child1 update:", root.value)  # The root value will reflect the change

# Now, simulate updating the value of a non-leaf (root), which triggers the creation of a new child to handle the difference
root.update_value(30)  # This will change the value of the root from 12 to 30

# Print the tree structure after the new child is created
print("\nTree structure after root value update:")
root.print_tree()

# Final root value after the update
print("Root value after manual update:", root.value)
```

## License
MIT License
pycaptcha-guard-playwright 1.0.4
Solve any kind of captcha like human
License: MIT
Requires Python: >=3.9

* PyCaptcha Guard Playwright Library

PyCaptcha Guard is a Python library that automatically solves CAPTCHAs using Playwright. It provides an easy way to bypass CAPTCHAs on websites during web scraping, testing, or automation tasks.

* Features

Automatically solves CAPTCHAs using Playwright and browser automation.
Integrates easily with your existing scraping or automation setup.
Supports various CAPTCHA types (e.g., reCAPTCHA v2, v3, hCaptcha).

* Installation

You can install the library via pip:
pip install pycaptcha-guard-playwright

To install Playwright, run:
pip install playwright
python -m playwright install

* Dependencies

Playwright
Python 3.9 or higher
shared-beta 0.0.3
Internal utilities for MongoDB, Redis, and other services
License: MIT
Requires Python: >=3.7

## Project Name
Edge-Shared

## Description
Edge-Shared is a fundamental module project stored in an individual repo, it defines some basic classes and common functions for other edge service projects to import.

### Import Process
1. add `shared/` at `.gitignore` file in your project
2. clone edge-shared repo into your project and rename it as `shared`
3. now you can import all the class and methods without affecting your project repo

### Development Process

1. develop your common classes or methods in a proper path
2. import your new modules, classes, or methods into `__init__.py`
3. update the Project Structure at  `README.md`

## Project Structure

```
shared/
├── base/
│   ├── api/
│   │   ├── __init__.py
│   │   ├── api_log.py
│   │   └── api.py
│   │
│   ├── __init__.py
│   ├── common.py
│   ├── config.py
│   ├── device.py
│   ├── message.py
│   └── mqtt.py
│ 
├── protocol_sdk/
│   ├── common/
│   │   ├── __init__.py
│   │   ├── struct_dcfx.py
│   │   └── verify.py
│   ├── __init__.py
│   ├── dcfx_sdk.py
│   └── mqtt_sdk
│
├── .gitignore
├── config.yaml
├── README.md
└── requirements.txt
```

## Points to know

1. `protocol_sdk` is maintained by Middleware team. The message topic and payload structure in `dcfx_sdk.py` should be checked to keep it meets the latest version of Delta Connected Factory Exchange Standard.

2. `base/api.py` includes `BaseAPI` to implement an api request with log, param validation, and formatted result data.