Skip to main content

SDK oficial de CURPify — validación de identidad mexicana (CURP, RFC, IMSS, SEP)

Project description

curpify

SDK oficial de CURPify para Python.

pip install curpify

Uso

from curpify import Curpify

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

CURP

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

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

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

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

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

IMSS

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

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

Cliente asíncrono

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

curpify-0.1.2.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

curpify-0.1.2-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file curpify-0.1.2.tar.gz.

File metadata

  • Download URL: curpify-0.1.2.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for curpify-0.1.2.tar.gz
Algorithm Hash digest
SHA256 935cfc7b5401abb0c84b20e4b84df6668d0a06004b6be5114ab6d36924cafe60
MD5 e1a198349e5b1770212a63d703894679
BLAKE2b-256 c03fb5a5d34dcce0ca3c477fb57729c3149f2179ec58fab3ee4ef4a4f0e5bd26

See more details on using hashes here.

Provenance

The following attestation bundles were made for curpify-0.1.2.tar.gz:

Publisher: publish.yml on CURPify/CURPify-Python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file curpify-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: curpify-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for curpify-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f1f30feb16c00f8183b2a8bd4626d0888dc7f41c6d1eb3e067f6c8baaa80edf4
MD5 6a84f8bf0c382719c1703c839185dbff
BLAKE2b-256 d9c293cea6e238b8a510dcbef6f3fc8880ae1dfd2b14b80d92f5e06973e6eb01

See more details on using hashes here.

Provenance

The following attestation bundles were made for curpify-0.1.2-py3-none-any.whl:

Publisher: publish.yml on CURPify/CURPify-Python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page