semvec/pypi-packages huggingface dataset:
zimutils 0.1.1
Lightweight Python library for payroll and salary slip generation
License: MIT
Requires Python: >=3.10

# zimutils Payroll Library

A lightweight Python library to generate payrolls and salary slips, calculate deductions (NSSA, PAYE, AIDS Levy), earnings, and tax credits. Includes PDF generation using customizable HTML templates. Example : https://github.com/munyaradzichirove/zimutils/blob/main/images/salary%20_slip.png

## Features

- Add employee earnings, deductions, and tax credits.
- Automatic calculation of NSSA, PAYE, and AIDS Levy.
- Handles allowable deductions and taxable earnings.
- Generates professional salary slip PDFs using HTML templates.
- Dynamic company logos in PDFs.
- Supports multiple currencies.

## Installation

```bash
pip install zimutils

⚡ Note: This library installs WeasyPrint for PDF generation. Installation may take a few minutes.

## USAGE


from zimutils.payroll import Payroll
from zimutils.pdf import generate_payslip_pdf

# Create payroll
salary_slip = Payroll(
    employee_id="EMP-232377",
    first_name="xxxxxxxxxxxx", 
    last_name="xxxxxxxxxx",
    company="XXXXXXXXXXX",
    company_address="xxxxxxxxxxx",
    company_phone="+263 78 610 3016",
    company_email="xxxxxxxxx",
    department="IT",
    designation="Employee",
    period="December 2025",
    currency="USD",
    total_leave_days=11,
    leave_days_taken=3,
    date_of_joining="12/03/2025",
    logo_path="logo.webp"
)
# Earnings
salary_slip.add_earning(name="Basic Salary",amount=500,track_nssa=True,is_taxable=True)
salary_slip.add_earning(name="Bonus",amount=200,track_nssa=False)
salary_slip.add_earning(name="Transport Allowance",amount= 50)

# Tax Credits
salary_slip.add_credits(name="Blind",amount= 50)

# Deductions
salary_slip.add_deduction(name="Fuel", amount=120)
salary_slip.add_deduction(name="NSSA")
salary_slip.add_deduction(name="PAYE")
salary_slip.add_deduction(name="ZIBAWU",is_allowable_deduction=True, percentage=2)
salary_slip.add_deduction(name="UFAWUZ", is_allowable_deduction=True, percentage=3)
salary_slip.add_deduction(name="LAPF", is_allowable_deduction=True, percentage=6)
salary_slip.add_deduction(name="ZESCWU", is_allowable_deduction=True, percentage=1.5)
salary_slip.add_deduction(name="NECWEI", is_allowable_deduction=True, percentage=1)
salary_slip.add_deduction(name="NEC", is_allowable_deduction=True, percentage=2.4)
salary_slip.add_deduction(name="AIDS Levy")
salary_slip.add_deduction(name="Loan Repayment", amount=343)
salary_slip.finalize_deductions()
salary_slip.rearrange_deductions()

# print(salary_slip.author())
generate_payslip_pdf(
    payroll=salary_slip,
    output_path="payslip.pdf",
    template_dir="zimutils/templates",

)

Requirements

Python 3.10+

Jinja2

WeasyPrint (for PDF generation)


License

MIT License


You can adjust `path_to_your_logo.webp` to reflect how you want users to provide their logo dynamically.
langchain-agent-hub 1.0.0
LangChain tool for Hour.IT Agent Hub - Crypto-native AI services
License: MIT
Requires Python: >=3.9
Keywords: langchain, ai, crypto, payments, usdc, base, blockchain

# LangChain Agent Hub Tool

Official LangChain integration for [Hour.IT Agent Hub](https://web-production-4833.up.railway.app) - a crypto-native AI service marketplace.

## Installation

```bash
pip install langchain-agent-hub
```

## Quick Start

```python
from langchain_agent_hub import AgentHubTool

# Initialize tool
tool = AgentHubTool()

# Call a service (will return payment instructions if unpaid)
result = tool._run(
    service="sentiment",
    params={"text": "I love AI agents!"}
)

# After sending USDC payment, retry with transaction hash
result = tool._run(
    service="sentiment",
    params={"text": "I love AI agents!"},
    payment_tx="0xYourTransactionHash"
)

print(result)
```

## Available Services

| Service | Price | Endpoint |
|---------|-------|----------|
| Sentiment Analysis | $0.05 | `sentiment` |
| Translation | $0.05 | `translate` |
| Summarization | $0.08 | `summarize` |
| Web Scraping | $0.15 | `scrape` |
| Data Extraction | $0.10 | `extract` |

[See all 18 services](https://web-production-4833.up.railway.app/docs)

## Payment Details

- **Network**: Base Mainnet (Chain ID 8453)
- **Currency**: USDC
- **Protocol**: x402

## License

MIT License