Skip to main content

API Market SDK for Python Development

Project description

PyPI-Server Twitter Project generated with PyScaffold

apimarket

API Market Python Open Source Development

Installation

pip install apimarket

Set API KEY

There are three different ways to set the API key: you can set the API key as an environment variable in your shell, in the .env file, or call functions with your API key.

export APIMARKET_API_KEY="REPLACE-WITH-YOUR-API-HERE"
APIMARKET_API_KEY="REPLACE-WITH-YOUR-API-HERE"

Python

You can consult the full list on Python Docs.

Fetch CURP details

import apimarket
# Also it is possible apimarket.fetch_curp_details("LOOA531113HTCPBN07", api_key="")
result = apimarket.fetch_curp_details("LOOA531113HTCPBN07")
print(result)

CLI

You can consult the full list on CLI Docs.

Fetch CURP details

apimarket -c LOOA531113HTCPBN07

Combine different requests

apimarket -c LOOA531113HTCPBN07 --get-rfc-from-curp LOOA531113HTCPBN07  | jq -s 'add'

Read a CSV with your customs fields

csvcut belongs to csvkit library

csvcut apimarket-consulta.csv -c 'CURP' | xargs -P 8 -I {} apimarket -c {} 2>"error.txt" | jq -s > curps.json

Servicios

Valida CURP API

Valida CURP API, es una API REST para la obtención y validación de los registros de nacimiento relacionados a la Clave Única de Registro de Población (CURP) en el Registro Nacional de Población (RENAPO) localizados en México en formato JSON. Este endpoint no usa un algoritmo, sino que consulta las fuentes oficiales. Este servicio cumple con la normativa de nuestra parte, te recomendamos leer nuestros nuestros términos y condiciones. Más información en https://apimarket.mx/marketplace/valida-curp

Dudas y opiniones

Correo

Mediante correo electrónico: abdiel@apimarket.mx WhatsApp: https://api.whatsapp.com/message/CEUT72XQ5FKGP1

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

apimarket-2.6.5.tar.gz (26.2 kB view details)

Uploaded Source

Built Distribution

apimarket-2.6.5-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file apimarket-2.6.5.tar.gz.

File metadata

  • Download URL: apimarket-2.6.5.tar.gz
  • Upload date:
  • Size: 26.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.14

File hashes

Hashes for apimarket-2.6.5.tar.gz
Algorithm Hash digest
SHA256 2f4b1231955e7ac8ceff65141a23271033f85959f1749f1ddd5cdbcd849d966e
MD5 b297ded9a7b29d60dd06a63861642886
BLAKE2b-256 d0cba3b2628058a539afbafc64b62b07c18fb5833268c5bdf6e30c969fdcb95b

See more details on using hashes here.

File details

Details for the file apimarket-2.6.5-py3-none-any.whl.

File metadata

  • Download URL: apimarket-2.6.5-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.14

File hashes

Hashes for apimarket-2.6.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a50f33bf69a126817ae34f8b55bf5c428e58f2a0be6c828e28dee9f274ed530a
MD5 bb02082ce7ce2ab66f0926e1c397d532
BLAKE2b-256 c32e2a295d51b92d807f4dc4d10d0036c71d7d8279d7bd067118076a08e9a475

See more details on using hashes here.

Supported by

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