Metadata-Version: 2.1
Name: apimarket
Version: 3.0.1
Summary: API Market SDK for Python Development
Home-page: https://apimarket.mx/
Author: Carlos Eduardo Sanchez Torres (sanchezcarlosjr)
Author-email: 24639141+sanchezcarlosjr@users.noreply.github.com
License: MIT
Project-URL: Documentation, https://github.com/api-market-company/apimarket-sdk-python
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Classifier: Topic :: Utilities
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: Unix
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Description-Content-Type: text/x-rst; charset=UTF-8
License-File: LICENSE.txt
Requires-Dist: python-decouple
Requires-Dist: httpx[http2]
Requires-Dist: kink
Requires-Dist: dateparser
Requires-Dist: microsoft-kiota-serialization-json
Requires-Dist: microsoft-kiota-serialization-text
Requires-Dist: microsoft-kiota-serialization-form
Requires-Dist: microsoft-kiota-serialization-multipart
Requires-Dist: microsoft-kiota-http
Requires-Dist: urllib3
Requires-Dist: microsoft-kiota-abstractions
Requires-Dist: importlib-metadata ; python_version < "3.8"
Provides-Extra: testing
Requires-Dist: setuptools ; extra == 'testing'
Requires-Dist: pytest ; extra == 'testing'
Requires-Dist: pytest-cov ; extra == 'testing'

.. 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"


Python
-------
You can consult the full list on Python Docs.

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

.. code-block:: python3

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


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

