semvec/pypi-packages huggingface dataset:
beatrica-git 2025.5.180925
A Python package for analyzing git differences between branches in a local repository.
Requires Python: >=3.6

[![PyPI version](https://badge.fury.io/py/beatrica-git.svg)](https://badge.fury.io/py/beatrica-git)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
[![Downloads](https://static.pepy.tech/badge/beatrica-git)](https://pepy.tech/project/beatrica-git)
[![LinkedIn](https://img.shields.io/badge/LinkedIn-blue)](https://www.linkedin.com/in/eugene-evstafev-716669181/)

# Beatrica Git

`beatrica-git` is a Python package designed for analyzing git differences between branches in a local repository. It helps developers and project managers to easily track and visualize changes, fostering better understanding and collaboration within teams.

## Installation

To install `beatrica-git`, use pip:

```bash
pip install beatrica-git
```

## Usage

`beatrica-git` is straightforward to use. Below are examples demonstrating how to analyze and retrieve recent commit changes between branches.

### Analyzing Commit Changes

```python
from beatrica_git.recent_change_inspector import BeatricaDiffTracker

# Initialize the analyzer for a specific repository path (optional) and branch
beatrica_diff_tracker = BeatricaDiffTracker(base_branch='master')

# Perform the analysis
beatrica_diff_tracker.analyze_commits()

# Retrieve and print the commit changes
commit_changes = beatrica_diff_tracker.commit_changes
print(commit_changes)
```

This example shows how to instantiate the `BeatricaDiffTracker` and analyze commit changes between the `master` branch and the `HEAD`. It's possible to specify a repository path; otherwise, the current working directory is used.

## Features

- Easy retrieval and analysis of commit differences between two branches.
- Support for analyzing changes in local git repositories.
- Detailed breakdown of additions, deletions, and modifications in each commit.
- Customizable for different base and head branches.
- Simplified API for easy integration into development workflows and tools.

## Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](https://github.com/chigwell/beatrica-git/issues).

## License

This project is licensed under the [MIT License](https://choosealicense.com/licenses/mit/).
beatrica-embedding 2025.5.180922
A Python package for embedding and analyzing code changes in git repositories.
Requires Python: >=3.6

[![PyPI version](https://badge.fury.io/py/beatrica-embedding.svg)](https://badge.fury.io/py/beatrica-embedding)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
[![Downloads](https://static.pepy.tech/badge/beatrica-embedding)](https://pepy.tech/project/beatrica-embedding)
[![LinkedIn](https://img.shields.io/badge/LinkedIn-blue)](https://www.linkedin.com/in/eugene-evstafev-716669181/)

# Beatrica Embedding

`beatrica-embedding` is a Python package designed to embed and analyze code changes in git repositories, utilizing Language Learning Models (LLMs) for enhanced insights. It allows seamless switching between different LLMs, making it highly adaptable for various code analysis needs.

## Installation

To install `beatrica-embedding`, use pip:

```bash
pip install beatrica-embedding
```

## Usage

`beatrica-embedding` offers a flexible way to analyze commit changes and generate insights using different LLMs. Below is an example demonstrating how to extract commit changes from a repository and process them with a chosen LLM.

### Extracting and Embedding Code Changes with LLM

```python
from beatrica_git.recent_change_inspector import BeatricaDiffTracker
from beatrica_embedding.embedding_generator import BeatricaCodeChangeProcessor
from langchain_openai import ChatOpenAI
from langchain_mistralai.chat_models import ChatMistralAI


# Extract commit changes from a git repository
beatrica_diff_tracker = BeatricaDiffTracker(base_branch="main")

# Analyze the commits
beatrica_diff_tracker.analyze_commits()

# Get the commit changes
commit_changes = beatrica_diff_tracker.commit_changes.items()

# Choose the LLM for processing
# language_model = ChatOpenAI(model_name="gpt-4-0125-preview", api_key=os.getenv("OPENAI_API_KEY"), max_tokens=1000)
language_model = ChatMistralAI(model="mistral-medium-latest", mistral_api_key=os.getenv("MISTRAL_API_KEY"), max_tokens=500)

code_change_processor = BeatricaCodeChangeProcessor(commit_changes, language_model=language_model)

# Process the commit changes
retrieval_chain = code_change_processor.process()

# Example query to analyze the changes
question = "What are the changes in the following code?"
print(question)
result = retrieval_chain(question)

answer = result['answer']
print(answer)
```

## Features

- Flexible integration with multiple LLMs for code change analysis.
- Easy to switch between models like OpenAI's GPT or MistralAI for different levels of analysis.
- Embedding and analyzing commit changes in git repositories for enhanced insights.
- Supports detailed analysis of code changes, leveraging the power of conversational models.

## Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](https://github.com/chigwell/beatrica-embedding/issues).

## License

This project is licensed under the [MIT License](https://choosealicense.com/licenses/mit/).
base-agent 2025.5.180920
An abstract base class for building various agent-based systems.
Requires Python: >=3.6

[![PyPI version](https://badge.fury.io/py/base-agent.svg)](https://badge.fury.io/py/base-agent)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
[![Downloads](https://static.pepy.tech/badge/base-agent)](https://pepy.tech/project/base-agent)
[![LinkedIn](https://img.shields.io/badge/LinkedIn-blue)](https://www.linkedin.com/in/eugene-evstafev-716669181/)

# BaseAgent

`BaseAgent` is an abstract base class designed to support the development of various agent-based systems. It provides a structured approach to creating agents with initialization, execution, and cleanup phases.

## Installation

To install `BaseAgent`, you can use pip directly from GitHub:

```bash
pip install git+https://github.com/chigwell/BaseAgent.git
```

## Usage

`BaseAgent` is intended to be subclassed by other classes that implement specific agent behaviors. Here's an example of how to create a concrete agent:

```python
from base_agent import BaseAgent

class MyAgent(BaseAgent):
    def initialize(self, config):
        print("Initializing with config:", config)

    def execute(self, task):
        print("Executing task:", task)
        return "Task Completed"

    def finalize(self):
        print("Cleaning up resources.")

# Example usage
if __name__ == "__main__":
    agent = MyAgent()
    agent.initialize(config={"setting": "value"})
    result = agent.execute(task="Example Task")
    print(result)
    agent.finalize()
```

This example demonstrates the basic structure of an agent that can be built using the `BaseAgent` framework.

## Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](https://github.com/chigwell/BaseAgent/issues).

## License

This project is licensed under the [MIT License](https://choosealicense.com/licenses/mit/).
TaskDetailsExtractor 2025.5.180918
Extract detailed tasks for software project modification using GPT from OpenAI.
Requires Python: >=3.6

[![PyPI version](https://badge.fury.io/py/TaskDetailsExtractor.svg)](https://badge.fury.io/py/TaskDetailsExtractor)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
[![Downloads](https://static.pepy.tech/badge/taskdetailsextractor)](https://pepy.tech/project/taskdetailsextractor)
[![LinkedIn](https://img.shields.io/badge/LinkedIn-blue)](https://www.linkedin.com/in/eugene-evstafev-716669181/)

# TaskDetailsExtractor

`TaskDetailsExtractor` is a Python tool designed to interact with GPT-3 in order to extract detailed task instructions based on a given coding task and project details. It integrates with OpenAI's GPT-3 API to analyze the feasibility of a task and to detail the necessary file operations to complete it.

## Installation

To install `TaskDetailsExtractor`, you can use pip:

```bash
pip install TaskDetailsExtractor
```

## Usage

### As a Python Module

TaskDetailsExtractor can be used as a Python module in your scripts for interacting with GPT-3 to analyze coding tasks.

Example:

```python
from taskdetailsextractor import TaskDetailsExtractor

# Initialize the extractor with the target project directory and your OpenAI API key
extractor = TaskDetailsExtractor('/path/to/your/project', 'your-openai-api-key')

# Example of analyzing task details
task_description = "Refactor the database schema to improve performance."
task_details = extractor.analyze_task_details(task_description)
print(task_details)
```

## Features

- **GPT-3 Integration**: Communicates with OpenAI's GPT-3 to analyze tasks and extract detailed instructions.
- **Task Analysis**: Provides detailed breakdowns of tasks including file operations needed, specific code blocks, and more.

## Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](https://github.com/chigwell/TaskDetailsExtractor/issues).

## License

This project is licensed under the [MIT License](https://choosealicense.com/licenses/mit/).