semvec/pypi-packages huggingface dataset:
vatify 0.1.5
Official Python SDK for Vatify — EU VAT validation, rates, and calculation.
License: MIT
Requires Python: >=3.9
Keywords: API, EU VAT, VAT, rates, tax, validation

# Vatify – Official Python SDK

EU VAT **validation**, **rates**, and **calculation** with one API.

[![PyPI version](https://img.shields.io/pypi/v/vatify.svg)](https://pypi.org/project/vatify/)
[![Python](https://img.shields.io/pypi/pyversions/vatify.svg)](https://pypi.org/project/vatify/)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)

- Website: https://vatifytax.app  
- Docs: https://vatifytax.app

---

## Install

```bash
pip install vatify
```

## Set your API Key

```bash
export VATIFY_API_KEY="your_api_key"
```

## Quickstart (sync)
```python
from vatify import Vatify

client = Vatify(api_key="YOUR_API_KEY")

# 1) Validate VAT number
res = client.validate_vat("DE123456789")
print(res.valid, res.country_code, res.name)

# 2) Calculate VAT rate (by country, type, date)
res = client.calculate(amount=100, basis="net", rate_type="reduced", supply_date=str(date.today().isoformat()),
                           supplier={"country_code": "DE", "vat_number": "DE811907980"},
                           customer={"country_code": "FR", "vat_number": "FR40303265045"},
                           supply_type="services", b2x="B2B", category_hint="ACCOMMODATION")
print(res)

# 3) Get rates for a country
rates = client.rates("DE")
print(rates)
client.close()
```

## Quickstart (async)
```python
import asyncio
from vatify import VatifyAsync

async def main():
    client = VatifyAsync(api_key="YOUR_API_KEY")
    res = await client.validate_vat("DE123456789")
    print(res.valid)
    await client.aclose()

asyncio.run(main())
```

## Quickstart (cli)
```bash
vatify validate DE123456789
vatify rates DE
```

## Error Handling
All API/network issues raise `VatifyError` with optional `status_code` and `details`.
```python
from vatify import Vatify, VatifyError

try:
    Vatify(api_key="x").validate_vat("DE123")
except VatifyError as e:
    print("Failed:", e, e.status_code)
```


## Contributing
```bash
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"  # (optional if you add dev deps)
pytest -q
```

### Build and upload
```bash
pipx run build
python -m pip install --upgrade build twine
python -m build
twine upload dist/*
```
ivanissa-meu-investimento 0.2
Uma biblioteca para cálculos de investimentos.
License: MIT
Requires Python: >=3.6

# Meu Investimento
        
        Uma biblioteca Python para cálculos de investimentos.
        
        ## Instalação
        
        Você pode instalar a biblioteca via pip:
        
        ```bash
        pip install ivanissa_meu_investimento
        ```
        
        ## Uso
        
        ```python
        from investimentos import calcular_retorno_investimento, calcular_juros_compostos
        
        valor_inicial = 1000
        valor_final = 1500
        
        retorno = calcular_retorno_investimento(valor_inicial, valor_final)
        print(f"Retorno do investimento: {retorno:.2f}%")
        
        valor_final_juros = calcular_juros_compostos(valor_inicial, 6, 5)
        print(f"Valor final com juros compostos: R${valor_final_juros:.2f}")
        ```