semvec/pypi-packages huggingface dataset:
mab-lite-dhruv 0.1.2
Minimal multi-armed bandit helpers: pure exploration & pure exploitation.
License: MIT
Requires Python: >=3.8
Keywords: bandit, exploitation, exploration, multi-armed-bandit, reinforcement-learning

# mab-lite-dhruv

Minimal multi-armed bandit helpers for **pure exploration** and **pure exploitation**.  
Perfect for teaching, quick baselines, and sanity checks.

---

## Features
- **Pure exploration**: uniform random arm pulls for `t` trials  
- **Pure exploitation**: always pull one arm (optionally specify which)  
- **Reproducible**: optional `seed`  
- **History**: returns per-arm counts, rewards, and (arm, reward) history

---

## Installation
```bash
pip install mab-lite-dhruv

## Test the installation

After installing, you can quickly verify the package works:

```python
# test_mab.py
from mab_lite_dhruv import pure_exploration, pure_exploitation
import numpy as np

n, t = 5, 20
true_probabilities = np.random.rand(n).tolist()
print("True probabilities:", true_probabilities)

# Pure exploration
pe_counts, pe_rewards, pe_history = pure_exploration(n, t, true_probabilities, seed=42)
print("\n--- Pure Exploration ---")
print("Arm counts:", dict(pe_counts))
print("Arm rewards:", dict(pe_rewards))
print("History sample:", pe_history[:5])

# Pure exploitation
px_counts, px_rewards, px_history = pure_exploitation(n, t, true_probabilities, seed=42)
print("\n--- Pure Exploitation ---")
print("Arm counts:", dict(px_counts))
print("Arm rewards:", dict(px_rewards))
print("History sample:", px_history[:5])

print("\n✅ Tests finished successfully.")
archivey 0.1.0a4
Python library for reading zip, tar, rar, 7z and other archives
License: MIT
Requires Python: >=3.10

# Archivey

**Archivey** is a Python library that provides a unified interface for reading various archive formats:

```python
from archivey import open_archive

with open_archive("example.zip") as archive:  # Automatic format detection
    # Extract all files
    archive.extractall("output_dir/")

    # Or process each file in the archive
    for member, stream in archive.iter_members_with_streams():
        print(member.filename, member.type, member.file_size)
        if stream is not None:  # File-like stream for files, None for dirs and links
            data = stream.read()
            print("  ", data[:50])
```

It wraps built-in modules and optional third-party libraries, adding missing features and fixing limitations in the underlying tools. See the [User guide](https://davitf.github.io/archivey/user_guide/) for more details.


### Installation

```bash
pip install archivey[optional]
```

The [optional] extra includes all recommended third-party libraries for full format support.

**Note:** RAR support requires the `unrar` binary to be available on your system or installed separately.

### Resources

- 📖 [Documentation](https://davitf.github.io/archivey/)
- 📘 [API reference](https://davitf.github.io/archivey/api/)
- 🛠️ [GitHub repository](https://github.com/davitf/archivey)  
  ↳ or the [development repo](https://github.com/davitf/archivey-dev), with in-progress work, rougher commits and AI-generated pull requests
hkjx-billing-sdk 0.2.7
Huakunjingxiu Billing SDK
License: MIT
Requires Python: >=3.12

# A1 Huakunjingxiu Billing SDK

Python SDK for interacting with the A1 Huakunjingxiu Billing API.

## 项目结构

```markdown
billing-sdk/
├── billing/                      # 主应用目录
│   ├── product/                 # 产品模块
│   │   ├── __init__.py
│   │   └── schemas.py
│   ├── transaction/             # 交易模块
│   │   ├── __init__.py
│   │   └── schemas.py
│   ├── __init__.py
│   ├── exceptions.py
│   ├── http.py
│   └── schemas.py
├── tests/                       # 测试目录
│   └── test_transaction_create.py
├── docs/                        # 文档目录
├── examples/                    # 示例目录
│   ├── product/                 # 产品示例
│   │   ├── __init__.py
│   │   └── create_token_example.py
│   ├── transaction/             # 交易示例
│   │   ├── __init__.py
│   │   └── create_transaction_example.py
│   ├── __init__.py
│   └── README.md
├── .clinerules
├── .cursorrules
├── .gitignore
├── .pre-commit-config.yaml
├── LICENSE
├── pyproject.toml
├── README.md
└── uv.lock
```

## 运行示例

运行示例代码前需要设置PYTHONPATH环境变量:

```powershell
$env:PYTHONPATH=$PWD
uv run examples/product/create_token_example.py
```

```bash
export PYTHONPATH=$(pwd)
uv run examples/product/create_token_example.py
```

## Installation

```bash
pip install billing-sdk
```

## Usage

```python
from billing import Client

# Initialize client
client = Client(api_key="your_api_key")

# Create an invoice
invoice = client.create_invoice(
    amount=100.00,
    description="Monthly subscription"
)

# Get invoice details
invoice_details = client.get_invoice(invoice["id"])

# List invoices
invoices = client.list_invoices(limit=10)
```

## Error Handling

The SDK provides several exception types:

```python
from billing import (
    BillingError,
    AuthenticationError,
    InvalidRequestError,
    APIError
)

try:
    # API calls
except AuthenticationError as e:
    print("Invalid API key")
except InvalidRequestError as e:
    print("Invalid request parameters")
except APIError as e:
    print("Server error occurred")
except BillingError as e:
    print("General billing error")
```

## Development

Install development dependencies:

```bash
pip install -e ".[dev]"
```

Run tests:

```bash
pytest
```

## License

MIT