API Market SDK for Python Development
Project description
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"
Usage
Learn how to install and use the program through this playground.
Python
You can consult the full list on Python Docs.
Fetch CURP details
import apimarket
# You can configure the calls with apimarket.assemble(api_key: str, async_client:boolean=False, headers:dict[str,str], sandbox=False)
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file apimarket-3.2.0.tar.gz
.
File metadata
- Download URL: apimarket-3.2.0.tar.gz
- Upload date:
- Size: 83.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5c37d729496fca95c3426d69c1b616c7e26ab9d3f1e7be62beb8f8866381e76 |
|
MD5 | d0e830206ed22d51349751fffb458b4a |
|
BLAKE2b-256 | dc66609d1b9aa3d012f393c2e5a5b481ad5f74244f7448f1aabb5ca5984ac086 |
File details
Details for the file apimarket-3.2.0-py3-none-any.whl
.
File metadata
- Download URL: apimarket-3.2.0-py3-none-any.whl
- Upload date:
- Size: 272.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a69c8804814a1e39cddeba34af5236d036bf3a6609b0acc79b67889c9ecedfb5 |
|
MD5 | 8a39540d46238845087fd4636eaab5aa |
|
BLAKE2b-256 | 086e2418b25e976075f9ea6e237811d664a4b5dd794b6e6bbfec90b34baf570a |