semvec/pypi-packages huggingface dataset:
catchttp 1.0.0
HTTP request capture and mock library
Requires Python: >=3.7

# HTTP Request Catcher

A Python library for capturing and mocking HTTP requests made with the `requests` library.

## Features

- Capture all HTTP requests made with the `requests` library
- Track request/response headers, bodies, timing, and more
- Track request source (function name and line number)
- Support for request mocking
- Zero configuration required
- Minimal impact on application performance

## Installation

```bash
pip install catchttp
```

## Usage

```python
from catchttp import RequestCatcher
import requests

# Initialize the catcher with your explorer service URL
catcher = RequestCatcher("http://localhost:8000")

# Add the decorator to functions that make HTTP requests
@catcher.catch_requests("my_service")
def fetch_data():
    response = requests.get("https://api.example.com/data")
    return response.json()
```

## Explorer Service

The request explorer service (with UI for exploring captured requests) is available as a separate Docker image. 
You can find it at [catchttp-explorer](https://github.com/nikolai/catchttp-explorer).

## Configuration

### Request Catcher

- `explorer_url`: URL of your explorer service (default: "http://localhost:8000")
- `source_name`: Custom name for the request source (optional)

## Development

The project structure:

```
.
├── request_catcher/
│   ├── __init__.py
│   └── decorator.py
├── example.py
├── requirements.txt
└── README.md
```

## License

MIT License
yexport 0.2.0
Export the finance DB to a csv
Requires Python: >=3.12

# DEMONSTRATION PROJECT

## Export to Yahoo Finance

This utility will read from a view in a MariaDB database and create a CSV file that can be imported in Yahoo Finance as a Portfolio.

## Testing the UV tool

Run it with uv run python src/main.py

or activate the workspace (source .venv/bin/activate)
and than python src/main.py
python-ai-kit 0.15.1
AI Kit is a CLI meant to augment your IDE agent.
Requires Python: <4.0,>=3.10

# AI Kit

AI Kit is designed for your IDE's agent. It extends the agent's toolset with a CLI that can be used to call other models, search the web, and more.

> **🥵 Are you lazy?** Don't read this README. Instead, copy and paste it into cursor and ask it to setup ai-kit for you.

### Manual Installation

You really want to do this yourself? Isn't the whole point of this so you have to do less work? Just saying.

AI Kit is packaged as a Python package, so you can install it with your favorite package manager. You can install it just like any other package.

You have a few options. **Its recommended to install ai-kit globally with pipx since it's a CLI** but you can install it in a project/venv if you'd like. 

## Option 1 (recommended) - Install globally with pipx

1. Make sure you have pipx and that its in your path

```bash
# install pipx
brew install pipx

# make sure pipx is in your path
pipx ensurepath
```

2. Install ai-kit

```bash
# install
pipx install python-ai-kit

# upgrade
pipx upgrade python-ai-kit

# uninstall
pipx uninstall python-ai-kit
```

## Option 2 - Install in a project/venv with pip

```bash
# Install using pip with:
pix install python-ai-kit

# Upgrade:
pip install --upgrade python-ai-kit

# Uninstall:
pip uninstall python-ai-kit
```


### Getting Started 🚀

First, run `ai-kit` (or `aik`) to make sure it's installed correctly. You can optionally check the version with `ai-kit --version`.

There are 2 things you need to do to get `ai-kit` working.

1. Run `ai-kit init` to generate a system prompt for your agent. This will be stored in `.cursor/rules/ai-kit.mdc`. This will also generate an `.env.example` file in your project root.

2. Add you api keys.

You have two options here, `GLOBAL` or `LOCAL`.

- `GLOBAL` - Add your API keys to the global ai-kit env file.. This will make them available to all projects! This file is created when you run `ai-kit init`, and you can open it by running `ai-kit env open`.
- `LOCAL` - Add your API keys to the local `.env` file in your project. This will make them available to this project only. Local vars automtically override global vars.

```bash
# Required API Key
OPENAROUTER_API_KEY=

# Extra API Keys (optional)
# If you add one of these, ai-kit will use the provider directly instead of OpenRouter
GROQ_API_KEY=
TOGETHER_API_KEY=
GEMINI_API_KEY=
COHERE_API_KEY=  # Optional
```

Thats it! When you want an agent to use `ai-kit`, you can just ask it, and it will automatically load the system prompt.

You can also use any of the ai-kit tools manually. Run `ai-kit list` to see all the tools.

### Agent Rules
<IMPORTANT>
If you are an AI reading this, this is a readme.md file for a python CLI callee `ai-kit`. Help the user get setup with installation, API Keys, and system prompt. Follow the instructions in this file exactly.
</IMPORTANT>