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

Uploaded Source

Built Distribution

apimarket-1.3.2-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apimarket-1.3.2.tar.gz
  • Upload date:
  • Size: 23.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.3.2.tar.gz
Algorithm Hash digest
SHA256 d39643306828bbde8db2f8b8eeb2b5d51c91c2a1201d61b6ad4b215c0a7c664f
MD5 327bdcdc9f308bbce3d2eac67e6d4368
BLAKE2b-256 bb37c17214aa9f82920d5c6acd1e676727441bf39938bdd3448889cf8a2951c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: apimarket-1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 8.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.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 879591216469c410f0a61653b65513cc778183d8892769df47e993557cff4d6c
MD5 7e1c06b8793316d2d87dc58db29d36be
BLAKE2b-256 3137add60b4eab8461c8f670eb3b4cc21827458131a96c5e102543910d43ae0b

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