Metadata-Version: 2.4
Name: curpify
Version: 0.1.3
Summary: SDK oficial de CURPify — validación de identidad mexicana (CURP, RFC, IMSS, SEP)
Project-URL: Homepage, https://curpify.mx
Author-email: CURPify <support@curpify.mx>
License: MIT
Keywords: curp,identidad,imss,mexico,renapo,rfc,sep
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.9
Requires-Dist: httpx>=0.27.0
Provides-Extra: test
Requires-Dist: pytest-asyncio>=0.24; extra == 'test'
Requires-Dist: pytest>=8.0; extra == 'test'
Requires-Dist: respx>=0.21; extra == 'test'
Description-Content-Type: text/markdown

# curpify

SDK oficial de CURPify para Python.

```bash
pip install curpify
```

## Uso

```python
from curpify import Curpify

client = Curpify(api_key="ck_live_...")
```

**CURP**

```python
result = client.curp.validate("AAAA000000HDFBBB00")
print(result.data.first_name, result.data.paternal_surname)

found = client.curp.search(first_name="...", paternal_surname="...", ...)

doc = client.curp.download("AAAA000000HDFBBB00")
```

**RFC**

```python
result = client.rfc.validate("AAAA000000AAA")

bulk = client.rfc.validate_bulk(["AAAA000000AAA", "BBBB000000BBB"])

calc = client.rfc.calculate(first_name="...", paternal_surname="...", birth_date="YYYY-MM-DD")

from_curp = client.rfc.from_curp("AAAA000000HDFBBB00")
```

**SEP**

```python
result = client.sep.validate("AAAA000000HDFBBB00")

found = client.sep.search(first_name="...", ...)

cert = client.sep.certificate("AAAA000000HDFBBB00")
```

**IMSS**

```python
nss = client.imss.nss_from_curp("AAAA000000HDFBBB00")

rights = client.imss.rights(nss="00000000000")
```

## Cliente asíncrono

```python
import asyncio
from curpify import AsyncCurpify

async def main():
    async with AsyncCurpify(api_key="ck_live_...") as client:
        result = await client.curp.validate("AAAA000000HDFBBB00")

asyncio.run(main())
```

Documentación completa en [docs.curpify.mx](https://docs.curpify.mx).
