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.3.tar.gz (9.3 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.3-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: curpify-0.1.3.tar.gz
  • Upload date:
  • Size: 9.3 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.3.tar.gz
Algorithm Hash digest
SHA256 0f0755c836c86d22c186d7ca90489085cdb8696047783843fad4a6ab691a0a76
MD5 b0ffbecee16677764e71d3648ac8c83b
BLAKE2b-256 774ad53fc3b6f6d2cc7d5709341fa83e4db00df92f8b37401c8765747e44ba65

See more details on using hashes here.

Provenance

The following attestation bundles were made for curpify-0.1.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: curpify-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 44ac2ddb925e41719fa9850f001ee7b05268d5bf537b21c0eca70e57859b8edc
MD5 9962860dd37ea040bcdaa8529773e83f
BLAKE2b-256 0d2290ff2a5b38768023ea124b832b789a4b67fca8f94c4978d07862d67548a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for curpify-0.1.3-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