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

Note

This project has been set up using PyScaffold 4.5. For details and usage information on PyScaffold see https://pyscaffold.org/.

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-1.2.3.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

apimarket-1.2.3-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apimarket-1.2.3.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for apimarket-1.2.3.tar.gz
Algorithm Hash digest
SHA256 34a08907d3b2de7626211098c6ccd7d9a379a0876d37c406435b9ada2ae75a8d
MD5 dfebb78e13e3b9b313fd95e81600976e
BLAKE2b-256 b730c680a205af0484d4668f157fb22f6211c2b25e3cc6f99c3e95018dd41e1c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: apimarket-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for apimarket-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d83d3e8a8628afa814f22f770d05bded38f67481e63fab58174a922ac85c0b9d
MD5 764c546e173a8b63ad3a471a87f8e32d
BLAKE2b-256 9667570ae4c5b0d53b9e5ca9fb0d15521b002329b0a87795c45c9ddaa8d2d57b

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