Socket
Socket
Sign inDemoInstall

apimarket

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apimarket

API Market SDK for Python Development


Maintainers
1

.. image:: https://img.shields.io/pypi/v/apimarket.svg :alt: PyPI-Server :target: https://pypi.org/project/apimarket/

.. image:: https://img.shields.io/twitter/url/http/shields.io.svg?style=social&label=Twitter :alt: Twitter :target: https://twitter.com/apimarketmx

.. image:: https://img.shields.io/badge/-PyScaffold-005CA0?logo=pyscaffold :alt: Project generated with PyScaffold :target: https://pyscaffold.org/

========= apimarket

API Market Python Open Source Development

Installation

.. code-block:: bash

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.

.. code-block:: bash

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

.. code-block:: bash

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

Usage

Learn how to install and use the program through this playground <./notebooks/playground.ipynb>_.

Python

You can consult the full list on Python Docs.

Fetch CURP details ++++++++++++++++++

.. code-block:: python3

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 +++++++++++++++++++

.. code-block:: bash

apimarket -c LOOA531113HTCPBN07

Combine different requests +++++++++++++++++++++++++++

.. code-block:: bash

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

Read a CSV with your customs fields ++++++++++++++++++++++++++++++++++++

csvcut belongs to csvkit library

.. code-block:: bash

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

.. _pyscaffold-notes:

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc